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 / bfakruddin
Good Satyanj...
expected values in Datatable...!
'Code is here
dim obj_cnt,obj_val,exp_cnt,exp_val
set obj_cnt=object.getitemcount
for i=0 to obj_cnt-1
obj_val=object.getitem(i)
exp_cnt=datatable
("column_Name",dtGlobalSheet).getrowcount
for j=1 to exp_cnt
exp_val=datatable
("column_Name",dtGlobalSheet).value
if (exp_val=obj_val) Then
print "Expected Object is found in
List of Values"
reporter.reportevent
micpass,"Object has been found","Step is passed"
End if
End For
reporter.reportevent micfail,"Object doesn't found",
Next
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to add actions in driver script to run those actions in QTP?
how to increasing the numbers in a given text box please write a vb script
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.
Explain about tristate constants?
What are the disadvantages of vbscript?
How are arrays declared in the vbscript language?
Explain about adodb.stream class?
What are the environments supported by vbscript language?
What are the properties of regexp object?
What are the uses of vb script?
Mention what is the use of option explicit in vbscript?
Which command is used for writing text on a page?
What is byref and byval parameters in vbscript?
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
How can constants be declared in the vbscript language?