6import isystem.connect
as ic
12def test_createInstance():
13 connMgr = ic.ConnectionMgr()
14 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
16 print(f
"Creating fresh .trd file and exporting to XML, data loaded into the memory...")
17 covCtrl = ic.CCoverageController2(connMgr,
"test_createInstance.trd",
"w")
18 covData = ic.CCoverageData2.createInstance(covCtrl,
"test_createInstance.xml",
True)
20 folderPath = ic.CIDEController(connMgr).getPath(ic.CIDEController.WORKSPACE_DIR)
21 filePath = os.path.join(folderPath,
"test_createInstance.xml")
22 print(f
"Coverage data and file released: {filePath}")
24 print(f
"Load existing coverage data (XML) file: {filePath}")
25 covData = ic.CCoverageData2.createInstance(filePath,
True)
28 print(
"Coverage data and file released.")
31if __name__ ==
"__main__":