Professional Documents
Culture Documents
cid=92
Actions Generally QTP provides, test results, if we use qtp tool features like checkpoints. Suppose if we use flow control statements
(conditional and Loop statements), then we have to define our own result.For defining our own results, QTP is providing an
Functions utility object called "Reporter" by using reporter, we can define our own results.
Difference between Action and
Function Syntax:
Automation Object Model 3 or micWarning: Sends a warning message to the report, but does not cause the test to stop running, and does not affect
the pass/fail status of the test.
Synchronization
ReportStepName: (String)Name of the intended step in the report (object name).
Environment Variables
Details: (String)Description of the report event. The string will be displayed in the step details frame in the report.
XML
Outlook
Ex 1: The following example use the ReportEvent method to report a Passed step with different format of Event status
Reporting Defect Reporter.ReportEvent 0, "User Login", "Passed as the Login functionality worked as per the requirment"
'OR
Contact Us Reporter.ReportEvent micPass, "User Login", "Passed as the Login functionality worked as per the requirment"
Ex 2: The following example use the ReportEvent method to report a Failed step with different format of Event status
info@qtpworld.com
Reporter.ReportEvent 1, "User Login", "Failed as the Login functionality didn't work as per the requirment"
+91- 9886477710
'OR
Reporter.ReportEvent micFail, "User Login", "Failed as the Login functionality didn't work as per the requirme
Ex 3: The following example use the ReportEvent method to report a Done step with different format of Event status
'OR
Ex 4: The following example use the ReportEvent method to report a Warning step with different format of Event status
'OR
1 of 2 1/29/2016 9:42 AM
QTPWorld http://www.qtpworld.com/index.php?cid=92
Copyright QTPWorld.com 2013 Home | Demo videos | Students | Training | FAQ's | Feedback | About Us Designed By WebZone
2 of 2 1/29/2016 9:42 AM