Browse Source

Merge pull request '获取组织信息' (#2) from test into master

Reviewed-on: http://git.qniao.cn/automated-test-scripts/ztb-ops-rf-api/pulls/2
master
qniao 3 years ago
parent
commit
4755089829
5 changed files with 30 additions and 13 deletions
  1. 5
      000-LoginToken/2.1-APPlogin.robot
  2. 5
      000-LoginToken/2.2-APPlogin.robot
  3. 11
      002-AgentSale/2-Platform/Order/1-Platform dispatch.robot
  4. 11
      005-AgencyForwardFactoring/2-Platform/Order/1-Platform dispatch.robot
  5. 11
      006-CounterFactoring/2-Platform/Order/1-Platform dispatch.robot

5
000-LoginToken/2.1-APPlogin.robot

@ -37,7 +37,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 '${orgfullName}'=='仔仔工厂'
Exit For Loop If '${orgId}'=='721761724339982336' #判断仔仔工厂组织
END
${packerId} Get From Dictionary ${packerBaseInfo['scrapPaperPackingFactoryList'][0]} id #组织工厂id
${packerName} Get From Dictionary ${packerBaseInfo['scrapPaperPackingFactoryList'][0]} name #组织工厂名称
@ -55,10 +55,11 @@ get_Personal_baseInfo
${reps} GET On Session baseinfo ztb-supply-chain-service/get/user/base-info
${organizationList} Get From Dictionary ${reps.json()['data']} organizationList #用户组织列表
FOR ${items} IN @{organizationList}
${orgId_p} Get From Dictionary ${items} id #个人资质组织id
${orgfullName} Get From Dictionary ${items} fullName #组织名称
${enterpriseInfo} Get From Dictionary ${items} enterpriseInfo #组织企业信息
${qualificationType} Get From Dictionary ${items} qualificationType
Exit For Loop If '${orgfullName}'=='仔仔工厂'
Exit For Loop If '${orgId_p}'=='721761724339982336'
END
${salesTaxPoint} Set Variable 2051
Set Global Variable ${salesTaxPoint}

5
000-LoginToken/2.2-APPlogin.robot

@ -35,7 +35,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 '${orgfullName}'=='长沙中联泵业股份有限公司'
Exit For Loop If '${orgId}'=='721760754042277888' #判断长沙中联组织
END
${packerId} Get From Dictionary ${packerBaseInfo['scrapPaperPackingFactoryList'][0]} id #组织工厂id
${packerName} Get From Dictionary ${packerBaseInfo['scrapPaperPackingFactoryList'][0]} name #组织工厂名称
@ -53,10 +53,11 @@ get_Enterprise_baseInfo
${reps} GET On Session baseinfo ztb-supply-chain-service/get/user/base-info
${organizationList} Get From Dictionary ${reps.json()['data']} organizationList #用户组织列表
FOR ${items} IN @{organizationList}
${orgId_t} Get From Dictionary ${items} id #企业资质组织id
${orgfullName} Get From Dictionary ${items} fullName #组织名称
${enterpriseInfo} Get From Dictionary ${items} enterpriseInfo #组织企业信息
${qualificationType} Get From Dictionary ${items} qualificationType
Exit For Loop If '${orgfullName}'=='长沙中联泵业股份有限公司'
Exit For Loop If '${orgId_t}'=='721760754042277888'
END
${salesTaxPoint} Get From Dictionary ${enterpriseInfo} salesTaxPoint
Set Global Variable ${salesTaxPoint}

11
002-AgentSale/2-Platform/Order/1-Platform dispatch.robot

@ -61,9 +61,14 @@ Agent_saletype
Create Session order center ${ztbscops} ${ztbsc_header}
${reps} GET On Session order center ztb-supply-chain-service/admin/get/financial-service-provider/for-dispatch params=paperMillCategoryId=${paperMillScrapPaperCategoryId}&supplierOrgId=${sellerOrgId}&paperMillOrgId=${paperMillOrgId}
${proxySaleServiceProviderList} Get From Dictionary ${reps.json()['data']} proxySaleServiceProviderList #代卖供应链id列表
${SupplyChainId} Evaluate random.choice(${proxySaleServiceProviderList}) random
${paperMillFinancialServiceProviderId} Get From Dictionary ${SupplyChainId} paperMillFinancialServiceProviderId #随机选择供应链id
${paperMillFinancialServiceProviderName} Get From Dictionary ${SupplyChainId} serviceProviderOrgName #随机选择供应链名称
FOR ${items} IN @{proxySaleServiceProviderList}
${paperMillFinancialServiceProviderId} Get From Dictionary ${items} paperMillFinancialServiceProviderId #供应链id
${paperMillFinancialServiceProviderName} Get From Dictionary ${items} serviceProviderOrgName #供应链名称
Exit For Loop If '${paperMillFinancialServiceProviderId}'=='${paperMillFinancialServiceProviderId}'
END
#${SupplyChainId} Evaluate random.choice(${proxySaleServiceProviderList}) random
#${paperMillFinancialServiceProviderId} Get From Dictionary ${SupplyChainId} paperMillFinancialServiceProviderId #随机选择供应链id
#${paperMillFinancialServiceProviderName} Get From Dictionary ${SupplyChainId} serviceProviderOrgName #随机选择供应链名称
Set Global Variable ${paperMillFinancialServiceProviderId}
Set Global Variable ${paperMillFinancialServiceProviderName}

11
005-AgencyForwardFactoring/2-Platform/Order/1-Platform dispatch.robot

@ -61,9 +61,14 @@ Agent_saletype
Create Session order center ${ztbscops} ${ztbsc_header}
${reps} GET On Session order center ztb-supply-chain-service/admin/get/financial-service-provider/for-dispatch params=paperMillCategoryId=${paperMillScrapPaperCategoryId}&supplierOrgId=${sellerOrgId}&paperMillOrgId=${paperMillOrgId}
${proxySaleServiceProviderList} Get From Dictionary ${reps.json()['data']} proxySaleServiceProviderList #代卖供应链id列表
${SupplyChainId} Evaluate random.choice(${proxySaleServiceProviderList}) random
${paperMillFinancialServiceProviderId} Get From Dictionary ${SupplyChainId} paperMillFinancialServiceProviderId #随机选择供应链id
${paperMillFinancialServiceProviderName} Get From Dictionary ${SupplyChainId} serviceProviderOrgName #随机选择供应链名称
FOR ${items} IN @{proxySaleServiceProviderList}
${paperMillFinancialServiceProviderId} Get From Dictionary ${items} paperMillFinancialServiceProviderId #供应链id
${paperMillFinancialServiceProviderName} Get From Dictionary ${items} serviceProviderOrgName #供应链名称
Exit For Loop If '${paperMillFinancialServiceProviderId}'=='${paperMillFinancialServiceProviderId}'
END
#${SupplyChainId} Evaluate random.choice(${proxySaleServiceProviderList}) random
#${paperMillFinancialServiceProviderId} Get From Dictionary ${SupplyChainId} paperMillFinancialServiceProviderId #随机选择供应链id
#${paperMillFinancialServiceProviderName} Get From Dictionary ${SupplyChainId} serviceProviderOrgName #随机选择供应链名称
Set Global Variable ${paperMillFinancialServiceProviderId}
Set Global Variable ${paperMillFinancialServiceProviderName}

11
006-CounterFactoring/2-Platform/Order/1-Platform dispatch.robot

@ -61,9 +61,14 @@ Agent_saletype
Create Session order center ${ztbscops} ${ztbsc_header}
${reps} GET On Session order center ztb-supply-chain-service/admin/get/financial-service-provider/for-dispatch params=paperMillCategoryId=${paperMillScrapPaperCategoryId}&supplierOrgId=${sellerOrgId}&paperMillOrgId=${paperMillOrgId}
${proxySaleServiceProviderList} Get From Dictionary ${reps.json()['data']} proxySaleServiceProviderList #代卖供应链id列表
${SupplyChainId} Evaluate random.choice(${proxySaleServiceProviderList}) random
${paperMillFinancialServiceProviderId} Get From Dictionary ${SupplyChainId} paperMillFinancialServiceProviderId #随机选择供应链id
${paperMillFinancialServiceProviderName} Get From Dictionary ${SupplyChainId} serviceProviderOrgName #随机选择供应链名称
FOR ${items} IN @{proxySaleServiceProviderList}
${paperMillFinancialServiceProviderId} Get From Dictionary ${items} paperMillFinancialServiceProviderId #供应链id
${paperMillFinancialServiceProviderName} Get From Dictionary ${items} serviceProviderOrgName #供应链名称
Exit For Loop If '${paperMillFinancialServiceProviderId}'=='${paperMillFinancialServiceProviderId}'
END
#${SupplyChainId} Evaluate random.choice(${proxySaleServiceProviderList}) random
#${paperMillFinancialServiceProviderId} Get From Dictionary ${SupplyChainId} paperMillFinancialServiceProviderId #随机选择供应链id
#${paperMillFinancialServiceProviderName} Get From Dictionary ${SupplyChainId} serviceProviderOrgName #随机选择供应链名称
Set Global Variable ${paperMillFinancialServiceProviderId}
Set Global Variable ${paperMillFinancialServiceProviderName}

Loading…
Cancel
Save