cancel
Showing results for 
Search instead for 
Did you mean: 

clarifications on exporting ‘Summary Report’ from Tests (not manual exporting from IDE)

SOLVED
Highlighted
New Contributor

clarifications on exporting ‘Summary Report’ from Tests (not manual exporting from IDE)

Is there a  way to export the exactly specified data of the image including graph. We tried using Log.SaveResultsAs("C:\\Work\\Log.mht", lsHTML), which is mentioned in TestComplete documentation.

But, we are able to export only log details and not Summary Report. We are looking for how to export Report with pie charts, which is a better look and feel.

 

Also, tried Log.SaveResultsAs("C:\\Work\\Log.mht", lsJUnit), and this is also not generating any Report.

req.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Staff

Re: clarifications on exporting ‘Summary Report’ from Tests (not manual exporting from IDE)

Hey, I'm not sure if I understood this correctly, but if the problem is that your exportation of the Test Execution Summary doesn't include the pie charts and the following graphic information, I think all you need to do is export it as an .mht file.

So sequentially, the screenshots show the following:

1) Project level containing three tests (2 keyword tests, and 1 script routine)

2) this script routine is the Log.SaveResultAs() that saves the logs as an mht file

3) what i see when I open up this saved mht file with an IE browser from the stored location 

4)The following details in the exported mht file.

 

Strangely enough, the exported logs dont contain the saveAsMHT script routine as a "run" test in the top level summary, but once i click on the test case level, it shows as a script routine. 

Best,
Justin Kim

View solution in original post

3 REPLIES 3
Highlighted
Community Hero

Re: clarifications on exporting ‘Summary Report’ from Tests (not manual exporting from IDE)

There currently isn't a means of saving that image via code.  You can, from the TestComplete tool itself, choose to print the image and have it output to a file.

The summary you're looking at is created after the fact and after the execution of the code and therefore is not accessible via code.  


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Highlighted
Staff

Re: clarifications on exporting ‘Summary Report’ from Tests (not manual exporting from IDE)

Hey, I'm not sure if I understood this correctly, but if the problem is that your exportation of the Test Execution Summary doesn't include the pie charts and the following graphic information, I think all you need to do is export it as an .mht file.

So sequentially, the screenshots show the following:

1) Project level containing three tests (2 keyword tests, and 1 script routine)

2) this script routine is the Log.SaveResultAs() that saves the logs as an mht file

3) what i see when I open up this saved mht file with an IE browser from the stored location 

4)The following details in the exported mht file.

 

Strangely enough, the exported logs dont contain the saveAsMHT script routine as a "run" test in the top level summary, but once i click on the test case level, it shows as a script routine. 

Best,
Justin Kim

View solution in original post

Highlighted
Community Manager

Re: clarifications on exporting ‘Summary Report’ from Tests (not manual exporting from IDE)

Thank you hkim5 and tristaanogre for your help. 

 

Hi @Anandhu , was the information given by the community helpful? 


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Compare images using the Region Checkpoint

See replies!

Converting UTC TimeDate in an Excel file

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors