QTP - Chapter VI

   Chapter VI

                                                               Working with Test Result
We display test results in Test Result window by using Reporter Utility Object
We display bellow Types of results:
1. Pass
2. Fail
3. Warning
4. Normal
Syntax: - Report.ReportEvent,””,”
We have 4 types of event status
1. micPass (0)
2. micFail (1)
3. micWarning (3)
4. micDone [Normal] (2)
Ex: -   Reporter.Reportevent micPass, “Validate dialog login exist”,”Dialog login exist”
           Reporter.Reportevent micFail, “Validate dialog login exist”,”Dialog login not exist”
           Reporter.Reportevent micWarning, “Validate dialog login exist”,”Dialog login is minimized”
           Reporter.Reportevent micDone, “execution start”, “Test script execution start”
Ex: - If Dialog (“login”).exist=”True” Then
           Reporter.Reportevent micPass, “Validate dialog login exist”, “Dialog login exist”
Else
           Reporter.Reportevent micFail, “Validate dialog login exist”, “Dialog login not exist”
Endif
Save text Results in Required Path: -
Navigation: - Click Run Button->Select new Run Results folder Radio button->Click Browser->Browse
and open required path->Click OK button.->After script execution QTP saved a given folder in given path.

No comments :

Post a Comment