纸通宝交易版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

465 lines
33 KiB

<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 3.1.2 (Python 3.6.6 on win32)" generated="20210820 15:53:41.975" rpa="false">
<suite id="s1" name="1-APPlogin &amp; 1-WebLogin">
<suite id="s1-s1" name="1-APPlogin" source="E:\lyl\Order\Order\1-Client\1-APPlogin.robot">
<test id="s1-s1-t1" name="userlogin">
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>ZTBT</arg>
<arg>http://api-client-uec-test.qniao.cn</arg>
<arg>${header}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.117" level="INFO">Creating Session using : alias=ZTBT, url=http://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 </msg>
<status status="PASS" starttime="20210820 15:53:42.117" endtime="20210820 15:53:42.118"></status>
</kw>
<kw name="Create Dictionary" library="BuiltIn">
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
<arguments>
<arg>account=15014242835</arg>
<arg>captcha=888888</arg>
<arg>accountType=2</arg>
</arguments>
<assign>
<var>${data}</var>
</assign>
<msg timestamp="20210820 15:53:42.119" level="INFO">${data} = {'account': '15014242835', 'captcha': '888888', 'accountType': '2'}</msg>
<status status="PASS" starttime="20210820 15:53:42.118" endtime="20210820 15:53:42.119"></status>
</kw>
<kw name="Post On Session" library="RequestsLibrary">
<doc>Sends a POST request on a previously created HTTP Session.</doc>
<arguments>
<arg>ZTBT</arg>
<arg>/uec/authorize/by-captcha</arg>
<arg>json=${data}</arg>
</arguments>
<assign>
<var>${respones}</var>
</assign>
<msg timestamp="20210820 15:53:42.212" level="INFO">POST Request : url=http://api-client-uec-test.qniao.cn/uec/authorize/by-captcha
path_url=/uec/authorize/by-captcha
headers={'User-Agent': 'python-requests/2.24.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'content-type': 'application/json', 'X-APP-ID': '470236309865238528', 'Content-Length': '67'}
body=b'{"account": "15014242835", "captcha": "888888", "accountType": "2"}'
</msg>
<msg timestamp="20210820 15:53:42.213" level="INFO">POST Response : url=http://api-client-uec-test.qniao.cn/uec/authorize/by-captcha
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 20 Aug 2021 07:53:42 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/89Ft7DCUbCHSVTrMJgH552nvTQBP5fSS/wGhBgupf5aKZt8T8mZbZ33PYMwf4dvKYDstQQ==","userId":"625059637024133120"}}
</msg>
<msg timestamp="20210820 15:53:42.213" level="INFO">${respones} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20210820 15:53:42.120" endtime="20210820 15:53:42.214"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${respones.status_code}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.215" level="INFO">200</msg>
<status status="PASS" starttime="20210820 15:53:42.215" endtime="20210820 15:53:42.215"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${respones.json()}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.217" level="INFO">{'code': 0, 'message': 'successful', 'data': {'token': 'd6SX3ESr8Jb2tYq/89Ft7DCUbCHSVTrMJgH552nvTQBP5fSS/wGhBgupf5aKZt8T8mZbZ33PYMwf4dvKYDstQQ==', 'userId': '625059637024133120'}}</msg>
<status status="PASS" starttime="20210820 15:53:42.216" endtime="20210820 15:53:42.217"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${respones.json()["data"]}</arg>
<arg>token</arg>
</arguments>
<assign>
<var>${token}</var>
</assign>
<msg timestamp="20210820 15:53:42.219" level="INFO">${token} = d6SX3ESr8Jb2tYq/89Ft7DCUbCHSVTrMJgH552nvTQBP5fSS/wGhBgupf5aKZt8T8mZbZ33PYMwf4dvKYDstQQ==</msg>
<status status="PASS" starttime="20210820 15:53:42.218" endtime="20210820 15:53:42.219"></status>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<doc>Makes a variable available globally in all tests and suites.</doc>
<arguments>
<arg>${token}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.220" level="INFO">${token} = d6SX3ESr8Jb2tYq/89Ft7DCUbCHSVTrMJgH552nvTQBP5fSS/wGhBgupf5aKZt8T8mZbZ33PYMwf4dvKYDstQQ==</msg>
<status status="PASS" starttime="20210820 15:53:42.220" endtime="20210820 15:53:42.221"></status>
</kw>
<status status="PASS" starttime="20210820 15:53:42.116" endtime="20210820 15:53:42.221" critical="yes"></status>
</test>
<test id="s1-s1-t2" name="login-token">
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>ZTBT</arg>
<arg>${url}</arg>
<arg>${header}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.224" level="INFO">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 </msg>
<status status="PASS" starttime="20210820 15:53:42.224" endtime="20210820 15:53:42.224"></status>
</kw>
<kw name="Create Dictionary" library="BuiltIn">
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
<arguments>
<arg>loginToken=${token}</arg>
</arguments>
<assign>
<var>${token1}</var>
</assign>
<msg timestamp="20210820 15:53:42.224" level="INFO">${token1} = {'loginToken': 'd6SX3ESr8Jb2tYq/89Ft7DCUbCHSVTrMJgH552nvTQBP5fSS/wGhBgupf5aKZt8T8mZbZ33PYMwf4dvKYDstQQ=='}</msg>
<status status="PASS" starttime="20210820 15:53:42.224" endtime="20210820 15:53:42.224"></status>
</kw>
<kw name="Post On Session" library="RequestsLibrary">
<doc>Sends a POST request on a previously created HTTP Session.</doc>
<arguments>
<arg>ZTBT</arg>
<arg>recycle-user-center/authorize/get/product-line-token/by/login-token</arg>
<arg>json=${token1}</arg>
</arguments>
<assign>
<var>${reps}</var>
</assign>
<msg timestamp="20210820 15:53:42.389" level="INFO">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.24.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'content-type': 'application/json', 'X-APP-ID': '470236309865238528', 'Content-Length': '106'}
body=b'{"loginToken": "d6SX3ESr8Jb2tYq/89Ft7DCUbCHSVTrMJgH552nvTQBP5fSS/wGhBgupf5aKZt8T8mZbZ33PYMwf4dvKYDstQQ=="}'
</msg>
<msg timestamp="20210820 15:53:42.389" level="INFO">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': 'Fri, 20 Aug 2021 07:53:42 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":0,"message":"successful","data":{"token":"d6SX3ESr8Jb2tYq/89Ft7DCUbCHSVTrMJgH552nvTQBP5fSS/wGhBgupf5aKZt8T8mZbZ33PYMwf4dvKYDstQQ==","userToken":null,"userId":"625059637024133120"}}
</msg>
<msg timestamp="20210820 15:53:42.389" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20210820 15:53:42.225" endtime="20210820 15:53:42.389"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${reps.json()["data"]}</arg>
<arg>token</arg>
</arguments>
<assign>
<var>${gettoken}</var>
</assign>
<msg timestamp="20210820 15:53:42.391" level="INFO">${gettoken} = d6SX3ESr8Jb2tYq/89Ft7DCUbCHSVTrMJgH552nvTQBP5fSS/wGhBgupf5aKZt8T8mZbZ33PYMwf4dvKYDstQQ==</msg>
<status status="PASS" starttime="20210820 15:53:42.390" endtime="20210820 15:53:42.392"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${reps.json()["data"]}</arg>
<arg>userId</arg>
</arguments>
<assign>
<var>${userId}</var>
</assign>
<msg timestamp="20210820 15:53:42.393" level="INFO">${userId} = 625059637024133120</msg>
<status status="PASS" starttime="20210820 15:53:42.392" endtime="20210820 15:53:42.393"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${reps.json()["data"]["token"]}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.395" level="INFO">d6SX3ESr8Jb2tYq/89Ft7DCUbCHSVTrMJgH552nvTQBP5fSS/wGhBgupf5aKZt8T8mZbZ33PYMwf4dvKYDstQQ==</msg>
<status status="PASS" starttime="20210820 15:53:42.394" endtime="20210820 15:53:42.396"></status>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<doc>Makes a variable available globally in all tests and suites.</doc>
<arguments>
<arg>${gettoken}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.397" level="INFO">${gettoken} = d6SX3ESr8Jb2tYq/89Ft7DCUbCHSVTrMJgH552nvTQBP5fSS/wGhBgupf5aKZt8T8mZbZ33PYMwf4dvKYDstQQ==</msg>
<status status="PASS" starttime="20210820 15:53:42.397" endtime="20210820 15:53:42.397"></status>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<doc>Makes a variable available globally in all tests and suites.</doc>
<arguments>
<arg>${userId}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.399" level="INFO">${userId} = 625059637024133120</msg>
<status status="PASS" starttime="20210820 15:53:42.398" endtime="20210820 15:53:42.399"></status>
</kw>
<status status="PASS" starttime="20210820 15:53:42.224" endtime="20210820 15:53:42.400" critical="yes"></status>
</test>
<test id="s1-s1-t3" name="getuserinfo">
<kw name="Create Dictionary" library="BuiltIn">
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
<arguments>
<arg>content-type=application/json</arg>
<arg>X-APP-ID=470236309865238528</arg>
<arg>Authorization=${gettoken}</arg>
</arguments>
<assign>
<var>${header}</var>
</assign>
<msg timestamp="20210820 15:53:42.403" level="INFO">${header} = {'content-type': 'application/json', 'X-APP-ID': '470236309865238528', 'Authorization': 'd6SX3ESr8Jb2tYq/89Ft7DCUbCHSVTrMJgH552nvTQBP5fSS/wGhBgupf5aKZt8T8mZbZ33PYMwf4dvKYDstQQ=='}</msg>
<status status="PASS" starttime="20210820 15:53:42.402" endtime="20210820 15:53:42.403"></status>
</kw>
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>baseinfo</arg>
<arg>${url}</arg>
<arg>${header}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.403" level="INFO">Creating Session using : alias=baseinfo, url=http://api-client-ztb-test.qniao.cn, headers={'content-type': 'application/json', 'X-APP-ID': '470236309865238528', 'Authorization': 'd6SX3ESr8Jb2tYq/89Ft7DCUbCHSVTrMJgH552nvTQBP5fSS/wGhBgupf5aKZt8T8mZbZ33PYMwf4dvKYDstQQ=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<status status="PASS" starttime="20210820 15:53:42.403" endtime="20210820 15:53:42.403"></status>
</kw>
<kw name="Get On Session" library="RequestsLibrary">
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<arguments>
<arg>baseinfo</arg>
<arg>recycle-service/user/get/base-info</arg>
</arguments>
<assign>
<var>${reps}</var>
</assign>
<msg timestamp="20210820 15:53:42.487" level="INFO">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.24.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'content-type': 'application/json', 'X-APP-ID': '470236309865238528', 'Authorization': 'd6SX3ESr8Jb2tYq/89Ft7DCUbCHSVTrMJgH552nvTQBP5fSS/wGhBgupf5aKZt8T8mZbZ33PYMwf4dvKYDstQQ=='}
body=None
</msg>
<msg timestamp="20210820 15:53:42.487" level="INFO">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': 'Fri, 20 Aug 2021 07:53:42 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":0,"message":"successful","data":{"userId":"625059637024133120","realName":"赖勇兰","mobile":"15014242835","avatarUrl":"http://medou.oss-cn-shenzhen.aliyuncs.com/saas/20200623160820.png","isAuth":1,"isVIP":0,"isSetPassword":0,"hasStore":0,"balance":211326.3700,"memberExpiredAt":null,"nickname":"KERN8658","memberRewardPoint":100,"isAccountancyUser":0,"hasShowedLoginTag":false,"isSetProxyTag":false,"identityTag":"打包厂","locateCityTag":{"provinceId":140000,"provinceName":"山西省","cityId":140200,"cityName":"大同市","districtId":null,"districtName":null},"experienceTag":"5-10年","numberOfPurchaseCategoriesTag":"0个","numberOfProxyCategoriesTag":"0个","packageFactoryName":"21","packageFactoryArea":27000,"numberOfEmployee":2600,"numberOfPackageMachine":262,"businessLicenseUrl":"https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/18130734326537453.jpg","shipmentPerMonth":"1000-2000吨","storeOverview":{"storeId":null,"margin":null,"todayMargin":null,"todayMarginNum":null,"hasStore":0,"status":null},"accountBalance":{"accountMoney":211326.3700,"frozenMoney":28788.7900},"bizUserId":"564535103942955008","bizUserName":"郭腾彬","status":0,"bizUserCode":"8888","hasShipmentsInfo":1,"isEnterpriseAuth":1}}
</msg>
<msg timestamp="20210820 15:53:42.488" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20210820 15:53:42.403" endtime="20210820 15:53:42.488"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${reps.json()["data"]}</arg>
<arg>realName</arg>
</arguments>
<assign>
<var>${realName}</var>
</assign>
<msg timestamp="20210820 15:53:42.490" level="INFO">${realName} = 赖勇兰</msg>
<status status="PASS" starttime="20210820 15:53:42.489" endtime="20210820 15:53:42.490"></status>
</kw>
<kw name="Get From Dictionary" library="Collections">
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<arguments>
<arg>${reps.json()["data"]}</arg>
<arg>userId</arg>
</arguments>
<assign>
<var>${userId}</var>
</assign>
<msg timestamp="20210820 15:53:42.492" level="INFO">${userId} = 625059637024133120</msg>
<status status="PASS" starttime="20210820 15:53:42.491" endtime="20210820 15:53:42.492"></status>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<doc>Makes a variable available globally in all tests and suites.</doc>
<arguments>
<arg>${realName}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.493" level="INFO">${realName} = 赖勇兰</msg>
<status status="PASS" starttime="20210820 15:53:42.493" endtime="20210820 15:53:42.494"></status>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<doc>Makes a variable available globally in all tests and suites.</doc>
<arguments>
<arg>${userId}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.495" level="INFO">${userId} = 625059637024133120</msg>
<status status="PASS" starttime="20210820 15:53:42.494" endtime="20210820 15:53:42.495"></status>
</kw>
<status status="PASS" starttime="20210820 15:53:42.402" endtime="20210820 15:53:42.495" critical="yes"></status>
</test>
<status status="PASS" starttime="20210820 15:53:42.003" endtime="20210820 15:53:42.496"></status>
</suite>
<suite id="s1-s2" name="1-WebLogin" source="E:\lyl\Order\Order\2-Background_system\1-WebLogin">
<suite id="s1-s2-s1" name="Weblogin" source="E:\lyl\Order\Order\2-Background_system\1-WebLogin\weblogin.robot">
<test id="s1-s2-s1-t1" name="pwlogin">
<kw name="Create Dictionary" library="BuiltIn">
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
<arguments>
<arg>Content-Type=application/x-www-form-urlencoded</arg>
<arg>X-APP-ID=470236309865238555</arg>
</arguments>
<assign>
<var>${header}</var>
</assign>
<msg timestamp="20210820 15:53:42.502" level="INFO">${header} = {'Content-Type': 'application/x-www-form-urlencoded', 'X-APP-ID': '470236309865238555'}</msg>
<status status="PASS" starttime="20210820 15:53:42.502" endtime="20210820 15:53:42.502"></status>
</kw>
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>ZTBT</arg>
<arg>http://api-ops-ztb-test.qniao.cn</arg>
<arg>${header}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.503" level="INFO">Creating Session using : alias=ZTBT, url=http://api-ops-ztb-test.qniao.cn, headers={'Content-Type': 'application/x-www-form-urlencoded', 'X-APP-ID': '470236309865238555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<status status="PASS" starttime="20210820 15:53:42.503" endtime="20210820 15:53:42.503"></status>
</kw>
<kw name="Create Dictionary" library="BuiltIn">
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
<arguments>
<arg>username=laiyonglan@qniao.cn</arg>
<arg>password=qn123456</arg>
</arguments>
<assign>
<var>&amp;{data}</var>
</assign>
<msg timestamp="20210820 15:53:42.504" level="INFO">&amp;{data} = { username=laiyonglan@qniao.cn | password=qn123456 }</msg>
<status status="PASS" starttime="20210820 15:53:42.503" endtime="20210820 15:53:42.504"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${data}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.504" level="INFO">{'username': 'laiyonglan@qniao.cn', 'password': 'qn123456'}</msg>
<status status="PASS" starttime="20210820 15:53:42.504" endtime="20210820 15:53:42.504"></status>
</kw>
<kw name="Post On Session" library="RequestsLibrary">
<doc>Sends a POST request on a previously created HTTP Session.</doc>
<arguments>
<arg>ZTBT</arg>
<arg>recycle-service/admin/login</arg>
<arg>data=${data}</arg>
</arguments>
<assign>
<var>${reps}</var>
</assign>
<msg timestamp="20210820 15:53:42.577" level="INFO">POST Request : url=http://api-ops-ztb-test.qniao.cn/recycle-service/admin/login
path_url=/recycle-service/admin/login
headers={'User-Agent': 'python-requests/2.24.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/x-www-form-urlencoded', 'X-APP-ID': '470236309865238555', 'Content-Length': '48'}
body=username=laiyonglan%40qniao.cn&amp;password=qn123456
</msg>
<msg timestamp="20210820 15:53:42.578" level="INFO">POST Response : url=http://api-ops-ztb-test.qniao.cn/recycle-service/admin/login
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 20 Aug 2021 07:53:42 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Access-Control-Allow-Origin': '*', 'Access-Control-Request-Method': '*', 'Cache-Control': 'no-cache', 'Authorization': 'Token 6b08add42d6bcf73abb935b2adf83525', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'X-Frame-Options': 'DENY'}
body={"code":200,"message":"登陆成功"}
</msg>
<msg timestamp="20210820 15:53:42.578" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20210820 15:53:42.505" endtime="20210820 15:53:42.579"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${reps.json()}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.581" level="INFO">{'code': 200, 'message': '登陆成功'}</msg>
<status status="PASS" starttime="20210820 15:53:42.580" endtime="20210820 15:53:42.581"></status>
</kw>
<kw name="Set Variable" library="BuiltIn">
<doc>Returns the given values which can then be assigned to a variables.</doc>
<arguments>
<arg>Token 6b08add42d6bcf73abb935b2adf83525</arg>
</arguments>
<assign>
<var>${gettoken}</var>
</assign>
<msg timestamp="20210820 15:53:42.582" level="INFO">${gettoken} = Token 6b08add42d6bcf73abb935b2adf83525</msg>
<status status="PASS" starttime="20210820 15:53:42.582" endtime="20210820 15:53:42.583"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${reps.json()["message"]}</arg>
<arg>登陆成功</arg>
</arguments>
<status status="PASS" starttime="20210820 15:53:42.583" endtime="20210820 15:53:42.584"></status>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<doc>Makes a variable available globally in all tests and suites.</doc>
<arguments>
<arg>${gettoken}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.586" level="INFO">${gettoken} = Token 6b08add42d6bcf73abb935b2adf83525</msg>
<status status="PASS" starttime="20210820 15:53:42.585" endtime="20210820 15:53:42.586"></status>
</kw>
<status status="PASS" starttime="20210820 15:53:42.501" endtime="20210820 15:53:42.587" critical="yes"></status>
</test>
<test id="s1-s2-s1-t2" name="login-info">
<kw name="Create Dictionary" library="BuiltIn">
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
<arguments>
<arg>X-APP-ID=470236309865238555</arg>
<arg>Authorization=Token 6b08add42d6bcf73abb935b2adf83525</arg>
</arguments>
<assign>
<var>${header}</var>
</assign>
<msg timestamp="20210820 15:53:42.591" level="INFO">${header} = {'X-APP-ID': '470236309865238555', 'Authorization': 'Token 6b08add42d6bcf73abb935b2adf83525'}</msg>
<status status="PASS" starttime="20210820 15:53:42.591" endtime="20210820 15:53:42.591"></status>
</kw>
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>login-info</arg>
<arg>http://api-ops-ztb-test.qniao.cn</arg>
<arg>${header}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.592" level="INFO">Creating Session using : alias=login-info, url=http://api-ops-ztb-test.qniao.cn, headers={'X-APP-ID': '470236309865238555', 'Authorization': 'Token 6b08add42d6bcf73abb935b2adf83525'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<status status="PASS" starttime="20210820 15:53:42.592" endtime="20210820 15:53:42.593"></status>
</kw>
<kw name="Get On Session" library="RequestsLibrary">
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<arguments>
<arg>login-info</arg>
<arg>recycle-service/admin/employee/get/login-info</arg>
</arguments>
<assign>
<var>${reps_data}</var>
</assign>
<msg timestamp="20210820 15:53:42.678" level="INFO">GET Request : url=http://api-ops-ztb-test.qniao.cn/recycle-service/admin/employee/get/login-info
path_url=/recycle-service/admin/employee/get/login-info
headers={'User-Agent': 'python-requests/2.24.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 6b08add42d6bcf73abb935b2adf83525'}
body=None
</msg>
<msg timestamp="20210820 15:53:42.678" level="INFO">GET Response : url=http://api-ops-ztb-test.qniao.cn/recycle-service/admin/employee/get/login-info
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 20 Aug 2021 07:53:42 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Authorization': '6b08add42d6bcf73abb935b2adf83525', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY'}
body={"code":0,"message":"successful","data":{"adminId":"617003842541850624","name":"赖勇兰","avatar":"https://static-legacy.dingtalk.com/media/lADPBF8a9_2FSfvNAr3NArw_700_701.jpg","position":"测试工程师","positionList":[{"id":"1","name":"管理员"}],"menuList":["/preciousPaperGeneral/paperFctSellOnManage/PaperFctList/CreatePaperPrice","/microSystemManagement/menu","/preciousPaperGeneral/sellOnConsignmentManage/dealManage/TransscationMainBody","/preciousPaperGeneral/sellOnConsignmentManage/invoiceManagement/InvoiceManagementList","/preciousPaperGeneral/packaginStationSAASManage/proxyPaymentOrder/PaymentOrderList","/preciousPaperGeneral/operationManagementBackground/scoreManage/Role/Index","/microSystemManagement/position","/sysManage/listLibraryManage/Index","/preciousPaperGeneral/packaginStationSAASManage/financeManage/MergerPayment","/preciousPaperGeneral/financialManagementBackground/settlementManage/settlementPayment/Index","/preciousPaperGeneral/operationManagementBackground/sysManage/information","/preciousPaperGeneral/companyAndUserManage/companyManage/Index","/preciousPaperGeneral/packaginStationSAASManage/proxyManage","/preciousPaperGeneral/financialManagementBackground/payCenter/memberAccountInfo/memberCcountDetails","/preciousPaperGeneral/packaginStationSAASManage/factoryOrder/ProxyDetails","/preciousPaperGeneral/packaginStationSAASManage/proxyOrderInfo/OrderDetails","/preciousPaperGeneral/sellOnConsignmentManage/operationAudit/operationAuditDetails/standingBook","/preciousPaperGeneral/operationManagementBackground/wastePaperPriceIndex","/preciousPaperGeneral/operationManagementBackground/wastePaperPriceIndex/detail","/preciousPaperGeneral/sellOnConsignmentManage/marketingAudit/awaitDeleveryDetails","/preciousPaperGeneral/packaginStationSAASManage/operationManage/ServiceChargeStandard","/preciousPaperGeneral/operationManagementBackground/wastePaperPriceIndex/DiscountFigure","/preciousPaperGeneral/companyAndUserManage/companyManage","/preciousPaperGeneral/paperFctSellOnManage/PaperFctList/CreatePoint","/preciousPaperGeneral/operationManagementBackground/staffActicities","/preciousPaperGeneral/packaginStationSAASManage/authFactory/ApplyList","/preciousPaperGeneral/sellOnConsignmentManage/financeAudit/finaceAuditList","/preciousPaperGeneral/sellOnConsignmentManage/operationAudit/PaperFctRetMoneyIndex","/preciousPaperGeneral/operationManagementBackground/staffActicities/Index","/preciousPaperGeneral/sellOnConsignmentManage/customerManage/Index","/preciousPaperGeneral/operationManagementBackground/scoreManage/convert/Index","/preciousPaperGeneral/paperFctSellOnManage/PaperFctList/PointList","/preciousPaperGeneral/operationManagementBackground/basicSetting/vipPaid/Index","/preciousPaperGeneral/operationManagementBackground/wastePaperPriceIndex/list","/preciousPaperGeneral/financialManagementBackground/payCenter/payForWater/Index","/preciousPaperGeneral/sellOnConsignmentManage/operationAudit/PaperFctRetMoneyIndex/orderList","/preciousPaperGeneral/packaginStationSAASManage/saasRefund/SaasRefundInfo","/preciousPaperGeneral/packaginStationSAASManage/operationManage/AuthorizationIndex","/preciousPaperGeneral/operationManagementBackground/basicSetting","/preciousPaperGeneral/packaginStationSAASManage/financeManage","/preciousPaperGeneral/sellOnConsignmentManage/operationAudit/operationAuditDetails","/preciousPaperGeneral/sellOnConsignmentManage","/preciousPaperGeneral/operationManagementBackground/contractManege/Index","/preciousPaperGeneral/sellOnConsignmentManage/orderReconciliation/financeAudit/PaperFctRetMoneyIndex","/preciousPaperGeneral/operationManagementBackground/articManage/Index","/preciousPaperGeneral/paperFctSellOnManage/ForwardList/Index","/preciousPaperGeneral/packaginStationSAASManage/saasAccount/SaasAccountList","/preciousPaperGeneral/operationManagementBackground/wastePaperPriceIndex/edit","/microSystemManagement/employee","/preciousPaperGeneral/operationManagementBackground/scoreManage","/preciousPaperGeneral/operationManagementBackground/articManage/Details","/preciousPaperGeneral/operationManagementBackground/basicSetting/wasteType/Index","/preciousPaperGeneral/operationManagementBackground/supplyOrderManage/Index","/preciousPaperGeneral/packaginStationSAASManage/proxyCheckOrder/CheckOrderList","/preciousPaperGeneral/operationManagementBackground/wastePaperPriceIndex/create","/preciousPaperGeneral/paperFctSellOnManage/PaperFctList/Edit","/preciousPaperGeneral/packaginStationSAASManage/operationManage","/preciousPaperGeneral/operationManagementBackground/basicSetting/shop/Index","/preciousPaperGeneral/operationManagementBackground/contractManege","/preciousPaperGeneral/operationManagementBackground/feedbackManage/FeedbackIndex","/preciousPaperGeneral/sellOnConsignmentManage/capitalSource/CapitalSourceIndex","/preciousPaperGeneral/packaginStationSAASManage/factoryProxy/FactoryAgency","/preciousPaperGeneral/companyAndUserManage","/preciousPaperGeneral/operationManagementBackground/acticityRuleSetManage/acticityRuleSet","/preciousPaperGeneral/financialManagementBackground","/preciousPaperGeneral/operationManagementBackground/activityThemeManage/activityThemeManageIndex","/preciousPaperGeneral/operationManagementBackground/vipManage/personageVipManage/Details","/preciousPaperGeneral/paperFctSellOnManage/PaperFctList/PaperFctoryTypeOfferList","/preciousPaperGeneral/paperFctSellOnManage/PaperFctList/PaperType","/preciousPaperGeneral/sellOnConsignmentManage/PaperFctRetMoneyIndex/operationAudit/operationAuditList","/preciousPaperGeneral/sellOnConsignmentManage/operationAudit/operationAuditDetails/financialManagementBackground","/preciousPaperGeneral/paperFctSellOnManage/OrderList/JLIndex","/preciousPaperGeneral/paperFctSellOnManage","/preciousPaperGeneral/companyAndUserManage/packginStationManage/Index","/preciousPaperGeneral/financialManagementBackground/payCenter/memberAccountInfo/Index","/preciousPaperGeneral/operationManagementBackground/basicSetting/automaticallyArrive/Index","/preciousPaperGeneral/operationManagementBackground/basicSetting/orderSincereMoney/Index","/preciousPaperGeneral/packaginStationSAASManage/proxyReturn/ReturnOrderList","/preciousPaperGeneral/operationManagementBackground/feedbackManage","/preciousPaperGeneral/paperFctSellOnManage/PaperFctList/Index","/preciousPaperGeneral/operationManagementBackground","/preciousPaperGeneral/operationManagementBackground/vipManage/personageVipManage/Index","/preciousPaperGeneral/paperFctSellOnManage/OrderList/OrderInfo","/microSystemManagement","/preciousPaperGeneral/paperFctSellOnManage/ForwardList/Details","/preciousPaperGeneral/operationManagementBackground/sysManage/departmentManage","/preciousPaperGeneral/financialManagementBackground/settlementManage/orderReconciliation/Index","/preciousPaperGeneral/operationManagementBackground/basicSetting/wasteTypeOneManage/Index","/preciousPaperGeneral/sellOnConsignmentManage/marketingAudit/inTheSettlementDetails","/preciousPaperGeneral/packaginStationSAASManage/saasOrder/SaasRefundList","/preciousPaperGeneral/sellOnConsignmentManage/standingBookManage/standingBook","/preciousPaperGeneral/paperFctSellOnManage/OrderList/Index","/preciousPaperGeneral/operationManagementBackground/supplyOrderManage","/microSystemManagement/department","/preciousPaperGeneral/sellOnConsignmentManage/marketingAudit/awaitSubscribeDetails","/preciousPaperGeneral/paperFctSellOnManage/PaperFctList/VehicleQueueIndex"]}}
</msg>
<msg timestamp="20210820 15:53:42.678" level="INFO">${reps_data} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20210820 15:53:42.594" endtime="20210820 15:53:42.679"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${reps_data}</arg>
</arguments>
<msg timestamp="20210820 15:53:42.680" level="INFO">&lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20210820 15:53:42.679" endtime="20210820 15:53:42.680"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
<arguments>
<arg>${reps_data.json()["message"]}</arg>
<arg>successful</arg>
</arguments>
<status status="PASS" starttime="20210820 15:53:42.681" endtime="20210820 15:53:42.681"></status>
</kw>
<status status="PASS" starttime="20210820 15:53:42.589" endtime="20210820 15:53:42.682" critical="yes"></status>
</test>
<status status="PASS" starttime="20210820 15:53:42.499" endtime="20210820 15:53:42.684"></status>
</suite>
<status status="PASS" starttime="20210820 15:53:42.497" endtime="20210820 15:53:42.686"></status>
</suite>
<status status="PASS" starttime="20210820 15:53:41.975" endtime="20210820 15:53:42.688"></status>
</suite>
<statistics>
<total>
<stat pass="5" fail="0">Critical Tests</stat>
<stat pass="5" fail="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="5" fail="0" id="s1" name="1-APPlogin &amp; 1-WebLogin">1-APPlogin &amp; 1-WebLogin</stat>
<stat pass="3" fail="0" id="s1-s1" name="1-APPlogin">1-APPlogin &amp; 1-WebLogin.1-APPlogin</stat>
<stat pass="2" fail="0" id="s1-s2" name="1-WebLogin">1-APPlogin &amp; 1-WebLogin.1-WebLogin</stat>
<stat pass="2" fail="0" id="s1-s2-s1" name="Weblogin">1-APPlogin &amp; 1-WebLogin.1-WebLogin.Weblogin</stat>
</suite>
</statistics>
<errors>
</errors>
</robot>