cancel
Showing results for 
Search instead for 
Did you mean: 

Automation Execution Report

shankar_r
Community Hero

Re: Automation Execution Report

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

Re: Automation Execution Report

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 

 

 

shankar_r
Community Hero

Re: Automation Execution Report

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

Re: Automation Execution Report

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);

shankar_r
Community Hero

Re: Automation Execution Report

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

Re: Automation Execution Report

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.

shankar_r
Community Hero

Re: Automation Execution Report

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

Re: Automation Execution Report

Hi Shankar ,

 

Thank you for the help it worked fine for me

 

Will keep posted if i come up with any difficulties 

 

 

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors