winIDEA SDK
Loading...
Searching...
No Matches
test_doc_control.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
#
# (c) TASKING Germany GmbH, 2023
import isystem.connect as ic
winidea_id = ''
def test_doc_control():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
FILE_NAME = "test_control.trd"
print("Creating example analyzer '.trd' file...")
covCtrl = ic.CCoverageController2(connMgr, FILE_NAME, "w")
covCtrl.save()
print("Opening file with document controller...")
docCtrl = ic.CDocumentController(connMgr, FILE_NAME, "u")
print("Controlling analyzer document state...")
docCtrl.start()
docCtrl.stop()
docCtrl.resume()
docCtrl.stop()
docCtrl.start1()
print("Discarding document...")
docCtrl.closeDiscard()
if __name__ == "__main__":
test_doc_control()