Ask a Question

Hints for searching or combining test logs

SOLVED
amartin
Occasional Contributor

Hints for searching or combining test logs

I've got a list of recent test logs in a project, and I'd like to perform a search for events or strings.  1) Is is possible to search more than one log at the same time? 

Also, I'd like to combine logs from recent test runs into a project so I can see them in a list and perform the same search from my first question.  I'd like to select a list of log folders, maybe.  2) Is there a way to open more than one Desription.log file at once?

 

Let me know how you like to analyze logs, thanks for your help.

 

If others agree that analyzing multiple logs is useful, we might try to get a related feature request implemented: Please allow the open log file dialog to multi select .log files.  

5 REPLIES 5
Marsha_R
Community Hero

Feature requests can be posted here

https://community.smartbear.com/t5/TestComplete-Feature-Requests/idb-p/TestXCompleteFeatureRequests

 

What is it that you are trying to accomplish with these searches?  Can you give an example?


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
amartin
Occasional Contributor

Examples of searches on test logs: 

 

1. Any result that I'm interested in accumulating the quantity of over time or more than one test run.

2. I use a lot of Log.Message() to print interesting states and strings. Analyzing these after the test run is my question.

2. quantify the number of exceptions over time.  or finding specific types of exceptions.

(I'm certain everyone can think of a variety of searches they might perform on the historical record of test logs)

 

For one log at a time the interface seems to work well, but if two logs are related, any operation must be done to each log.  Can logs be combined into one big log?

 

 

I'm sure I could think of a variety of searches but it's more useful for a timely answer to know what you are looking for specifically.  

 

I know some users have used this log structure to parse the files on their own outside TC.  You could do that over one or more log files and report on the resulting data.

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


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
sonya_m
SmartBear Alumni (Retired)

Thank you, Marsha, for the suggestion. 

@amartin will this approach work for your case?


Sonya Mihaljova
Community and Education Specialist

amartin
Occasional Contributor

We have written a script to search for needed details in the testcomplete logs and also align timestamps from other logs.

I have realized that my workflow runs TestComplete scripts in a one-off fashion and not through the test items runner, so my logs tend to be more disjoint.

cancel
Showing results for 
Search instead for 
Did you mean: