Question & Answer
Question
Is it possible to convert my TTCN-3 files to HTML or XML?
Answer
There is a command-line tool called t3doc that can be used for converting TTCN-3 files to XML.
TTCN-3 files may be converted to XML, optionally including a DTD. This conversion is a command-line feature that can be invoked with the command t3doc. The syntax for a t3doc command is the following:
[-dtd] [-m] [-o <output filename> | -stdout] <input filenames>
More information is available in the Tester Help Manual under the following topic:
TTCN-3 Projects -> Editing Abstract Test Suites -> Converting TTCN-3 to XML
For Example: To generate one XML file with a specified filename, with a DTD, and with several TTCN-3 files as input:
1. Change directory to \bin in the IBM Rational Systems Tester installation directory.
2. Use the following command:
t3doc -dtd -o my_xml_output my_test1.ttcn my_test2.ttcn my_test3.ttcn
[{"Product":{"code":"SSYQJP","label":"Rational Systems Tester"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"3.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21392850