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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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
How can we test existence of a particular word in scentence 
using QTP tool.

Thanks in Advance!!!!!
 Question Submitted By :: Shiva.shanker27
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!
Answer
# 1
By using "Instr" function u can do it.
InStr([start, ]string1, string2[, compare])
eg: MyPos = Instr(1, SearchString, SearchChar, 1)
msgbox MyPos
If Mypos returns a non-zero value, then the particular word 
is present in a given string/sentence. If MyPos=0, then the 
word is not present.
 
Is This Answer Correct ?    2 Yes 0 No
Aiswaryan
 
  Re: How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!
Answer
# 2
I think we can do that by inserting Text Checkpoint.
 
Is This Answer Correct ?    0 Yes 0 No
Andy
 
 
 
  Re: How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!
Answer
# 3
yes we can check the text using the Text checkpoint.
 
Is This Answer Correct ?    2 Yes 0 No
Ganesh
 
  Re: How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!
Answer
# 4
Using strcomp method we can check the string.

In web application string will be recognized as web element.

In window based application string will recognized as static.

first of all we have to capture the actual string which we
need to test. Then assign this to one variable. And allready
we have expected string. Assign this string to one variable.
then compare to strings with one more variable with help of
strcomp method.

If any clarifications mail to me. I will give detail
explanation with example. mskalyan.smile@gmail.com
 
Is This Answer Correct ?    1 Yes 0 No
Kalyan
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
take one example and write vbscript on one web application in qtp? explian descriptive programe with one example? IBM2
what is the use of Browser.sync() NIIT2
how to do spell check in QTP? reply please  7
What is the difference between Action and Function.? when both has the same functionaltiy, when do we choose Action and when do we choose Function..?? DST-Global-Solutions2
Does QTP is "Unicode" compatible?  2
What is vulnerability? CTS1
how to add run-time parameter to a datasheet? Ordain-Solutions1
when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '[string: ""]' in "If cdbl(tot)=cdbl(p)*t Then" error. where I am doing the mistake Could you please tell me.  4
What is Optional step?  3
Can anybody send me the code to get the RO property of the active screen in QTP while running?  8
Give me brief idea about QTP automation object model? TCS4
can we install qtp in windows vista  1
Can we use Virtual Objects in Discriptive Programming? Keane-India-Ltd3
where the log files stored when using QTP? plz send answer to me ........  1
Few basic questions on commonly used Excel VBA functions.  1
What is the process for creating an automated test script using QTP assuming you have reviewed the manual test case and understand the requirements? Infosys1
If u prepare bug report in Excel sheet . Is it possible to send thrw Test director? how it is? Wipro3
How to find local host name using QTP?  6
What is Terminal Emulators”? Why we used in QTP.? How he works on QTP.  1
in qtp how we work with out put values and what is the process?  4
 
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