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

Thanks in Advance!!!!!

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the virtual object?

631


Explain in brief about the quicktest professional automation object model?

494


how to evalute defects in QTP script?

1476


How to analyzing the checpoint results?

506


What are the types of properties that quick test learns while recording?

517






Can U Explain about QTP tool from older version to latest version also its differences?

1497


How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1555


What is the differences between image check point and bit map check point?

571


Explain how you can delete excel file in qtp?

578


When to use descriptive programming?

578


Hi I know two types of testing processes. 1. Reaquirments stage,test design,code review's, Design review's, Test Plan, Test Cases design, test execution, Defect Reporting and tracking, UAT, Signoff. 2.Test Initiation , Test Plan, Test Design, Execution,Bug tracking, UAT, Sign off.

1359


1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

971


What is the syntax to call one script from another?

522


Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance

1756


what is the difference between the modular framework and datadriven frame work

1900