pymysql host='8.135.8.221',user='root', password='password', \ port=3306,database='ztb_recycle' No keyword with name 'Connect To Database Using Custom Params' found. No keyword with name 'Connect To Database Using Custom Params' found. Helper for quickly disabling all urllib3 warnings. Create Session: create a HTTP session to a server ZTBT https://api-client-uec-test.qniao.cn ${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=18888888888 captcha=888888 accountType=2 ${data} ${data} = {'account': '18888888888', 'captcha': '888888', 'accountType': '2'} Returns the given values which can then be assigned to a variables. 18888888888 ${account} ${account} = 18888888888 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": "18888888888", "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': 'Wed, 01 Dec 2021 03:50: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/89Ft7HSef7LjHyTdXqhrqWRDypMxVQPBW+90MWsl9ceYu6poty0ccHoZ7QXTE+LWDHUBkg==","userId":"659450159519895552"}} ${respones} = <Response [200]> Logs the given message with the given level. ${respones.status_code} 200 Logs the given message with the given level. ${respones.json()} {'code': 0, 'message': 'successful', 'data': {'token': 'd6SX3ESr8Jb2tYq/89Ft7HSef7LjHyTdXqhrqWRDypMxVQPBW+90MWsl9ceYu6poty0ccHoZ7QXTE+LWDHUBkg==', 'userId': '659450159519895552'}} Returns a value from the given ``dictionary`` based on the given ``key``. ${respones.json()["data"]} token ${token} ${token} = d6SX3ESr8Jb2tYq/89Ft7HSef7LjHyTdXqhrqWRDypMxVQPBW+90MWsl9ceYu6poty0ccHoZ7QXTE+LWDHUBkg== Makes a variable available globally in all tests and suites. ${token} ${token} = d6SX3ESr8Jb2tYq/89Ft7HSef7LjHyTdXqhrqWRDypMxVQPBW+90MWsl9ceYu6poty0ccHoZ7QXTE+LWDHUBkg== Makes a variable available globally in all tests and suites. ${account} ${account} = 18888888888 Create Session: create a HTTP session to a server ZTBT ${url} ${header} Creating Session using : alias=ZTBT, url=http://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/89Ft7HSef7LjHyTdXqhrqWRDypMxVQPBW+90MWsl9ceYu6poty0ccHoZ7QXTE+LWDHUBkg=='} Sends a POST request on a previously created HTTP Session. ZTBT recycle-user-center/authorize/get/product-line-token/by/login-token json=${token1} ${reps} POST Request : url=http://api-client-ztb-test.qniao.cn/recycle-user-center/authorize/get/product-line-token/by/login-token path_url=/recycle-user-center/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/89Ft7HSef7LjHyTdXqhrqWRDypMxVQPBW+90MWsl9ceYu6poty0ccHoZ7QXTE+LWDHUBkg=="}' POST Response : url=http://api-client-ztb-test.qniao.cn/recycle-user-center/authorize/get/product-line-token/by/login-token status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 03:50:29 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'} body={"code":0,"message":"successful","data":{"token":"d6SX3ESr8Jb2tYq/89Ft7HSef7LjHyTdXqhrqWRDypMxVQPBW+90MWsl9ceYu6poty0ccHoZ7QXTE+LWDHUBkg==","userToken":null,"userId":"659450159519895552"}} ${reps} = <Response [200]> Returns a value from the given ``dictionary`` based on the given ``key``. ${reps.json()["data"]} token ${gettoken} ${gettoken} = d6SX3ESr8Jb2tYq/89Ft7HSef7LjHyTdXqhrqWRDypMxVQPBW+90MWsl9ceYu6poty0ccHoZ7QXTE+LWDHUBkg== Returns a value from the given ``dictionary`` based on the given ``key``. ${reps.json()["data"]} userId ${userId} ${userId} = 659450159519895552 Logs the given message with the given level. ${reps.json()["data"]["token"]} d6SX3ESr8Jb2tYq/89Ft7HSef7LjHyTdXqhrqWRDypMxVQPBW+90MWsl9ceYu6poty0ccHoZ7QXTE+LWDHUBkg== Makes a variable available globally in all tests and suites. ${gettoken} ${gettoken} = d6SX3ESr8Jb2tYq/89Ft7HSef7LjHyTdXqhrqWRDypMxVQPBW+90MWsl9ceYu6poty0ccHoZ7QXTE+LWDHUBkg== Makes a variable available globally in all tests and suites. ${userId} ${userId} = 659450159519895552 Creates and returns a dictionary based on the given ``items``. content-type=application/json X-APP-ID=470236309865238528 Authorization=${gettoken} ${header} ${header} = {'content-type': 'application/json', 'X-APP-ID': '470236309865238528', 'Authorization': 'd6SX3ESr8Jb2tYq/89Ft7HSef7LjHyTdXqhrqWRDypMxVQPBW+90MWsl9ceYu6poty0ccHoZ7QXTE+LWDHUBkg=='} Create Session: create a HTTP session to a server baseinfo ${url} ${header} Creating Session using : alias=baseinfo, url=http://api-client-ztb-test.qniao.cn, headers={'content-type': 'application/json', 'X-APP-ID': '470236309865238528', 'Authorization': 'd6SX3ESr8Jb2tYq/89Ft7HSef7LjHyTdXqhrqWRDypMxVQPBW+90MWsl9ceYu6poty0ccHoZ7QXTE+LWDHUBkg=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Sends a GET request on a previously created HTTP Session. baseinfo recycle-service/user/get/base-info ${reps} GET Request : url=http://api-client-ztb-test.qniao.cn/recycle-service/user/get/base-info path_url=/recycle-service/user/get/base-info headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'content-type': 'application/json', 'X-APP-ID': '470236309865238528', 'Authorization': 'd6SX3ESr8Jb2tYq/89Ft7HSef7LjHyTdXqhrqWRDypMxVQPBW+90MWsl9ceYu6poty0ccHoZ7QXTE+LWDHUBkg=='} body=None GET Response : url=http://api-client-ztb-test.qniao.cn/recycle-service/user/get/base-info status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 03:50:30 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'} body={"code":0,"message":"successful","data":{"userId":"659450159519895552","realName":"赖勇兰","mobile":"18888888888","avatarUrl":"http://medou.oss-cn-shenzhen.aliyuncs.com/saas/20200623160820.png","isAuth":1,"isVIP":1,"isSetPassword":0,"hasStore":0,"balance":77961.0500,"memberExpiredAt":"2022-03-13 13:54:19","hasGetMember":null,"nickname":"BTPY5718","memberRewardPoint":100,"isAccountancyUser":0,"hasShowedLoginTag":false,"isSetProxyTag":false,"identityTag":"打包厂","locateCityTag":{"provinceId":120000,"provinceName":"天津","cityId":120100,"cityName":"天津市","districtId":120101,"districtName":"和平区"},"locFactoryDetail":"西站前街1号天津西站2F层","experienceTag":"1年以下","numberOfPurchaseCategoriesTag":"0个","numberOfProxyCategoriesTag":"0个","packageFactoryName":"88纸业","packageFactoryArea":1500,"numberOfEmployee":12,"numberOfPackageMachine":null,"businessLicenseUrl":"https://qncloudprintfiletest.oss-cn-shenzhen.aliyuncs.com/cloudprint/1637563690936.jpg","legalPersonName":"陈华","uniformSocialCreditCode":"91500113984969104D","enterpriseName":"重庆亨乐西餐食品有限公司","type":null,"capital":null,"locDetail":"待补充","establishDate":null,"shipmentPerMonth":"1000吨以下","storeOverview":{"storeId":null,"margin":null,"todayMargin":null,"todayMarginNum":null,"hasStore":0,"status":null},"accountBalance":{"accountMoney":77961.0500,"frozenMoney":77961.0500},"bizUserId":"498985714587930624","bizUserName":"张山","status":0,"bizUserCode":"9999","hasShipmentsInfo":1,"isEnterpriseAuth":1,"packerType":"是v发电设备","autoWeighingMachine":"山东化工被他人好吧","forkliftsNum":10,"logisticsVehiclesNum":25,"oftenSendPaperMill":"阿三v长度为hi法定股本v科比v积分不够看的环境的改变附加的功能日本你根本","factoryLongitude":117.162647,"factoryLatitude":39.157162,"factoryPhotoUrlList":["https://qncloudprintfiletest.oss-cn-shenzhen.aliyuncs.com/cloudprint/1637560667998.png","https://qncloudprintfiletest.oss-cn-shenzhen.aliyuncs.com/cloudprint/1637560671717.jpg","https://qncloudprintfiletest.oss-cn-shenzhen.aliyuncs.com/cloudprint/1637560676979.jpg"],"factoryMainCategoryDtoList":[{"id":"661680169953660928","factoryId":"660158494883844096","categoryId":"5","categoryName":"坑卡A","categoryProductionCapacityPerMonth":15.222,"categoryPhotoUrl":null}],"isFactoryInfoRequired":1}} ${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"]} userId ${userId} ${userId} = 659450159519895552 Makes a variable available globally in all tests and suites. ${realName} ${realName} = 赖勇兰 Makes a variable available globally in all tests and suites. ${userId} ${userId} = 659450159519895552 Fails if objects are unequal after converting them to strings. ${account} ${reps.json()["data"]["mobile"]} Helper for quickly disabling all urllib3 warnings. Creates and returns a dictionary based on the given ``items``. content-type=application/json X-APP-ID=470236309865238528 ${headers} ${headers} = {'content-type': 'application/json', 'X-APP-ID': '470236309865238528'} Create Session: create a HTTP session to a server ZTBT https://api-client-uec.qniao.cn ${headers} Creating Session using : alias=ZTBT, url=https://api-client-uec.qniao.cn, headers={'content-type': 'application/json', 'X-APP-ID': '470236309865238528'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Returns the given values which can then be assigned to a variables. {"verifiableAccount":"13168550964","verifiableAccountType":1,"purpose":1} ${value} ${value} = {"verifiableAccount":"13168550964","verifiableAccountType":1,"purpose":1} Sends a POST request on a previously created HTTP Session. ZTBT uec/get/auth-captcha ${value.encode('utf-8')} ${reps} POST Request : url=https://api-client-uec.qniao.cn/uec/get/auth-captcha path_url=/uec/get/auth-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': '73'} body=b'{"verifiableAccount":"13168550964","verifiableAccountType":1,"purpose":1}' POST Response : url=https://api-client-uec.qniao.cn/uec/get/auth-captcha status=200, reason= headers={'Server': 'nginx/1.14.1', 'Date': 'Wed, 01 Dec 2021 03:50:30 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers, Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} body={"code":0,"message":"successful","data":null} ${reps} = <Response [200]> Logs the given message with the given level. ${reps.json()} {'code': 0, 'message': 'successful', 'data': None} Pauses the test executed for the given time. 5 Slept 5 seconds Ignoring second test suite init file '/root/ztb-trading-rf-api/2-Background_system(Test)/1.2-enterprise_management/__init__.txt'. Error in file '/root/ztb-trading-rf-api': Importing test library 'SeleniumLibrary' failed: ModuleNotFoundError: No module named 'SeleniumLibrary' Traceback (most recent call last): None PYTHONPATH: /usr/local/python3/lib/python36.zip /usr/local/python3/lib/python3.6 /usr/local/python3/lib/python3.6/lib-dynload /usr/local/python3/lib/python3.6/site-packages Error in file '/root/ztb-trading-rf-api': Importing test library 'AppiumLibrary' failed: ModuleNotFoundError: No module named 'AppiumLibrary' Traceback (most recent call last): None PYTHONPATH: /usr/local/python3/lib/python36.zip /usr/local/python3/lib/python3.6 /usr/local/python3/lib/python3.6/lib-dynload /usr/local/python3/lib/python3.6/site-packages Error in file '/root/ztb-trading-rf-api/0-Database.robot': Importing test library 'DatabaseLibrary' failed: ModuleNotFoundError: No module named 'DatabaseLibrary' Traceback (most recent call last): None PYTHONPATH: /usr/local/python3/lib/python36.zip /usr/local/python3/lib/python3.6 /usr/local/python3/lib/python3.6/lib-dynload /usr/local/python3/lib/python3.6/site-packages Error in file '/root/ztb-trading-rf-api/1-Client(Test)/1-APPlogin(Test).robot': Importing test library 'DatabaseLibrary' failed: ModuleNotFoundError: No module named 'DatabaseLibrary' Traceback (most recent call last): None PYTHONPATH: /usr/local/python3/lib/python36.zip /usr/local/python3/lib/python3.6 /usr/local/python3/lib/python3.6/lib-dynload /usr/local/python3/lib/python3.6/site-packages Error in file '/root/ztb-trading-rf-api/1-Client(Test)/1-APPlogin(master).robot': Importing test library 'DatabaseLibrary' failed: ModuleNotFoundError: No module named 'DatabaseLibrary' Traceback (most recent call last): None PYTHONPATH: /usr/local/python3/lib/python36.zip /usr/local/python3/lib/python3.6 /usr/local/python3/lib/python3.6/lib-dynload /usr/local/python3/lib/python3.6/site-packages