作者 bianxinhua

add README

@@ -5,8 +5,10 @@ variables: @@ -5,8 +5,10 @@ variables:
5 name: 测试竞标任务名称${get_nowtime()} 5 name: 测试竞标任务名称${get_nowtime()}
6 acceptanceCriteria: 测试竞标任务的验收标准${get_nowtime()} 6 acceptanceCriteria: 测试竞标任务的验收标准${get_nowtime()}
7 description: 测试竞标任务的任务描述${get_nowtime()} 7 description: 测试竞标任务的任务描述${get_nowtime()}
8 - bidStartTime: ${get_today()} 8 + bidStartTime: ${get_today1()}
9 bidEndTime: ${get_tomorrow()} 9 bidEndTime: ${get_tomorrow()}
  10 + id: ${get_resource_id()}
  11 + serial: ${get_serialNo()}
10 msg: ok 12 msg: ok
11 teardown_hooks: 13 teardown_hooks:
12 - ${teardown_hook_get_bid_task_id($response)} 14 - ${teardown_hook_get_bid_task_id($response)}
@@ -24,10 +26,10 @@ request: @@ -24,10 +26,10 @@ request:
24 name: $name 26 name: $name
25 resourceType: 1 27 resourceType: 1
26 resourceList: 28 resourceList:
27 - - id: ${get_resource_id()} 29 + - id: ${convert_to_number($id)}
28 title: ${get_resource_title()} 30 title: ${get_resource_title()}
29 content: ${get_resource_content()} 31 content: ${get_resource_content()}
30 - serial: ${get_serialNo()} 32 + serial: ${convert_to_number($serial)}
31 customerValue: 33 customerValue:
32 - 31 34 - 31
33 taskCharactor: 12 35 taskCharactor: 12
@@ -37,7 +39,7 @@ request: @@ -37,7 +39,7 @@ request:
37 isImportant: true 39 isImportant: true
38 taskBelong: 13 40 taskBelong: 13
39 isRemind: true 41 isRemind: true
40 -# pictures: 42 + pictures:
41 method: POST 43 method: POST
42 url: task/bid/update 44 url: task/bid/update
43 validate: 45 validate:
1 -eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtYnVzaW5lc3MtYWRtaW4tZ2F0ZXdheS10ZXN0LmZqbWFpbWFpbWFpLmNvbVwvYXV0aFwvcHdkTG9naW4iLCJpYXQiOjE1OT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2fnvf
1 -1ad12e2680e7833bf77feaa9bb1f02e66b1b6aa17b13c019420f864cf34b520fac9956e0  
  1 +117007d714adf33db6d2653d903ebf2d6b4bf903f89df2011b5a29a5ff8bdabe06c56e1d
1 -GS3oekoZEnYJMuCekvInSC5XvZXVD+ipuFpWJytJLrepJXECA4YaT8a+2AalGBlKLVSP70Ss70w73d28v95g4/7aM2Lzejo8aYb8Jrmvjs20rDMwqY9r/awiw8gZuID52/7f2Tl6nq+VVzJTc5KTvI8NZ9qsovGdoXXORaRNtnA=  
  1 +G4fjAqY/WpcBPjYfZI8qL1pOCpbox/efS8zvtw+sgmmsB1z9TmCfhBfntbtY6wJSqcmG5ae8OzR+KaJtnXCCQVb7fQCxJj/vF1PmYbhE64DbnBjU1H14Kx/lamaYI8vSgJvEXFhSPPGKxeyymVQOf/7lice1kwVxd4ahH6n+YSI=
1 -3274993621020928  
  1 +3275187474030848
1 -eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtd29ydGgtd2ViLWdhdGV3YXktdGVzdC5mam1haW1haW1haS5jb21cL2F1dGhcL2xvZ2luIiwiaWF0IjoxNTk5MTE3OTgxLCJleHAiOjE1OTkxMjg3ODEsIm5iZiI6MTU5OTExNzk4MSwianRpIjoiUlU0RzVSRkFRenYyWlYyaSIsInN1YiI6MzI0ODgxNzYxMzY4MTY2NCwicHJ2IjoiODdlMGFmMWVmOWZkMTU4MTJmZGVjOTcxNTNhMTRlMGIwNDc1NDZhYSIsImNvbXBhbnlJZCI6MzY2LCJuaWNrbmFtZSI6Ilx1OGM3OVx1NWI1MFx1NTkzNCIsInBob25lIjoiMTk5OTAwMDAwMDgiLCJ1aWQiOjMyNDg4MTc2MTM2ODE2NjQsImFkbWluVHlwZSI6Mn0.5eXGpnIHhI71V2ek9QIhIyI-gxktFeh26YQMTJcHSv8  
  1 +eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtd29ydGgtd2ViLWdhdGV3YXktdGVzdC5mam1haW1haW1haS5jb21cL2F1dGhcL2xvZ2luIiwiaWF0IjoxNTk5MjEyNjM1LCJleHAiOjE1OTkyMjM0MzUsIm5iZiI6MTU5OTIxMjYzNSwianRpIjoieTVoSU5Qb3FkR2pBOEFvcSIsInN1YiI6MzI0ODgxNzYxMzY4MTY2NCwicHJ2IjoiODdlMGFmMWVmOWZkMTU4MTJmZGVjOTcxNTNhMTRlMGIwNDc1NDZhYSIsImNvbXBhbnlJZCI6MzY2LCJuaWNrbmFtZSI6Ilx1OGM3OVx1NWI1MFx1NTkzNCIsInBob25lIjoiMTk5OTAwMDAwMDgiLCJ1aWQiOjMyNDg4MTc2MTM2ODE2NjQsImFkbWluVHlwZSI6Mn0.J9c3Ks0u4Q4ZCt7UJWLyQK8NqdYCTYKgA0seAdVqoaM
@@ -22,7 +22,7 @@ def convert_to_string(value): @@ -22,7 +22,7 @@ def convert_to_string(value):
22 22
23 def convert_to_number(value): 23 def convert_to_number(value):
24 return int(value) 24 return int(value)
25 - 25 +# print(type(convert_to_number(get_resource_id())))
26 # def get_base_url(env_type="test"): 26 # def get_base_url(env_type="test"):
27 # """ 27 # """
28 # 根据配置选择运行环境 28 # 根据配置选择运行环境
@@ -46,3 +46,7 @@ def get_tomorrow(): @@ -46,3 +46,7 @@ def get_tomorrow():
46 td = datetime.timedelta(days=1) 46 td = datetime.timedelta(days=1)
47 tomorrow = (datetime.datetime.utcnow() + td).isoformat() 47 tomorrow = (datetime.datetime.utcnow() + td).isoformat()
48 return tomorrow 48 return tomorrow
  49 +def get_today1():
  50 + td = datetime.timedelta(days=0)
  51 + tomorrow = (datetime.datetime.utcnow() + td).isoformat()
  52 + return tomorrow
@@ -12,6 +12,7 @@ from datetime import * @@ -12,6 +12,7 @@ from datetime import *
12 def get_today(): 12 def get_today():
13 today = datetime.now(timezone.utc).astimezone().isoformat() 13 today = datetime.now(timezone.utc).astimezone().isoformat()
14 return today 14 return today
  15 +
15 # 获得连接 16 # 获得连接
16 def GetConnect(): 17 def GetConnect():
17 conn = False 18 conn = False