1)How to test whether items in a weblist are in alphabetical
order or not?
Answer Posted / vikas choubey
For i=0 to Ubound(arrCtry)
If arrCtry(i)<>"--Choose One--" Then
objArray.Add(arrCtry(i))
End If
Next
objArray.Sort()
objArray.Insert 0,"--Choose One--"
For j=0 to Ubound(arrCtry)
strOuput=strOuput+objArray(j)
strOuput=strOuput+";"
Next
If
strOuput=Browser("name:=QTP").Page("title:=QTP").WebList("name:=select1").GetROProperty("all
items")+";" Then
Msgbox "The Weblist's values are sorted in alphabetical order"
Else
Msgbox "The Weblist's values are not sorted in alphabetical
order"
End If
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Which operator can be used to do an xor operation in vbscript?
How will you reverse a string in vbscript?
Is VB Script Case sensitive or Case insensitive?
Can anyone send me a vb script function for verifying the functionality of active links on a web page
What is vbscript language used for and which earlier language is it modeled upon?
What are the disadvantages of vbscript?
What is the purpose of on error resume next statement?
write any ttest cases using check points and parameterization
How to assign a date value to a variable?
Mention what is the difference between vbscript and vba?
What is byref and byval parameters in vbscript?
What are keywords in the vbscript language?
Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.
How to Import data from a file (file is on the desktop) to the data table
How will you convert a string to lower case string using vbscript?