Forum Discussion

Piyush_77's avatar
Piyush_77
Occasional Contributor
8 years ago

How to access testlog file itself inside the TestComplate script

Hello People,

 

I am trying to write custom code to transfer the test log output data to Excel file. For that, I need to access the last testlog output result into my custom code. So that's I don't know how to write code to get the access of that outputfile. For Example, My testlog output filename is 'object online change' and I want to store its output data like how many testcases  are passes and how may are failed  and may more stuff into Excel file. For that, I need to access output file. First, I have to get the data from the test log, exel export is the second step.

 

Hope to get a convincing solution...

 

Thanks in advanced

 

Piyush

 

1 Reply

  • baxatob's avatar
    baxatob
    Community Hero

    Hi,

     

    You can get an access to TestComplete log only after the test-run is done. Using this way, your task will be to parse the original test log to create your own one. More easy to create your own log on-the-fly during the test execution. You can catch interested events and pass them to the excel-file using COM object >>