hi in QTP 8.2 in the edit box has text like "raju want
married" . i want to check "want" is their in the text
or not ?

Answer Posted / srinath

One method is


a="Raju want to marry"
b="want"

if instr(1,a,b) then
msgbox("Exists")
else
msgbox("Does not exists")
end if

another method is
use regular expression. this is a bit lengthy

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a script to verify font style and color of a windows object using descriptive programming

938


what is the latest version of QTP? Main difference between 9.2 and 10 version

1641


What are the five challenges you faced in QTP?

2838


How to test results for qtp ?

869


requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how

1589






What is the basic concept of quicktest professional?

651


What will be happen if i load object repository at run time, but it has already associated.

1358


What are the advantages of parameterization ?

694


hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale

1625


If I give some thousand tests to execute in two days what do you do?

676


How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

3557


How to record application running on the Virtual machine?

736


How do you delete unwanted results in qtp?

710


How to delete an object from the object repository?

693


Can we run multiple QTP scripts one after the other without manual intervention? How?

681