Forum Discussion

maxime_esprit's avatar
maxime_esprit
Occasional Contributor
12 years ago

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

  • 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.


     

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    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.


     

  • maxime_esprit's avatar
    maxime_esprit
    Occasional Contributor
    Hi Tanya,



    Thank you for the answer !

    I'm going to try this way. I think it's what I needed :)



    Best Regards !

    Max