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 is the use of VIRTUAL OBJECTS? explain ?

10 Answers   ABC Infotech, IBM, TCS,


What is keyword view in qtp?

0 Answers  


Hi, Plz give best Definition of Software Testing? Why we need Software Testing? and plz send 2+yrs experience Interview qutions (Manual,Qtp).

10 Answers  


how to find that tools work well with your existing system?

0 Answers  


tell me types of environment variables? what r they? explain details? pls give anwer any one?

2 Answers   IBM,






Pls Solve Error(SAP-CRM):- Cannot identify the specified item of the SAPNavigationBar object.Canfirm that the specified item is included in the object's item collection.

1 Answers  


what is advantage of descripting programming in QTP?

3 Answers   ADP,


What is the QTP test frame work?

3 Answers   IBM,


Is it possible to check the Run time value property of a field through a Database Checkpoint ? Further, is it possible to localize and mention a particular cell , in the database dynamically. My requirement is that I would need to check the status of a particular field , that would change from an "Active" state to a "Stopped" state dynamically.

1 Answers   CTS,


what is descriptiveprograming? how to do object identification thrugh Descriptive and is possible smart identification or not

5 Answers   Syntel,


How to test fly out menu in qtp?

0 Answers  


Explain key word driven frame work?How to use in real time?

2 Answers   HP,






Categories