Thursday, August 2, 2012

Reporter Object in QTP


*********************************************************************************
 ReporterObject:
*********************************************************************************

Using Repoter object we can send the customize results QTP result window

Below are the methods to work with Repoter object

• ReportEvent Method

• Filter Property

• ReportPath Property

• RunStatus Property

*********************************************************************************
ReportEvent Method:
*********************************************************************************

ReportEvent Method is used to send the user events to result  window

Syntax:
Reporter.ReportEvent EventStatus, ReportStepName, Details     For Reporterevent we need Pass the  three argumrnts
 1)EventStatus (Micpass,MicFail,micDone,micWarning)
 2)ReportStepName : Executing StepName
3)Details  := Description  about the  ReportStepName   ********************************************************************************
 Filter Property:

*********************************************************************************       
 By using Filter property we can filter the Eventstatus of the result window

  Example: Reporter.Filter = mode  

Modes:
 micPass
 micFail
micWarning
micDone    

If  mode is micPass it will filter the all passed steps 

 *********************************************************************************
ReportPath Property:
*********************************************************************************

Msgbox Reporter.ReportPath
It will give the path of result stored location
  *********************************************************************************
RunStatus Property:
*********************************************************************************  
Msgbox  Reporter.RunStatus
 It returns the status of current test during the test run.         


       
 
       


No comments:

Post a Comment