Reporter utility object: -
It is used
for reporting an user defined message to the result window
SYNTAX:
Reporter.reporteventstatus,”objectname”,”message”
Example:Reporter.reporeventmicdone,”my
report”,”add button is working fine”.
Status:
Pass
|
0
|
Fail
|
1
|
Done
|
2
|
Warning
|
3
|
|
|
VbWindow("CALCULATOR").Activate
VbWindow("CALCULATOR").VbEdit("VALUE1").Set
"12"
VbWindow("CALCULATOR").VbEdit("VALUE2").Set
"11"
VbWindow("CALCULATOR").VbButton("ADD").Click
Reporter.ReportEvent
micPass,"reporter1","Add button is working fine"
I f u want invoke the application by qtp automatically we
can use two utility methods
1)
Invokeapplication”pathof the application”
2)
Systemutil.run”path of the application”
No comments:
Post a Comment