A Free Template From Joomlashack

QTP Tutorial 17

 

This tutorial demonstrates the use of function Reporter.Report Event and Results Formatting.The tutorial will ask you to develop a script. To maximise your learning , please do  complete the scripting exercise.

 



Please be patient . Video will load in some time. If you still face issue viewing video click here

 

points to remember about QTP's Test Results Formatting

  • You can use Reporter.ReportEvent to report custom test steps in QTP's test results tree

  • Syntax -Reporter.ReportEvent EventStatus, ReportStepName, Details [, ImageFilePath]

  • Event Status can have values

    • 0 or micPass  sends a pass status to test result window
    • 1 or micFail sends a pass status to test result window
    • 2 or micDone sends a message to test result window without affecting the Pass/Fail status
    • 3 or micWarning sends a warning message to the result window

     

  • When test cases are executed using automation tools it may be difficult for certain users to understand the test results  You can use  results.xml to create an xsl which will present the test results as per your preferences

  • You can use VBScript Library functions to store the results in xls or a text file.

 

                                                                            

                                                                         Back to QTP Tutorials Page