Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\数据驱动.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\数据驱动.xls
Put String To Cell ztbsc 3 7 {'Content-Type':'application/json','Authorization':'QNT ${gettoken}','X-APP-ID':'470236309865238528'} #写入移动端请求头数据
Save Excel DatadrivenC-1.xls
#数据驱动
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\DatadrivenC-1.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\DatadrivenC-1.xls
${client_firstlogin_header} Read Cell Data By Name ztbsc D8 #客户端首次登录header
Set Global Variable ${client_firstlogin_header}
sleep 0.5
@ -55,11 +55,11 @@ get_baseInfo
Set Global Variable ${packerName}
Set Global Variable ${orgfullName}
#Execl写入数据
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\数据驱动.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\数据驱动.xls
Put String To Cell ztbsc 3 1 {'Content-Type':'application/json','Authorization':'QNT ${gettoken}','X-APP-ID':'470236309865238528','X-ORGANIZATION-ID':'${orgId}','X-PACKING-FACTORY-ID':'${packerId}'} #写入移动端请求头数据
Save Excel DatadrivenB-1.xls
#数据驱动
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\DatadrivenB-1.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\DatadrivenB-1.xls
${client_headerP} Read Cell Data By Name ztbsc D2 #客户端首次登录header
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\数据驱动.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\数据驱动.xls
Put String To Cell ztbsc 3 7 {'Content-Type':'application/json','Authorization':'QNT ${gettoken}','X-APP-ID':'470236309865238528'} #写入移动端请求头数据
Save Excel DatadrivenC-2.xls
#数据驱动
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\DatadrivenC-2.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\DatadrivenC-2.xls
${client_firstlogin_header} Read Cell Data By Name ztbsc D8 #客户端首次登录header
Set Global Variable ${client_firstlogin_header}
sleep 0.5
@ -55,11 +55,11 @@ get_baseInfo
Set Global Variable ${packerName}
Set Global Variable ${orgfullName}
#Execl写入数据
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\数据驱动.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\数据驱动.xls
Put String To Cell ztbsc 3 1 {'Content-Type':'application/json','Authorization':'QNT ${gettoken}','X-APP-ID':'470236309865238528','X-ORGANIZATION-ID':'${orgId}','X-PACKING-FACTORY-ID':'${packerId}'} #写入移动端请求头数据
Save Excel DatadrivenB-2.xls
#数据驱动
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\DatadrivenB-2.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\DatadrivenB-2.xls
${client_headerT} Read Cell Data By Name ztbsc D2 #客户端首次登录header
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\数据驱动.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\数据驱动.xls
Put String To Cell ztbsc 3 20 {'Content-Type':'application/json','Authorization':'QNT ${PM_token}','X-APP-ID':'503258978847966406'} #写入纸厂端请求头数据
Save Excel Datadriven.xls
#数据驱动
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\Datadriven.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\Datadriven.xls
${ztbsc_papermill_header} Read Cell Data By Name ztbsc D21 #纸厂端header
Set Global Variable ${ztbsc_papermill_header}
sleep 0.5
@ -44,11 +44,11 @@ Papermill_Login
END
Set Global Variable ${papermill_name}
#Execl写入数据
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\数据驱动.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\数据驱动.xls
Put String To Cell ztbsc 3 20 {'Content-Type':'application/json','Authorization':'QNT ${PM_token}','X-APP-ID':'503258978847966406','X-ORGANIZATION-ID':'${papermill_orgId}'} #写入纸厂端请求头数据
Save Excel DatadrivenP.xls
#数据驱动
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\DatadrivenP.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\DatadrivenP.xls
${ztbsc_papermill_header} Read Cell Data By Name ztbsc D21 #纸厂端header
Set Global Variable ${ztbsc_papermill_header}
sleep 0.5
@ -71,11 +71,11 @@ Factoring_Login
Set Global Variable ${F_userId}
Set Global Variable ${F_token}
#Execl写入数据
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\数据驱动.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\数据驱动.xls
Put String To Cell ztbsc 3 24 {'Content-Type':'application/json','Authorization':'QNT ${F_token}','X-APP-ID':'503258978847966410','X-ORGANIZATION-ID':'710132392618233856'} #写入保理商端请求头数据
Save Excel DatadrivenF.xls
#数据驱动
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\DatadrivenF.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\DatadrivenF.xls
${ztbsc_factoring_header} Read Cell Data By Name ztbsc D25 #保理商端header
${ztbsc_factoring_login_header} Read Cell Data By Name ztbsc D23 #保理商端登录header
${ServiceFeeType} Set Variable [3041,3042,3043,3044]
${ServiceFeeType} Evaluate random.choice(${ServiceFeeType}) random #保理服务费类型
Run Keyword If ${ServiceFeeType}==3041 Run Keyword ServiceFee3041
... ELSE IF ${ServiceFeeType}==3042 Run Keyword ServiceFee3042
... ELSE IF ${ServiceFeeType}==3043 Run Keyword ServiceFee3043
... ELSE ${ServiceFeeType}==3044 Run Keyword ServiceFee3044
#${ServiceFeeType} Set Variable [3041,3042,3043,3044]
#${ServiceFeeType} Evaluate random.choice(${ServiceFeeType}) random #保理服务费类型
#Run Keyword If ${ServiceFeeType}==3041 Run Keyword ServiceFee3041
# ELSE IF ${ServiceFeeType}==3042 Run Keyword ServiceFee3042 # ELSE IF ${ServiceFeeType}==3043 Run Keyword ServiceFee3043 # ELSE ${ServiceFeeType}==3044 Run Keyword ServiceFee3044
#Mock
#Make Headers
Create Mock Session login
Create Mock Request Matcher post recycle-service/admin/login form-data username=laiyonglan@qniao.cn password=qn123456