diff --git a/log.html b/log.html index 637260f..efed843 100644 --- a/log.html +++ b/log.html @@ -1735,28 +1735,28 @@ function stopPropagation(event) { window.output = {}; diff --git a/output.xml b/output.xml index 81311e4..20f4e07 100644 --- a/output.xml +++ b/output.xml @@ -1,195 +1,2686 @@ - - - - - + + + + + +Returns the given values which can then be assigned to a variables. + +https://api-ops-uec-test.qniao.cn + + +${uecops} + +${uecops} = https://api-ops-uec-test.qniao.cn + + + +Returns the given values which can then be assigned to a variables. + +https://api-ops-psc-test.qniao.cn + + +${pscops} + +${pscops} = https://api-ops-psc-test.qniao.cn + + + +Returns the given values which can then be assigned to a variables. + +https://api-ops-ztb-test.qniao.cn + + +${ztbops} + +${ztbops} = https://api-ops-ztb-test.qniao.cn + + + +Returns the given values which can then be assigned to a variables. + +https://api-ops-ztbsc-test.qniao.cn + + +${ztbscops} + +${ztbscops} = https://api-ops-ztbsc-test.qniao.cn + + + +Returns the given values which can then be assigned to a variables. + +https://api-client-uec-test.qniao.cn + + +${uecclient} + +${uecclient} = https://api-client-uec-test.qniao.cn + + + +Returns the given values which can then be assigned to a variables. + +https://api-client-ztb-test.qniao.cn + + +${ztbclient} + +${ztbclient} = https://api-client-ztb-test.qniao.cn + + + +Makes a variable available globally in all tests and suites. + +${uecops} + +${uecops} = https://api-ops-uec-test.qniao.cn + + + +Makes a variable available globally in all tests and suites. + +${pscops} + +${pscops} = https://api-ops-psc-test.qniao.cn + + + +Makes a variable available globally in all tests and suites. + +${ztbops} + +${ztbops} = https://api-ops-ztb-test.qniao.cn + + + +Makes a variable available globally in all tests and suites. + +${ztbscops} + +${ztbscops} = https://api-ops-ztbsc-test.qniao.cn + + + +Makes a variable available globally in all tests and suites. + +${uecclient} + +${uecclient} = https://api-client-uec-test.qniao.cn + + + +Makes a variable available globally in all tests and suites. + +${ztbclient} + +${ztbclient} = https://api-client-ztb-test.qniao.cn + + + +Returns the given values which can then be assigned to a variables. + +{'Content-Type':'application/json','X-APP-ID':'503258978847965401','Authorization':'Token 6b08add42d6bcf73abb935b2adf83525'} + + +${ztbsc_header} + +${ztbsc_header} = {'Content-Type':'application/json','X-APP-ID':'503258978847965401','Authorization':'Token 6b08add42d6bcf73abb935b2adf83525'} + + + +Returns the given values which can then be assigned to a variables. + +{'content-type':'application/json','X-APP-ID':'470236309865238528'} + + +${client_login_header} + +${client_login_header} = {'content-type':'application/json','X-APP-ID':'470236309865238528'} + + + +Returns the given values which can then be assigned to a variables. + +{'Content-Type':'application/json','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cv/lnjIGaghUHn7dGvathVr0JtFAle6xxEDqmwYB+xHfw==','X-APP-ID':'503258978847966410','X-ORGANIZATION-ID':'710132392618233856'} + + +${ztbsc_factoring_header} + +${ztbsc_factoring_header} = {'Content-Type':'application/json','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cv/lnjIGaghUHn7dGvathVr0JtFAle6xxEDqmwYB+xHfw==','X-APP-ID':'503258978847966410','X-ORGANIZATION-ID':'7... + + + +Returns the given values which can then be assigned to a variables. + +{'Content-Type':'application/json','X-APP-ID':'503258978847965401','Authorization':'Token 6b08add42d6bcf73abb935b2adf83525'} + + +${ztbsc_ops_login_header} + +${ztbsc_ops_login_header} = {'Content-Type':'application/json','X-APP-ID':'503258978847965401','Authorization':'Token 6b08add42d6bcf73abb935b2adf83525'} + + + +Returns the given values which can then be assigned to a variables. + +{'Content-Type':'application/json','X-ORGANIZATION-ID':'711270061419139072','X-APP-ID':'503258978847966406'} + + +${ztbsc_traders_login_header} + +${ztbsc_traders_login_header} = {'Content-Type':'application/json','X-ORGANIZATION-ID':'711270061419139072','X-APP-ID':'503258978847966406'} + + + +Returns the given values which can then be assigned to a variables. + +{'Content-Type':'application/json','X-APP-ID':'503258978847966406'} + + +${ztbsc_papermill_login_header} + +${ztbsc_papermill_login_header} = {'Content-Type':'application/json','X-APP-ID':'503258978847966406'} + + + +Returns the given values which can then be assigned to a variables. + +{'Content-Type':'application/json','X-ORGANIZATION-ID':'710132392618233856','X-APP-ID':'503258978847966410'} + + +${ztbsc_factoring_login_header} + +${ztbsc_factoring_login_header} = {'Content-Type':'application/json','X-ORGANIZATION-ID':'710132392618233856','X-APP-ID':'503258978847966410'} + + + +Makes a variable available globally in all tests and suites. + +${ztbsc_header} + +${ztbsc_header} = {'Content-Type':'application/json','X-APP-ID':'503258978847965401','Authorization':'Token 6b08add42d6bcf73abb935b2adf83525'} + + + +Makes a variable available globally in all tests and suites. + +${client_login_header} + +${client_login_header} = {'content-type':'application/json','X-APP-ID':'470236309865238528'} + + + +Makes a variable available globally in all tests and suites. + +${ztbsc_factoring_header} + +${ztbsc_factoring_header} = {'Content-Type':'application/json','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cv/lnjIGaghUHn7dGvathVr0JtFAle6xxEDqmwYB+xHfw==','X-APP-ID':'503258978847966410','X-ORGANIZATION-ID':'7... + + + +Makes a variable available globally in all tests and suites. + +${ztbsc_ops_login_header} + +${ztbsc_ops_login_header} = {'Content-Type':'application/json','X-APP-ID':'503258978847965401','Authorization':'Token 6b08add42d6bcf73abb935b2adf83525'} + + + +Makes a variable available globally in all tests and suites. + +${ztbsc_traders_login_header} + +${ztbsc_traders_login_header} = {'Content-Type':'application/json','X-ORGANIZATION-ID':'711270061419139072','X-APP-ID':'503258978847966406'} + + + +Makes a variable available globally in all tests and suites. + +${ztbsc_papermill_login_header} + +${ztbsc_papermill_login_header} = {'Content-Type':'application/json','X-APP-ID':'503258978847966406'} + + + +Makes a variable available globally in all tests and suites. + +${ztbsc_factoring_login_header} + +${ztbsc_factoring_login_header} = {'Content-Type':'application/json','X-ORGANIZATION-ID':'710132392618233856','X-APP-ID':'503258978847966410'} + + + +Returns the given values which can then be assigned to a variables. + +laiyonglan@qniao.cn + + +${ztbsc_account} + +${ztbsc_account} = laiyonglan@qniao.cn + + + +Returns the given values which can then be assigned to a variables. + +13000000032 + + +${client_account} + +${client_account} = 13000000032 + + + +Returns the given values which can then be assigned to a variables. + +15014242835 + + +${traders_account} + +${traders_account} = 15014242835 + + + +Returns the given values which can then be assigned to a variables. + +15014242835 + + +${papermill_account} + +${papermill_account} = 15014242835 + + + +Returns the given values which can then be assigned to a variables. + +15014242835 + + +${factoring_account} + +${factoring_account} = 15014242835 + + + +Makes a variable available globally in all tests and suites. + +${ztbsc_account} + +${ztbsc_account} = laiyonglan@qniao.cn + + + +Makes a variable available globally in all tests and suites. + +${client_account} + +${client_account} = 13000000032 + + + +Makes a variable available globally in all tests and suites. + +${traders_account} + +${traders_account} = 15014242835 + + + +Makes a variable available globally in all tests and suites. + +${papermill_account} + +${papermill_account} = 15014242835 + + + +Makes a variable available globally in all tests and suites. + +${factoring_account} + +${factoring_account} = 15014242835 + + + +Returns the given values which can then be assigned to a variables. + +qn123456 + + +${ztbsc_password} + +${ztbsc_password} = qn123456 + + + +Returns the given values which can then be assigned to a variables. + +888888 + + +${client_password} + +${client_password} = 888888 + + + +Returns the given values which can then be assigned to a variables. + +888888 + + +${traders_password} + +${traders_password} = 888888 + + + +Returns the given values which can then be assigned to a variables. + +888888 + + +${papermill_password} + +${papermill_password} = 888888 + + + +Returns the given values which can then be assigned to a variables. + +888888 + + +${factoring_password} + +${factoring_password} = 888888 + + + +Makes a variable available globally in all tests and suites. + +${ztbsc_password} + +${ztbsc_password} = qn123456 + + + +Makes a variable available globally in all tests and suites. + +${client_password} + +${client_password} = 888888 + + + +Makes a variable available globally in all tests and suites. + +${traders_password} + +${traders_password} = 888888 + + + +Makes a variable available globally in all tests and suites. + +${papermill_password} + +${papermill_password} = 888888 + + + +Makes a variable available globally in all tests and suites. + +${factoring_password} + +${factoring_password} = 888888 + + + +Returns current local or UTC time with an optional increment. + +result_format=%Y-%m-%d + + +${start_time} + +${start_time} = 2022-08-08 + + + +Adds time to date and returns the resulting date. + +${start_time} +30 days + + +${str_end_time} + +${str_end_time} = 2022-09-07 00:00:00.000 + + + +Returns a substring from ``start`` index to ``end`` index. + +${str_end_time} +0 +10 + + +${end_time} + +${end_time} = 2022-09-07 + + + +Returns the given time in the requested format. + +${time} + +${time} = 2022-08-08 11:24:29 + + + +Makes a variable available globally in all tests and suites. + +${start_time} + +${start_time} = 2022-08-08 + + + +Makes a variable available globally in all tests and suites. + +${end_time} + +${end_time} = 2022-09-07 + + + +Makes a variable available globally in all tests and suites. + +${time} + +${time} = 2022-08-08 11:24:29 + + + + + + + + + +Helper for quickly disabling all urllib3 warnings. + + + +Create Session: create a HTTP session to a server + +ZTBT +${uecclient} +${client_login_header} + +Creating Session using : alias=ZTBT, url=https://api-client-uec-test.qniao.cn, headers={'content-type': 'application/json', 'X-APP-ID': '470236309865238528'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 + + + +Creates and returns a dictionary based on the given ``items``. + +account=${client_account} +captcha=${client_password} +accountType=2 + + +${data} + +${data} = {'account': '13000000032', 'captcha': '888888', 'accountType': '2'} + + + +Sends a POST request on a previously created HTTP Session. + +ZTBT +uec/authorize/by-captcha +json=${data} + + +${respones} + +POST Request : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha + path_url=/uec/authorize/by-captcha + headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'content-type': 'application/json', 'X-APP-ID': '470236309865238528', 'Content-Length': '67'} + body=b'{"account": "13000000032", "captcha": "888888", "accountType": "2"}' + +POST Response : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 08 Aug 2022 03:24:29 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":{"token":"d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg==","userId":"704068168053821440"}} + +${respones} = <Response [200]> + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${respones.json()['data']} +token + + +${token} + +${token} = d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg== + + + +Makes a variable available globally in all tests and suites. + +${token} + +${token} = d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg== + + + + + + +Create Session: create a HTTP session to a server + +ZTBT +${ztbclient} +${client_login_header} + +Creating Session using : alias=ZTBT, url=https://api-client-ztb-test.qniao.cn, headers={'content-type': 'application/json', 'X-APP-ID': '470236309865238528'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 + + + +Creates and returns a dictionary based on the given ``items``. + +loginToken=${token} + + +${token1} + +${token1} = {'loginToken': 'd6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg=='} + + + +Sends a POST request on a previously created HTTP Session. + +ZTBT +ztb-user-enterprise-service/authorize/get/product-line-token/by/login-token +json=${token1} + + +${reps} + +POST Request : url=https://api-client-ztb-test.qniao.cn/ztb-user-enterprise-service/authorize/get/product-line-token/by/login-token + path_url=/ztb-user-enterprise-service/authorize/get/product-line-token/by/login-token + headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'content-type': 'application/json', 'X-APP-ID': '470236309865238528', 'Content-Length': '106'} + body=b'{"loginToken": "d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg=="}' + +POST Response : url=https://api-client-ztb-test.qniao.cn/ztb-user-enterprise-service/authorize/get/product-line-token/by/login-token + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 08 Aug 2022 03:24:29 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":{"errorCode":0,"token":"d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg==","userId":"704068168053821440"}} + +${reps} = <Response [200]> + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()["data"]} +userId + + +${userId} + +${userId} = 704068168053821440 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()["data"]} +token + + +${gettoken} + +${gettoken} = d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg== + + + +Returns the given values which can then be assigned to a variables. + +{'Content-Type':'application/json','Authorization':'QNT ${gettoken}','X-APP-ID':'470236309865238528'} + + +${client_firstlogin_header} + +${client_firstlogin_header} = {'Content-Type':'application/json','Authorization':'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg==','X-APP-ID':'470236309865238528'} + + + +Makes a variable available globally in all tests and suites. + +${userId} + +${userId} = 704068168053821440 + + + +Makes a variable available globally in all tests and suites. + +${gettoken} + +${gettoken} = d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg== + + + +Makes a variable available globally in all tests and suites. + +${client_firstlogin_header} + +${client_firstlogin_header} = {'Content-Type':'application/json','Authorization':'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg==','X-APP-ID':'470236309865238528'} + + + + + + +Create Session: create a HTTP session to a server + +baseinfo +${ztbclient} +${client_firstlogin_header} + +Creating Session using : alias=baseinfo, url=https://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'Authorization': 'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg==', 'X-APP-ID': '470236309865238528'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 + + + +Sends a GET request on a previously created HTTP Session. + +baseinfo +ztb-supply-chain-service/get/user/base-info + + +${reps} + +GET Request : url=https://api-client-ztb-test.qniao.cn/ztb-supply-chain-service/get/user/base-info + path_url=/ztb-supply-chain-service/get/user/base-info + headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg==', 'X-APP-ID': '470236309865238528'} + body=None + +GET Response : url=https://api-client-ztb-test.qniao.cn/ztb-supply-chain-service/get/user/base-info + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 08 Aug 2022 03:24:30 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":{"userId":"704068168053821440","realName":"王颖勋","mobile":"13000000032","avatarUrl":"https://medou.oss-cn-shenzhen.aliyuncs.com/saas/20200623160820.png","isAuth":true,"isVIP":true,"hasStore":true,"isSetPassword":false,"memberExpiredAt":"2022-08-08 20:00:08","hasGetMember":null,"organizationId":"752528438736326656","organizationList":[{"id":"738812119994208256","fullName":"武汉市青山区恒志纸业环保打包厂","qualificationType":2,"qualificationNo":"92420107MA4HWPTW91","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"738812120073900032","organizationId":"738812119994208256","scrapPaperRecycling":100.000,"scrapPaperSupply":111.000,"scrapPaperPackingFactoryList":[{"id":"738812537759469568","name":"千鸟工厂版测试打包站","isFactoryInfoRequired":true},{"id":"738816441691803648","name":"工厂版打包站","isFactoryInfoRequired":false},{"id":"743833461172867072","name":"工厂版711","isFactoryInfoRequired":false},{"id":"744623601562554368","name":"测试工厂同步","isFactoryInfoRequired":false},{"id":"744628123219398656","name":"测试工厂同步2","isFactoryInfoRequired":false},{"id":"744629025217056768","name":"测试工厂同步3","isFactoryInfoRequired":false},{"id":"744630180378710016","name":"测试工厂同步hhhhhh","isFactoryInfoRequired":false},{"id":"744631051875389440","name":"测试工厂同步4","isFactoryInfoRequired":false},{"id":"744632805736189952","name":"测试工厂同步5不想再同步了","isFactoryInfoRequired":false}]},"hasBankCard":false},{"id":"737040026042503168","fullName":"嘻嘻打包站","qualificationType":1,"qualificationNo":"441481199509213863","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"737040335171096576","organizationId":"737040026042503168","scrapPaperRecycling":null,"scrapPaperSupply":null,"scrapPaperPackingFactoryList":[{"id":"737040335238205440","name":"嘻嘻打包站","isFactoryInfoRequired":false}]},"hasBankCard":false},{"id":"728972353769443328","fullName":"湖南新宝环保科技有限公司","qualificationType":2,"qualificationNo":"91430111MA4LD7UA6T","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"732271033305927680","organizationId":"728972353769443328","scrapPaperRecycling":null,"scrapPaperSupply":null,"scrapPaperPackingFactoryList":[{"id":"732271033427562496","name":"湖南新宝环保科技有限公司","isFactoryInfoRequired":false}]},"hasBankCard":false},{"id":"728972353769443328","fullName":"湖南新宝环保科技有限公司","qualificationType":2,"qualificationNo":"91430111MA4LD7UA6T","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"721761724339982336","fullName":"仔仔工厂","qualificationType":1,"qualificationNo":"44058319951227041X","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"721761776701673472","organizationId":"721761724339982336","scrapPaperRecycling":200.550,"scrapPaperSupply":200.660,"scrapPaperPackingFactoryList":[{"id":"721761776722644992","name":"仔仔工厂","isFactoryInfoRequired":true}]},"hasBankCard":false},{"id":"721760754042277888","fullName":"长沙中联泵业股份有限公司","qualificationType":2,"qualificationNo":"914301027121552620","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"721760754797252608","organizationId":"721760754042277888","scrapPaperRecycling":1000.000,"scrapPaperSupply":1020.000,"scrapPaperPackingFactoryList":[{"id":"721760754818224128","name":"长沙中联泵业股份有限公司","isFactoryInfoRequired":true}]},"hasBankCard":false},{"id":"721760754042277888","fullName":"长沙中联泵业股份有限公司","qualificationType":2,"qualificationNo":"914301027121552620","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"716720382790471680","fullName":"427代理商","qualificationType":null,"qualificationNo":null,"isQualificationAuth":false,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"711270061419139072","fullName":"412测试代理商","qualificationType":null,"qualificationNo":null,"isQualificationAuth":false,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"709820255127605248","fullName":"东莞市致远纸业有限公司","qualificationType":2,"qualificationNo":"91441900671581184Y","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"709820256654331904","organizationId":"709820255127605248","scrapPaperRecycling":null,"scrapPaperSupply":null,"scrapPaperPackingFactoryList":[{"id":"709820256725635072","name":"东莞市致远纸业有限公司","isFactoryInfoRequired":false}]},"hasBankCard":false}],"nickname":"hinzai","isAccountancyUser":false,"hasShowedLoginTag":false,"isSetProxyTag":false,"identityTag":null,"locateCityTag":null,"locFactoryDetail":null,"experienceTag":null,"numberOfPurchaseCategoriesTag":"0个","numberOfProxyCategoriesTag":"0个","packageFactoryName":null,"packageFactoryArea":null,"numberOfEmployee":null,"numberOfPackageMachine":null,"businessLicenseUrl":null,"legalPersonName":null,"uniformSocialCreditCode":null,"enterpriseName":null,"type":null,"capital":null,"locDetail":null,"establishDate":null,"shipmentPerMonth":null,"storeOverview":{"storeId":"736317286117412864","margin":0.00,"todayMargin":0.00,"todayMarginNum":0,"hasStore":1,"status":2},"accountBalance":{"accountMoney":0.0000,"frozenMoney":0.0000},"status":false,"hasShipmentsInfo":false,"packerType":null,"autoWeighingMachine":null,"forkliftsNum":null,"logisticsVehiclesNum":null,"oftenSendPaperMill":null,"factoryLongitude":null,"factoryLatitude":null,"factoryPhotoUrlList":null,"factoryMainCategoryDtoList":null,"isFactoryInfoRequired":false,"isCommittedPackingFactoryClue":0,"enterpriseInfo":null,"inviter":{"id":"706181703529533440","code":"5535","name":"赖勇兰"}}} + +${reps} = <Response [200]> + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()['data']} +realName + + +${realName} + +${realName} = 王颖勋 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()['data']} +organizationList + + +${organizationList} + +${organizationList} = [{'id': '738812119994208256', 'fullName': '武汉市青山区恒志纸业环保打包厂', 'qualificationType': 2, 'qualificationNo': '92420107MA4HWPTW91', 'isQualificationAuth': True, 'enterpriseInfo': None, 'personalOrganization... + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +id + + +${orgId} + +${orgId} = 738812119994208256 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 武汉市青山区恒志纸业环保打包厂 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +packerBaseInfo + + +${packerBaseInfo} + +${packerBaseInfo} = {'id': '738812120073900032', 'organizationId': '738812119994208256', 'scrapPaperRecycling': 100.0, 'scrapPaperSupply': 111.0, 'scrapPaperPackingFactoryList': [{'id': '738812537759469568', 'name': '千鸟工... + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='仔仔工厂' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +id + + +${orgId} + +${orgId} = 737040026042503168 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 嘻嘻打包站 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +packerBaseInfo + + +${packerBaseInfo} + +${packerBaseInfo} = {'id': '737040335171096576', 'organizationId': '737040026042503168', 'scrapPaperRecycling': None, 'scrapPaperSupply': None, 'scrapPaperPackingFactoryList': [{'id': '737040335238205440', 'name': '嘻嘻打包站... + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='仔仔工厂' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +id + + +${orgId} + +${orgId} = 728972353769443328 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 湖南新宝环保科技有限公司 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +packerBaseInfo + + +${packerBaseInfo} + +${packerBaseInfo} = {'id': '732271033305927680', 'organizationId': '728972353769443328', 'scrapPaperRecycling': None, 'scrapPaperSupply': None, 'scrapPaperPackingFactoryList': [{'id': '732271033427562496', 'name': '湖南新宝环... + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='仔仔工厂' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +id + + +${orgId} + +${orgId} = 728972353769443328 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 湖南新宝环保科技有限公司 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +packerBaseInfo + + +${packerBaseInfo} + +${packerBaseInfo} = None + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='仔仔工厂' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +id + + +${orgId} + +${orgId} = 721761724339982336 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 仔仔工厂 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +packerBaseInfo + + +${packerBaseInfo} + +${packerBaseInfo} = {'id': '721761776701673472', 'organizationId': '721761724339982336', 'scrapPaperRecycling': 200.55, 'scrapPaperSupply': 200.66, 'scrapPaperPackingFactoryList': [{'id': '721761776722644992', 'name': '仔... + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='仔仔工厂' + +Exiting for loop altogether. + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${packerBaseInfo['scrapPaperPackingFactoryList'][0]} +id + + +${packerId} + +${packerId} = 721761776722644992 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${packerBaseInfo['scrapPaperPackingFactoryList'][0]} +name + + +${packerName} + +${packerName} = 仔仔工厂 + + + +Returns the given values which can then be assigned to a variables. + +{'Content-Type':'application/json','Authorization':'QNT ${gettoken}','X-APP-ID':'470236309865238528','X-ORGANIZATION-ID':'${orgId}','X-PACKING-FACTORY-ID':'${packerId}'} + + +${client_headerP} + +${client_headerP} = {'Content-Type':'application/json','Authorization':'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg==','X-APP-ID':'470236309865238528','X-ORGANIZATION-ID':'7... + + + +Makes a variable available globally in all tests and suites. + +${orgId} + +${orgId} = 721761724339982336 + + + +Makes a variable available globally in all tests and suites. + +${realName} + +${realName} = 王颖勋 + + + +Makes a variable available globally in all tests and suites. + +${packerId} + +${packerId} = 721761776722644992 + + + +Makes a variable available globally in all tests and suites. + +${packerName} + +${packerName} = 仔仔工厂 + + + +Makes a variable available globally in all tests and suites. + +${orgfullName} + +${orgfullName} = 仔仔工厂 + + + +Makes a variable available globally in all tests and suites. + +${client_headerP} + +${client_headerP} = {'Content-Type':'application/json','Authorization':'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg==','X-APP-ID':'470236309865238528','X-ORGANIZATION-ID':'7... + + + + + + +Create Session: create a HTTP session to a server + +baseinfo +${ztbclient} +${client_headerP} + +Creating Session using : alias=baseinfo, url=https://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'Authorization': 'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg==', 'X-APP-ID': '470236309865238528', 'X-ORGANIZATION-ID': '721761724339982336', 'X-PACKING-FACTORY-ID': '721761776722644992'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 + + + +Sends a GET request on a previously created HTTP Session. + +baseinfo +ztb-supply-chain-service/get/user/base-info + + +${reps} + +GET Request : url=https://api-client-ztb-test.qniao.cn/ztb-supply-chain-service/get/user/base-info + path_url=/ztb-supply-chain-service/get/user/base-info + headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg==', 'X-APP-ID': '470236309865238528', 'X-ORGANIZATION-ID': '721761724339982336', 'X-PACKING-FACTORY-ID': '721761776722644992'} + body=None + +GET Response : url=https://api-client-ztb-test.qniao.cn/ztb-supply-chain-service/get/user/base-info + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 08 Aug 2022 03:24:30 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":{"userId":"704068168053821440","realName":"王颖勋","mobile":"13000000032","avatarUrl":"https://medou.oss-cn-shenzhen.aliyuncs.com/saas/20200623160820.png","isAuth":true,"isVIP":true,"hasStore":true,"isSetPassword":false,"memberExpiredAt":"2022-08-08 20:00:08","hasGetMember":null,"organizationId":"721761724339982336","organizationList":[{"id":"738812119994208256","fullName":"武汉市青山区恒志纸业环保打包厂","qualificationType":2,"qualificationNo":"92420107MA4HWPTW91","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"738812120073900032","organizationId":"738812119994208256","scrapPaperRecycling":100.000,"scrapPaperSupply":111.000,"scrapPaperPackingFactoryList":[{"id":"738812537759469568","name":"千鸟工厂版测试打包站","isFactoryInfoRequired":true},{"id":"738816441691803648","name":"工厂版打包站","isFactoryInfoRequired":false},{"id":"743833461172867072","name":"工厂版711","isFactoryInfoRequired":false},{"id":"744623601562554368","name":"测试工厂同步","isFactoryInfoRequired":false},{"id":"744628123219398656","name":"测试工厂同步2","isFactoryInfoRequired":false},{"id":"744629025217056768","name":"测试工厂同步3","isFactoryInfoRequired":false},{"id":"744630180378710016","name":"测试工厂同步hhhhhh","isFactoryInfoRequired":false},{"id":"744631051875389440","name":"测试工厂同步4","isFactoryInfoRequired":false},{"id":"744632805736189952","name":"测试工厂同步5不想再同步了","isFactoryInfoRequired":false}]},"hasBankCard":false},{"id":"737040026042503168","fullName":"嘻嘻打包站","qualificationType":1,"qualificationNo":"441481199509213863","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"737040335171096576","organizationId":"737040026042503168","scrapPaperRecycling":null,"scrapPaperSupply":null,"scrapPaperPackingFactoryList":[{"id":"737040335238205440","name":"嘻嘻打包站","isFactoryInfoRequired":false}]},"hasBankCard":false},{"id":"728972353769443328","fullName":"湖南新宝环保科技有限公司","qualificationType":2,"qualificationNo":"91430111MA4LD7UA6T","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"732271033305927680","organizationId":"728972353769443328","scrapPaperRecycling":null,"scrapPaperSupply":null,"scrapPaperPackingFactoryList":[{"id":"732271033427562496","name":"湖南新宝环保科技有限公司","isFactoryInfoRequired":false}]},"hasBankCard":false},{"id":"728972353769443328","fullName":"湖南新宝环保科技有限公司","qualificationType":2,"qualificationNo":"91430111MA4LD7UA6T","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"721761724339982336","fullName":"仔仔工厂","qualificationType":1,"qualificationNo":"44058319951227041X","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":{"id":"721761724449034240","realName":"王颖勋","type":1,"number":"44058319951227041X","frontImageUrl":"http://qn-privatetest.oss-cn-shenzhen.aliyuncs.com/private/idcard/704068168053821440/1652247868006.jpg?Expires=1659932670&OSSAccessKeyId=LTAINmC91NqIGN38&Signature=jikPGI%2BYLyHcpmCffN6GZuPpGWM%3D","backImageUrl":"http://qn-privatetest.oss-cn-shenzhen.aliyuncs.com/private/idcard/704068168053821440/1652247868242.jpg?Expires=1659932670&OSSAccessKeyId=LTAINmC91NqIGN38&Signature=9LLtmSm85jF3CrsO0WgECUvyrwE%3D"},"orgRole":1,"packerBaseInfo":{"id":"721761776701673472","organizationId":"721761724339982336","scrapPaperRecycling":200.550,"scrapPaperSupply":200.660,"scrapPaperPackingFactoryList":[{"id":"721761776722644992","name":"仔仔工厂","isFactoryInfoRequired":true}]},"hasBankCard":true},{"id":"721760754042277888","fullName":"长沙中联泵业股份有限公司","qualificationType":2,"qualificationNo":"914301027121552620","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"721760754797252608","organizationId":"721760754042277888","scrapPaperRecycling":1000.000,"scrapPaperSupply":1020.000,"scrapPaperPackingFactoryList":[{"id":"721760754818224128","name":"长沙中联泵业股份有限公司","isFactoryInfoRequired":true}]},"hasBankCard":false},{"id":"721760754042277888","fullName":"长沙中联泵业股份有限公司","qualificationType":2,"qualificationNo":"914301027121552620","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"716720382790471680","fullName":"427代理商","qualificationType":null,"qualificationNo":null,"isQualificationAuth":false,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"711270061419139072","fullName":"412测试代理商","qualificationType":null,"qualificationNo":null,"isQualificationAuth":false,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"709820255127605248","fullName":"东莞市致远纸业有限公司","qualificationType":2,"qualificationNo":"91441900671581184Y","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"709820256654331904","organizationId":"709820255127605248","scrapPaperRecycling":null,"scrapPaperSupply":null,"scrapPaperPackingFactoryList":[{"id":"709820256725635072","name":"东莞市致远纸业有限公司","isFactoryInfoRequired":false}]},"hasBankCard":false}],"nickname":"hinzai","isAccountancyUser":false,"hasShowedLoginTag":false,"isSetProxyTag":false,"identityTag":null,"locateCityTag":null,"locFactoryDetail":null,"experienceTag":null,"numberOfPurchaseCategoriesTag":"0个","numberOfProxyCategoriesTag":"0个","packageFactoryName":null,"packageFactoryArea":null,"numberOfEmployee":null,"numberOfPackageMachine":null,"businessLicenseUrl":null,"legalPersonName":null,"uniformSocialCreditCode":null,"enterpriseName":null,"type":null,"capital":null,"locDetail":null,"establishDate":null,"shipmentPerMonth":null,"storeOverview":{"storeId":"736317286117412864","margin":0.00,"todayMargin":0.00,"todayMarginNum":0,"hasStore":1,"status":2},"accountBalance":{"accountMoney":0.0000,"frozenMoney":0.0000},"status":false,"hasShipmentsInfo":false,"packerType":null,"autoWeighingMachine":null,"forkliftsNum":null,"logisticsVehiclesNum":null,"oftenSendPaperMill":null,"factoryLongitude":null,"factoryLatitude":null,"factoryPhotoUrlList":null,"factoryMainCategoryDtoList":null,"isFactoryInfoRequired":false,"isCommittedPackingFactoryClue":0,"enterpriseInfo":null,"inviter":{"id":"706181703529533440","code":"5535","name":"赖勇兰"}}} + +${reps} = <Response [200]> + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()['data']} +organizationList + + +${organizationList} + +${organizationList} = [{'id': '738812119994208256', 'fullName': '武汉市青山区恒志纸业环保打包厂', 'qualificationType': 2, 'qualificationNo': '92420107MA4HWPTW91', 'isQualificationAuth': True, 'enterpriseInfo': None, 'personalOrganization... + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 武汉市青山区恒志纸业环保打包厂 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +enterpriseInfo + + +${enterpriseInfo} + +${enterpriseInfo} = None + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +qualificationType + + +${qualificationType} + +${qualificationType} = 2 + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='仔仔工厂' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 嘻嘻打包站 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +enterpriseInfo + + +${enterpriseInfo} + +${enterpriseInfo} = None + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +qualificationType + + +${qualificationType} + +${qualificationType} = 1 + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='仔仔工厂' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 湖南新宝环保科技有限公司 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +enterpriseInfo + + +${enterpriseInfo} + +${enterpriseInfo} = None + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +qualificationType + + +${qualificationType} + +${qualificationType} = 2 + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='仔仔工厂' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 湖南新宝环保科技有限公司 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +enterpriseInfo + + +${enterpriseInfo} + +${enterpriseInfo} = None + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +qualificationType + + +${qualificationType} + +${qualificationType} = 2 + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='仔仔工厂' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 仔仔工厂 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +enterpriseInfo + + +${enterpriseInfo} + +${enterpriseInfo} = None + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +qualificationType + + +${qualificationType} + +${qualificationType} = 1 + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='仔仔工厂' + +Exiting for loop altogether. + + + + + + + +Returns the given values which can then be assigned to a variables. + +2051 + + +${salesTaxPoint} + +${salesTaxPoint} = 2051 + + + +Makes a variable available globally in all tests and suites. + +${salesTaxPoint} + +${salesTaxPoint} = 2051 + + + + +#登录客户端 + + + + + +Helper for quickly disabling all urllib3 warnings. + + + +Create Session: create a HTTP session to a server + +ZTBT +${uecclient} +${client_login_header} + +Creating Session using : alias=ZTBT, url=https://api-client-uec-test.qniao.cn, headers={'content-type': 'application/json', 'X-APP-ID': '470236309865238528'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 + + + +Creates and returns a dictionary based on the given ``items``. + +account=${client_account} +captcha=${client_password} +accountType=2 + + +${data} + +${data} = {'account': '13000000032', 'captcha': '888888', 'accountType': '2'} + + + +Sends a POST request on a previously created HTTP Session. + +ZTBT +uec/authorize/by-captcha +json=${data} + + +${respones} + +POST Request : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha + path_url=/uec/authorize/by-captcha + headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'content-type': 'application/json', 'X-APP-ID': '470236309865238528', 'Content-Length': '67'} + body=b'{"account": "13000000032", "captcha": "888888", "accountType": "2"}' + +POST Response : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 08 Aug 2022 03:24:30 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":{"token":"d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/Go3hXt4Jhg2LwhDyMnfWZsNg==","userId":"704068168053821440"}} + +${respones} = <Response [200]> + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${respones.json()['data']} +token + + +${token} + +${token} = d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/Go3hXt4Jhg2LwhDyMnfWZsNg== + + + +Makes a variable available globally in all tests and suites. + +${token} + +${token} = d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/Go3hXt4Jhg2LwhDyMnfWZsNg== + + + + + + +Create Session: create a HTTP session to a server + +ZTBT +${ztbclient} +${client_login_header} + +Creating Session using : alias=ZTBT, url=https://api-client-ztb-test.qniao.cn, headers={'content-type': 'application/json', 'X-APP-ID': '470236309865238528'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 + + + +Creates and returns a dictionary based on the given ``items``. + +loginToken=${token} + + +${token1} + +${token1} = {'loginToken': 'd6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/Go3hXt4Jhg2LwhDyMnfWZsNg=='} + + + +Sends a POST request on a previously created HTTP Session. + +ZTBT +ztb-user-enterprise-service/authorize/get/product-line-token/by/login-token +json=${token1} + + +${reps} + +POST Request : url=https://api-client-ztb-test.qniao.cn/ztb-user-enterprise-service/authorize/get/product-line-token/by/login-token + path_url=/ztb-user-enterprise-service/authorize/get/product-line-token/by/login-token + headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'content-type': 'application/json', 'X-APP-ID': '470236309865238528', 'Content-Length': '106'} + body=b'{"loginToken": "d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/Go3hXt4Jhg2LwhDyMnfWZsNg=="}' + +POST Response : url=https://api-client-ztb-test.qniao.cn/ztb-user-enterprise-service/authorize/get/product-line-token/by/login-token + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 08 Aug 2022 03:24:30 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":{"errorCode":0,"token":"d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/Go3hXt4Jhg2LwhDyMnfWZsNg==","userId":"704068168053821440"}} + +${reps} = <Response [200]> + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()["data"]} +userId + + +${userId} + +${userId} = 704068168053821440 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()["data"]} +token + + +${gettoken} + +${gettoken} = d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/Go3hXt4Jhg2LwhDyMnfWZsNg== + + + +Makes a variable available globally in all tests and suites. + +${userId} + +${userId} = 704068168053821440 + + + +Makes a variable available globally in all tests and suites. + +${gettoken} + +${gettoken} = d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/Go3hXt4Jhg2LwhDyMnfWZsNg== + + + + + + +Create Session: create a HTTP session to a server + +baseinfo +${ztbclient} +${client_firstlogin_header} + +Creating Session using : alias=baseinfo, url=https://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'Authorization': 'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg==', 'X-APP-ID': '470236309865238528'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 + + + +Sends a GET request on a previously created HTTP Session. + +baseinfo +ztb-supply-chain-service/get/user/base-info + + +${reps} + +GET Request : url=https://api-client-ztb-test.qniao.cn/ztb-supply-chain-service/get/user/base-info + path_url=/ztb-supply-chain-service/get/user/base-info + headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/GoQ8VMrnzVDohEvrallZmiTg==', 'X-APP-ID': '470236309865238528'} + body=None + +GET Response : url=https://api-client-ztb-test.qniao.cn/ztb-supply-chain-service/get/user/base-info + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 08 Aug 2022 03:24:31 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":{"userId":"704068168053821440","realName":"王颖勋","mobile":"13000000032","avatarUrl":"https://medou.oss-cn-shenzhen.aliyuncs.com/saas/20200623160820.png","isAuth":true,"isVIP":true,"hasStore":true,"isSetPassword":false,"memberExpiredAt":"2022-08-08 20:00:08","hasGetMember":null,"organizationId":"752528438736326656","organizationList":[{"id":"738812119994208256","fullName":"武汉市青山区恒志纸业环保打包厂","qualificationType":2,"qualificationNo":"92420107MA4HWPTW91","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"738812120073900032","organizationId":"738812119994208256","scrapPaperRecycling":100.000,"scrapPaperSupply":111.000,"scrapPaperPackingFactoryList":[{"id":"738812537759469568","name":"千鸟工厂版测试打包站","isFactoryInfoRequired":true},{"id":"738816441691803648","name":"工厂版打包站","isFactoryInfoRequired":false},{"id":"743833461172867072","name":"工厂版711","isFactoryInfoRequired":false},{"id":"744623601562554368","name":"测试工厂同步","isFactoryInfoRequired":false},{"id":"744628123219398656","name":"测试工厂同步2","isFactoryInfoRequired":false},{"id":"744629025217056768","name":"测试工厂同步3","isFactoryInfoRequired":false},{"id":"744630180378710016","name":"测试工厂同步hhhhhh","isFactoryInfoRequired":false},{"id":"744631051875389440","name":"测试工厂同步4","isFactoryInfoRequired":false},{"id":"744632805736189952","name":"测试工厂同步5不想再同步了","isFactoryInfoRequired":false}]},"hasBankCard":false},{"id":"737040026042503168","fullName":"嘻嘻打包站","qualificationType":1,"qualificationNo":"441481199509213863","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"737040335171096576","organizationId":"737040026042503168","scrapPaperRecycling":null,"scrapPaperSupply":null,"scrapPaperPackingFactoryList":[{"id":"737040335238205440","name":"嘻嘻打包站","isFactoryInfoRequired":false}]},"hasBankCard":false},{"id":"728972353769443328","fullName":"湖南新宝环保科技有限公司","qualificationType":2,"qualificationNo":"91430111MA4LD7UA6T","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"732271033305927680","organizationId":"728972353769443328","scrapPaperRecycling":null,"scrapPaperSupply":null,"scrapPaperPackingFactoryList":[{"id":"732271033427562496","name":"湖南新宝环保科技有限公司","isFactoryInfoRequired":false}]},"hasBankCard":false},{"id":"728972353769443328","fullName":"湖南新宝环保科技有限公司","qualificationType":2,"qualificationNo":"91430111MA4LD7UA6T","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"721761724339982336","fullName":"仔仔工厂","qualificationType":1,"qualificationNo":"44058319951227041X","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"721761776701673472","organizationId":"721761724339982336","scrapPaperRecycling":200.550,"scrapPaperSupply":200.660,"scrapPaperPackingFactoryList":[{"id":"721761776722644992","name":"仔仔工厂","isFactoryInfoRequired":true}]},"hasBankCard":false},{"id":"721760754042277888","fullName":"长沙中联泵业股份有限公司","qualificationType":2,"qualificationNo":"914301027121552620","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"721760754797252608","organizationId":"721760754042277888","scrapPaperRecycling":1000.000,"scrapPaperSupply":1020.000,"scrapPaperPackingFactoryList":[{"id":"721760754818224128","name":"长沙中联泵业股份有限公司","isFactoryInfoRequired":true}]},"hasBankCard":false},{"id":"721760754042277888","fullName":"长沙中联泵业股份有限公司","qualificationType":2,"qualificationNo":"914301027121552620","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"716720382790471680","fullName":"427代理商","qualificationType":null,"qualificationNo":null,"isQualificationAuth":false,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"711270061419139072","fullName":"412测试代理商","qualificationType":null,"qualificationNo":null,"isQualificationAuth":false,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"709820255127605248","fullName":"东莞市致远纸业有限公司","qualificationType":2,"qualificationNo":"91441900671581184Y","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"709820256654331904","organizationId":"709820255127605248","scrapPaperRecycling":null,"scrapPaperSupply":null,"scrapPaperPackingFactoryList":[{"id":"709820256725635072","name":"东莞市致远纸业有限公司","isFactoryInfoRequired":false}]},"hasBankCard":false}],"nickname":"hinzai","isAccountancyUser":false,"hasShowedLoginTag":false,"isSetProxyTag":false,"identityTag":null,"locateCityTag":null,"locFactoryDetail":null,"experienceTag":null,"numberOfPurchaseCategoriesTag":"0个","numberOfProxyCategoriesTag":"0个","packageFactoryName":null,"packageFactoryArea":null,"numberOfEmployee":null,"numberOfPackageMachine":null,"businessLicenseUrl":null,"legalPersonName":null,"uniformSocialCreditCode":null,"enterpriseName":null,"type":null,"capital":null,"locDetail":null,"establishDate":null,"shipmentPerMonth":null,"storeOverview":{"storeId":"736317286117412864","margin":0.00,"todayMargin":0.00,"todayMarginNum":0,"hasStore":1,"status":2},"accountBalance":{"accountMoney":0.0000,"frozenMoney":0.0000},"status":false,"hasShipmentsInfo":false,"packerType":null,"autoWeighingMachine":null,"forkliftsNum":null,"logisticsVehiclesNum":null,"oftenSendPaperMill":null,"factoryLongitude":null,"factoryLatitude":null,"factoryPhotoUrlList":null,"factoryMainCategoryDtoList":null,"isFactoryInfoRequired":false,"isCommittedPackingFactoryClue":0,"enterpriseInfo":null,"inviter":{"id":"706181703529533440","code":"5535","name":"赖勇兰"}}} + +${reps} = <Response [200]> + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()['data']} +realName + + +${realName} + +${realName} = 王颖勋 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()['data']} +organizationList + + +${organizationList} + +${organizationList} = [{'id': '738812119994208256', 'fullName': '武汉市青山区恒志纸业环保打包厂', 'qualificationType': 2, 'qualificationNo': '92420107MA4HWPTW91', 'isQualificationAuth': True, 'enterpriseInfo': None, 'personalOrganization... + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +id + + +${orgId} + +${orgId} = 738812119994208256 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 武汉市青山区恒志纸业环保打包厂 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +packerBaseInfo + + +${packerBaseInfo} + +${packerBaseInfo} = {'id': '738812120073900032', 'organizationId': '738812119994208256', 'scrapPaperRecycling': 100.0, 'scrapPaperSupply': 111.0, 'scrapPaperPackingFactoryList': [{'id': '738812537759469568', 'name': '千鸟工... + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='长沙中联泵业股份有限公司' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +id + + +${orgId} + +${orgId} = 737040026042503168 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 嘻嘻打包站 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +packerBaseInfo + + +${packerBaseInfo} + +${packerBaseInfo} = {'id': '737040335171096576', 'organizationId': '737040026042503168', 'scrapPaperRecycling': None, 'scrapPaperSupply': None, 'scrapPaperPackingFactoryList': [{'id': '737040335238205440', 'name': '嘻嘻打包站... + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='长沙中联泵业股份有限公司' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +id + + +${orgId} + +${orgId} = 728972353769443328 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 湖南新宝环保科技有限公司 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +packerBaseInfo + + +${packerBaseInfo} + +${packerBaseInfo} = {'id': '732271033305927680', 'organizationId': '728972353769443328', 'scrapPaperRecycling': None, 'scrapPaperSupply': None, 'scrapPaperPackingFactoryList': [{'id': '732271033427562496', 'name': '湖南新宝环... + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='长沙中联泵业股份有限公司' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +id + + +${orgId} + +${orgId} = 728972353769443328 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 湖南新宝环保科技有限公司 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +packerBaseInfo + + +${packerBaseInfo} + +${packerBaseInfo} = None + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='长沙中联泵业股份有限公司' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +id + + +${orgId} + +${orgId} = 721761724339982336 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 仔仔工厂 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +packerBaseInfo + + +${packerBaseInfo} + +${packerBaseInfo} = {'id': '721761776701673472', 'organizationId': '721761724339982336', 'scrapPaperRecycling': 200.55, 'scrapPaperSupply': 200.66, 'scrapPaperPackingFactoryList': [{'id': '721761776722644992', 'name': '仔... + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='长沙中联泵业股份有限公司' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +id + + +${orgId} + +${orgId} = 721760754042277888 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 长沙中联泵业股份有限公司 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. -D:\\LYL\\Study\\Robot_framework\\New_Trading\\数据驱动.xls +${items} +packerBaseInfo -No keyword with name 'Open Excel' found. - + +${packerBaseInfo} + +${packerBaseInfo} = {'id': '721760754797252608', 'organizationId': '721760754042277888', 'scrapPaperRecycling': 1000.0, 'scrapPaperSupply': 1020.0, 'scrapPaperPackingFactoryList': [{'id': '721760754818224128', 'name': '长... + -No keyword with name 'Open Excel' found. - - - - - - -Helper for quickly disabling all urllib3 warnings. - + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='长沙中联泵业股份有限公司' + +Exiting for loop altogether. + - -Create Session: create a HTTP session to a server + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. -ZTBT -${uecclient} -${client_login_header} +${packerBaseInfo['scrapPaperPackingFactoryList'][0]} +id -Variable '${uecclient}' not found. - + +${packerId} + +${packerId} = 721760754818224128 + -Variable '${uecclient}' not found. - - - -Create Session: create a HTTP session to a server + +Returns a value from the given ``dictionary`` based on the given ``key``. -ZTBT -${ztbclient} -${client_login_header} +${packerBaseInfo['scrapPaperPackingFactoryList'][0]} +name + + +${packerName} + +${packerName} = 长沙中联泵业股份有限公司 + + + +Returns the given values which can then be assigned to a variables. + +{'Content-Type':'application/json','Authorization':'QNT ${gettoken}','X-APP-ID':'470236309865238528','X-ORGANIZATION-ID':'${orgId}','X-PACKING-FACTORY-ID':'${packerId}'} + + +${client_headerT} + +${client_headerT} = {'Content-Type':'application/json','Authorization':'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/Go3hXt4Jhg2LwhDyMnfWZsNg==','X-APP-ID':'470236309865238528','X-ORGANIZATION-ID':'7... + + + +Makes a variable available globally in all tests and suites. + +${orgId} + +${orgId} = 721760754042277888 + + + +Makes a variable available globally in all tests and suites. + +${realName} + +${realName} = 王颖勋 + + + +Makes a variable available globally in all tests and suites. + +${packerId} + +${packerId} = 721760754818224128 + + + +Makes a variable available globally in all tests and suites. + +${packerName} + +${packerName} = 长沙中联泵业股份有限公司 + + + +Makes a variable available globally in all tests and suites. + +${orgfullName} + +${orgfullName} = 长沙中联泵业股份有限公司 + + + +Makes a variable available globally in all tests and suites. + +${client_headerT} -Variable '${ztbclient}' not found. - +${client_headerT} = {'Content-Type':'application/json','Authorization':'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/Go3hXt4Jhg2LwhDyMnfWZsNg==','X-APP-ID':'470236309865238528','X-ORGANIZATION-ID':'7... + -Variable '${ztbclient}' not found. + - + Create Session: create a HTTP session to a server baseinfo ${ztbclient} -${client_firstlogin_header} +${client_headerT} -Variable '${ztbclient}' not found. - +Creating Session using : alias=baseinfo, url=https://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'Authorization': 'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/Go3hXt4Jhg2LwhDyMnfWZsNg==', 'X-APP-ID': '470236309865238528', 'X-ORGANIZATION-ID': '721760754042277888', 'X-PACKING-FACTORY-ID': '721760754818224128'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 + -Variable '${ztbclient}' not found. - - - -Create Session: create a HTTP session to a server + +Sends a GET request on a previously created HTTP Session. baseinfo -${ztbclient} -${client_headerP} +ztb-supply-chain-service/get/user/base-info + + +${reps} + +GET Request : url=https://api-client-ztb-test.qniao.cn/ztb-supply-chain-service/get/user/base-info + path_url=/ztb-supply-chain-service/get/user/base-info + headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'QNT d6SX3ESr8Jb2tYq/89Ft7DOFksN0ImPQrduCrdLR7W4kLGCD0kmLzlAAooCaD/Go3hXt4Jhg2LwhDyMnfWZsNg==', 'X-APP-ID': '470236309865238528', 'X-ORGANIZATION-ID': '721760754042277888', 'X-PACKING-FACTORY-ID': '721760754818224128'} + body=None + +GET Response : url=https://api-client-ztb-test.qniao.cn/ztb-supply-chain-service/get/user/base-info + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 08 Aug 2022 03:24:31 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":{"userId":"704068168053821440","realName":"王颖勋","mobile":"13000000032","avatarUrl":"https://medou.oss-cn-shenzhen.aliyuncs.com/saas/20200623160820.png","isAuth":true,"isVIP":true,"hasStore":true,"isSetPassword":false,"memberExpiredAt":"2022-08-08 20:00:08","hasGetMember":null,"organizationId":"721760754042277888","organizationList":[{"id":"738812119994208256","fullName":"武汉市青山区恒志纸业环保打包厂","qualificationType":2,"qualificationNo":"92420107MA4HWPTW91","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"738812120073900032","organizationId":"738812119994208256","scrapPaperRecycling":100.000,"scrapPaperSupply":111.000,"scrapPaperPackingFactoryList":[{"id":"738812537759469568","name":"千鸟工厂版测试打包站","isFactoryInfoRequired":true},{"id":"738816441691803648","name":"工厂版打包站","isFactoryInfoRequired":false},{"id":"743833461172867072","name":"工厂版711","isFactoryInfoRequired":false},{"id":"744623601562554368","name":"测试工厂同步","isFactoryInfoRequired":false},{"id":"744628123219398656","name":"测试工厂同步2","isFactoryInfoRequired":false},{"id":"744629025217056768","name":"测试工厂同步3","isFactoryInfoRequired":false},{"id":"744630180378710016","name":"测试工厂同步hhhhhh","isFactoryInfoRequired":false},{"id":"744631051875389440","name":"测试工厂同步4","isFactoryInfoRequired":false},{"id":"744632805736189952","name":"测试工厂同步5不想再同步了","isFactoryInfoRequired":false}]},"hasBankCard":false},{"id":"737040026042503168","fullName":"嘻嘻打包站","qualificationType":1,"qualificationNo":"441481199509213863","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"737040335171096576","organizationId":"737040026042503168","scrapPaperRecycling":null,"scrapPaperSupply":null,"scrapPaperPackingFactoryList":[{"id":"737040335238205440","name":"嘻嘻打包站","isFactoryInfoRequired":false}]},"hasBankCard":false},{"id":"728972353769443328","fullName":"湖南新宝环保科技有限公司","qualificationType":2,"qualificationNo":"91430111MA4LD7UA6T","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"732271033305927680","organizationId":"728972353769443328","scrapPaperRecycling":null,"scrapPaperSupply":null,"scrapPaperPackingFactoryList":[{"id":"732271033427562496","name":"湖南新宝环保科技有限公司","isFactoryInfoRequired":false}]},"hasBankCard":false},{"id":"728972353769443328","fullName":"湖南新宝环保科技有限公司","qualificationType":2,"qualificationNo":"91430111MA4LD7UA6T","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"721761724339982336","fullName":"仔仔工厂","qualificationType":1,"qualificationNo":"44058319951227041X","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"721761776701673472","organizationId":"721761724339982336","scrapPaperRecycling":200.550,"scrapPaperSupply":200.660,"scrapPaperPackingFactoryList":[{"id":"721761776722644992","name":"仔仔工厂","isFactoryInfoRequired":true}]},"hasBankCard":false},{"id":"721760754042277888","fullName":"长沙中联泵业股份有限公司","qualificationType":2,"qualificationNo":"914301027121552620","isQualificationAuth":true,"enterpriseInfo":{"approvedDate":"2020-01-06","businessLicenseImg":"https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/17632147146560641.jpg","businessTermFrom":"","businessTermTo":"","legalPersonName":"潘世群","locDetail":"东二环一段1061号","name":"长沙中联泵业股份有限公司","registerPhone":"18907312896","uniformSocialCreditCode":"914301027121552620","salesTaxPoint":2053,"isEnterpriseAuth":true},"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"721760754797252608","organizationId":"721760754042277888","scrapPaperRecycling":1000.000,"scrapPaperSupply":1020.000,"scrapPaperPackingFactoryList":[{"id":"721760754818224128","name":"长沙中联泵业股份有限公司","isFactoryInfoRequired":true}]},"hasBankCard":true},{"id":"721760754042277888","fullName":"长沙中联泵业股份有限公司","qualificationType":2,"qualificationNo":"914301027121552620","isQualificationAuth":true,"enterpriseInfo":{"approvedDate":"2020-01-06","businessLicenseImg":"https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/17632147146560641.jpg","businessTermFrom":"","businessTermTo":"","legalPersonName":"潘世群","locDetail":"东二环一段1061号","name":"长沙中联泵业股份有限公司","registerPhone":"18907312896","uniformSocialCreditCode":"914301027121552620","salesTaxPoint":2053,"isEnterpriseAuth":true},"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":true},{"id":"716720382790471680","fullName":"427代理商","qualificationType":null,"qualificationNo":null,"isQualificationAuth":false,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"711270061419139072","fullName":"412测试代理商","qualificationType":null,"qualificationNo":null,"isQualificationAuth":false,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":2,"packerBaseInfo":null,"hasBankCard":false},{"id":"709820255127605248","fullName":"东莞市致远纸业有限公司","qualificationType":2,"qualificationNo":"91441900671581184Y","isQualificationAuth":true,"enterpriseInfo":null,"personalOrganizationQualification":null,"orgRole":1,"packerBaseInfo":{"id":"709820256654331904","organizationId":"709820255127605248","scrapPaperRecycling":null,"scrapPaperSupply":null,"scrapPaperPackingFactoryList":[{"id":"709820256725635072","name":"东莞市致远纸业有限公司","isFactoryInfoRequired":false}]},"hasBankCard":false}],"nickname":"hinzai","isAccountancyUser":false,"hasShowedLoginTag":false,"isSetProxyTag":false,"identityTag":null,"locateCityTag":null,"locFactoryDetail":null,"experienceTag":null,"numberOfPurchaseCategoriesTag":"0个","numberOfProxyCategoriesTag":"0个","packageFactoryName":null,"packageFactoryArea":null,"numberOfEmployee":null,"numberOfPackageMachine":null,"businessLicenseUrl":null,"legalPersonName":null,"uniformSocialCreditCode":null,"enterpriseName":null,"type":null,"capital":null,"locDetail":null,"establishDate":null,"shipmentPerMonth":null,"storeOverview":{"storeId":"736317286117412864","margin":0.00,"todayMargin":0.00,"todayMarginNum":0,"hasStore":1,"status":2},"accountBalance":{"accountMoney":0.0000,"frozenMoney":0.0000},"status":false,"hasShipmentsInfo":false,"packerType":null,"autoWeighingMachine":null,"forkliftsNum":null,"logisticsVehiclesNum":null,"oftenSendPaperMill":null,"factoryLongitude":null,"factoryLatitude":null,"factoryPhotoUrlList":null,"factoryMainCategoryDtoList":null,"isFactoryInfoRequired":false,"isCommittedPackingFactoryClue":0,"enterpriseInfo":null,"inviter":{"id":"706181703529533440","code":"5535","name":"赖勇兰"}}} + +${reps} = <Response [200]> + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()['data']} +organizationList + + +${organizationList} + +${organizationList} = [{'id': '738812119994208256', 'fullName': '武汉市青山区恒志纸业环保打包厂', 'qualificationType': 2, 'qualificationNo': '92420107MA4HWPTW91', 'isQualificationAuth': True, 'enterpriseInfo': None, 'personalOrganization... + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 武汉市青山区恒志纸业环保打包厂 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +enterpriseInfo + + +${enterpriseInfo} + +${enterpriseInfo} = None + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +qualificationType + + +${qualificationType} + +${qualificationType} = 2 + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='长沙中联泵业股份有限公司' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 嘻嘻打包站 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +enterpriseInfo + + +${enterpriseInfo} + +${enterpriseInfo} = None + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +qualificationType + + +${qualificationType} + +${qualificationType} = 1 + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='长沙中联泵业股份有限公司' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 湖南新宝环保科技有限公司 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +enterpriseInfo + + +${enterpriseInfo} + +${enterpriseInfo} = None + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +qualificationType + + +${qualificationType} + +${qualificationType} = 2 + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='长沙中联泵业股份有限公司' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 湖南新宝环保科技有限公司 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +enterpriseInfo + + +${enterpriseInfo} + +${enterpriseInfo} = None + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +qualificationType + + +${qualificationType} + +${qualificationType} = 2 + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='长沙中联泵业股份有限公司' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 仔仔工厂 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +enterpriseInfo + + +${enterpriseInfo} + +${enterpriseInfo} = None + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +qualificationType + + +${qualificationType} + +${qualificationType} = 1 + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='长沙中联泵业股份有限公司' + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +fullName + + +${orgfullName} + +${orgfullName} = 长沙中联泵业股份有限公司 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +enterpriseInfo + + +${enterpriseInfo} + +${enterpriseInfo} = {'approvedDate': '2020-01-06', 'businessLicenseImg': 'https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/17632147146560641.jpg', 'businessTermFrom': '', 'businessTermTo': '', 'legalPersonName': '... + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${items} +qualificationType + + +${qualificationType} + +${qualificationType} = 2 + + + +Stops executing the enclosing for loop if the ``condition`` is true. + +'${orgfullName}'=='长沙中联泵业股份有限公司' + +Exiting for loop altogether. + + + + + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${enterpriseInfo} +salesTaxPoint + + +${salesTaxPoint} + +${salesTaxPoint} = 2053 + + + +Makes a variable available globally in all tests and suites. + +${salesTaxPoint} -Variable '${ztbclient}' not found. - +${salesTaxPoint} = 2053 + -Variable '${ztbclient}' not found. + #登录客户端 - + - - + + Helper for quickly disabling all urllib3 warnings. - + Create Session: create a HTTP session to a server -ZTBT +papermill ${uecclient} -${client_login_header} +${ztbsc_papermill_login_header} -Variable '${uecclient}' not found. - +Creating Session using : alias=papermill, url=https://api-client-uec-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847966406'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 + + + +Returns the given values which can then be assigned to a variables. + +{ \ \ \ \ "account":"${papermill_account}", \ \ \ \ "accountType":2, \ \ \ \ "captcha":"${papermill_password}", \ \ \ \ "$loginType":"telphone", \ \ \ \ "$isNextAutoLogin":true } + + +${Data} + +${Data} = { "account":"15014242835", "accountType":2, "captcha":"888888", "$loginType":"telphone", "$isNextAutoLogin":true } + + + +Sends a POST request on a previously created HTTP Session. + +papermill +uec/authorize/by-captcha +${Data.encode('utf-8')} + + +${reps} + +POST Request : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha + path_url=/uec/authorize/by-captcha + headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847966406', 'Content-Length': '134'} + body=b'{ "account":"15014242835", "accountType":2, "captcha":"888888", "$loginType":"telphone", "$isNextAutoLogin":true }' + +POST Response : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 08 Aug 2022 03:24:31 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7ttQEaLXczMQ6IIVBjjpt0BM9Wjg4hXC8zjZV7MHh4hrp+6Jg+xJsjR+RKtc0hUaVNw==","userId":"701479226095833088"}} + +${reps} = <Response [200]> + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()['data']} +token + + +${papermill_token} + +${papermill_token} = iHP4V/g6O5DXHixyNrf7ttQEaLXczMQ6IIVBjjpt0BM9Wjg4hXC8zjZV7MHh4hrp+6Jg+xJsjR+RKtc0hUaVNw== + + + +Makes a variable available globally in all tests and suites. + +${papermill_token} + +${papermill_token} = iHP4V/g6O5DXHixyNrf7ttQEaLXczMQ6IIVBjjpt0BM9Wjg4hXC8zjZV7MHh4hrp+6Jg+xJsjR+RKtc0hUaVNw== + -Variable '${uecclient}' not found. - - Create Session: create a HTTP session to a server ZTBT ${ztbclient} -${client_login_header} +${ztbsc_papermill_login_header} -Variable '${ztbclient}' not found. - +Creating Session using : alias=ZTBT, url=https://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847966406'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 + -Variable '${ztbclient}' not found. - - - -Create Session: create a HTTP session to a server + +Returns the given values which can then be assigned to a variables. -baseinfo -${ztbclient} -${client_firstlogin_header} +{ \ \ \ \ "loginToken":"${papermill_token}", \ \ \ \ "$configs":{ \ \ \ \ \ \ \ \ "$isBizFailedNotToast":true \ \ \ \ } } -Variable '${ztbclient}' not found. - + +${loginToken} + +${loginToken} = { "loginToken":"iHP4V/g6O5DXHixyNrf7ttQEaLXczMQ6IIVBjjpt0BM9Wjg4hXC8zjZV7MHh4hrp+6Jg+xJsjR+RKtc0hUaVNw==", "$configs":{ "$isBizFailedNotToast":true } } + -Variable '${ztbclient}' not found. - - - -Create Session: create a HTTP session to a server + +Sends a POST request on a previously created HTTP Session. -baseinfo -${ztbclient} -${client_headerT} +ZTBT +ztb-user-enterprise-service/authorize/get/product-line-token/by/login-token +${loginToken.encode('utf-8')} + + +${reps} + +POST Request : url=https://api-client-ztb-test.qniao.cn/ztb-user-enterprise-service/authorize/get/product-line-token/by/login-token + path_url=/ztb-user-enterprise-service/authorize/get/product-line-token/by/login-token + headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847966406', 'Content-Length': '171'} + body=b'{ "loginToken":"iHP4V/g6O5DXHixyNrf7ttQEaLXczMQ6IIVBjjpt0BM9Wjg4hXC8zjZV7MHh4hrp+6Jg+xJsjR+RKtc0hUaVNw==", "$configs":{ "$isBizFailedNotToast":true } }' + +POST Response : url=https://api-client-ztb-test.qniao.cn/ztb-user-enterprise-service/authorize/get/product-line-token/by/login-token + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 08 Aug 2022 03:24:31 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":{"errorCode":0,"token":"iHP4V/g6O5DXHixyNrf7ttQEaLXczMQ6IIVBjjpt0BM9Wjg4hXC8zjZV7MHh4hrp+6Jg+xJsjR+RKtc0hUaVNw==","userId":"701479226095833088"}} + +${reps} = <Response [200]> + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()["data"]} +userId + + +${PM_userId} + +${PM_userId} = 701479226095833088 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()["data"]} +token + + +${PM_token} + +${PM_token} = iHP4V/g6O5DXHixyNrf7ttQEaLXczMQ6IIVBjjpt0BM9Wjg4hXC8zjZV7MHh4hrp+6Jg+xJsjR+RKtc0hUaVNw== + + + +Returns the given values which can then be assigned to a variables. + +{'Content-Type':'application/json','Authorization':'QNT ${PM_token}','X-APP-ID':'503258978847966406'} + + +${ztbsc_papermill_header} + +${ztbsc_papermill_header} = {'Content-Type':'application/json','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ttQEaLXczMQ6IIVBjjpt0BM9Wjg4hXC8zjZV7MHh4hrp+6Jg+xJsjR+RKtc0hUaVNw==','X-APP-ID':'503258978847966406'} + + + +Makes a variable available globally in all tests and suites. + +${PM_userId} + +${PM_userId} = 701479226095833088 + + + +Makes a variable available globally in all tests and suites. + +${PM_token} + +${PM_token} = iHP4V/g6O5DXHixyNrf7ttQEaLXczMQ6IIVBjjpt0BM9Wjg4hXC8zjZV7MHh4hrp+6Jg+xJsjR+RKtc0hUaVNw== + + + +Makes a variable available globally in all tests and suites. + +${ztbsc_papermill_header} -Variable '${ztbclient}' not found. - +${ztbsc_papermill_header} = {'Content-Type':'application/json','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ttQEaLXczMQ6IIVBjjpt0BM9Wjg4hXC8zjZV7MHh4hrp+6Jg+xJsjR+RKtc0hUaVNw==','X-APP-ID':'503258978847966406'} + -Variable '${ztbclient}' not found. + + +D:\\LYL\\Study\\Robot_framework\\New_Trading\\数据驱动.xls + +No keyword with name 'Open Excel' found. + + +No keyword with name 'Open Excel' found. -#登录客户端 - - - - + Helper for quickly disabling all urllib3 warnings. - + Create Session: create a HTTP session to a server -papermill +factoring ${uecclient} -${ztbsc_papermill_login_header} +${ztbsc_factoring_login_header} -Variable '${uecclient}' not found. - +Creating Session using : alias=factoring, url=https://api-client-uec-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-ORGANIZATION-ID': '710132392618233856', 'X-APP-ID': '503258978847966410'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 + -Variable '${uecclient}' not found. - - - -Helper for quickly disabling all urllib3 warnings. - + +Returns the given values which can then be assigned to a variables. + +{ \ \ \ \ "account":"${papermill_account}", \ \ \ \ "accountType":2, \ \ \ \ "captcha":"${papermill_password}", \ \ \ \ "$loginType":"telphone", \ \ \ \ "$isNextAutoLogin":true } + + +${Data} + +${Data} = { "account":"15014242835", "accountType":2, "captcha":"888888", "$loginType":"telphone", "$isNextAutoLogin":true } + + + +Sends a POST request on a previously created HTTP Session. + +factoring +uec/authorize/by-captcha +${Data.encode('utf-8')} + + +${reps} + +POST Request : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha + path_url=/uec/authorize/by-captcha + headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-ORGANIZATION-ID': '710132392618233856', 'X-APP-ID': '503258978847966410', 'Content-Length': '134'} + body=b'{ "account":"15014242835", "accountType":2, "captcha":"888888", "$loginType":"telphone", "$isNextAutoLogin":true }' + +POST Response : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 08 Aug 2022 03:24:31 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cs+ZL8Rjw15NslYGGIWG3flr5ievoTELynHtQI4GtIJ2g==","userId":"701479226095833088"}} + +${reps} = <Response [200]> + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()['data']} +token + + +${factoring_token} + +${factoring_token} = iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cs+ZL8Rjw15NslYGGIWG3flr5ievoTELynHtQI4GtIJ2g== + + + +Makes a variable available globally in all tests and suites. + +${factoring_token} + +${factoring_token} = iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cs+ZL8Rjw15NslYGGIWG3flr5ievoTELynHtQI4GtIJ2g== + Create Session: create a HTTP session to a server -factoring +ZTBT ${uecclient} ${ztbsc_factoring_login_header} -Variable '${uecclient}' not found. - +Creating Session using : alias=ZTBT, url=https://api-client-uec-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-ORGANIZATION-ID': '710132392618233856', 'X-APP-ID': '503258978847966410'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 + + + +Returns the given values which can then be assigned to a variables. + +{ \ \ \ \ "loginToken":"${factoring_token}", \ \ \ \ "$configs":{ \ \ \ \ \ \ \ \ "$isBizFailedNotToast":true \ \ \ \ } } + + +${loginToken} + +${loginToken} = { "loginToken":"iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cs+ZL8Rjw15NslYGGIWG3flr5ievoTELynHtQI4GtIJ2g==", "$configs":{ "$isBizFailedNotToast":true } } + + + +Sends a POST request on a previously created HTTP Session. + +ZTBT +factoring/authorize/get/product-line-token/by/login-token +${loginToken.encode('utf-8')} + + +${reps} + +POST Request : url=https://api-client-uec-test.qniao.cn/factoring/authorize/get/product-line-token/by/login-token + path_url=/factoring/authorize/get/product-line-token/by/login-token + headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-ORGANIZATION-ID': '710132392618233856', 'X-APP-ID': '503258978847966410', 'Content-Length': '171'} + body=b'{ "loginToken":"iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cs+ZL8Rjw15NslYGGIWG3flr5ievoTELynHtQI4GtIJ2g==", "$configs":{ "$isBizFailedNotToast":true } }' + +POST Response : url=https://api-client-uec-test.qniao.cn/factoring/authorize/get/product-line-token/by/login-token + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 08 Aug 2022 03:24:32 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cs+ZL8Rjw15NslYGGIWG3flYWk2xdKI/8CALdgIvS+I2Q==","userId":"701479226095833088"}} + +${reps} = <Response [200]> + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()["data"]} +userId + + +${F_userId} + +${F_userId} = 701479226095833088 + + + +Returns a value from the given ``dictionary`` based on the given ``key``. + +${reps.json()["data"]} +token + + +${F_token} + +${F_token} = iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cs+ZL8Rjw15NslYGGIWG3flYWk2xdKI/8CALdgIvS+I2Q== + + + +Returns the given values which can then be assigned to a variables. + +{'Content-Type':'application/json','Authorization':'QNT ${F_token}','X-APP-ID':'503258978847966410','X-ORGANIZATION-ID':'710132392618233856'} + + +${ztbsc_factoring_header} + +${ztbsc_factoring_header} = {'Content-Type':'application/json','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cs+ZL8Rjw15NslYGGIWG3flYWk2xdKI/8CALdgIvS+I2Q==','X-APP-ID':'503258978847966410','X-ORGANIZATION-ID':'7... + + + +Makes a variable available globally in all tests and suites. + +${F_userId} + +${F_userId} = 701479226095833088 + + + +Makes a variable available globally in all tests and suites. + +${F_token} + +${F_token} = iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cs+ZL8Rjw15NslYGGIWG3flYWk2xdKI/8CALdgIvS+I2Q== + + + +Makes a variable available globally in all tests and suites. + +${ztbsc_factoring_header} + +${ztbsc_factoring_header} = {'Content-Type':'application/json','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cs+ZL8Rjw15NslYGGIWG3flYWk2xdKI/8CALdgIvS+I2Q==','X-APP-ID':'503258978847966410','X-ORGANIZATION-ID':'7... + -Variable '${uecclient}' not found. + - + - + -Critical Tests -All Tests +Critical Tests +All Tests -0-Datadriven -0-Datadriven.1-dataDriven -0-Datadriven.2.1-APPlogin -0-Datadriven.2.2-APPlogin -0-Datadriven.3-WebLogin +000-LoginToken +000-LoginToken.1-dataDriven +000-LoginToken.2.1-APPlogin +000-LoginToken.2.2-APPlogin +000-LoginToken.3-WebLogin -Error in file '/root/ztb-ops-rf-api/0-Datadriven/1-dataDriven.robot': Importing test library 'ExcelLibrary' failed: ModuleNotFoundError: No module named 'ExcelLibrary' +Error in file '/root/ztb-ops-rf-api/000-LoginToken/1-dataDriven.robot': Importing test library 'ExcelLibrary' failed: ModuleNotFoundError: No module named 'ExcelLibrary' Traceback (most recent call last): None PYTHONPATH: @@ -197,8 +2688,9 @@ PYTHONPATH: /usr/local/python3/lib/python36.zip /usr/local/python3/lib/python3.6 /usr/local/python3/lib/python3.6/lib-dynload + /root/.local/lib/python3.6/site-packages /usr/local/python3/lib/python3.6/site-packages -Error in file '/root/ztb-ops-rf-api/0-Datadriven/2.1-APPlogin.robot': Importing test library 'ExcelLibrary' failed: ModuleNotFoundError: No module named 'ExcelLibrary' +Error in file '/root/ztb-ops-rf-api/000-LoginToken/2.1-APPlogin.robot': Importing test library 'ExcelLibrary' failed: ModuleNotFoundError: No module named 'ExcelLibrary' Traceback (most recent call last): None PYTHONPATH: @@ -206,8 +2698,9 @@ PYTHONPATH: /usr/local/python3/lib/python36.zip /usr/local/python3/lib/python3.6 /usr/local/python3/lib/python3.6/lib-dynload + /root/.local/lib/python3.6/site-packages /usr/local/python3/lib/python3.6/site-packages -Error in file '/root/ztb-ops-rf-api/0-Datadriven/2.2-APPlogin.robot': Importing test library 'ExcelLibrary' failed: ModuleNotFoundError: No module named 'ExcelLibrary' +Error in file '/root/ztb-ops-rf-api/000-LoginToken/2.2-APPlogin.robot': Importing test library 'ExcelLibrary' failed: ModuleNotFoundError: No module named 'ExcelLibrary' Traceback (most recent call last): None PYTHONPATH: @@ -215,8 +2708,9 @@ PYTHONPATH: /usr/local/python3/lib/python36.zip /usr/local/python3/lib/python3.6 /usr/local/python3/lib/python3.6/lib-dynload + /root/.local/lib/python3.6/site-packages /usr/local/python3/lib/python3.6/site-packages -Error in file '/root/ztb-ops-rf-api/0-Datadriven/3-WebLogin.robot': Importing test library 'ExcelLibrary' failed: ModuleNotFoundError: No module named 'ExcelLibrary' +Error in file '/root/ztb-ops-rf-api/000-LoginToken/3-WebLogin.robot': Importing test library 'ExcelLibrary' failed: ModuleNotFoundError: No module named 'ExcelLibrary' Traceback (most recent call last): None PYTHONPATH: @@ -224,6 +2718,7 @@ PYTHONPATH: /usr/local/python3/lib/python36.zip /usr/local/python3/lib/python3.6 /usr/local/python3/lib/python3.6/lib-dynload + /root/.local/lib/python3.6/site-packages /usr/local/python3/lib/python3.6/site-packages diff --git a/report.html b/report.html index bb115a4..adbbf9b 100644 --- a/report.html +++ b/report.html @@ -1585,22 +1585,22 @@ storage = function () { window.output = {};