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
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me
hi nani my doubt is how does qtp process metrix related to software process.
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
Explain how you can replace string in qtp?
How to use output values in qtp ?
How to create runtime property for an object?
iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?
What is Cross browser testing? Does UFT support it?
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.
How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
Which functionalities of QTP used in banking project?
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)