5import isystem.connect
as ic
11def test_doc_an_trig_process():
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
15 cfgCtrl = ic.CConfigurationController(connMgr)
17 traceCtrl = ic.CTraceController(connMgr,
"example.trd",
"w")
18 optCtrl = cfgCtrl.doc(
"example.trd")
22 trigOptCtrl = cfgCtrl.doc_an_triggers(optCtrl)
23 if trigOptCtrl.size() == 0:
24 trigOptCtrl = trigOptCtrl.add()
26 trigOptCtrl = trigOptCtrl.at(0)
28 procOptCtrl = cfgCtrl.doc_an_trig_processes(trigOptCtrl)
29 url = procOptCtrl.URL()
30 print(f
"URL of the 'document' controller for file 'example.trd', processes: {url}")
35if __name__ ==
"__main__":
36 test_doc_an_trig_process()