Reporter Object is used to send information to test results.
ReportEvent Method: Reports an event to the test results
Syntax
Reporter.ReportEvent EventStatus, ReportStepName, Details [, Reporter]
EventStatus: 0 or micPass, 1 or micFail, 2 or micDone, 3 or micWarning
Example:
If(Window("text:=Untitled - Notepad").Wineditor("Class Name:=WinEditor").Exist)Then
Window("text:=Untitled - Notepad").Wineditor("Class Name:=WinEditor").Type("hello")
Reporter.ReportEvent 0, "Notepad exists", "Editor exists for the notepad"
else
Reporter.ReportEvent 1, "Notepad exists", "Editor exists for the notepad"
End if
Table of Contents
- QTP Introduction
- Manual Testing Disadvantages
- Advantages of QTP
- Add-In Manager in QTP
- Testing Process in QTP
- Components of QTP
- Recording QTP Scripts
- Recording Modes
- QTP Script View
- Object Identification
- Object Repository
- Object Spy
- Actions in QTP
- Checkpoints
- Parameterizing
- Working with Data Table
- Environment Variables
- Virtual Objects
- Output Values
- Running QTP Test Scripts
- Recovery Scenario
- Sample Scripts
- Certification Questions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment