云印通原纸商城
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

159 lines
7.9 KiB

*** Settings ***
Test Teardown Run Keyword If Test Failed Fatal Error
Library DateTime
Library ExcelLibrary
*** Test Cases ***
current_datetime
${current_time} Get Current Date
${current_date} Convert Date ${current_time} result_format=%Y-%m-%d
Set Global Variable ${current_date}
${current_date_month} Convert Date ${current_time} result_format=%Y-%m
Set Global Variable ${current_date_month}
${current_date_second} Convert Date ${current_time} result_format=%Y-%m-%d %H:%M:%S
Set Global Variable ${current_date_second}
base_url_header
Open Excel ./datas/000_base.xls
${uecops} Read Cell Data By Name url B1
${yytops} Read Cell Data By Name url B2
${pscops} Read Cell Data By Name url B3
${pscclient} Read Cell Data By Name url B4
${yytclient} Read Cell Data By Name url B5
${uecclient} Read Cell Data By Name url B6
Set Global Variable ${uecops}
Set Global Variable ${yytops}
Set Global Variable ${pscops}
Set Global Variable ${pscclient}
Set Global Variable ${yytclient}
Set Global Variable ${uecclient}
${cloud_factory_customer_header} Read Cell Data By Name header B1
${cloud_factory_supplier_header} Read Cell Data By Name header B2
${cloud_factory_supplierfocus_header} Read Cell Data By Name header B3
${operation_backend_header} Read Cell Data By Name header B4
${operation_psc_header} Read Cell Data By Name header B5
Set Global Variable ${cloud_factory_customer_header}
Set Global Variable ${cloud_factory_supplier_header}
Set Global Variable ${cloud_factory_supplierfocus_header}
Set Global Variable ${operation_backend_header}
Set Global Variable ${operation_psc_header}
#${cloudfactory_customer_header} Read Cell Data By Name header_token B1
#${cloudfactory_supplier_header} Read Cell Data By Name header_token B2
#${cloudfactory_supplierfocus_header} Read Cell Data By Name header_token B3
#${operationbackend_header} Read Cell Data By Name header_token B4
#${operationpsc_header} Read Cell Data By Name header_token B5
#Set Global Variable ${cloudfactory_customer_header}
#Set Global Variable ${cloudfactory_supplier_header}
#Set Global Variable ${cloudfactory_supplierfocus_header}
#Set Global Variable ${operationbackend_header}
#Set Global Variable ${operationpsc_header}
get_login_datas
#Open Excel ./datas/001_login.xls
#${rows} Get Row Count customer_phone
#FOR ${row} IN RANGE 1 ${rows}
# ${accounttype} Read Cell Data By Coordinates customer_phone 0 ${row}
# ${account} Read Cell Data By Coordinates customer_phone 1 ${row}
# ${captcha} Read Cell Data By Coordinates customer_phone 2 ${row}
#END
Open Excel ./datas/001_login.xls
${accounttype_customer} Read Cell Data By Name customer_phone A2
${account_customer} Read Cell Data By Name customer_phone B2
${captcha_customer} Read Cell Data By Name customer_phone C2
Set Global Variable ${accounttype_customer}
Set Global Variable ${account_customer}
Set Global Variable ${captcha_customer}
${accounttype_supplier} Read Cell Data By Name supplier_phone A2
${account_supplier} Read Cell Data By Name supplier_phone B2
${captcha_supplier} Read Cell Data By Name supplier_phone C2
Set Global Variable ${accounttype_supplier}
Set Global Variable ${account_supplier}
Set Global Variable ${captcha_supplier}
${accounttype_supplierfocus} Read Cell Data By Name supplier_focus_phone A2
${account_supplierfocus} Read Cell Data By Name supplier_focus_phone B2
${captcha_supplierfocus} Read Cell Data By Name supplier_focus_phone C2
Set Global Variable ${accounttype_supplierfocus}
Set Global Variable ${account_supplierfocus}
Set Global Variable ${captcha_supplierfocus}
${username_operate} Read Cell Data By Name operate_mail A2
${password_operate} Read Cell Data By Name operate_mail B2
Set Global Variable ${username_operate}
Set Global Variable ${password_operate}
${username_operatepsc} Read Cell Data By Name operate_psc_mail A2
${password_operatepsc} Read Cell Data By Name operate_psc_mail B2
Set Global Variable ${username_operatepsc}
Set Global Variable ${password_operatepsc}
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_open_account_datas
Open Excel ./datas/004_open_account_supplier_paper.xls
get_credit_qniao_customer_datas
Open Excel ./datas/005_credit_qniao_customer.xls
get_credit_password_datas
Open Excel ./datas/006_credit_password.xls
get_paper_variety_management_datas
Open Excel ./datas/007_paper_variety_management.xls
get_market_information_link_datas
Open Excel ./datas/008_market_information_link.xls
get_product_manage_datas
Open Excel ./datas/009_product_manage.xls
get_product_price_datas
Open Excel ./datas/012_product_price.xls
get_customer_shipping_address_datas
Open Excel ./datas/014_customer_shipping_address.xls
get_customer_create_order_datas
Open Excel ./datas/015_customer_create_order.xls
get_customer_enquiry_create_order_datas
Open Excel ./datas/016_customer_enquiry_create_order.xls
get_create_supplier_order_batch_datas
Open Excel ./datas/017_create_supplier_order_batch.xls
get_payable_receivable_datas
Open Excel ./datas/018_payable_receivable.xls