添加分离用例关键字
This commit is contained in:
@@ -1,25 +1,33 @@
|
|||||||
*** Settings ***
|
*** Settings ***
|
||||||
Library String
|
Library String
|
||||||
Library json
|
Library json
|
||||||
Library OperatingSystem
|
Library OperatingSystem
|
||||||
Library RequestsLibrary
|
Library RequestsLibrary
|
||||||
Library Selenium2Library
|
Library Selenium2Library
|
||||||
Library Collections
|
Library Collections
|
||||||
Library FileLibrary
|
Library FileLibrary
|
||||||
Resource ../../02-Keyword/tsg_bfapi/Common.robot
|
Resource ../../02-Keyword/tsg_bfapi/Common.robot
|
||||||
Resource ../../03-Variable/BifangApiVariable.txt
|
Resource ../../03-Variable/BifangApiVariable.txt
|
||||||
|
|
||||||
|
|
||||||
*** Keywords ***
|
*** Keywords ***
|
||||||
insert_policyId_to_file
|
insert_policyId_to_file
|
||||||
[Arguments] ${key} ${policyId} ${objectids}
|
[Arguments] ${key} ${policyId} ${objectids}
|
||||||
${dict} Create Dictionary policyId=${policyId} objectId=${objectids}
|
${dict} Create Dictionary policyId=${policyId} objectId=${objectids}
|
||||||
${json} json.Dumps ${dict}
|
${json} json.Dumps ${dict}
|
||||||
Alter Dict ${path}/03-Variable/AllFlowCaseVariable.txt ${key} ${json}
|
Alter Dict ${path}/03-Variable/AllFlowCaseVariable.txt ${key} ${json}
|
||||||
|
|
||||||
insert_time_to_file
|
insert_time_to_file
|
||||||
[Arguments] ${key} ${starttime} ${endtime}
|
[Arguments] ${key} ${starttime} ${endtime}
|
||||||
${value} json.Loads ${${key}}
|
${value} json.Loads ${${key}}
|
||||||
${dict} Create Dictionary policyId=${value}[policyId] objectId=${value}[objectId] starttime=${starttime} endtime=${endtime}
|
${dict} Create Dictionary policyId=${value}[policyId] objectId=${value}[objectId] starttime=${starttime} endtime=${endtime}
|
||||||
${json} json.Dumps ${dict}
|
${json} json.Dumps ${dict}
|
||||||
Alter Dict ${path}/03-Variable/AllFlowCaseVariable.txt ${key} ${json}
|
Alter Dict ${path}/03-Variable/AllFlowCaseVariable.txt ${key} ${json}
|
||||||
|
insert_policyId_to_file1
|
||||||
|
[Arguments] ${key} ${objectids}
|
||||||
|
Alter Dict ${path}/AllFlowCaseVariable.txt ${key} ${objectids}
|
||||||
|
|
||||||
|
insert_time_to_file1
|
||||||
|
[Arguments] ${key} ${starttime} ${key2} ${endtime}
|
||||||
|
Alter Dict ${path}/AllFlowCaseVariable1.txt ${key} ${starttime}
|
||||||
|
Alter Dict ${path}/AllFlowCaseVariable1.txt ${key2} ${endtime}
|
||||||
|
|||||||
Reference in New Issue
Block a user