Browse Source

2021.12.01

pull/3/head
赖勇兰 4 years ago
parent
commit
d3dc7bc0b2
47 changed files with 5080 additions and 0 deletions
  1. 0
      0-Database.robot
  2. 0
      1-Client(Test)/1-APPlogin(Test).robot
  3. 64
      1-Client(Test)/1-APPlogin(master).robot
  4. 0
      1-Client(Test)/2.1-CreateRegularorder.robot
  5. 0
      1-Client(Test)/2.2createActiveorder-1.robot
  6. 0
      1-Client(Test)/2.3createActiveorder-2.robot
  7. 0
      1-Client(Test)/3-Withdrawal_application.robot
  8. 0
      1-Client(Test)/3.1-Automatic withdrawal.robot
  9. 0
      1-Client(Test)/4-Real name authentication.robot
  10. 0
      1-Client(Test)/5-Add_bank_card.robot
  11. 0
      1-Client(Test)/6-Enterprise_certification.robot
  12. 0
      1-Client(Test)/7-Consignment_order.robot
  13. 0
      1-Client(Test)/__init__.robot
  14. 28
      1-Client(Test)/factory.robot
  15. 2192
      1-Client(Test)/log.html
  16. 335
      1-Client(Test)/output.xml
  17. 2461
      1-Client(Test)/report.html
  18. 0
      2-Background_system(Test)/1-WebLogin/weblogin.robot
  19. 0
      2-Background_system(Test)/1.1-New_PaperMill/New_paper_mill.robot
  20. 0
      2-Background_system(Test)/1.2-enterprise_management/__init__.robot
  21. 0
      2-Background_system(Test)/1.2-enterprise_management/__init__.txt
  22. 0
      2-Background_system(Test)/1.2-enterprise_management/enterprise-management.robot
  23. 0
      2-Background_system(Test)/1.3-operation management/contract.robot
  24. 0
      2-Background_system(Test)/1.4-Consignment activities/Consignment_activities.robot
  25. 0
      2-Background_system(Test)/2.1-Consignment management/1-appointment.robot
  26. 0
      2-Background_system(Test)/2.1-Consignment management/2.1-RegularUpload-weightnote.robot
  27. 0
      2-Background_system(Test)/2.1-Consignment management/2.2-RegularUpload-weightnote-1.robot
  28. 0
      2-Background_system(Test)/2.1-Consignment management/2.3-ActiveUpload-deliverynote.robot
  29. 0
      2-Background_system(Test)/2.1-Consignment management/3.1-Operation_audit.robot
  30. 0
      2-Background_system(Test)/2.1-Consignment management/3.2-Operation_audit.robot
  31. 0
      2-Background_system(Test)/2.1-Consignment management/3.3-Operation_audit.robot
  32. 0
      2-Background_system(Test)/3-Withdrawal_application/4-Financial_audit.robot
  33. 0
      2-Background_system(Test)/3-Withdrawal_application/5-Sales_receivables.robot
  34. 0
      2-Background_system(Test)/3-Withdrawal_application/Withdrawal application/1-Automatic_receipt.robot
  35. 0
      2-Background_system(Test)/3-Withdrawal_application/Withdrawal application/2-Manual_receipt.robot
  36. 0
      2-Background_system(Test)/4-Consignment_management/2.3-ActiveUpload-weightnote.robot
  37. 0
      2-Background_system(Test)/4-Consignment_management/3.3--Operation_audit.robot
  38. 0
      2-Background_system(Test)/4-Consignment_management/4.3-Financial_audit.robot
  39. 0
      2-Background_system(Test)/4-Consignment_management/5.3-sales_receivable.robot
  40. 0
      2-Background_system(Test)/4-Consignment_management/__init__.robot
  41. 0
      2-Background_system(Test)/5-Data comparison/5-Consignment_order.robot
  42. 0
      2-Background_system(Test)/5-Data comparison/__init__.txt
  43. 0
      __init__.robot
  44. 0
      log.html
  45. 0
      output.xml
  46. 0
      report.html
  47. 0
      样例/001.robot

