I have a list box which contains duplicate values e.g.
A,A,A,B,B,B,C,C,C.Now write a code in qtp to test the list
box .
Scenario #1 : I have to check whether any values are there?
Scenario #2 : If duplicate values are there,then how many
time it is getting duplicated?
Svenario #3 : how can I test presence of items in list box
ommiting duplicate values?
Answer Posted / guest
Note : You need to take all the options of the weblist into
an array and try this logic
arr=array(1,2,4,1,2,6)
cnt=0
For i=0 to ubound(arr)
For j=0 to ubound(arr)
If i<>j Then
If arr(i)=arr(j) then
print arr(i)&"is repeated"
End if
End If
Next
Next
-Ganesh
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...
Hi All, I need code for how to execute qtp scripts from excell sheet
Explain the Different types of QTP test assets and their extensions?
Is QTP supports Unix. If yes, then how the test automation is done?
tell me abt a time when u had to go above &beyind the call of duty to get the job done
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
please post the interview questions for QA position in FACTSET
How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric
The hybrid framework can be implemented for any application. Is it true?
What is a quick test professional?
Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ
What is a recovery scenario?
Explain data driven framework?
Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)