Browse Source

优化创建组织

pull/8/head
LG_lai 3 years ago
parent
commit
eea9fb922a
1 changed files with 4 additions and 2 deletions
  1. 6
      RF-TEST/2-Platform/Organization.robot

6
RF-TEST/2-Platform/Organization.robot

@ -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

Loading…
Cancel
Save