Posts: 6
Threads: 3
Joined: Sep 2008
Reputation:
0
09-25-2008, 11:03 PM
I am trying to automate an application which uses a lot of forms.
In the dropdown boxes on the form there are about 50-100 values.
What options do I have in QTP to test all values are there, during regression testing. In some of the dropdown boxes you have to select an option. The second dropdown displays values based on the option selected in the first. Will appreciate any help I can get. I am a new QTP user. I was thinking about datatables. Will those help in the scenario above?
Posts: 1
Threads: 0
Joined: Sep 2008
Reputation:
0
09-30-2008, 02:04 PM
Hi
First of all get the items count for that use getitems count
frame a loop.
then get an item from that list by using getitem(i)
i stands for the number in the list
after getting you can compare the object and write the result if you want.
Posts: 4
Threads: 0
Joined: Sep 2008
Reputation:
0
09-30-2008, 02:38 PM
Hi
If the order in which items display in your Listbox doesn't change then try this one .Initially Using object Spy get the property "allitems".
In your script store the info in the same format got above in a variable.Get the object's(listbox) allitems property using getroproperty in another variable. compare both strings. You will get true or flase.
Anu
Posts: 6
Threads: 3
Joined: Sep 2008
Reputation:
0
10-02-2008, 03:16 AM
Hi everyone,
Thanks for all your suggestions. I was just checking the posts today. Was expecting an email when a reply has been posted.
Anyways I tried creating a standard checkpoint for the WebList and checked the innertext property in the checkpoint properties. So when I run my test the checkpoint passes if the values in the list are the same. If a value is missing or a new value is added later(after recording) the checkpoint fails. Do you guys agree with this solution??