feat(Cli):增加TsgCli测试用例
This commit is contained in:
30
01-TestCase/tsg_cli/ImExportObject.robot
Normal file
30
01-TestCase/tsg_cli/ImExportObject.robot
Normal file
@@ -0,0 +1,30 @@
|
||||
*** Settings ***
|
||||
Test Teardown Clear_Test_Data
|
||||
Force Tags tsg-cli Object ExImport
|
||||
Resource ../../03-Variable/bifangapivariable.txt
|
||||
Resource ../../02-Keyword/tsg_cli/interface.robot
|
||||
|
||||
*** Test Cases ***
|
||||
Object_Export_And_Import_TestCase
|
||||
FOR ${type} IN @{ObjectTypes}
|
||||
# export 01
|
||||
${FileName1} Get_File_Name ${type} txt
|
||||
Tsg_Policy_Object_Export ${type} ${FileName1} txt
|
||||
# export 02
|
||||
${FileName2} Get_File_Name ${type} csv
|
||||
Tsg_Policy_Object_Export ${type} ${FileName2} csv
|
||||
# # export 03
|
||||
${FileName3} Get_File_Name ${type} txt
|
||||
Tsg_Policy_Object_Export ${type} ${FileName3} ${None}
|
||||
# export 04
|
||||
${FileName4} Get_File_Name ${type} csv
|
||||
Tsg_Policy_Object_Export ${type} ${FileName4} ${None}
|
||||
|
||||
# # import 01
|
||||
${name1} Get_Import_Info ${type}
|
||||
Tsg_Policy_Object_Import ${type} ${FileName3} ${name1}
|
||||
# import 02
|
||||
${name2} Get_Import_Info ${type}
|
||||
Tsg_Policy_Object_Import ${type} ${FileName4} ${name2}
|
||||
END
|
||||
|
||||
Reference in New Issue
Block a user