0
0-Database.robot

0
1-Client(Test)/1-APPlogin(Test).robot

64
1-Client(Test)/1-APPlogin(master).robot

@ -0,0 +1,64 @@
*** Settings ***
Suite Setup
Library RequestsLibrary
Library Collections
Library urllib3
Library DatabaseLibrary
*** Variables ***
${header} {'content-type':'application/json','X-APP-ID':'470236309865238528'}
${url} http://api-client-ztb.qniao.cn
*** Test Cases ***
Get_verification-code
#获取验证码
Disable Warnings
${headers} Create Dictionary content-type=application/json X-APP-ID=470236309865238528
Create Session ZTBT https://api-client-uec.qniao.cn ${headers}
${value} Set Variable {"verifiableAccount":"13168550964","verifiableAccountType":1,"purpose":1}
${reps} Post On Session ZTBT uec/get/auth-captcha ${value.encode('utf-8')}
log ${reps.json()}
sleep 5
Connect to database
#正式环境数据库获取验证码
Connect To Database Using Custom Params pymysql database='user_enterprise_center', host='rm-wz9it4fs5tk7n4tm1zo.mysql.rds.aliyuncs.com', user='uec_root', password='@qniaouecroot88', port=3306 #连接uec数据库
${Verification Code1} Query SELECT code FROM user_enterprise_center.qn_captcha WHERE verifiable_account LIKE '%13168550964%' ORDER BY id DESC LIMIT 0,1
${text_code} Set Variable ${Verification Code1[0][0]}
Set Global Variable ${text_code}
Disconnect From Database
userlogin
[Setup]
#验证码登录
Create Session ZTBT https://api-client-uec.qniao.cn ${header}
#${data} Create Dictionary account=13168550964 captcha=${text_code} accountType=2
${data} Set Variable {"accountType":2,"password":null,"account":"13168550964","captcha":"${text_code}"}
${respones} POST On Session ZTBT uec/authorize/by-captcha ${data.encode('utf-8')}
log ${respones.status_code}
log ${respones.json()}
${token} Get From Dictionary ${respones.json()["data"]} token
#log ${respones.json()["data"]["token"]}
Set Global Variable ${token}
[Teardown]
login-token
#${header} Create Dictionary content-type=application/json X-APP-ID=470236309865238528
Create Session ZTBT ${url} ${header}
${token1} Create Dictionary loginToken=${token}
${reps} Post On Session ZTBT recycle-user-center/authorize/get/product-line-token/by/login-token json=${token1}
${gettoken} Get From Dictionary ${reps.json()["data"]} token #获取token
${userId} Get From Dictionary ${reps.json()["data"]} userId #获取用户id
log ${reps.json()["data"]["token"]}
Set Global Variable ${gettoken}
Set Global Variable ${userId}
getuserinfo
#获取用户信息
${header} Create Dictionary content-type=application/json X-APP-ID=470236309865238528 Authorization=${gettoken}
Create Session baseinfo ${url} ${header}
${reps} Get On Session baseinfo recycle-service/user/get/base-info
${realName} Get From Dictionary ${reps.json()["data"]} realName #获取实名
${userId} Get From Dictionary ${reps.json()["data"]} userId #获取用户id
Set Global Variable ${realName}
Set Global Variable ${userId}

0
1-Client(Test)/2.1-CreateRegularorder.robot

0
1-Client(Test)/2.2createActiveorder-1.robot

0
1-Client(Test)/2.3createActiveorder-2.robot

0
1-Client(Test)/3-Withdrawal_application.robot

0
1-Client(Test)/3.1-Automatic withdrawal.robot

0
1-Client(Test)/4-Real name authentication.robot

0
1-Client(Test)/5-Add_bank_card.robot

