*** Settings *** Library RequestsLibrary Library Collections Library urllib3 *** Test Cases *** customer_get_credit_password_status Disable Warnings Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header} ${response} Get On Session yytclient /cloud-print-user-center/credit/payment-password/getstatus log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code} Should Be Equal As Strings successful ${response.json()["message"]} Should Be Equal As Strings False ${response.json()["data"]["setPassword"]} #设置密码状态 True已设置 False未设置 customer_save_credit_password Disable Warnings Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header}# ${body} Set Variable {"oldPassword":"","newPassword":"${customer_credit_password}","repeatPassword":"${customer_credit_password}","status":${save_creditpassword_type}} ${response} POST On Session yytclient /cloud-print-user-center/credit/payment-password/save ${body.encode("utf8")} #Set Suite Variable ${customer_credit_password} log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code} Should Be Equal As Strings successful ${response.json()["message"]} customer_update_credit_password Disable Warnings Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header} ${body} Set Variable {"oldPassword":"${customer_credit_password}","newPassword":"${customer_credit_password_new}","repeatPassword":"${customer_credit_password_new}","status":${save_creditpassword_type_new}} ${response} POST On Session yytclient /cloud-print-user-center/credit/payment-password/save ${body.encode("utf8")} log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code} Should Be Equal As Strings successful ${response.json()["message"]}