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

Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

869


i have asked earlier only one question how to test web application using QTp plz send me the answer quickly

1662


what is the difference between development and testing

2395


Give the syntax to import/export xls into qtp.

588


What is expert view in qtp?

592






How to customize checkpoints with parameters?

3025


What is reusable action?

608


What is the Difference between test object and run time object?

613


What are some test assets and related extensions of qtp?

557


What do you mean by iteration?

632


Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?

568


What is test object?

706


assume i have few url link how will i dynamically call then using descriptive programming?

1605


Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?

1693


How do you create new test sets in td?

535