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
who will create the object?
How will you get the last occurrence of one string within another string using vbscript?
Which in-built function related to an array joins substrings into one string in the vbscript language?
after medical test,when will be the police verification
What is byref and byval parameters in vbscript?
What are the data types supported by vbscript?
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
Mention what is the use of option explicit in vbscript?
Explain about tristate constants?
how to acces the remote mechine using vb cript(QTP)
What is loose binding? Why is it not a good practice to use it?
Which function is used in the vbscript language to convert the specified expression into a date type value?
How to open browser in vb script?