if i want to check text on the status bar how to test is
i need the report also after getting the result weather it
is matched or not?

Answer Posted / praveen

We can use getvisibletext method to capture the text on the
status bar. Store the capture text in a variable.

syntax: Variable=object type("Object Name").getvisibletext()

By using following conditional statement in the script we
can check the text and report if is success or not.

If variable= "text" Then
reporter.reportevent micpass, "Text Captured", "Same"
else
reporter.reportevent micfail, "Text Captured", "different"

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create flat file datasubmission in qtp

2193


What is the difference between a Function and Action in QTP?

847


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

831


Suggest and Define a solution for an application whose objects are not recognized by UFT?

867


Brief the process of testing with UFT?

813


How to test the login page in different ways in automation testing and i need code?

1560


Whether qtp 9.0 supports Test director8.0

2343


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1493


Will down time for server and content maintenance/upgrades be allowed? how much?

839


How will you test a stapler?

816


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

1756


How to import a test case present in ".xls" file to TD under a Test set?

983


any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

3673


How to Test the mainframe application?

2056


I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me

1653