0
1-Client(Test)/6-Enterprise_certification.robot

0
1-Client(Test)/7-Consignment_order.robot

0
1-Client(Test)/__init__.robot

28
1-Client(Test)/factory.robot

@ -0,0 +1,28 @@
*** Settings ***
Library RequestsLibrary
Library Collections
*** Variables ***
${header} {'Content-Type': 'application/json','X-APP-ID':'503258978847953924'}
*** Test Cases ***
login
${header} Create Dictionary Content-Type=application/json X-APP-ID=503258978847953924
Create Session ZTBF http://api-client-uec-test.qniao.cn ${header}
${data} Create Dictionary account=13517986787 captcha=888888 accountType=2
log ${data}
#${data} Set Variable {"account":"13517986787","accountType":2,"captcha":"888888","signType":1,"sign":"c2d5ef09b96575e04503461af4bc7044","signStr":"{\"account\":\"13517986787\",\"accountType\":2,\"captcha\":\"888888\",\"signType\":1}"}
${respones} POST On Session ZTBF /uec/authorize/by-captcha json=${data}
${gettoken} Get From Dictionary ${respones.json()["data"]} token
Set Global Variable ${gettoken}
login-token
${header} Create Dictionary Content-Type=application/json;charset=UTF-8 X-APP-ID=503258978847953924 Authorization=QNT ${gettoken}
Create Session ZTB http://api-client-ztb-test.qniao.cn ${header}
${data} Set Variable {"loginToken":"${gettoken}"}
${respones} POST On Session ZTB recycle-user-center/authorize/get/product-line-token/by/login-token ${data}
员工管理
${header} Create Dictionary X-APP-ID=503258978847953924 X-FACTORY-ID=615992051053498368 Authorization=QNT ${gettoken}
Create Session ZTBF http://api-client-ztb-test.qniao.cn ${header}
${reps} Get On Session ZTBF recycle-user-center/get/self-department-role-list

2192
1-Client(Test)/log.html
File diff suppressed because it is too large
View File

335
1-Client(Test)/output.xml

