|
|
|
@ -9,7 +9,8 @@ Library String |
|
|
|
AgentOrg |
|
|
|
#创建代理商组织 |
|
|
|
Create Session agent ${ztbscops} ${ztbsc_header} |
|
|
|
${OrgData} Set Variable { \ \ \ \ "fullName":"测试代理商830" } |
|
|
|
${DataTime} Get Current Date result_format=%Y-%m-%d |
|
|
|
${OrgData} Set Variable { \ \ \ \ "fullName":"测试代理商${DataTime}" } |
|
|
|
${reps} POST On Session agent ztb-user-enterprise-service/admin/scrap-paper/agent/create ${OrgData.encode('utf-8')} |
|
|
|
${AgentId} Get From Dictionary ${reps.json()['data']} id #代理商id |
|
|
|
${AgentOrgId} Get From Dictionary ${reps.json()['data']} organizationId #代理商组织id |
|
|
|
@ -41,7 +42,8 @@ AgentOrg |
|
|
|
PaperMillOrg |
|
|
|
#创建造纸厂组织 |
|
|
|
Create Session papermill ${ztbscops} ${ztbsc_header} |
|
|
|
${OrgData} Set Variable { \ \ \ \ "fullName":"测试造纸厂830" } |
|
|
|
${DataTime} Get Current Date result_format=%Y-%m-%d |
|
|
|
${OrgData} Set Variable { \ \ \ \ "fullName":"测试造纸厂${DataTime}" } |
|
|
|
${reps} POST On Session papermill ztb-user-enterprise-service/admin/paper-mill/create ${OrgData.encode('utf-8')} |
|
|
|
${PaperMillId} Get From Dictionary ${reps.json()['data']} id #造纸厂id |
|
|
|
${PaperMillOrgId} Get From Dictionary ${reps.json()['data']} organizationId #造纸厂组织id |
|
|
|
|