You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1020 B
25 lines
1020 B
*** Settings ***
|
|
Suite Setup Run Keywords userlogin
|
|
... AND 关键字.Login-token
|
|
Resource 关键字.txt
|
|
Library urllib3
|
|
Library Collections
|
|
Library RequestsLibrary
|
|
|
|
*** Variables ***
|
|
${url} https://api-client-ztb-test.qniao.cn
|
|
|
|
*** Test Cases ***
|
|
get_paper-mill-city
|
|
#获取纸厂所在城市
|
|
userlogin
|
|
${header} Create Dictionary content-type=application/json X-APP-ID=470236309865238528 Authorization=QNT ${gettoken}
|
|
Create Session ZTBT ${url} ${header}
|
|
${reps} Get On Session ZTBT recycle-service/get/paper-mill-city
|
|
${data} Get From Dictionary ${reps.json()} data #城市列表
|
|
FOR ${items} IN @{data}
|
|
${cityName} Get From Dictionary ${items} cityName #城市name
|
|
${cityId} Get From Dictionary ${items} cityId #城市id
|
|
Exit For Loop If '${cityName}'=='荆州市'
|
|
END
|
|
Set Global Variable ${cityId}
|