cancel
Showing results for 
Search instead for 
Did you mean: 

Export log of particular folder using script

Highlighted
New Contributor

Export log of particular folder using script

Hi 

How can we export logs appended to particular folder using C# scripts . I don't want to export full log.  Log file contains all the items of many test cases. I just need to export the logs of a particular folder.  Below shows the log, through script how can I export log of Just TC_USS_03() ? 

hrshilpashree_0-1605865245447.png

 

4 REPLIES 4
Highlighted
Community Hero

Re: Export log of particular folder using script

Highlighted
Occasional Contributor

Re: Export log of particular folder using script

Hey,

 

have a look at the Log Object Methods:

https://support.smartbear.com/testcomplete/docs/reference/project-objects/test-log/log/methods.html

 

you can create different folders inside the log file ans post warnings, checkpoints, etc. to each folder to get a better structure.

But therefore you have to manually add these Log functions in your C# test script.

 

Greetings

 

Leon

Highlighted
New Contributor

Re: Export log of particular folder using script

I have used log folders and log functions, getting logs as expected. But my question is how to export the particular row (folder to which logs are appended )in log through script.
Highlighted
Community Hero

Re: Export log of particular folder using script

@hrshilpashree I think what you'll need to do is export the log and then parse it outside TestComplete for the particular results you want.

https://support.smartbear.com/testcomplete/docs/testing-with/log/working-with/exporting/structure.ht...

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors