cancel
Showing results for 
Search instead for 
Did you mean: 

TestComplete - Continuous Integration - Logs Formatting

SOLVED
rec3
Occasional Contributor

TestComplete - Continuous Integration - Logs Formatting

I have been working on a project to do some automated testing for a website for a company I am interning with. The end goal is to implement some kind of continuous integration system. I have started converting the project to run in this way via the commanding tools and it is going pretty well so far. I cannot seem to get the logs correct though. I have tried to ways I will explain below.


One test script inside Test Complete to run all the other scripts. This makes the log file all be under one element. I have found a way to split them up and color them which is better but it still looks kind of "flat".
The other way I have implemented the test was running the test complete command multiple times with a python script. This products complete separate log file every time. Test Complete also opens and closes for each test.
My latest solution I can think of is to write another script that parses through the log files to see if I can build it how I would like. I don’t feel like this would be too hard because it just looks file JSON and HTML but I feel like there should be a better way.

 

1 ACCEPTED SOLUTION

Accepted Solutions
rec3
Occasional Contributor

Re: TestComplete - Continuous Integration - Logs Formatting

I actually found a different solution and was waiting to post it till I was 100% sure it would work. If you create a test item call it ‘TestContainer’ for example and add all your tests a sub items rather than putting them into a test group you can run it from command line.Yes.png

Red is the way you cannot run from commandline and green you can.

View solution in original post

4 REPLIES 4
Bobik
Contributor

Re: TestComplete - Continuous Integration - Logs Formatting

TestComplete 14.10 can export logs in JUnit- style format. Perhaps this is what you need.

https://support.smartbear.com/testcomplete/docs/testing-with/log/working-with/exporting/index.html#j...

TanyaYatskovska
Community Manager

Re: TestComplete - Continuous Integration - Logs Formatting

Thanks for your reply, @Bobik,

 

@rec3, do you think Bobik's suggestion will help you?

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
rec3
Occasional Contributor

Re: TestComplete - Continuous Integration - Logs Formatting

I actually found a different solution and was waiting to post it till I was 100% sure it would work. If you create a test item call it ‘TestContainer’ for example and add all your tests a sub items rather than putting them into a test group you can run it from command line.Yes.png

Red is the way you cannot run from commandline and green you can.

View solution in original post

TanyaYatskovska
Community Manager

Re: TestComplete - Continuous Integration - Logs Formatting

It sounds reasonable. Thanks for sharing your solution with us!

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors