Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - 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 ?




262
views
asked marvit August 21, 2014 08:06 AM  

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 ?


           

1 Answers



 
answered By Dharma   0  
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 
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert