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.
24 lines
1.2 KiB
24 lines
1.2 KiB
*** Settings ***
|
|
Test Teardown
|
|
Library RequestsLibrary
|
|
Library Collections
|
|
Library urllib3
|
|
|
|
*** Variables ***
|
|
&{cloudfactory_customer_header} Content-Type=application/json;charset=UTF-8 X-APP-ID=503258978847965388 Authorization=${getlogintoken_customer}
|
|
${yytclient} https://api-client-yyt-test.qniao.cn
|
|
|
|
*** Test Cases ***
|
|
customer_get_credit_qniao
|
|
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
|
|
${response} Get On Session yytclient /cloud-print-user-center/credit/get/self-enterprise-credit-by-enterprise-id
|
|
log ${response.json()}
|
|
Should Be Equal As Numbers 200 ${response.status_code}
|
|
Should Be Equal As Strings successful ${response.json()["message"]}
|
|
|
|
customer_get_credit_feisuan
|
|
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}
|
|
${response} Get On Session yytclient /cloud-print-user-center/credit/get/enterprise-feisuan-credit
|
|
log ${response.json()}
|
|
Should Be Equal As Numbers 200 ${response.status_code}
|
|
Should Be Equal As Strings successful ${response.json()["message"]}
|