@ -0,0 +1,335 @@
<?xml version="1.0" encoding="UTF-8"?>
<robot rpa="false" generated="20211119 10:45:59.419" schemaversion="2" generator="Robot 4.1.2 (Python 2.7.5 on linux2)">
<suite source="/root/ztb-trading-rf-api/ztb-trading-rf-api/1-Client(Test)/2.2createActiveorder-1.robot" id="s1" name="2.2createActiveorder-1">
<test id="s1-t1" name="proxy-sell-activity_list">
<kw name="Create Session" library="RequestsLibrary">
<arg>ZTBT</arg>
<arg>${url}</arg>
<arg>${headers}</arg>
<doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20211119 10:45:59.547" level="FAIL">Variable '${headers}' not found.</msg>
<status status="FAIL" endtime="20211119 10:45:59.547" starttime="20211119 10:45:59.544"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${repsponse}</var>
<arg>ZTBT</arg>
<arg>recycle-service/proxy-sell-activity/list</arg>
<arg>params=pageNum=1&amp;pageSize=15</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.548" starttime="20211119 10:45:59.548"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${records}</var>
<arg>${repsponse.json()["data"]}</arg>
<arg>records</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.549" starttime="20211119 10:45:59.548"/>
</kw>
<for flavor="IN">
<var>${item}</var>
<value>@{records}</value>
<iter>
<var name="${item}">${item}</var>
<kw name="Get From Dictionary" library="Collections">
<var>${activityName}</var>
<arg>${item}</arg>
<arg>activityName</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.549" starttime="20211119 10:45:59.549"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${paperCategoryList}</var>
<arg>${item}</arg>
<arg>paperCategoryList</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.550" starttime="20211119 10:45:59.550"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${paperMillId}</var>
<arg>${item}</arg>
<arg>paperMillId</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.550" starttime="20211119 10:45:59.550"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${activityId}</var>
<arg>${item}</arg>
<arg>activityId</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.551" starttime="20211119 10:45:59.550"/>
</kw>
<kw name="Exit For Loop If" library="BuiltIn">
<arg>'${activityName}'=='无账期活动一次'</arg>
<doc>Stops executing the enclosing for loop if the ``condition`` is true.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.551" starttime="20211119 10:45:59.551"/>
</kw>
<status status="NOT RUN" endtime="20211119 10:45:59.551" starttime="20211119 10:45:59.549"/>
</iter>
<status status="NOT RUN" endtime="20211119 10:45:59.551" starttime="20211119 10:45:59.549"/>
</for>
<kw name="Evaluate" library="BuiltIn">
<var>${Category_value}</var>
<arg>random.choice(${paperCategoryList})</arg>
<arg>random</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.552" starttime="20211119 10:45:59.551"/>
</kw>
<kw name="Log To Console" library="BuiltIn">
<arg>\nvalue: ${Category_value}</arg>
<doc>Logs the given message to the console.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.552" starttime="20211119 10:45:59.552"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${categoryId}</var>
<arg>${Category_value}</arg>
<arg>categoryId</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.552" starttime="20211119 10:45:59.552"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${categoryName}</var>
<arg>${Category_value}</arg>
<arg>categoryName</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.553" starttime="20211119 10:45:59.553"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${unitPrice}</var>
<arg>${Category_value}</arg>
<arg>unitPrice</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.553" starttime="20211119 10:45:59.553"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${paperMillId}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.554" starttime="20211119 10:45:59.554"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${activityId}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.554" starttime="20211119 10:45:59.554"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${categoryId}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.554" starttime="20211119 10:45:59.554"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${categoryName}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.555" starttime="20211119 10:45:59.555"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${unitPrice}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.555" starttime="20211119 10:45:59.555"/>
</kw>
<status status="FAIL" endtime="20211119 10:45:59.555" starttime="20211119 10:45:59.543">Variable '${headers}' not found.</status>
</test>
<test id="s1-t2" name="get-carinfo">
<kw name="Create Session" library="RequestsLibrary">
<arg>get-carinfo</arg>
<arg>${url}</arg>
<arg>${headers}</arg>
<doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20211119 10:45:59.558" level="FAIL">Variable '${headers}' not found.</msg>
<status status="FAIL" endtime="20211119 10:45:59.558" starttime="20211119 10:45:59.556"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>get-carinfo</arg>
<arg>recycle-service/proxy-sell/get/his-car-info</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.559" starttime="20211119 10:45:59.559"/>
</kw>
<kw name="Log" library="BuiltIn">
<arg>${reps.json()}</arg>
<doc>Logs the given message with the given level.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.559" starttime="20211119 10:45:59.559"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${carNumber}</var>
<arg>${reps.json()["data"]}</arg>
<arg>records</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.559" starttime="20211119 10:45:59.559"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${plateNumber_value}</var>
<arg>random.sample(${carNumber},1)</arg>
<arg>random</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.559" starttime="20211119 10:45:59.559"/>
</kw>
<kw name="Log To Console" library="BuiltIn">
<arg>\nvalue:${plateNumber_value}</arg>
<doc>Logs the given message to the console.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.560" starttime="20211119 10:45:59.560"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${plateNumber1}</var>
<arg>${plateNumber_value[0]}</arg>
<arg>plateNumber</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.561" starttime="20211119 10:45:59.560"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${plateNumber1}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.561" starttime="20211119 10:45:59.561"/>
</kw>
<status status="FAIL" endtime="20211119 10:45:59.562" starttime="20211119 10:45:59.556">Variable '${headers}' not found.</status>
</test>
<test id="s1-t3" name="get_paper-mill-paper-category-price-details">
<kw name="Create Session" library="RequestsLibrary">
<arg>ZTBT</arg>
<arg>${url}</arg>
<arg>${headers}</arg>
<doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20211119 10:45:59.566" level="FAIL">Variable '${headers}' not found.</msg>
<status status="FAIL" endtime="20211119 10:45:59.566" starttime="20211119 10:45:59.564"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>ZTBT</arg>
<arg>recycle-service/get/paper-mill-paper-category-price-details/${paperMillId}</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.566" starttime="20211119 10:45:59.566"/>
</kw>
<kw name="Log" library="BuiltIn">
<arg>${reps.json()}</arg>
<doc>Logs the given message with the given level.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.566" starttime="20211119 10:45:59.566"/>
</kw>
<status status="FAIL" endtime="20211119 10:45:59.567" starttime="20211119 10:45:59.563">Variable '${headers}' not found.</status>
</test>
<test id="s1-t4" name="get_relation">
<kw name="Create Session" library="RequestsLibrary">
<arg>ZTBT</arg>
<arg>${url}</arg>
<arg>${headers}</arg>
<doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20211119 10:45:59.570" level="FAIL">Variable '${headers}' not found.</msg>
<status status="FAIL" endtime="20211119 10:45:59.570" starttime="20211119 10:45:59.568"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>ZTBT</arg>
<arg>recycle-service/proxy-sell/get/relation</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.571" starttime="20211119 10:45:59.571"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${bizUserId}</var>
<arg>${reps.json()["data"]}</arg>
<arg>bizUserId</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.571" starttime="20211119 10:45:59.571"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${cusormerId}</var>
<arg>${reps.json()["data"]}</arg>
<arg>cusormerId</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.571" starttime="20211119 10:45:59.571"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${customerName}</var>
<arg>${reps.json()["data"]}</arg>
<arg>customerName</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.572" starttime="20211119 10:45:59.571"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${bizUserId}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.572" starttime="20211119 10:45:59.572"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${cusormerId}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.572" starttime="20211119 10:45:59.572"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${customerName}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.572" starttime="20211119 10:45:59.572"/>
</kw>
<status status="FAIL" endtime="20211119 10:45:59.573" starttime="20211119 10:45:59.567">Variable '${headers}' not found.</status>
</test>
<test id="s1-t5" name="create_order">
<kw name="Create Session" library="RequestsLibrary">
<arg>ZTBT</arg>
<arg>${url}</arg>
<arg>${headers}</arg>
<doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20211119 10:45:59.576" level="FAIL">Variable '${headers}' not found.</msg>
<status status="FAIL" endtime="20211119 10:45:59.576" starttime="20211119 10:45:59.574"/>
</kw>
<kw name="Get Current Date" library="DateTime">
<var>${datatime}</var>
<arg>result_format=%Y-%m-%d</arg>
<doc>Returns current local or UTC time with an optional increment.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.576" starttime="20211119 10:45:59.576"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${order_data}</var>
<arg>{ \ \ \ \ "paperCategoryId":"${categoryId}", \ \ \ \ "unitPrice":"${unitPrice}", \ \ \ \ "totalEstimatedWeight":30000, \ \ \ \ "activityId":"${activityId}", \ \ \ \ "customerName":"${customerName}", \ \ \ \ "deliveryTime":"${datatime}", \ \ \ \ "carInfos":[ \ \ \ \ \ \ \ \ { \ \ \ \ \ \ \ \ \ \ \ \ "plateNumber":"${plateNumber1}" \ \ \ \ \ \ \ \ } \ \ \ \ ] }</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.577" starttime="20211119 10:45:59.577"/>
</kw>
<kw name="POST On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>ZTBT</arg>
<arg>recycle-service/proxy-sell/create/order</arg>
<arg>${order_data.encode('utf-8')}</arg>
<doc>Sends a POST request on a previously created HTTP Session.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.577" starttime="20211119 10:45:59.577"/>
</kw>
<kw name="Log" library="BuiltIn">
<arg>${reps.json()}</arg>
<doc>Logs the given message with the given level.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.577" starttime="20211119 10:45:59.577"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${orderId}</var>
<arg>${reps.json()["data"]}</arg>
<arg>orderId</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.578" starttime="20211119 10:45:59.577"/>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<arg>${reps.json()["message"]}</arg>
<arg>successful</arg>
<doc>Fails if objects are unequal after converting them to strings.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.578" starttime="20211119 10:45:59.578"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${orderId}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.578" starttime="20211119 10:45:59.578"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${datatime}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<status status="NOT RUN" endtime="20211119 10:45:59.578" starttime="20211119 10:45:59.578"/>
</kw>
<status status="FAIL" endtime="20211119 10:45:59.579" starttime="20211119 10:45:59.573">Variable '${headers}' not found.</status>
</test>
<status status="FAIL" endtime="20211119 10:45:59.580" starttime="20211119 10:45:59.420"/>
</suite>
<statistics>
<total>
<stat fail="5" skip="0" pass="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat fail="5" skip="0" id="s1" name="2.2createActiveorder-1" pass="0">2.2createActiveorder-1</stat>
</suite>
</statistics>
<errors>
<msg timestamp="20211119 10:45:59.541" level="ERROR">Error in file '/root/ztb-trading-rf-api/ztb-trading-rf-api/1-Client(Test)/2.2createActiveorder-1.robot' on line 8: Setting variable '${headers}' failed: Variable '${gettoken}' not found.</msg>
</errors>
</robot>

