8import isystem.connect
as ic
14def test_exportImportProject():
15 connMgr = ic.ConnectionMgr()
16 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
18 projCtrl = ic.CProjectController(connMgr)
20 with tempfile.TemporaryDirectory()
as tmpDir:
21 tmpFilePath = os.path.join(tmpDir,
"proj.xml")
23 print(f
"Exporting project to XML: {tmpFilePath}")
24 if projCtrl.exportProject(tmpFilePath) == -1:
25 print(f
"\tWarnings: {projCtrl.getWarningMessage()}")
27 print(f
"Importing project from XML: {tmpFilePath}")
28 if projCtrl.exportProject(tmpFilePath) == -1:
29 print(f
"\tWarnings: {projCtrl.getWarningMessage()}")
32if __name__ ==
"__main__":
33 test_exportImportProject()