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
What are parameterizing tests?
wht type of User defined functions or Java Releated functions do we write in VB scripting
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
Explain types of descriptive programming?
Why do we use breakpoints in QTP?
what is supply chain management?
What is the difference between qtp and selenium?
How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.
How to use the object spy in quicktest professional 8.0 version?
What are the advantages of parameterization ?
How you debug your script?
How to break the object spy ?
What is synchronization? What are the ways you can synchronize?
I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.
When do go for loop condition in test?