Files
apiautotest/interface/gitlink/users/test_user_change_phone.yaml

44 lines
1018 B
YAML

# 公共参数
case_common:
allure_epic: GitLink接口
allure_feature: 用户
allure_story: 账号管理
case_markers:
- gitlink
- change_phone
- login: 登录接口
- usefixtures: get_oauth_token
# 用例数据
case_info:
-
id: gitlink_user_change_phone_01
title: 用户修改手机号码
run: True
severity: normal
url: api/v1/${login}/update_phone.json
method: PATCH
headers:
Content-Type: application/json; charset=utf-8;
Authorization: ${token_type} ${access_token}
cookies:
request_type: json
payload:
phone: ${generate_phone(lan='zh')}
password: ${password}
code: ${green_code}
files:
assert_response:
status_code: 200
assert_status:
message: 断言接口status=0
expect_value: 0
assert_type: ==
type_jsonpath: $.status
assert_message:
message: 断言接口message=success
expect_value: success
assert_type: ==
type_jsonpath: $.message
assert_sql:
extract: