Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do I check that the names in a weblist are correct e.g
in flight application the names of item are Denver,
paris,London, etc. How do I ensure the correct item is
displayed from the list after doing item count ?

Answer Posted / satyanj

First save all item names in DataTable with column
name "FlyFrom" and follow the script:

Val1 = dataTable.Value("FlyFrom")
i = 0
itm = Window("F.R.").WincomboBox("Fly From:").GetItem(i)
If Val1 = itm then
reporter.reportevent 0,"<Step Name> ","<pass>"
else
reporter.reportevent 1,"<Step Name>","Fail"
EndIf
i = i+1

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is event handling?

1015


How will you get the largest subscript of an array in vbscript?

1178


How will you get a combined string from array of string in vbscript?

967


What are the uses of vb script?

1048


how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

5222


Mention what is vbscript?

1139


Mention what is select case statement?

967


Explain about scrrun.dll?

982


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3470


How you can call vbscript functions?

1102


What is the event handling in vbscript?

992


Explain a few date functions in vbscript

997


Which event is triggered when mouse focus comes out of an element in the vbscript language?

967


Explain about arrays in vb script?

1068


What is the difference between vb debugger and the script debugger?

1150