Ask a Question

Automation Execution Report

shankar_r
Community Hero

Automation Execution Report

Apart from Test Complete logs, Does anybody have worked different kind of reports that can be generated for each test case. Something like HTML or Excel or some other which we will have Expected results Actual results for a step and etc.

 


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

17 REPLIES 17

It will take you to the corresponding customized HTML Test Case report.

 

I have incorporated this reporting to my Data driven framework. Hence i have few custom functions to verify object property and all.

All we need to do is wherever you are using Log.* option in your scripts you need to call user defined function to create HTML code for current step with related details like Expected Result, Actual Result and etc.

 


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

rajabe9209
Occasional Contributor

Hi Shankar,

 

Am Raja from Mumbai great work you have done for HTML work

just to add if i have Testdata String or Character as a Chinese Character Output 

am unable to display it in the report can you please help me with that 

in the testdata it displays Question mark 

 

 

Try below steps,

  1. Open your Test case report where you have Chinese character.
  2. Append below in the head tag
    <meta charset="utf-8" /> 
  3. Save it and refresh and see what happens.

Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

rajabe9209
Occasional Contributor

Hi shankar 

 

I appended the code and checked my bad it is still displaying ?? mark

 

here are the below Code

return "<html>" + "<head>" + "<meta charset=" + "utf-8" + ">" + "</head>" + "<body bgcolor = " + strbodyColor + ">" + Chr(10);

Will you be able to attach a sample report which has that ?? here?


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

sanjay0288
Frequent Contributor

Hi @shankar_r @rajabe9209

 

Heads up!!! Can you specify the type of encoding when you are writing values using aqFile.WriteToTextFile and specify the UTF-8  or UTF16 encoding type.

 

I wrote a sample HTML which accepts unicode characters.Attaching sample.html file.

Good catch mate @sanjay0288

 

@rajabe9209 

Line No: 205

if(aqFile.WriteToTextFile(strTestCaseHTMLFilePath,strforHTMLReport,20,true))

change to 

if(aqFile.WriteToTextFile(strTestCaseHTMLFilePath,strforHTMLReport,22,true))


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

rajabe9209
Occasional Contributor

Hi Shankar ,

 

Thank you for the help it worked fine for me

 

Will keep posted if i come up with any difficulties 

 

 

cancel
Showing results for 
Search instead for 
Did you mean: