maxime_esprit
12 years agoOccasional Contributor
Export Results as XML format via COM Object
Hi,
I'm working with TestComplete via COM Object to automate execution of several test items, groups of test item, projects or projectSuites.
After each execution, I would like to export the Log to XML format in order to get multiple informations latter.
Today I known how to export the log in MHT format, (using the ExportResults method of the Integration object). But I cannot find a way to export results as XML format..
Can anyone help me ?
Thanks in advance,
Regards
Max
I'm working with TestComplete via COM Object to automate execution of several test items, groups of test item, projects or projectSuites.
After each execution, I would like to export the Log to XML format in order to get multiple informations latter.
Today I known how to export the log in MHT format, (using the ExportResults method of the Integration object). But I cannot find a way to export results as XML format..
Can anyone help me ?
Thanks in advance,
Regards
Max
Hi Max,
The Integration.ExportResults method allows exporting the results only to the MHT format. But, you can still access all the execution results via COM like this:
Integration.GetObjectByName("Project").Logs
As a result, you are getting a reference to the LogResults object.
This object can't export logs, but it provides you with programmatic access to all log data including the log status.