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
How you can find length of array in qtp?
Write a script to customize the test results in PDF and HTML format.
How do you create new test sets in td?
What is post recovery scenario?
In Remote acess server how u run a test?
What is the extension of the recovery scenario file in qtp?
How to execute a winrunner script in quicktest professional?
How will you test a stapler?
What are parameterizing tests?
Brief the process of testing with UFT?
What are test settings and global settings?
Tell me about qtp?
Object repositories types, which and when to use?
What is the virtual object?
How to record a qtp script ?