提交 ae88f621 编写于 作者: sssss55578693's avatar sssss55578693

Merge branch 'shipment-python' into 'master'

add a download logitic

See merge request !1
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
......@@ -160,8 +160,26 @@ class Api:
response = Request.Request().Post_Result(create_url, data, create_header)
return response
def Download_AWB(self, job_id, region_id):
'''
下载面单
:param job_id:
:param region_id:
:return:
'''
# 获取url&hearder
download_url = params.Basic().Get_Url('basic_url') + params.ApiInfo(Consts.API_SHIPMENT,'DOWNLOAD_SD').Get_Api_Info()
download_header = params.HeaderInfo().Get_Header_Info(region_id)
#请求参数
data = 'job_id=' + job_id
#发送请求
response = Request.Request().Get_Request(download_url, data, download_header, True)
return response
if __name__ == '__main__':
a = Api()
create_order = a.Create_Order('SG', 10012)
a.Check_Print(1, 'SG')
a.Download_AWB('SG_321239_00629915a46ffef52a4c40d435481061_g', 'SG')
#create_order = a.Create_Order('SG', 10012)
#a.Check_Print(1, 'SG')
......@@ -26,3 +26,4 @@ TN = 'tracking_number'
ARRANGE_SHIPMENT_STATUS = 'package_arrange_shipment_status'
PACKAGE_NUMBER = 'package_number'
NORMAL_WAYBILL = 'can_print_normal_waybill'
JOB_ID = 'job_id'
......@@ -71,7 +71,7 @@ class Request:
#return json.dumps(response_dicts)
return response_dicts
def Get_Request(self, url, data, header):
def Get_Request(self, url, data, header, download_file=False):
"""
Get请求
:param url:
......@@ -115,9 +115,10 @@ class Request:
response_dicts['time_consuming'] = time_consuming
response_dicts['time_total'] = time_total
return response_dicts
if download_file == True:
return response
else:
return response_dicts
if __name__ == '__main__':
url = 'http://c-api-sellerbasicservice.staging.shopeemobile.com/api/fulfillment/order/get_forder_from_oms'
......
......@@ -48,3 +48,7 @@
[ERROR 2021-09-19 11:49:17]StatusCode error expect_code is 200 StatusCode is 400
[ERROR 2021-09-19 16:13:54]StatusCode error expect_code is 200 StatusCode is 400
[ERROR 2021-09-19 17:29:14]StatusCode error expect_code is 200 StatusCode is 400
[ERROR 2021-09-20 11:41:23]StatusCode error expect_code is 200 StatusCode is 400
[ERROR 2021-09-20 19:25:19]StatusCode error expect_code is 200 StatusCode is 400
[ERROR 2021-09-20 19:40:21]StatusCode error expect_code is 200 StatusCode is 400
[ERROR 2021-09-20 19:40:49]StatusCode error expect_code is 200 StatusCode is 400
......@@ -9,6 +9,7 @@ ApiInfo:
ARRANGE_SHIPMENT: "/api/fulfillment/openapi/v1/shipment/init_order"
CREATE_SD_JOB: "/api/fulfillment/shipment/create_sd_jobs_multi_shop"
CHECK_PRINT: "/api/fulfillment/shipment/check_forder_print_waybill_multi_shop"
DOWNLOAD_SD: "/api/fulfillment/shipment/download_sd_job"
-
order:
-
......
{'code': 200, 'body': {'code': 0, 'data': {'list': [{'job_id': 'SG_321239_7a458d7f88883c975c3b92f8a996a030_g', 'job_name': 'Air Waybill.SpeedPost - LPS (buyer)*1.pdf', 'job_status': 0, 'job_type': 1}]}, 'message': 'success', 'user_message': 'success'}, 'text': '{"code":0,"data":{"list":[{"job_id":"SG_321239_7a458d7f88883c975c3b92f8a996a030_g","job_name":"Air Waybill.SpeedPost - LPS (buyer)*1.pdf","job_status":0,"job_type":1}]},"message":"success","user_message":"success"}', 'time_consuming': 246.251, 'time_total': 0.246251}
Expecting value: line 1 column 1 (char 0)
INFO root:Log.py:74 [INFO 2021-09-21 11:40:42]解析yaml, Path:/Users/jiafeng.li/Desktop/工作记录文件/code/shipment-python/Params/Param/Basic.yml
INFO root:Log.py:74 [INFO 2021-09-21 11:40:42]解析yaml, Path:/Users/jiafeng.li/Desktop/工作记录文件/code/shipment-python/Params/Param/ApiInfo.yml
INFO root:Log.py:74 [INFO 2021-09-21 11:40:42]解析yaml, Path:/Users/jiafeng.li/Desktop/工作记录文件/code/shipment-python/Params/Param/HeaderInfo.yml
DEBUG urllib3.connectionpool:connectionpool.py:227 Starting new HTTP connection (1): c-api-sellerbasicservice.staging.shopeemobile.com:80
DEBUG urllib3.connectionpool:connectionpool.py:452 http://c-api-sellerbasicservice.staging.shopeemobile.com:80 "POST /api/fulfillment/openapi/v1/shipment/init_order HTTP/1.1" 200 70
\ No newline at end of file
此差异已折叠。
因为 它太大了无法显示 source diff 。你可以改为 查看blob
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can arrange shipment
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"","10012渠道打印面单","创建订单","0","0","1","0","0"
"","10012渠道打印面单","发货","0","0","1","0","0"
"","10012渠道打印面单","打印面单","0","0","1","0","0"
{
"uid" : "b1a8273437954620fa374b796ffaacdd",
"children" : [ {
"name" : "10012渠道打印面单",
"children" : [ {
"name" : "创建订单",
"children" : [ {
"name" : "test_create_order_10012",
"uid" : "682603f4020a87c7",
"parentUid" : "b383e4410545fb3ce82f7374bab356ff",
"status" : "passed",
"time" : {
"start" : 1632195489028,
"stop" : 1632195642272,
"duration" : 153244
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
} ],
"uid" : "b383e4410545fb3ce82f7374bab356ff"
}, {
"name" : "发货",
"children" : [ {
"name" : "test_arrange_shipment_10012",
"uid" : "ba2964eea1151d33",
"parentUid" : "5aca5dd60a470ac6dd2d6ee9429aca6b",
"status" : "passed",
"time" : {
"start" : 1632195642278,
"stop" : 1632195643747,
"duration" : 1469
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
} ],
"uid" : "5aca5dd60a470ac6dd2d6ee9429aca6b"
}, {
"name" : "打印面单",
"children" : [ {
"name" : "test_print_AWB",
"uid" : "b8a4b6e23d69e6f2",
"parentUid" : "c2235189148223361f22bc38736caa94",
"status" : "passed",
"time" : {
"start" : 1632195643750,
"stop" : 1632195655999,
"duration" : 12249
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
} ],
"uid" : "c2235189148223361f22bc38736caa94"
} ],
"uid" : "cbea52a9287d0747cc6a16afc09fa0ea"
} ],
"name" : "behaviors"
}
\ No newline at end of file
{
"uid" : "83edc06c07f9ae9e47eb6dd1b683e4e2",
"children" : [ {
"name" : "TestCase.SG.test_sample_10012",
"children" : [ {
"name" : "test_create_order_10012",
"uid" : "682603f4020a87c7",
"parentUid" : "2cd6ea4cedd04f882072c8f51d994c3f",
"status" : "passed",
"time" : {
"start" : 1632195489028,
"stop" : 1632195642272,
"duration" : 153244
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
}, {
"name" : "test_arrange_shipment_10012",
"uid" : "ba2964eea1151d33",
"parentUid" : "2cd6ea4cedd04f882072c8f51d994c3f",
"status" : "passed",
"time" : {
"start" : 1632195642278,
"stop" : 1632195643747,
"duration" : 1469
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
}, {
"name" : "test_print_AWB",
"uid" : "b8a4b6e23d69e6f2",
"parentUid" : "2cd6ea4cedd04f882072c8f51d994c3f",
"status" : "passed",
"time" : {
"start" : 1632195643750,
"stop" : 1632195655999,
"duration" : 12249
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
} ],
"uid" : "TestCase.SG.test_sample_10012"
} ],
"name" : "packages"
}
\ No newline at end of file
"Status","Start Time","Stop Time","Duration in ms","Parent Suite","Suite","Sub Suite","Test Class","Test Method","Name","Description"
"passed","Tue Sep 21 11:38:09 CST 2021","Tue Sep 21 11:40:42 CST 2021","153244","TestCase.SG","test_sample_10012","Test_Sample_10012","","","test_create_order_10012",""
"passed","Tue Sep 21 11:40:42 CST 2021","Tue Sep 21 11:40:43 CST 2021","1469","TestCase.SG","test_sample_10012","Test_Sample_10012","","","test_arrange_shipment_10012",""
"passed","Tue Sep 21 11:40:43 CST 2021","Tue Sep 21 11:40:55 CST 2021","12249","TestCase.SG","test_sample_10012","Test_Sample_10012","","","test_print_AWB",""
{
"uid" : "98d3104e051c652961429bf95fa0b5d6",
"children" : [ {
"name" : "TestCase.SG",
"children" : [ {
"name" : "test_sample_10012",
"children" : [ {
"name" : "Test_Sample_10012",
"children" : [ {
"name" : "test_create_order_10012",
"uid" : "682603f4020a87c7",
"parentUid" : "48b0e4c968545d49f1bce7f600f2b9ef",
"status" : "passed",
"time" : {
"start" : 1632195489028,
"stop" : 1632195642272,
"duration" : 153244
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
}, {
"name" : "test_arrange_shipment_10012",
"uid" : "ba2964eea1151d33",
"parentUid" : "48b0e4c968545d49f1bce7f600f2b9ef",
"status" : "passed",
"time" : {
"start" : 1632195642278,
"stop" : 1632195643747,
"duration" : 1469
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
}, {
"name" : "test_print_AWB",
"uid" : "b8a4b6e23d69e6f2",
"parentUid" : "48b0e4c968545d49f1bce7f600f2b9ef",
"status" : "passed",
"time" : {
"start" : 1632195643750,
"stop" : 1632195655999,
"duration" : 12249
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
} ],
"uid" : "48b0e4c968545d49f1bce7f600f2b9ef"
} ],
"uid" : "38d28a53eb7dc4198d3ec4d289d949e0"
} ],
"uid" : "61c2581606b1dcbe8aa878e0a3921486"
} ],
"name" : "suites"
}
\ No newline at end of file
{
"uid" : "682603f4020a87c7",
"name" : "test_create_order_10012",
"fullName" : "TestCase.SG.test_sample_10012.Test_Sample_10012#test_create_order_10012",
"historyId" : "abdbd17f3cf2c89da9194a19bf93a151",
"time" : {
"start" : 1632195489028,
"stop" : 1632195642272,
"duration" : 153244
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "b2bcc11d63f9ac29",
"name" : "log",
"source" : "b2bcc11d63f9ac29.txt",
"type" : "text/plain",
"size" : 379813
}, {
"uid" : "bf19e9a9fb6d161b",
"name" : "stdout",
"source" : "bf19e9a9fb6d161b.txt",
"type" : "text/plain",
"size" : 11596
} ],
"parameters" : [ ],
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true
},
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "10012渠道打印面单"
}, {
"name" : "story",
"value" : "创建订单"
}, {
"name" : "severity",
"value" : "normal"
}, {
"name" : "parentSuite",
"value" : "TestCase.SG"
}, {
"name" : "suite",
"value" : "test_sample_10012"
}, {
"name" : "subSuite",
"value" : "Test_Sample_10012"
}, {
"name" : "host",
"value" : "C02D37B2MD6T"
}, {
"name" : "thread",
"value" : "2607-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "TestCase.SG.test_sample_10012"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "682603f4020a87c7.json",
"parameterValues" : [ ]
}
\ No newline at end of file
{
"uid" : "b8a4b6e23d69e6f2",
"name" : "test_print_AWB",
"fullName" : "TestCase.SG.test_sample_10012.Test_Sample_10012#test_print_AWB",
"historyId" : "7d80ed4f98f0f0d93add05f153d8da93",
"time" : {
"start" : 1632195643750,
"stop" : 1632195655999,
"duration" : 12249
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "89576e5f536ae9d8",
"name" : "log",
"source" : "89576e5f536ae9d8.txt",
"type" : "text/plain",
"size" : 25446
}, {
"uid" : "45fd86f7f49692b",
"name" : "stdout",
"source" : "45fd86f7f49692b.txt",
"type" : "text/plain",
"size" : 572
} ],
"parameters" : [ ],
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true
},
"afterStages" : [ ],
"labels" : [ {
"name" : "story",
"value" : "打印面单"
}, {
"name" : "feature",
"value" : "10012渠道打印面单"
}, {
"name" : "severity",
"value" : "normal"
}, {
"name" : "parentSuite",
"value" : "TestCase.SG"
}, {
"name" : "suite",
"value" : "test_sample_10012"
}, {
"name" : "subSuite",
"value" : "Test_Sample_10012"
}, {
"name" : "host",
"value" : "C02D37B2MD6T"
}, {
"name" : "thread",
"value" : "2607-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "TestCase.SG.test_sample_10012"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "b8a4b6e23d69e6f2.json",
"parameterValues" : [ ]
}
\ No newline at end of file
{
"uid" : "ba2964eea1151d33",
"name" : "test_arrange_shipment_10012",
"fullName" : "TestCase.SG.test_sample_10012.Test_Sample_10012#test_arrange_shipment_10012",
"historyId" : "52b7475cd8e4ef12e6ffe7a76e8a9e8a",
"time" : {
"start" : 1632195642278,
"stop" : 1632195643747,
"duration" : 1469
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "792966057f60eed7",
"name" : "log",
"source" : "792966057f60eed7.txt",
"type" : "text/plain",
"size" : 800
}, {
"uid" : "17c2267b0a4d1435",
"name" : "stdout",
"source" : "17c2267b0a4d1435.txt",
"type" : "text/plain",
"size" : 27
} ],
"parameters" : [ ],
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true
},
"afterStages" : [ ],
"labels" : [ {
"name" : "feature",
"value" : "10012渠道打印面单"
}, {
"name" : "severity",
"value" : "normal"
}, {
"name" : "story",
"value" : "发货"
}, {
"name" : "parentSuite",
"value" : "TestCase.SG"
}, {
"name" : "suite",
"value" : "test_sample_10012"
}, {
"name" : "subSuite",
"value" : "Test_Sample_10012"
}, {
"name" : "host",
"value" : "C02D37B2MD6T"
}, {
"name" : "thread",
"value" : "2607-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "TestCase.SG.test_sample_10012"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "ba2964eea1151d33.json",
"parameterValues" : [ ]
}
\ No newline at end of file
{
"uid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"children" : [ {
"name" : "C02D37B2MD6T",
"children" : [ {
"name" : "2607-MainThread",
"children" : [ {
"name" : "test_create_order_10012",
"uid" : "682603f4020a87c7",
"parentUid" : "6d3e0229a6b4e1751243c7bd9d0faea6",
"status" : "passed",
"time" : {
"start" : 1632195489028,
"stop" : 1632195642272,
"duration" : 153244
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
}, {
"name" : "test_arrange_shipment_10012",
"uid" : "ba2964eea1151d33",
"parentUid" : "6d3e0229a6b4e1751243c7bd9d0faea6",
"status" : "passed",
"time" : {
"start" : 1632195642278,
"stop" : 1632195643747,
"duration" : 1469
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
}, {
"name" : "test_print_AWB",
"uid" : "b8a4b6e23d69e6f2",
"parentUid" : "6d3e0229a6b4e1751243c7bd9d0faea6",
"status" : "passed",
"time" : {
"start" : 1632195643750,
"stop" : 1632195655999,
"duration" : 12249
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
} ],
"uid" : "6d3e0229a6b4e1751243c7bd9d0faea6"
} ],
"uid" : "eafb0b9de9899df48c2953b62bd53506"
} ],
"name" : "timeline"
}
\ No newline at end of file
launch_status failed=0 1632195657000000000
launch_status broken=0 1632195657000000000
launch_status passed=3 1632195657000000000
launch_status skipped=0 1632195657000000000
launch_status unknown=0 1632195657000000000
launch_time duration=166971 1632195657000000000
launch_time min_duration=1469 1632195657000000000
launch_time max_duration=153244 1632195657000000000
launch_time sum_duration=166962 1632195657000000000
launch_retries retries=0 1632195657000000000
launch_retries run=3 1632195657000000000
launch_status_failed 0
launch_status_broken 0
launch_status_passed 0
launch_status_passed 3
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 0
launch_time_min_duration 0
launch_time_max_duration 0
launch_time_sum_duration 0
launch_time_duration 166971
launch_time_min_duration 1469
launch_time_max_duration 153244
launch_time_sum_duration 166962
launch_retries_retries 0
launch_retries_run 0
launch_retries_run 3
[ {
"data" : {
"duration" : 166971
}
} ]
\ No newline at end of file
......@@ -3,8 +3,8 @@
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 0
"total" : 3
}
} ]
\ No newline at end of file
{
"abdbd17f3cf2c89da9194a19bf93a151" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "682603f4020a87c7",
"status" : "passed",
"time" : {
"start" : 1632195489028,
"stop" : 1632195642272,
"duration" : 153244
}
} ]
},
"7d80ed4f98f0f0d93add05f153d8da93" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "b8a4b6e23d69e6f2",
"status" : "passed",
"time" : {
"start" : 1632195643750,
"stop" : 1632195655999,
"duration" : 12249
}
} ]
},
"52b7475cd8e4ef12e6ffe7a76e8a9e8a" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "ba2964eea1151d33",
"status" : "passed",
"time" : {
"start" : 1632195642278,
"stop" : 1632195643747,
"duration" : 1469
}
} ]
}
}
\ No newline at end of file
[ {
"data" : {
"run" : 0,
"run" : 3,
"retry" : 0
}
} ]
\ No newline at end of file
{
"total" : 1,
"items" : [ {
"uid" : "cbea52a9287d0747cc6a16afc09fa0ea",
"name" : "10012渠道打印面单",
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
}
} ]
}
\ No newline at end of file
[ {
"data" : {
"duration" : 166971
}
} ]
\ No newline at end of file
[ {
"uid" : "682603f4020a87c7",
"name" : "test_create_order_10012",
"time" : {
"start" : 1632195489028,
"stop" : 1632195642272,
"duration" : 153244
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "ba2964eea1151d33",
"name" : "test_arrange_shipment_10012",
"time" : {
"start" : 1632195642278,
"stop" : 1632195643747,
"duration" : 1469
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "b8a4b6e23d69e6f2",
"name" : "test_print_AWB",
"time" : {
"start" : 1632195643750,
"stop" : 1632195655999,
"duration" : 12249
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
......@@ -3,8 +3,8 @@
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 0
"total" : 3
}
} ]
\ No newline at end of file
[ {
"data" : {
"run" : 0,
"run" : 3,
"retry" : 0
}
} ]
\ No newline at end of file
[ {
"uid" : "682603f4020a87c7",
"name" : "test_create_order_10012",
"time" : {
"start" : 1632195489028,
"stop" : 1632195642272,
"duration" : 153244
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "b8a4b6e23d69e6f2",
"name" : "test_print_AWB",
"time" : {
"start" : 1632195643750,
"stop" : 1632195655999,
"duration" : 12249
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "ba2964eea1151d33",
"name" : "test_arrange_shipment_10012",
"time" : {
"start" : 1632195642278,
"stop" : 1632195643747,
"duration" : 1469
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
"uid" : "682603f4020a87c7",
"name" : "test_create_order_10012",
"time" : {
"start" : 1632195489028,
"stop" : 1632195642272,
"duration" : 153244
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "ba2964eea1151d33",
"name" : "test_arrange_shipment_10012",
"time" : {
"start" : 1632195642278,
"stop" : 1632195643747,
"duration" : 1469
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "b8a4b6e23d69e6f2",
"name" : "test_print_AWB",
"time" : {
"start" : 1632195643750,
"stop" : 1632195655999,
"duration" : 12249
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
{
"total" : 1,
"items" : [ {
"uid" : "61c2581606b1dcbe8aa878e0a3921486",
"name" : "TestCase.SG",
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
}
} ]
}
\ No newline at end of file
......@@ -5,9 +5,16 @@
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 0
"total" : 3
},
"time" : { }
"time" : {
"start" : 1632195489028,
"stop" : 1632195655999,
"duration" : 166971,
"minDuration" : 1469,
"maxDuration" : 153244,
"sumDuration" : 166962
}
}
\ No newline at end of file
因为 它太大了无法显示 source diff 。你可以改为 查看blob
{'code': 200, 'body': {'code': 0, 'data': {'list': [{'job_id': 'SG_321239_7a458d7f88883c975c3b92f8a996a030_g', 'job_name': 'Air Waybill.SpeedPost - LPS (buyer)*1.pdf', 'job_status': 0, 'job_type': 1}]}, 'message': 'success', 'user_message': 'success'}, 'text': '{"code":0,"data":{"list":[{"job_id":"SG_321239_7a458d7f88883c975c3b92f8a996a030_g","job_name":"Air Waybill.SpeedPost - LPS (buyer)*1.pdf","job_status":0,"job_type":1}]},"message":"success","user_message":"success"}', 'time_consuming': 246.251, 'time_total': 0.246251}
Expecting value: line 1 column 1 (char 0)
INFO root:Log.py:74 [INFO 2021-09-21 11:40:42]解析yaml, Path:/Users/jiafeng.li/Desktop/工作记录文件/code/shipment-python/Params/Param/Basic.yml
INFO root:Log.py:74 [INFO 2021-09-21 11:40:42]解析yaml, Path:/Users/jiafeng.li/Desktop/工作记录文件/code/shipment-python/Params/Param/ApiInfo.yml
INFO root:Log.py:74 [INFO 2021-09-21 11:40:42]解析yaml, Path:/Users/jiafeng.li/Desktop/工作记录文件/code/shipment-python/Params/Param/HeaderInfo.yml
DEBUG urllib3.connectionpool:connectionpool.py:227 Starting new HTTP connection (1): c-api-sellerbasicservice.staging.shopeemobile.com:80
DEBUG urllib3.connectionpool:connectionpool.py:452 http://c-api-sellerbasicservice.staging.shopeemobile.com:80 "POST /api/fulfillment/openapi/v1/shipment/init_order HTTP/1.1" 200 70
\ No newline at end of file
{"name": "test_print_AWB", "status": "passed", "attachments": [{"name": "log", "source": "0018a3aa-975e-49d9-8599-41ef64be915c-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "4ee3795a-7811-4da1-9106-c36d2d031d5e-attachment.txt", "type": "text/plain"}], "start": 1632195643750, "stop": 1632195655999, "uuid": "0e756683-5da8-4d13-b06b-748cb8bfc85b", "historyId": "7d80ed4f98f0f0d93add05f153d8da93", "testCaseId": "58cac72535376e9bcd8f05a559ee886c", "fullName": "TestCase.SG.test_sample_10012.Test_Sample_10012#test_print_AWB", "labels": [{"name": "story", "value": "打印面单"}, {"name": "feature", "value": "10012渠道打印面单"}, {"name": "severity", "value": "normal"}, {"name": "parentSuite", "value": "TestCase.SG"}, {"name": "suite", "value": "test_sample_10012"}, {"name": "subSuite", "value": "Test_Sample_10012"}, {"name": "host", "value": "C02D37B2MD6T"}, {"name": "thread", "value": "2607-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "TestCase.SG.test_sample_10012"}]}
\ No newline at end of file
{"name": "test_arrange_shipment_10012", "status": "passed", "attachments": [{"name": "log", "source": "c5866c7d-63cc-4e14-9882-5ea5c4444ed4-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "3f93b30d-f865-4e37-8144-06c67b637b3e-attachment.txt", "type": "text/plain"}], "start": 1632195642278, "stop": 1632195643747, "uuid": "f48697ad-8a21-41a1-9a52-bd6aea9f2a1c", "historyId": "52b7475cd8e4ef12e6ffe7a76e8a9e8a", "testCaseId": "819d1815b0eaf3b21f9dc0184c77e043", "fullName": "TestCase.SG.test_sample_10012.Test_Sample_10012#test_arrange_shipment_10012", "labels": [{"name": "feature", "value": "10012渠道打印面单"}, {"name": "severity", "value": "normal"}, {"name": "story", "value": "发货"}, {"name": "parentSuite", "value": "TestCase.SG"}, {"name": "suite", "value": "test_sample_10012"}, {"name": "subSuite", "value": "Test_Sample_10012"}, {"name": "host", "value": "C02D37B2MD6T"}, {"name": "thread", "value": "2607-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "TestCase.SG.test_sample_10012"}]}
\ No newline at end of file
{"name": "test_create_order_10012", "status": "passed", "attachments": [{"name": "log", "source": "3035a065-b532-4fe2-b783-45fe9d9a0197-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "fa1e8aad-58fb-4c29-a168-6ac4d6b5c322-attachment.txt", "type": "text/plain"}], "start": 1632195489028, "stop": 1632195642272, "uuid": "04b60e16-3242-499b-a2f8-bb1cb44200fe", "historyId": "abdbd17f3cf2c89da9194a19bf93a151", "testCaseId": "40ffa3b2555acc359ca536e81d429b0e", "fullName": "TestCase.SG.test_sample_10012.Test_Sample_10012#test_create_order_10012", "labels": [{"name": "feature", "value": "10012渠道打印面单"}, {"name": "story", "value": "创建订单"}, {"name": "severity", "value": "normal"}, {"name": "parentSuite", "value": "TestCase.SG"}, {"name": "suite", "value": "test_sample_10012"}, {"name": "subSuite", "value": "Test_Sample_10012"}, {"name": "host", "value": "C02D37B2MD6T"}, {"name": "thread", "value": "2607-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "TestCase.SG.test_sample_10012"}]}
\ No newline at end of file
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can not arrange shipment
can arrange shipment
......@@ -7,6 +7,8 @@ import allure
from Common import Api
import jsonpath
from Common import Consts
import time
import os
class Test_Sample_10012:
@allure.feature('10012渠道打印面单')
......@@ -58,6 +60,7 @@ class Test_Sample_10012:
if arrange_result == 1:
return ()
check = 0
#校验是否可以打印
while True:
check_print = Api.Api().Check_Print(create_order, 'SG')
......@@ -65,14 +68,24 @@ class Test_Sample_10012:
break
else:
check += 1
if check == 10:
if check == 50:
break
if check == 10:
if check == 50:
print('check failed')
return ()
#创建面单任务
create_response = Api.Api().Create_AWB_Job_SC(create_order, 'SG', 10012, "THERMAL_PDF", "Air Waybill", 3)
print(create_response)
job_id = jsonpath.jsonpath(create_response, '$..' + Consts.JOB_ID)[0]
#打印面单
time.sleep(5)
download_result = Api.Api().Download_AWB(job_id, 'SG')
pdf_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'SG_10012_Normal.pdf')
with open(pdf_path, 'wb') as f:
f.write(download_result.content)
......
{
"uid" : "b1a8273437954620fa374b796ffaacdd",
"children" : [ ],
"name" : "behaviors"
}
\ No newline at end of file
{
"uid" : "83edc06c07f9ae9e47eb6dd1b683e4e2",
"children" : [ ],
"name" : "packages"
}
\ No newline at end of file
{
"uid" : "98d3104e051c652961429bf95fa0b5d6",
"children" : [ ],
"name" : "suites"
}
\ No newline at end of file
{
"uid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"children" : [ ],
"name" : "timeline"
}
\ No newline at end of file
launch_status failed=0 1632102897000000000
launch_status broken=0 1632102897000000000
launch_status passed=0 1632102897000000000
launch_status skipped=0 1632102897000000000
launch_status unknown=0 1632102897000000000
launch_time duration=0 1632102897000000000
launch_time min_duration=0 1632102897000000000
launch_time max_duration=0 1632102897000000000
launch_time sum_duration=0 1632102897000000000
launch_retries retries=0 1632102897000000000
launch_retries run=0 1632102897000000000
[ {
"data" : { }
} ]
\ No newline at end of file
{
"total" : 0,
"items" : [ ]
}
\ No newline at end of file
[ {
"data" : { }
} ]
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册