This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dongxiaoyan-tsg-autotest/01-TestCase/tsg_cli/ImExportObject.robot
2020-04-02 14:19:25 +08:00

31 lines
1.2 KiB
Plaintext

*** 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