ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
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.
 Question Submitted By :: Nani
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
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 0 No
Amarendra Kothuru
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
what is the frame work your using in automation testing  1
Can we call a parameter from an action to other action?  4
I am automating a Java application. This application is developed using SWT. I am not able to get the GUI object. Even i tried with Java add-in. In tutorial it states SWT is not supported any idea. Anybody worked in such appln. My question is whether it is possible to record the GUI object of SWT appln. how it is possible.  1
What is object repository?  2
hi i have one doubt i have 4 yrs exp in testing and iam working one mnc in north but i have completed my degree correspodene is the companies are accept in south side some people are tellig they won't agree but i need correct answer plz let me know which companies are taking and not taking thanks in advance  8
How can we test an XML using QTP? I have been to an interview, where they have given me an XML which had 15 values and they have given those values on a separate page. They asked me to write a QTP script to check the XML is having those particular 15 values.  2
can a Function return more than one value..??? if so please give me the code for that. DST-Global-Solutions2
Waht is Test Report , What it consists?  2
In smart identification, explain about 1. Base filter properties 2. optional filter properties with examples? TCS1
How can we add regular expression for date field (dd/mon/yyyy)? CTS2
How can we log a defect in Testdirector from Q.T.P ? EDS2
Dim ExcelSheet Set ExcelSheet = CreateObject("Excel.Application") excelsheet.application.visible = true ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1" ' Save the sheet. ExcelSheet.SaveAs "C:\DOCS\TEST.XLS" ' Close Excel with the Quit method on the Application object. ExcelSheet.Application.Quit after run this script i am getting error"The test cannot continue due to unrecoverable error"  3
does QTP provides any tools for parametrisation?  3
Can u explain about QTP framework ACS9
What criteria do you use when determining when to automate a test or leave it manual?  2
How to use Environment parameterization in QTP? Explain with an example.  1
Per-Action Vs Shared repository?  5
How can i select multiple values from drop down list using vb script in qtp? and wt is the script for clicking msg box box automatically with a specific time. Thanks in advance...Kalyani. CSC2
Can I record on netscape browser does it require any special settings ?  1
hi i am new to qtp i need to run all files by a batch what is the procedure and what are following actions to be take? ADP1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com