2461
1-Client(Test)/report.html
File diff suppressed because it is too large
View File

0
2-Background_system(Test)/1-WebLogin/weblogin.robot

0
2-Background_system(Test)/1.1-New_PaperMill/New_paper_mill.robot

0
2-Background_system(Test)/1.2-enterprise_management/__init__.robot

0
2-Background_system(Test)/1.2-enterprise_management/__init__.txt

0
2-Background_system(Test)/1.2-enterprise_management/enterprise-management.robot

0
2-Background_system(Test)/1.3-operation management/contract.robot

0
2-Background_system(Test)/1.4-Consignment activities/Consignment_activities.robot

0
2-Background_system(Test)/2.1-Consignment management/1-appointment.robot

0
2-Background_system(Test)/2.1-Consignment management/2.1-RegularUpload-weightnote.robot

0
2-Background_system(Test)/2.1-Consignment management/2.2-RegularUpload-weightnote-1.robot

0
2-Background_system(Test)/2.1-Consignment management/2.3-ActiveUpload-deliverynote.robot

0
2-Background_system(Test)/2.1-Consignment management/3.1-Operation_audit.robot

0
2-Background_system(Test)/2.1-Consignment management/3.2-Operation_audit.robot

0
2-Background_system(Test)/2.1-Consignment management/3.3-Operation_audit.robot

0
2-Background_system(Test)/3-Withdrawal_application/4-Financial_audit.robot

0
2-Background_system(Test)/3-Withdrawal_application/5-Sales_receivables.robot

0
2-Background_system(Test)/3-Withdrawal_application/Withdrawal application/1-Automatic_receipt.robot

0
2-Background_system(Test)/3-Withdrawal_application/Withdrawal application/2-Manual_receipt.robot

0
2-Background_system(Test)/4-Consignment_management/2.3-ActiveUpload-weightnote.robot

0
2-Background_system(Test)/4-Consignment_management/3.3--Operation_audit.robot

0
2-Background_system(Test)/4-Consignment_management/4.3-Financial_audit.robot

0
2-Background_system(Test)/4-Consignment_management/5.3-sales_receivable.robot

0
2-Background_system(Test)/4-Consignment_management/__init__.robot

0
2-Background_system(Test)/5-Data comparison/5-Consignment_order.robot

0
2-Background_system(Test)/5-Data comparison/__init__.txt

0
__init__.robot

0
log.html

0
output.xml

0
report.html

0
样例/001.robot

Loading…
Cancel
Save