{ "group": "aliExpress", "orderId": "996616" } |
{"code":1,"error_message":"orderId error",} {"code":0,"data":"delivered"} |
import json import requests order_info = { "group": "aliExpress", "orderId": "996616" } response = requests.post(' http://192.168.10.10:5000/order/query_order_status', data=json.dumps(order_info)) assert response.status_code == 200 response_data = response.json() assert response_data.get("code") == 0 assert response_data.get("data") == "shipped" |
import json import requests |
order_info = { "group": "aliExpress", "orderId": "996616" } |
response = requests.post( 'http://192.168.10.10:5000/order/query_order_status', data=json.dumps(order) ) |
assert response.status_code == 200 response_data = response.json() assert response_data.get("code") == 0 assert response_data.get("data") == "shipped" |
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |