Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 ?

Answers were Sorted based on User's Feedback



hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check &qu..

Answer / mahesh_sqa

var="Raju want to marry"
var1=InStr(1,var,"want")
if var1>0 then
MsgBox "String Exists"
Else
MsgBox "Doesn't Exists the String"

Is This Answer Correct ?    8 Yes 0 No

hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check &qu..

Answer / softwaretester4u

after R & D in Qtp i found the solution guys, use Instr()
function is useful for find the text .

Is This Answer Correct ?    1 Yes 0 No

hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check &qu..

Answer / srin

yes preeti you are correct. you can use regular expression.
like "srinkv@gmail.com" if you want to check "srin" in the
syntex it is "srin*" in vbscript & /srin*/ in jscript.

Agree with your comment

Is This Answer Correct ?    1 Yes 0 No

hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check &qu..

Answer / sreekanth chilam

editbox_val="raju want married"
expected_val="want"
d=split(editbox_val," ")
( ...since d is an array....here d(0) contains "raju")
( ..here d(1) contains "want")
( ...here d(2) contains "married")

for i=0 to ubound(d)
act_val=d(i)
if (expected_val=act_val) then
msgbox "want is present - pass"
exit for
else
msgbox "fail - not present"
end if
next

Is This Answer Correct ?    1 Yes 0 No

hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check &qu..

Answer / sri

Hi Friends, Pls check this answer:

s= "raju want married"
d="want"
x= split (s," ")
if Instr(d,x(1))<> 0 then
msgbox "Passed"
else
msgbox "Failed"
End If

Thanks,
Sri

Is This Answer Correct ?    1 Yes 0 No

hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check &qu..

Answer / ana

This can be easily checked with the help of Text Area
Checkpoint as this checkpoint can check the particular
Text/String in the paragraph, particular area can be
selected and checked for the Text/String.

Is This Answer Correct ?    1 Yes 0 No

hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check &qu..

Answer / rangi

use the split and left function and if u dint get i il give
the code

Is This Answer Correct ?    0 Yes 0 No

hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check &qu..

Answer / guest

please write the code.

Is This Answer Correct ?    0 Yes 0 No

hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check &qu..

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

hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check &qu..

Answer / rao' prasad

n=InputBox("Enter name")
var=Split(n," ",-1,1)
nam=var(1)
msgbox nam

If nam="want" Then
Services.LogMessage nam,OutputMsg
Else
Services.LogMessage"Failed",OutputMsg
End If

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Is manual Testing replacement of automation testing?Which types of testing we can not do in automation testing but can do in manual testing?

1 Answers   Hewitt, Wipro,


In a web page, one web table is present which is dynamic. In that table one of the column has links with the same inner text. write a script so that i need to click the third link.

3 Answers  


I Scheduled a QTP Script on remote desktop. Script is going to failure,when remote desktop connection fails.I have to open my remote desktop untile the scripts exection completes. If I disconnect my remote desktop connection, script is going to fail. Could you please any assist in this?

2 Answers  


I Have web table shown below ----------------------------------------| | orcut | GMAIL | NAUKRI | |----------|---------|-------------------| |HOT MAIL | MONSTER | VISIT FACEBOOK | |----------|---------|-------------------| |SKYPE ACC | IRCTC | GOOGLE | --------------------------------------- Here i have 2 question friends.. 1.i want to chick the link "VISIT FACEBOOK" is there or not if it's there i want to click the link 2.here how to find the web table row or column count ... don't write the excel or data table script here friends ..consider that it's a WEB TABLE

3 Answers   HCL,


How many test scripts are prapare in ur project(HeathCare Insurance).

1 Answers   Virtusa,


By using QTP can we record any log files written by the application which is in execution?

0 Answers   Ordain Solutions,


What is the difference between "call to action" and "call an existing action"

9 Answers   Accenture, Yana Software,


Hi, Can any body please tell me how to create framework in qtp & where i can get some material to learn about it. regards, rahulT

1 Answers  


how to get the object property

4 Answers   Covansys,


how to test one edit box using Java addin for Web Applications? write script?

1 Answers   IBM,


Why you are Using Descriptive programming instead of Object Repository?

11 Answers  


Difference between test object and run time object?

0 Answers  


Categories