please write a script to find the text in a application.
Note: i dont know the location of that text where it is
located. just like negative testing.
Answer Posted / amarendra kothuru
In general, In the web application, The text can be
recogized by QTP as WebElement. If you on what page it
should be displayed, Then it is easier to verify that text.
For Example
Text = "Welcome to Yahoo"
Result = Browser("name:=Yahoo").Page
("title:=Yahoo").WebElement("inntertext:=& Text).Exist(0)
If Result = True Then
Reporter.ReportEvent MicPass, "Text found", "Passed"
Else
Reporter.ReportEvent MicFail, "Text not found", "Failed"
End If
If you want to verify ur application, Pass the exact Object
Property values as per the Hirarchy
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks
i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com
Tell some commonly used Excel VBA functions?
what is the hierarchy to use properties in descriptive programming
When you open QTP, how many sheets you can see?
What is the difference between per-action and shared?
how to test Web application using QTP software
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
What are metrics and matrix?
What is quicktest professional (qtp)?
Explain step generator in qtp?
how interviews will be on QTP?
how to prepared for first for the first interview?
Explain the terms test and business component?
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?