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.
35 lines
1.7 KiB
35 lines
1.7 KiB
*** Settings ***
|
|
Library RequestsLibrary
|
|
Library Collections
|
|
Library urllib3
|
|
|
|
*** Test Cases ***
|
|
operate_get_receivable_list
|
|
Disable Warnings
|
|
Create Session yytops ${yytops} headers=${operationpsc_header}
|
|
${response} Get On Session yytops /trading-center/admin/get/receivable-list
|
|
Log ${response.status_code}
|
|
log ${response.json()}
|
|
Should Be Equal As Numbers 200 ${response.status_code}
|
|
Should Be Equal As Strings successful ${response.json()["message"]}
|
|
|
|
operate_get_receivable_list_search
|
|
Disable Warnings
|
|
Create Session yytops ${yytops} headers=${operationpsc_header}
|
|
${param} Set Variable enterpriseName=${printing_packaging_factory_name}
|
|
${response} Get On Session yytops /trading-center/admin/get/receivable-list params=${param}
|
|
Log ${response.status_code}
|
|
log ${response.json()}
|
|
Should Be Equal As Numbers 200 ${response.status_code}
|
|
Should Be Equal As Strings successful ${response.json()["message"]}
|
|
${receivable_id} Get From Dictionary ${response.json()["data"]["records"][0]} id
|
|
Set Suite Variable ${receivable_id}
|
|
|
|
operate_confirm_receivable
|
|
Disable Warnings
|
|
Create Session yytops ${yytops} headers=${operationpsc_header}
|
|
${bady} Set Variable {"id":"${receivable_id}","realAmount":${customer_order_totalPrice},"remark":"${receivable_remark}"}
|
|
${response} POST On Session yytops /trading-center/admin/confirm/receivable ${bady}
|
|
log ${response.json()}
|
|
Should Be Equal As Numbers 200 ${response.status_code}
|
|
Should Be Equal As Strings successful ${response.json()["message"]}
|