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 / 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 |
Post New Answer View All Answers
How many ways is to parameterize the value?
How will you test a keyboard?
Explain how you can find length of array in qtp?
Hello friends..... On which areas of an application we can not test with QTP
How do we analyze the checkpoint results?
If I change the object name in one action will it be updated in all the actions? Or not?
What do you to script when objects are removed from application?
How many number of actions possible in qtp?
How will you handle java tree in qtp?
Explain the qtp test phases.
What is Distributed testing? How does UFT support it?
What is the difference between the keyword view and expert view?
Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
Explain different type of event trigger option.