Exporting Test Logs and Results to XML or JSON
Hi, I saw a few posts regarding a similar question that I had but they were either never resolved or really old.
I was wondering if it was possible to Export the Tests logs and results of a test run into an XML/JSON file that could then be parsed. Currently, using the Log.SaveResultsAs("My\\Path\\", 0, 0), I get a folder containing a RootLogData.dat file with a weird structure containing multiple nodes and value that referenced to other weird XML files.
Here is the structure of the folder at My\\Path\\ :
And here is the RootLogData.dat file :
I feel like this is the XML that Test Complete uses to display the logs and results. The problem, it's that it is not readable and cannot be used. I want to have a file that can be parsed.
Thank you.
Hi LouisP,
TC allows exporting test results to an XML format:
Log.SaveResultsAs("My\\Path\\Log.xml", lsXML);
Is this what you were looking for?