diff options
| author | dongxiaoyan <[email protected]> | 2021-08-03 19:32:24 +0800 |
|---|---|---|
| committer | dongxiaoyan <[email protected]> | 2021-08-03 19:32:24 +0800 |
| commit | 950444d646bb4a21b6e70cfb534c3b269c51548d (patch) | |
| tree | db6dc0978bcbf35089df38cdc94758b55cc43850 /variable/file_operation.robot | |
| parent | e4adcc588e92567f94ceb97196e739c7a8f131d3 (diff) | |
Diffstat (limited to 'variable/file_operation.robot')
| -rw-r--r-- | variable/file_operation.robot | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/variable/file_operation.robot b/variable/file_operation.robot new file mode 100644 index 0000000..48c942f --- /dev/null +++ b/variable/file_operation.robot @@ -0,0 +1,36 @@ +*** Settings ***
+Library String
+Library json
+Library OperatingSystem
+Library RequestsLibrary
+Library Selenium2Library
+Library Collections
+Library FileLibrary
+Resource ../common.robot
+Resource ../../../variable/common_variable.txt
+
+*** Keywords ***
+insert_policyId_to_file
+ [Arguments] ${key} ${policyId} ${objectids}
+ ${dict} Create Dictionary policyId=${policyId} objectId=${objectids}
+ ${json} json.Dumps ${dict}
+ Alter Dict ${path}/variable/AllFlowCaseVariable.txt ${key} ${json}
+
+insert_time_to_file
+ [Arguments] ${key} ${starttime} ${endtime}
+ ${value} json.Loads ${${key}}
+ ${dict} Create Dictionary policyId=${value}[policyId] objectId=${value}[objectId] starttime=${starttime} endtime=${endtime}
+ ${json} json.Dumps ${dict}
+ Alter Dict ${path}/variable/AllFlowCaseVariable.txt ${key} ${json}
+
+insert_policyId_to_file1
+ [Arguments] ${key} ${objectids}
+ Alter Dict ${path}/all_flow_case_variable.txt ${key} ${objectids}
+
+insert_time_to_file1
+ [Arguments] ${key} ${starttime}
+ Alter Dict ${path}/AllFlowCaseVariable1.txt ${key} ${starttime}
+
+insert_Report_to_file1
+ [Arguments] ${key} ${objectids}
+ Alter Dict ${path}/ReportCaseVariable.txt ${key} ${objectids}
|
