*** Settings *** Library RequestsLibrary Library Collections Library urllib3 *** Variables *** &{cloudfactory_customer_header} Content-Type=application/json;charset=UTF-8 X-APP-ID=503258978847965388 Authorization=${getlogintoken_customer} ${uecclient} https://api-client-uec-test.qniao.cn *** Test Cases *** customer_enterprise_shipping_address_list Create Session uecclient ${uecclient} headers=${cloudfactory_customer_header} ${response} Get On Session uecclient /uec/get/enterprise-shipping-address-list/by-userId log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code} Should Be Equal As Strings successful ${response.json()["message"]} customer_enterprise_save_shipping_address Create Session uecclient ${uecclient} headers=${cloudfactory_customer_header} ${customer_enterprise_shipping_address_isDefault} Set Variable 1 #是否默认地址 0否 1是 ${customer_enterprise_shipping_address_receiver} Set Variable autotest_receiver ${customer_enterprise_shipping_address_receiverMobile} Set Variable 13800138000 ${customer_enterprise_shipping_address_detail} Set Variable autotest_customer_enterprise_shipping_address_detail ${customer_enterprise_shipping_address_provinceid} Set Variable 440000 ${customer_enterprise_shipping_address_cityid} Set Variable 440100 ${customer_enterprise_shipping_address_districtid} Set Variable 440106 ${customer_enterprise_shipping_address_streetid} Set Variable 440106003 ${customer_enterprise_shipping_address_provincename} Set Variable 广东省 ${customer_enterprise_shipping_address_cityname} Set Variable 广州市 ${customer_enterprise_shipping_address_districtname} Set Variable 天河区 ${customer_enterprise_shipping_address_streetname} Set Variable 车陂街道 ${body} Set Variable {"isDefault":${customer_enterprise_shipping_address_isDefault},"receiver":"${customer_enterprise_shipping_address_receiver}","receiverMobile":${customer_enterprise_shipping_address_receiverMobile},"detail":"${customer_enterprise_shipping_address_detail}","provinceId":${customer_enterprise_shipping_address_provinceid},"cityId":${customer_enterprise_shipping_address_cityid},"districtId":${customer_enterprise_shipping_address_districtid},"streetId":${customer_enterprise_shipping_address_streetid},"provinceName":"${customer_enterprise_shipping_address_provincename}","cityName":"${customer_enterprise_shipping_address_cityname}","districtName":"${customer_enterprise_shipping_address_districtname}","streetName":"${customer_enterprise_shipping_address_streetname}"} ${response} POST On Session uecclient /uec/save/enterprise-shipping-address ${body.encode("utf-8")} Set Global Variable ${customer_enterprise_shipping_address_receiver} Set Global Variable ${customer_enterprise_shipping_address_receiverMobile} Set Global Variable ${customer_enterprise_shipping_address_detail} Set Global Variable ${customer_enterprise_shipping_address_provinceid} Set Global Variable ${customer_enterprise_shipping_address_cityid} Set Global Variable ${customer_enterprise_shipping_address_streetid} Set Global Variable ${customer_enterprise_shipping_address_districtid} Set Global Variable ${customer_enterprise_shipping_address_provincename} Set Global Variable ${customer_enterprise_shipping_address_cityname} Set Global Variable ${customer_enterprise_shipping_address_districtname} Set Global Variable ${customer_enterprise_shipping_address_streetname} log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code} Should Be Equal As Strings successful ${response.json()["message"]} ${customer_enterprise_shipping_address_id} Get From Dictionary ${response.json()} data Set Global Variable ${customer_enterprise_shipping_address_id}