From eea9fb922add24c8f762a5add8f72f7defe22863 Mon Sep 17 00:00:00 2001 From: LG_lai Date: Wed, 31 Aug 2022 19:25:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=9B=E5=BB=BA=E7=BB=84?= =?UTF-8?q?=E7=BB=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RF-TEST/2-Platform/Organization.robot | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/RF-TEST/2-Platform/Organization.robot b/RF-TEST/2-Platform/Organization.robot index d0a081c..38854ec 100644 --- a/RF-TEST/2-Platform/Organization.robot +++ b/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