#${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
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.xls
#数据驱动
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\DatadrivenC.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\DatadrivenC.xls
${client_firstlogin_header} Read Cell Data By Name ztbsc D8 #客户端首次登录header
Set Global Variable ${client_firstlogin_header}
sleep 0.5
@ -45,7 +45,7 @@ get_baseInfo
${orgId} Get From Dictionary ${items} id #组织id
${orgfullName} Get From Dictionary ${items} fullName #组织名称
${packerBaseInfo} Get From Dictionary ${items} packerBaseInfo #组织工厂信息
Exit For Loop If '${orgId}'=='721760754042277888' #仔仔工厂组织id:721761724339982336 #长沙中联组织id:721760754042277888
Exit For Loop If '${orgId}'=='721761724339982336' #仔仔工厂组织id:721761724339982336 #长沙中联组织id:721760754042277888
END
${packerId} Get From Dictionary ${packerBaseInfo['scrapPaperPackingFactoryList'][0]} id #组织工厂id
${packerName} Get From Dictionary ${packerBaseInfo['scrapPaperPackingFactoryList'][0]} name #组织工厂名称
@ -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.xls
#数据驱动
Open Excel D:\\LYL\\Study\\Robot_framework\\New_Trading\\DatadrivenB.xls
Open Excel D:\\LYL\\Study\\Robot_framework\\space\\ztb-ops-rf-api\\DatadrivenB.xls
${client_header} Read Cell Data By Name ztbsc D2 #客户端首次登录header