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.
68 lines
4.3 KiB
68 lines
4.3 KiB
*** Settings ***
|
|
Library ExcelLibrary
|
|
Library DateTime
|
|
Library String
|
|
Library Collections
|
|
Library RequestsLibrary
|
|
Library urllib3
|
|
Library DatabaseLibrary
|
|
|
|
*** Test Cases ***
|
|
LoginBase
|
|
#登录域名
|
|
${uecops} Set Variable https://api-ops-uec-test.qniao.cn #uec系统域名
|
|
${pscops} Set Variable https://api-ops-psc-test.qniao.cn #psc系统域名
|
|
${ztbops} Set Variable https://api-ops-ztb-test.qniao.cn #ztb域名
|
|
${ztbscops} Set Variable https://api-ops-ztbsc-test.qniao.cn #ztbsc域名
|
|
${uecclient} Set Variable https://api-client-uec-test.qniao.cn #uec客户端域名
|
|
${ztbclient} Set Variable https://api-client-ztb-test.qniao.cn #client域名
|
|
Set Global Variable ${uecops}
|
|
Set Global Variable ${pscops}
|
|
Set Global Variable ${ztbops}
|
|
Set Global Variable ${ztbscops}
|
|
Set Global Variable ${uecclient}
|
|
Set Global Variable ${ztbclient}
|
|
#登录header
|
|
${ztbsc_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'503258978847965401','Authorization':'Token 6b08add42d6bcf73abb935b2adf83525'} #平台header
|
|
${client_login_header} Set Variable {'content-type':'application/json','X-APP-ID':'470236309865238528'} #客户端登录header
|
|
${ztbsc_factoring_header} Set Variable {'Content-Type':'application/json','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tihI0qZFU9sOo6jfU0FD4Cv/lnjIGaghUHn7dGvathVr0JtFAle6xxEDqmwYB+xHfw==','X-APP-ID':'503258978847966410','X-ORGANIZATION-ID':'710132392618233856'} #保理商端header
|
|
${ztbsc_ops_login_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'503258978847965401','Authorization':'Token 6b08add42d6bcf73abb935b2adf83525'} #平台登录header
|
|
${ztbsc_traders_login_header} Set Variable {'Content-Type':'application/json','X-ORGANIZATION-ID':'711270061419139072','X-APP-ID':'503258978847966406'} #代理商端登录header
|
|
${ztbsc_papermill_login_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'503258978847966406'} #纸厂端登录header
|
|
${ztbsc_factoring_login_header} Set Variable {'Content-Type':'application/json','X-ORGANIZATION-ID':'710132392618233856','X-APP-ID':'503258978847966410'} #保理商端登录header
|
|
Set Global Variable ${ztbsc_header}
|
|
Set Global Variable ${client_login_header}
|
|
Set Global Variable ${ztbsc_factoring_header}
|
|
Set Global Variable ${ztbsc_ops_login_header}
|
|
Set Global Variable ${ztbsc_traders_login_header}
|
|
Set Global Variable ${ztbsc_papermill_login_header}
|
|
Set Global Variable ${ztbsc_factoring_login_header}
|
|
#登录账号
|
|
${ztbsc_account} Set Variable laiyonglan@qniao.cn #平台登录账号
|
|
${client_account} Set Variable 13000000032 #移动端登录账号
|
|
${traders_account} Set Variable 15014242835 #代理商端登录账号
|
|
${papermill_account} Set Variable 15014242835 #纸厂端登录账号
|
|
${factoring_account} Set Variable 15014242835 #保理商端登录账号
|
|
Set Global Variable ${ztbsc_account}
|
|
Set Global Variable ${client_account}
|
|
Set Global Variable ${traders_account}
|
|
Set Global Variable ${papermill_account}
|
|
Set Global Variable ${factoring_account}
|
|
#登录密码
|
|
${ztbsc_password} Set Variable qn123456 #平台登录密码
|
|
${client_password} Set Variable 888888 #移动端登录密码
|
|
${traders_password} Set Variable 888888 #代理商端登录密码
|
|
${papermill_password} Set Variable 888888 #纸厂端登录密码
|
|
${factoring_password} Set Variable 888888 #保理商端登录密码
|
|
Set Global Variable ${ztbsc_password}
|
|
Set Global Variable ${client_password}
|
|
Set Global Variable ${traders_password}
|
|
Set Global Variable ${papermill_password}
|
|
Set Global Variable ${factoring_password}
|
|
${start_time} get current date result_format=%Y-%m-%d
|
|
${str_end_time} Add Time To Date ${start_time} 30 days
|
|
${end_time} Get Substring ${str_end_time} 0 10
|
|
${time} Get Time
|
|
Set Global Variable ${start_time}
|
|
Set Global Variable ${end_time}
|
|
Set Global Variable ${time}
|