|
|
|
@ -9,11 +9,7 @@ Library urllib3 |
|
|
|
customer_phone_captcha |
|
|
|
Disable Warnings |
|
|
|
Create Session uecclient ${uecclient} headers=${cloud_factory_customer_header} |
|
|
|
${accounttype} Set Variable 2 #账号类型 1微信 2手机号 3邮箱 4苹果 5自定义账号 |
|
|
|
${customer_account} Set Variable 13012345678 |
|
|
|
${body} Set Variable {"accountType":${accounttype},"account":"${customer_account}","captcha":"888888"} |
|
|
|
#${body} Set Variable {"accountType":${accounttype_customer},"account":"${account_customer}","captcha":"${captcha_customer}"} |
|
|
|
Set Global Variable ${customer_account} |
|
|
|
${body} Set Variable {"accountType":${accounttype_customer},"account":"${account_customer}","captcha":"${captcha_customer}"} |
|
|
|
${response} POST On Session uecclient /uec/authorize/by-captcha ${body} |
|
|
|
Log ${response.json()} |
|
|
|
Should Be Equal As Numbers 200 ${response.status_code} |
|
|
|
@ -28,15 +24,8 @@ customer_phone_captcha |
|
|
|
customerclue_customer |
|
|
|
Disable Warnings |
|
|
|
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header} |
|
|
|
${customer_companyname} Set Variable autotest_companyname_customer |
|
|
|
${customer_enterprisetype} Set Variable 2 #企业类型 1云印客户 2印刷包装厂 3造纸厂 4打包厂 5原纸供应商 6设备供应商 7其他 |
|
|
|
${customer_job} Set Variable autotest_job_customer |
|
|
|
${customer_name} Set Variable autotest_name_customer |
|
|
|
#${customer_enterprisetype} Set Variable 2 #企业类型 1云印客户 2印刷包装厂 3造纸厂 4打包厂 5原纸供应商 6设备供应商 7其他 |
|
|
|
${body} Set Variable {"companyName": "${customer_companyname}","enterpriseType": ${customer_enterprisetype},"job": "${customer_job}","name": "${customer_name}"} |
|
|
|
Set Suite Variable ${customer_companyname} |
|
|
|
Set Suite Variable ${customer_enterprisetype} |
|
|
|
Set Global Variable ${customer_job} |
|
|
|
Set Global Variable ${customer_name} |
|
|
|
${response} POST On Session yytclient /cloud-print-user-center/save/customerclue ${body.encode("utf8")} |
|
|
|
Log ${response.json()} |
|
|
|
Should Be Equal As Numbers 200 ${response.status_code} |
|
|
|
@ -68,7 +57,7 @@ get_customerclue_customer |
|
|
|
Should Be Equal As Numbers ${customer_enterprisetype} ${response.json()["data"]["enterpriseType"]} |
|
|
|
Should Be Equal As Strings ${customer_job} ${response.json()["data"]["job"]} |
|
|
|
Should Be Equal As Strings ${customer_name} ${response.json()["data"]["name"]} |
|
|
|
Should Be Equal As Strings ${customer_account} ${response.json()["data"]["mobile"]} |
|
|
|
Should Be Equal As Strings ${account_customer} ${response.json()["data"]["mobile"]} |
|
|
|
|
|
|
|
customerclue_verify_have_join_customer |
|
|
|
Disable Warnings |
|
|
|
@ -80,10 +69,7 @@ customerclue_verify_have_join_customer |
|
|
|
customerclue_uploadpictures_customer |
|
|
|
Disable Warnings |
|
|
|
Create Session yytclient ${yytclient} headers=${cloudfactory_customer_header} |
|
|
|
${customer_businesslicense} Set Variable https://qncloudprintfiletest.oss-cn-shenzhen.aliyuncs.com/cloudprint/1632378545847.jpg |
|
|
|
${customer_idcardback} Set Variable https://qncloudprintfiletest.oss-cn-shenzhen.aliyuncs.com/cloudprint/1632378545847.jpg |
|
|
|
${customer_idcardfront} Set Variable https://qncloudprintfiletest.oss-cn-shenzhen.aliyuncs.com/cloudprint/1632378545847.jpg |
|
|
|
${customerclue_type} Set Variable 1 #线索类型 1企业认证 2授信申请 |
|
|
|
#${customerclue_type} Set Variable 1 #线索类型 1企业认证 2授信申请 |
|
|
|
${body} Set Variable {"businessLicense": "${customer_businesslicense}","idCardBack": "${customer_idcardback}","idCardFront": "${customer_idcardfront}","type": ${customerclue_type}} |
|
|
|
${response} POST On Session yytclient /cloud-print-user-center/customerclue/upload-pictures ${body.encode("utf8")} |
|
|
|
Log ${response.json()} |
|
|
|
@ -97,17 +83,15 @@ operate_get_user_register_list |
|
|
|
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 ${customer_account} ${response.json()["data"]["records"][0]["mobile"]} |
|
|
|
|
|
|
|
operate_get_user_register_search |
|
|
|
Disable Warnings |
|
|
|
Create Session yytops ${yytops} headers=${operationbackend_header} |
|
|
|
${param} Set Variable mobile=${customer_account} |
|
|
|
${param} Set Variable mobile=${account_customer} |
|
|
|
${response} Get On Session yytops /cloud-print-user-center/admin/user/get/user-list params=${param} |
|
|
|
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 ${customer_account} ${response.json()["data"]["records"][0]["mobile"]} |
|
|
|
|
|
|
|
operate_get_customerclue_list |
|
|
|
Create Session yytops ${yytops} headers=${operationbackend_header} |
|
|
|
@ -115,12 +99,6 @@ operate_get_customerclue_list |
|
|
|
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 ${customer_account} ${response.json()["data"]["records"][0]["mobile"]} |
|
|
|
#Should Be Equal As Strings ${customer_companyname} ${response.json()["data"]["records"][0]["companyName"]} |
|
|
|
#Should Be Equal As Numbers ${customer_enterprisetype} ${response.json()["data"]["records"][0]["enterpriseType"]} |
|
|
|
#Should Be Equal As Strings ${customer_job} ${response.json()["data"]["records"][0]["job"]} |
|
|
|
#Should Be Equal As Strings ${customer_name} ${response.json()["data"]["records"][0]["name"]} |
|
|
|
#Should Be Equal As Strings ${userid_customer} ${response.json()["data"]["records"][0]["userId"]} |
|
|
|
|
|
|
|
operate_get_customerclue_search |
|
|
|
Create Session yytops ${yytops} headers=${operationbackend_header} |
|
|
|
@ -129,12 +107,6 @@ operate_get_customerclue_search |
|
|
|
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 ${customer_account} ${response.json()["data"]["records"][0]["mobile"]} |
|
|
|
#Should Be Equal As Strings ${customer_companyname} ${response.json()["data"]["records"][0]["companyName"]} |
|
|
|
#Should Be Equal As Numbers ${customer_enterprisetype} ${response.json()["data"]["records"][0]["enterpriseType"]} |
|
|
|
#Should Be Equal As Strings ${customer_job} ${response.json()["data"]["records"][0]["job"]} |
|
|
|
#Should Be Equal As Strings ${customer_name} ${response.json()["data"]["records"][0]["name"]} |
|
|
|
#Should Be Equal As Strings ${userid_customer} ${response.json()["data"]["records"][0]["userId"]} |
|
|
|
${customerclue_id} Get From Dictionary ${response.json()["data"]["records"][0]} id |
|
|
|
Set Global Variable ${customerclue_id} |
|
|
|
|
|
|
|
|