diff --git "a/air_case/cmdc_product/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_product/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.py" index 4fd184ed3231184bd1b88acbaa6a05042e6e6653..7b25ac5c79e65d1b58b83e0ee7ddba4df9ba0167 100644 --- "a/air_case/cmdc_product/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_product/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -15,8 +15,8 @@ import json module = "cmdc_product" # 第一步登录获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.py" "b/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.py" index b3c4ce7c571d9d41d3313ca7b704bf1a434c5a0f..e5ef47534d86590db3951abf6d2ea1f7fac2218b 100644 --- "a/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.py" +++ "b/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.py" @@ -16,19 +16,19 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) -# 获取产品线列表 +# 获取商品列表 url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url20") request_body = commonFuc().get_business_data(module, "payload20") # 发送请求 result = requests.post(url, json=request_body, headers=headers) result = json.loads(result.content) - +# print(result) # 生成一个随机数字,用于后续随机选择某一条商品属性信息 rebate_random = random.randint(0, len(result["data"]["list"]) - 1) # 获取商品信息 diff --git "a/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" index 6f906fc940daa0b74fbdf4d2f10a83ee9e22942b..b52fe7cc065baa57e11c799be2ac3e60a24ae25f 100644 --- "a/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" @@ -17,8 +17,8 @@ module = "cmdc_product" # 第一步登录后台运营平台获取cmdc_access_token # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.py" index 615d05b0148fab63cdcfcbfa098f4e4223dcd45d..b4ae3cbdc242ac4f4161694a28227c8915d7e360 100644 --- "a/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.py" @@ -16,8 +16,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_product/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" index afaea17ce31c12a1a4f1561b478569a84874f4c9..1a791c06ec6cb07bad8476dbe310e5b96b81a0aa 100644 --- "a/air_case/cmdc_product/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_product/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -15,8 +15,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.py" "b/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.py" index 21cd762b5173f4b15b49547a68d891d2557a9158..2b49005b0d01a3932af373ee380c1ce76f5b5eb0 100644 --- "a/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.py" +++ "b/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.py" @@ -15,8 +15,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.py" "b/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.py" index 47e88b17502a1aecee3ffa7f437a25c2580c4352..736514c7ac054ffd114c699dea5a474582b05391 100644 --- "a/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.py" +++ "b/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.py" @@ -15,8 +15,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.py" index 3dca013f8182b119cc3708318bb336f7688d0cf9..84dda15a9e61f5a449fbc93cb1567714bc19f7b2 100644 --- "a/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.py" @@ -15,8 +15,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) @@ -27,7 +27,7 @@ request_body = commonFuc().get_business_data(module, "payload41") # 发送请求 result = requests.get(url, params=request_body, headers=headers) result = json.loads(result.content) - +# print(result) # 生成随机数 product_random = random.randint(0, len(result["data"]["list"]) - 1) # 获取商品限购信息 diff --git "a/air_case/cmdc_product/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.air/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.py" "b/air_case/cmdc_product/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.air/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.py" index 67f7797904e85507a99aa937206070ff1d525bf8..124e56bcf631aee57b924805e0f4492ea41aa48e 100644 --- "a/air_case/cmdc_product/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.air/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.py" +++ "b/air_case/cmdc_product/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.air/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.py" @@ -15,14 +15,14 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) # 模糊查询字段 -customer_msg = "湖南" +customer_msg = "广州" # 进行客户信息模糊查询 url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url15") request_body = commonFuc().get_business_data(module, "payload15", customer_msg) diff --git "a/air_case/cmdc_product/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.py" index f89f8782d7300a082619be4a31abbf87534229b8..737166d50df6af5ba174b1c7106233fe019bc7dd 100644 --- "a/air_case/cmdc_product/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.py" @@ -17,8 +17,8 @@ module = "cmdc_product" # 第一步登录 # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) @@ -65,7 +65,7 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") # 查询数据库中产品线对应制单员数量 sql = "SELECT count(t.id) FROM `cmdc-product`.ic_marker_member t " \ - "WHERE userId = 2795 and productLineCode = '{}'".format(product_line_code) + "WHERE userId = 114378 and productLineCode = '{}'".format(product_line_code) total = mysql_handle.selectSql(host, port, user, pwd, "cmdc-product", sql)[0][0] # 获取预期结果 diff --git "a/air_case/cmdc_product/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.py" index 9cc4aa97f84b43828813d69be5214f65ca0fb166..57becaed460a5f8940a1cce6e00e0a4559cec689 100644 --- "a/air_case/cmdc_product/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.py" @@ -16,8 +16,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) @@ -51,7 +51,7 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") # 查询数据库中对应制单员数量 sql = "SELECT count(t.userId) FROM `cmdc-user`.cmdc_user t " \ - "WHERE userType = 1 and companyId =6 and deleteSign = 0 in" \ + "WHERE userType = 1 and companyId =7 and deleteSign = 0 in" \ "(SELECT t.userId FROM `cmdc-user`.cmdc_manager_user t)" total = mysql_handle.selectSql(host, port, user, pwd, "cmdc-user", sql)[0][0] diff --git "a/air_case/cmdc_product/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" index be2c777cfcc09d1d39a4e591c713a90fffec0e6a..0f9571cef77ab7ecce60e3858ce8c53456081eb8 100644 --- "a/air_case/cmdc_product/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" @@ -16,8 +16,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) @@ -47,7 +47,7 @@ result = {"total": result["data"]["total"]} result["api_time"] = api_time # print(result) # 查询数据库中对应公司对应的商品属性数量 -sql = "SELECT count(t.productId) FROM `cmdc-product`.ic_product_properties t WHERE companyCode = 00111 and deleteSign = 0" +sql = "SELECT count(t.productId) FROM `cmdc-product`.ic_product_properties t WHERE companyCode = 00102 and deleteSign = 0" total = mysql_handle.selectSql(host, port, user, pwd, "cmdc-product", sql)[0][0] # 获取预期结果 diff --git "a/air_case/cmdc_product/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.py" index 8e444d6f0a3d5e197f84eb8661e12d2270f089c4..140b387a2743835c178c18d8f0fb6eaa2a9c3c65 100644 --- "a/air_case/cmdc_product/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.py" @@ -15,8 +15,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.air/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.py" "b/air_case/cmdc_product/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.air/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.py" index 33104320a173744d38ccf2fb4ca24abd447e39f2..54be243b4c14bcdb583070ffcbd27254150c35f1 100644 --- "a/air_case/cmdc_product/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.air/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.py" +++ "b/air_case/cmdc_product/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.air/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.py" @@ -16,8 +16,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git a/data/cmdc_product/data b/data/cmdc_product/data index 2f5db21213fa276c63dbf78f613feee4062247b1..606902eb36361bf362083f3172b623e90b42454b 100644 --- a/data/cmdc_product/data +++ b/data/cmdc_product/data @@ -159,13 +159,13 @@ checkDict19: {"lineCode":"%s"} #测试场景二十:获取商品列表_库存配置 "url20": "/product/public/getListed" -"payload20": {"pageNumber":10,"pageStart":1,"productCode":"","productName":"","userNo":"","companyCode":"00111","pageSize":10,"pageNum":1,"specifications":""} +"payload20": {"pageNumber":10,"pageStart":1,"productCode":"","productName":"","userNo":"","companyCode":"00102","pageSize":10,"pageNum":1,"specifications":""} #预期结果 checkDict20: {"success":true,"code":"200","message":"OK"} #测试场景二十一:列表查询条件验证_商品列表_库存配置 "url21": "/product/public/getListed" -"payload21": {"pageNumber":10,"pageStart":1,"productCode":"%s","productName":"%s","userNo":"","companyCode":"00111","pageSize":10,"pageNum":1,"specifications":"","total":1629} +"payload21": {"pageNumber":10,"pageStart":1,"productCode":"%s","productName":"%s","userNo":"","companyCode":"00102","pageSize":10,"pageNum":1,"specifications":"","total":1629} #预期结果 checkDict21: {"productCode":"%s"} @@ -556,13 +556,13 @@ checkDict76: {"success":false,"code":"200","message":"操作成功!","data":null #测试场景七十七:获取产品线详情 "url77": "/product/back/queryProductLineDetail" -"payload77": {"productCode":"","productName":"","specifications":"","materialCode":"","manufacturer":"","pageNum":1,"pageSize":10,"productLineCode":"3041"} +"payload77": {"productCode":"","productName":"","specifications":"","materialCode":"","manufacturer":"","pageNum":1,"pageSize":10,"productLineCode":"10052433"} #预期结果 checkDict77: {"success":true,"code":"200","message":"OK"} #测试场景七十八:查询条件验证_产品线详情 "url78": "/product/back/queryProductLineDetail" -"payload78": {"productCode":"%s","productName":"%s","specifications":"%s","materialCode":"%s","manufacturer":"%s","pageNum":1,"pageSize":10,"productLineCode":"3041"} +"payload78": {"productCode":"%s","productName":"%s","specifications":"%s","materialCode":"%s","manufacturer":"%s","pageNum":1,"pageSize":10,"productLineCode":"10052433"} #预期结果 checkDict78: {"productCode":"%s"}