Browse Source

优化

pull/28/head
梁金满 4 years ago
parent
commit
4a4ffe68f7
11 changed files with 79 additions and 101 deletions
  1. 39
      000_get_base_datas/get_base_datas.robot
  2. 10
      001_login_get_info/login_customer.robot
  3. 7
      001_login_get_info/login_operate.robot
  4. 7
      001_login_get_info/login_operate_psc.robot
  5. 10
      001_login_get_info/login_supplier.robot
  6. 7
      001_login_get_info/login_supplierfocus.robot
  7. 38
      002_user_register/customer_user_register.robot
  8. 39
      002_user_register/supplier_user_register.robot
  9. 16
      100_test_data_clear/test_data_clear.robot
  10. BIN
      datas/002_user_register.xls
  11. 7
      datas/__init__.robot

39
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

10
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原纸集采商

7
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}

7
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}

10
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原纸集采商

7
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}

38
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}

39
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}

16
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

BIN
datas/002_user_register.xls

7
datas/__init__.robot

@ -0,0 +1,7 @@
*** Settings ***
Library DatabaseLibrary
Library RequestsLibrary
Library Collections
Library urllib3
Library DateTime
Library ExcelLibrary
Loading…
Cancel
Save