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
what is event handling?
How will you get the largest subscript of an array in vbscript?
How will you get a combined string from array of string in vbscript?
What are the uses of vb script?
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.
Mention what is vbscript?
Mention what is select case statement?
Explain about scrrun.dll?
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
How you can call vbscript functions?
What is the event handling in vbscript?
Explain a few date functions in vbscript
Which event is triggered when mouse focus comes out of an element in the vbscript language?
Explain about arrays in vb script?
What is the difference between vb debugger and the script debugger?