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
If else for do while select in vb script?
How to create a function in vbscript?
i need to sort the data using qtp script for this how i need to write a qtp script
How are values assigned to the variables in the vbscript language?
What is the extension of the vbscript file?
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
Explain about scrrun.dll?
What are keywords in the vbscript language?
What is vbscript procedures?
Compare java script and 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.
Which data type/types are supported by vbscript language and what are their specialties?
We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
How to create a cookie using vbscript?