Forum Discussion

shankar_r's avatar
shankar_r
Community Hero
8 years ago

Automation Execution Report - Ready to Go!

Hi,

 

I hope you guys aware of this thread Automation Execution Report

 

So, I have completed scripting for the creating customized HTML using JavaScript. PFA TC project.

 

Steps to access:

 

ReportingFunctions.js having all the functions which is used to create HTML reports for Test case vise as well as high level report.

 

Basically, After import the ReportingFunctions.js into your project.

 

1) At the starting point of your execution put below code

 

ReportingFunctions.setLogsPath("C:\\AutomationLogs\\")
ReportingFunctions.setExecutionStartTime(aqDateTime.Time())

2) See the below steps for a test case i guess if see the functions name it is self-explanatory

 

//Test Case #1
      ReportingFunctions.setTestCaseExeStartTime(aqDateTime.Time())
      ReportingFunctions.fn_createtestcasedescription("Module1","TestCaseID","TestCaseDescription","SYS");
ReportingFunctions.fn_createteststep(1,"Expe Result","Actual Result","Test Data",false); ReportingFunctions.fn_createteststep(2,"Expe Result","Actual Result","Test Data",false); ReportingFunctions.fn_createteststep(3,"Expe Result","Actual Result","Test Data",false); ReportingFunctions.fn_createteststep(0,"Expe Result","Actual Result","Test Data",false); ReportingFunctions.fn_createteststep(1,"Expe Result","Actual Result","Test Data",false);
ReportingFunctions.setTestCaseExeEndTime(aqDateTime.Time()); ReportingFunctions.fn_createtestcaseduration() ReportingFunctions.fn_completetestcase()

3) In point of execution end put below code,

 

ReportingFunctions.setExecutionEndTime(aqDateTime.Time())
ReportingFunctions.fn_generatehighlevelreport()

The same flow workable function i have created in SampleCallMethod.js in the attached project.

 

Please try this and let me know your feedback.

sanjay0288Colin_McCraetristaanogre

No RepliesBe the first to reply