Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


How can we test existence of a particular word in scentence
using QTP tool.

Thanks in Advance!!!!!

Answers were Sorted based on User's Feedback



How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!..

Answer / aiswaryan

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 ?    4 Yes 1 No

How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!..

Answer / ganesh

yes we can check the text using the Text checkpoint.

Is This Answer Correct ?    3 Yes 0 No

How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!..

Answer / kalyan

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

How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!..

Answer / andy

I think we can do that by inserting Text Checkpoint.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What are the features supported by UFT?

0 Answers  


Can the user toggle between using Local OR and shared OR for the same action?

0 Answers  


which type of testing process are you following in ur company? how to recognize a qtp page?

0 Answers  


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

0 Answers   CFC,


how to idetfy which test cases are automated?who will deside that plz tell me

0 Answers  






Hi, How to invoke QTP or any application through Command Prompt without using Vb script and batch file.... Reply me Srinivas

3 Answers   Excel,


What is QTP testing process?

0 Answers  


what is TOM in qtp?

5 Answers   Accenture,


regular expression

2 Answers   Wipro,


How can we display the names of the buttons in the toolbar of a webpage

1 Answers  


How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.

0 Answers   TCS,


I have a tool for automation testing (eg:qtp).I have two functionality(A & B) to test.A is tested once in a year. B is tested everyday. At present i have the money and resource availability to automate only one functionality.Which one will u suggest and why?

2 Answers   TCS,


Categories