5import isystem.connect
as ic
11def test_doc_an_trig_process_profiler_code():
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 if procOptCtrl.size() == 0:
30 procOptCtrl = procOptCtrl.add()
32 procOptCtrl = procOptCtrl.at(0)
34 codeOptCtrl = cfgCtrl.doc_an_trig_process_profiler_code(procOptCtrl)
35 url = codeOptCtrl.URL()
36 print(f
"URL of the 'document' controller for file 'example.trd', "
37 f
"process profiler code: {url}")
42if __name__ ==
"__main__":
43 test_doc_an_trig_process_profiler_code()