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
Write a script to customize the test results in PDF and HTML format.
By using QTP can we record any log files written by the application which is in execution?
how to post xml data from QTP scripts to any application?
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
What are the automation metrice in your project?
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
How to capture a window in QTP?
Explain in brief about the quicktest professional (qtp) automation object model?
can any body give the banking domain concepts/links
What are the features and benefits of quick test pro (qtp 8.0)?
what are all the fileds present in object repository?
What is accessibility check point?
In qtp, explain what is keyword driven automation framework?
Explain types of descriptive programming?
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",