Ad Home

Theme images by kelvinjay. Powered by Blogger.

Travel

Header Ads

Java

Selenium

UFT

Framework

General QA Concept

BDD

» » Working with Reporter Object in QTP

This post will tell you the Reporter Object of QTP.
The well Known status of the Reporter Event is.....
-------------------------------------------------------
Reporter.ReportEvent EventStatus, ReportStepName, Details
-----------------------------------------------------------
Now EventStatus can be of 2 types..(Primarily)
1.Pass-->the syntax is "0" or "micPass"
2.Fail-->the syntax is "1" or "micPass"
There are two more types of statuses...
3. Done-->This is Used to send message to the test report and does not affect status of test.the syntax is -->"2" or "micDone"
4. Warning-->This is used to send message (warning) to the test report and does not affect the status of the test.The syntax is --->"3" or "micWarning"


so the reporting will be ..
Reporter.reportEvent 1,"User can not see the image" ,"Test case failed due to unavailability of the image"
or
Reporter.reportEvent micPass,"User can not see the image" ,"Test case failed due to unavailability of the image"

«
Next
Newer Post
»
Previous
Older Post

No comments:

Leave a Reply