Ask a Question

Create a High level Custom report

ShreeAkula
New Contributor

Create a High level Custom report

Hi All, 

 

I want to create a High level custom report which contains -

Number of Tests ran,

Number of Tests passed -

Number of Tests Failed -

Number of Tests with warnings- etc,

basically all the details available on Execution Summary report.

 

Please note

1) On my test machine, I dont have a email client to use "Send via E-Mail..." feature. 

2) I tried LogResults object. But it doesnot give me enough details. 
3) I tried exporting the summary to xml and parse it. That didnt work.

Could anyone give me a working example? I am working with C#. 

 

3 REPLIES 3
Marsha_R
Community Hero

These links may be helpful

https://community.smartbear.com/t5/TestComplete-Questions/Custom-Reporting-in-TestComplete/td-p/2326...


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

Hi Marsha, 

Thank you for quick reply.

The link you posted had another link, which got me redirected to Exporting Test Results | TestComplete Documentation (smartbear.com). I have already referred this documentation and I am able to export the log to .mht, .xml, .html, etc. and attach that to my email and send it over.

But the problem is with the mail body. Untill the user opens the attachment, he/she doesnt know if the test has passed or failed. I WANT TO RESOLVE THAT. Somehow, I want to send Tests Ran, Test Passed, Test Failed in the mail body.

Appologies, If I was not clear in my root question.

 

Please help.

 

Thanks and regards,

Shreenivash A

rraghvani
Trusted Contributor

In my setup, once the automation has finished, the .xml result file is exported,

rraghvani_0-1675157730833.png

I then translate this xml file into html to produce the following report, which is then sent via email,

rraghvani_1-1675157890941.pngrraghvani_2-1675157905088.png

 

I've used PowerShell script to translate the .xml results. There's plenty of examples on the internet that show how to do this.

cancel
Showing results for 
Search instead for 
Did you mean: