From 4a4ffe68f70432e2abea692cb23c333ba29105ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=87=91=E6=BB=A1?= Date: Wed, 1 Dec 2021 17:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 000_get_base_datas/get_base_datas.robot | 39 +++++++++++++++++- 001_login_get_info/login_customer.robot | 10 ++--- 001_login_get_info/login_operate.robot | 7 ++-- 001_login_get_info/login_operate_psc.robot | 7 ++-- 001_login_get_info/login_supplier.robot | 10 ++--- 001_login_get_info/login_supplierfocus.robot | 7 ++-- .../customer_user_register.robot | 38 +++-------------- .../supplier_user_register.robot | 39 ++++-------------- 100_test_data_clear/test_data_clear.robot | 16 +++---- datas/002_user_register.xls | Bin 0 -> 20480 bytes datas/__init__.robot | 7 ++++ 11 files changed, 79 insertions(+), 101 deletions(-) create mode 100644 datas/002_user_register.xls create mode 100644 datas/__init__.robot diff --git a/000_get_base_datas/get_base_datas.robot b/000_get_base_datas/get_base_datas.robot index a6f965d..bdec688 100644 --- a/000_get_base_datas/get_base_datas.robot +++ b/000_get_base_datas/get_base_datas.robot @@ -84,10 +84,45 @@ get_login_datas Set Global Variable ${username_operatepsc} Set Global Variable ${password_operatepsc} -get_customer_datas +get_user_register_datas + Open Excel ./datas/002_user_register.xls + ${customer_companyname} Read Cell Data By Name customerclue_customer A2 + ${customer_enterprisetype} Read Cell Data By Name customerclue_customer B2 + ${customer_job} Read Cell Data By Name customerclue_customer C2 + ${customer_name} Read Cell Data By Name customerclue_customer D2 + Set Global Variable ${customer_companyname} + Set Global Variable ${customer_enterprisetype} + Set Global Variable ${customer_job} + Set Global Variable ${customer_name} + ${customer_businesslicense} Read Cell Data By Name uploadpictures_customer A2 + ${customer_idcardback} Read Cell Data By Name uploadpictures_customer B2 + ${customer_idcardfront} Read Cell Data By Name uploadpictures_customer C2 + ${customerclue_type} Read Cell Data By Name uploadpictures_customer D2 + Set Global Variable ${customer_businesslicense} + Set Global Variable ${customer_idcardback} + Set Global Variable ${customer_idcardfront} + Set Global Variable ${customerclue_type} + ${supplier_companyname} Read Cell Data By Name customerclue_supplier A2 + ${supplier_enterprisetype} Read Cell Data By Name customerclue_supplier B2 + ${supplier_job} Read Cell Data By Name customerclue_supplier C2 + ${supplier_name} Read Cell Data By Name customerclue_supplier D2 + Set Global Variable ${supplier_companyname} + Set Global Variable ${supplier_enterprisetype} + Set Global Variable ${supplier_job} + Set Global Variable ${supplier_name} + ${supplier_businesslicense} Read Cell Data By Name uploadpictures_supplier A2 + ${supplier_idcardback} Read Cell Data By Name uploadpictures_supplier B2 + ${supplier_idcardfront} Read Cell Data By Name uploadpictures_supplier C2 + ${customerclue_type} Read Cell Data By Name uploadpictures_supplier D2 + Set Global Variable ${supplier_businesslicense} + Set Global Variable ${supplier_idcardback} + Set Global Variable ${supplier_idcardfront} + Set Global Variable ${customerclue_type} + +get_customer_open_account_datas Open Excel ./datas/003_open_account_customer.xls -get_supplier_datas +get_supplier_open_account_datas Open Excel ./datas/004_open_account_supplier_paper.xls get_credit_qniao_customer_datas diff --git a/001_login_get_info/login_customer.robot b/001_login_get_info/login_customer.robot index c90869c..9ae8d3b 100644 --- a/001_login_get_info/login_customer.robot +++ b/001_login_get_info/login_customer.robot @@ -8,10 +8,9 @@ Library urllib3 customer_phone Disable Warnings Create Session uecclient ${uecclient} headers=${cloud_factory_customer_header} - ${accounttype} Set Variable 2 #账号类型 1微信 2手机号 3邮箱 4苹果 5自定义账号 - ${account} Set Variable 13012345678 - ${body} Set Variable {"accountType":${accounttype},"account":"${account}","captcha":"888888"} - #${body} Set Variable {"accountType":${accounttype_customer},"account":"${account_customer}","captcha":"${captcha_customer}"} + #${accounttype_customer} Set Variable 2 #账号类型 1微信 2手机号 3邮箱 4苹果 5自定义账号 + #${account_customer} Set Variable 13012345678 + ${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} @@ -45,7 +44,6 @@ get_customer_userinfo Should Be Equal As Numbers 200 ${response.status_code} Should Be Equal As Strings successful ${response.json()["message"]} Should Be Equal As Integers ${userid_customer} ${response.json()["data"]["userId"]} - #Should Be Equal As Integers 0 ${response.json()["data"]["employeeStatus"]} #员工状态 0 启用 1停用 get_customer_baseinfo Disable Warnings @@ -54,7 +52,6 @@ get_customer_baseinfo 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 Integers 0 ${response.json()["data"]["employeeStatus"]} #员工状态 0 启用 1停用 get_customer_useridentity Disable Warnings @@ -63,4 +60,3 @@ get_customer_useridentity 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 Integers 3 ${response.json()["data"]["type"]} #身份 0无企业用户 1印包未开户 2印包已开户 3印包已授信 4原纸未开户 5原纸已开户 6原纸集采商 diff --git a/001_login_get_info/login_operate.robot b/001_login_get_info/login_operate.robot index 76e89d5..7c0e5b1 100644 --- a/001_login_get_info/login_operate.robot +++ b/001_login_get_info/login_operate.robot @@ -8,10 +8,9 @@ Library urllib3 operate_mail Disable Warnings Create Session yytops ${yytops} headers=${operation_backend_header} - ${username} Set Variable liangjinman@qniao.cn - ${password} Set Variable qn123456 - &{body} Create Dictionary username=${username} password=${password} - #&{body} Create Dictionary username=${username_operate} password=${password_operate} + #${username_operate} Set Variable liangjinman@qniao.cn + #${password_operate} Set Variable qn123456 + &{body} Create Dictionary username=${username_operate} password=${password_operate} ${response} POST On Session yytops /cloud-factory-operation-backend/admin/login ${body} Log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code} diff --git a/001_login_get_info/login_operate_psc.robot b/001_login_get_info/login_operate_psc.robot index 6321b7e..1844b42 100644 --- a/001_login_get_info/login_operate_psc.robot +++ b/001_login_get_info/login_operate_psc.robot @@ -8,10 +8,9 @@ Library urllib3 operate_psc_mail Disable Warnings Create Session pscops ${pscops} headers=${operation_psc_header} - ${username} Set Variable liangjinman@qniao.cn - ${password} Set Variable qn123456 - &{body} Create Dictionary username=${username} password=${password} - #&{body} Create Dictionary username=${username_operatepsc} password=${password_operatepsc} + #${username_operatepsc} Set Variable liangjinman@qniao.cn + #${password_operatepsc} Set Variable qn123456 + &{body} Create Dictionary username=${username_operatepsc} password=${password_operatepsc} ${response} POST On Session pscops /payment-settlement-center/admin/login ${body} Log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code} diff --git a/001_login_get_info/login_supplier.robot b/001_login_get_info/login_supplier.robot index dca978c..294701b 100644 --- a/001_login_get_info/login_supplier.robot +++ b/001_login_get_info/login_supplier.robot @@ -8,10 +8,9 @@ Library urllib3 supplier_phone Disable Warnings Create Session uecclient ${uecclient} headers=${cloud_factory_supplier_header} - ${accounttype} Set Variable 2 #账号类型 1微信 2手机号 3邮箱 4苹果 5自定义账号 - ${account} Set Variable 13123456789 - ${body} Set Variable {"accountType":${accounttype},"account":"${account}","captcha":"888888"} - #${body} Set Variable {"accountType":${accounttype_supplier},"account":"${account_supplier}","captcha":"${captcha_supplier}"} + #${accounttype_supplier} Set Variable 2 #账号类型 1微信 2手机号 3邮箱 4苹果 5自定义账号 + #${account_supplier} Set Variable 13123456789 + ${body} Set Variable {"accountType":${accounttype_supplier},"account":"${account_supplier}","captcha":"${captcha_supplier}"} ${response} POST On Session uecclient /uec/authorize/by-captcha ${body} Log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code} @@ -45,7 +44,6 @@ get_supplier_userinfo Should Be Equal As Numbers 200 ${response.status_code} Should Be Equal As Strings successful ${response.json()["message"]} Should Be Equal As Integers ${userid_supplier} ${response.json()["data"]["userId"]} - #Should Be Equal As Integers 0 ${response.json()["data"]["employeeStatus"]} #员工状态 0 启用 1停用 get_supplier_baseinfo Disable Warnings @@ -54,7 +52,6 @@ get_supplier_baseinfo 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 Integers 0 ${response.json()["data"]["employeeStatus"]} #员工状态 0 启用 1停用 get_supplier_useridentity Disable Warnings @@ -63,4 +60,3 @@ get_supplier_useridentity 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 Integers 5 ${response.json()["data"]["type"]} #身份 0无企业用户 1印包未开户 2印包已开户 3印包已授信 4原纸未开户 5原纸已开户 6原纸集采商 diff --git a/001_login_get_info/login_supplierfocus.robot b/001_login_get_info/login_supplierfocus.robot index 3cb5c52..02a5417 100644 --- a/001_login_get_info/login_supplierfocus.robot +++ b/001_login_get_info/login_supplierfocus.robot @@ -8,10 +8,9 @@ Library urllib3 supplierfocus_phone Disable Warnings Create Session uecclient ${uecclient} headers=${cloud_factory_supplierfocus_header} - ${accounttype} Set Variable 2 #账号类型 1微信 2手机号 3邮箱 4苹果 5自定义账号 - ${account} Set Variable 13500003333 - ${body} Set Variable {"accountType":${accounttype},"account":"${account}","captcha":"888888"} - #${body} Set Variable {"accountType":${accounttype_supplierfocus},"account":"${account_supplierfocus}","captcha":"${captcha_supplierfocus}"} + #${accounttype_supplierfocus} Set Variable 2 #账号类型 1微信 2手机号 3邮箱 4苹果 5自定义账号 + #${account_supplierfocus} Set Variable 13500003333 + ${body} Set Variable {"accountType":${accounttype_supplierfocus},"account":"${account_supplierfocus}","captcha":"${captcha_supplierfocus}"} ${response} POST On Session uecclient /uec/authorize/by-captcha ${body} Log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code} diff --git a/002_user_register/customer_user_register.robot b/002_user_register/customer_user_register.robot index d757163..9872747 100644 --- a/002_user_register/customer_user_register.robot +++ b/002_user_register/customer_user_register.robot @@ -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} diff --git a/002_user_register/supplier_user_register.robot b/002_user_register/supplier_user_register.robot index 26d1fab..268139f 100644 --- a/002_user_register/supplier_user_register.robot +++ b/002_user_register/supplier_user_register.robot @@ -9,11 +9,9 @@ Library urllib3 supplier_phone_captcha Disable Warnings Create Session uecclient ${uecclient} headers=${cloud_factory_supplier_header} - ${accounttype} Set Variable 2 #账号类型 1微信 2手机号 3邮箱 4苹果 5自定义账号 - ${supplier_account} Set Variable 13123456789 - ${body} Set Variable {"accountType":${accounttype},"account":"${supplier_account}","captcha":"888888"} - #${body} Set Variable {"accountType":${accounttype_supplier},"account":"${account_supplier}","captcha":"${captcha_supplier}"} - Set Global Variable ${supplier_account} + #${accounttype_supplier} Set Variable 2 #账号类型 1微信 2手机号 3邮箱 4苹果 5自定义账号 + #${account_supplier} Set Variable 13123456789 + ${body} Set Variable {"accountType":${accounttype_supplier},"account":"${account_supplier}","captcha":"${captcha_supplier}"} ${response} POST On Session uecclient /uec/authorize/by-captcha ${body} Log ${response.json()} Should Be Equal As Numbers 200 ${response.status_code} @@ -28,15 +26,8 @@ supplier_phone_captcha customerclue_supplier Disable Warnings Create Session yytclient ${yytclient} headers=${cloudfactory_supplier_header} - ${supplier_companyname} Set Variable autotest_companyname_supplier - ${supplier_enterprisetype} Set Variable 5 #企业类型 1云印客户 2印刷包装厂 3造纸厂 4打包厂 5原纸供应商 6设备供应商 7其他 - ${supplier_job} Set Variable autotest_job_supplier - ${supplier_name} Set Variable autotest_name_supplier + #${supplier_enterprisetype} Set Variable 5 #企业类型 1云印客户 2印刷包装厂 3造纸厂 4打包厂 5原纸供应商 6设备供应商 7其他 ${body} Set Variable {"companyName": "${supplier_companyname}","enterpriseType": ${supplier_enterprisetype},"job": "${supplier_job}","name": "${supplier_name}"} - Set Suite Variable ${supplier_companyname} - Set Suite Variable ${supplier_enterprisetype} - Set Global Variable ${supplier_job} - Set Global Variable ${supplier_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 +59,7 @@ get_customerclue_supplier Should Be Equal As Numbers ${supplier_enterprisetype} ${response.json()["data"]["enterpriseType"]} Should Be Equal As Strings ${supplier_job} ${response.json()["data"]["job"]} Should Be Equal As Strings ${supplier_name} ${response.json()["data"]["name"]} - Should Be Equal As Strings ${supplier_account} ${response.json()["data"]["mobile"]} + Should Be Equal As Strings ${account_supplier} ${response.json()["data"]["mobile"]} customerclue_verify_have_join_supplier Disable Warnings @@ -80,10 +71,7 @@ customerclue_verify_have_join_supplier customerclue_uploadpictures_supplier Disable Warnings Create Session yytclient ${yytclient} headers=${cloudfactory_supplier_header} - ${supplier_businesslicense} Set Variable https://qncloudprintfiletest.oss-cn-shenzhen.aliyuncs.com/cloudprint/1632378545847.jpg - ${supplier_idcardback} Set Variable https://qncloudprintfiletest.oss-cn-shenzhen.aliyuncs.com/cloudprint/1632378545847.jpg - ${supplier_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": "${supplier_businesslicense}","idCardBack": "${supplier_idcardback}","idCardFront": "${supplier_idcardfront}","type": ${customerclue_type}} ${response} POST On Session yytclient /cloud-print-user-center/customerclue/upload-pictures ${body.encode("utf8")} Log ${response.json()} @@ -101,12 +89,11 @@ operate_get_user_register_list operate_get_user_register_search Disable Warnings Create Session yytops ${yytops} headers=${operationbackend_header} - ${param} Set Variable mobile=${supplier_account} + ${param} Set Variable mobile=${account_supplier} ${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 ${supplier_account} ${response.json()["data"]["records"][0]["mobile"]} operate_get_customerclue_list Disable Warnings @@ -115,12 +102,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 ${supplier_account} ${response.json()["data"]["records"][0]["mobile"]} - Should Be Equal As Strings ${supplier_companyname} ${response.json()["data"]["records"][0]["companyName"]} - Should Be Equal As Numbers ${supplier_enterprisetype} ${response.json()["data"]["records"][0]["enterpriseType"]} - Should Be Equal As Strings ${supplier_job} ${response.json()["data"]["records"][0]["job"]} - Should Be Equal As Strings ${supplier_name} ${response.json()["data"]["records"][0]["name"]} - Should Be Equal As Strings ${userid_supplier} ${response.json()["data"]["records"][0]["userId"]} operate_get_customerclue_search Disable Warnings @@ -130,12 +111,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 ${supplier_account} ${response.json()["data"]["records"][0]["mobile"]} - #Should Be Equal As Strings ${supplier_companyname} ${response.json()["data"]["records"][0]["companyName"]} - #Should Be Equal As Numbers ${supplier_enterprisetype} ${response.json()["data"]["records"][0]["enterpriseType"]} - #Should Be Equal As Strings ${supplier_job} ${response.json()["data"]["records"][0]["job"]} - #Should Be Equal As Strings ${supplier_name} ${response.json()["data"]["records"][0]["name"]} - #Should Be Equal As Strings ${userid_supplier} ${response.json()["data"]["records"][0]["userId"]} ${customerclue_id} Get From Dictionary ${response.json()["data"]["records"][0]} id Set Global Variable ${customerclue_id} diff --git a/100_test_data_clear/test_data_clear.robot b/100_test_data_clear/test_data_clear.robot index f1988cb..47a9f6f 100644 --- a/100_test_data_clear/test_data_clear.robot +++ b/100_test_data_clear/test_data_clear.robot @@ -7,26 +7,26 @@ Library urllib3 *** Test Cases *** database_delete_user_customerclue_customer Connect To Database Using Custom Params pymysql database='uec', user='root', password='password', host='8.135.8.221', port=3306, charset='utf8' - Execute Sql String update qn_account set is_delete = 1 where tid = "${customer_account}" - Execute Sql String update qn_enterprise_member set is_delete = 1 where user_id = ${customer_account} - ${query} Query select user_id from qn_account where tid = "${customer_account}" + Execute Sql String update qn_account set is_delete = 1 where tid = "${account_customer}" + Execute Sql String update qn_enterprise_member set is_delete = 1 where user_id = ${account_customer} + ${query} Query select user_id from qn_account where tid = "${account_customer}" ${query_list} Get From List ${query} 0 ${userid} Get From List ${query_list} 0 Execute Sql String update qn_user set is_delete = 1 where id = ${userid} Connect To Database Using Custom Params pymysql database='yyt_user_center', user='root', password='password', host='8.135.8.221', port=3306, charset='utf8' - Execute Sql String update qn_customer_clue set is_delete = 1 where mobile = "${customer_account}" + Execute Sql String update qn_customer_clue set is_delete = 1 where mobile = "${account_customer}" Disconnect From Database database_delete_user_customerclue_supplier Connect To Database Using Custom Params pymysql database='uec', user='root', password='password', host='8.135.8.221', port=3306, charset='utf8' - Execute Sql String update qn_account set is_delete = 1 where tid = "${supplier_account}" - Execute Sql String update qn_enterprise_member set is_delete = 1 where user_id = ${supplier_account} - ${query} Query select user_id from qn_account where tid = "${supplier_account}" + Execute Sql String update qn_account set is_delete = 1 where tid = "${account_supplier}" + Execute Sql String update qn_enterprise_member set is_delete = 1 where user_id = ${account_supplier} + ${query} Query select user_id from qn_account where tid = "${account_supplier}" ${query_list} Get From List ${query} 0 ${userid} Get From List ${query_list} 0 Execute Sql String update qn_user set is_delete = 1 where id = ${userid} Connect To Database Using Custom Params pymysql database='yyt_user_center', user='root', password='password', host='8.135.8.221', port=3306, charset='utf8' - Execute Sql String update qn_customer_clue set is_delete = 1 where mobile = "${supplier_account}" + Execute Sql String update qn_customer_clue set is_delete = 1 where mobile = "${account_supplier}" Disconnect From Database database_delete_printing_packaging_factory diff --git a/datas/002_user_register.xls b/datas/002_user_register.xls new file mode 100644 index 0000000000000000000000000000000000000000..a2f2c25b8cdb8d890769b02eaccfc1e50aea36ea GIT binary patch literal 20480 zcmeG^2|yIbmNmlwgNlG0A_xpOa-V`489+2D2qK6YL06c~fo(pIKK3)kq zOkGJYI-#$_-$&11aQ_O&60&~iXb=WL>uF>(iKF-!O#?sS+KzBJO#7I&1Qj{V7Sc6) zk_eD|5=b6MV&NLw5&}|n^q_qXw0%TRqtyi33nvrE82H6fy6*#47)j{_AsHkY z?#Cj6f?(GqKla_0wvYX}u8E!oA9}HxDk;@GtzMqXA!^Y1?+`B8#w&*_A$K7TCF6ik zPAnM#Y$gLcg8%*yK=BaEK^_i+g1dA0gaa@Y7^ON;oPp(`OqaTDrRp7|uHC8eh>#m& z8eM%TyKu;0t{+uzHg&b2u5IDUA$uvD-zbP1j9@Q-rYNTnO-jB4-R4Jyha&v<&j{xe zcKWRpz_k^?brryU6~J{Az%|H0RHdA}8Vc&Sq2L_3`g#iBisTh4Xty&9JP9nq2LBx_ z*Pew>M+NnH3gBp8FP3&`IJ>?0GWAV)4$x0@3CD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