云印通原纸商城
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.
 
 

124 lines
5.7 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_customer_datas
Open Excel ./datas/003_open_account_customer.xls
get_supplier_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