winIDEA SDK
test_trace_get_parser_warnings.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6import export_trace_data # see docs section Examples for link to source
7
8
9winidea_id = ''
10
11
12def test_getParserWarnings():
13 conn_mgr = ic.ConnectionMgr()
14 conn_mgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
15
16 xml_file_path, _ = export_trace_data.export_data(conn_mgr)
17 trace_data = ic.CTraceData.createInstance(xml_file_path)
18 warnings = trace_data.getParserWarnings()
19 if warnings:
20 print(f"Parsing warnings: {warnings}")
21 else:
22 print("No parsing warnings were detected...")
23
24 trace_data.closeParser()
25
26
27if __name__ == "__main__":
28 test_getParserWarnings()