Mailingliste - Einträge 2007

[QF-Test] I need help checking the order of the headers in a table.

Subject: [QF-Test] I need help checking the order of the headers in a table.

From: "Derrik Ammons" <dammons@?.COM>

Date: Thu, 13 Sep 2007 18:36:06 -0700

We have several
tables in our application where I need to verify, among other things, the
order of the columns.

In my SUT script,
after getting the column count of the table using table.getColumnCount() method,
I loop through each of the columns and store the index, which is an incremented
variable, $(i), and the corresponding header, using
table.getModel().getColumnName($(i)) method, in a global variable as an
array. However, when I move the columns around with the mouse, and execute
the procedure again, the corresponding header names don't get
updated.

For example
initially, before any column movement, I will print out the contents of the
array and get the following:

where the first
attribute is the index, and the second is the header (column name). Then,
after moving the "IP Address" column to be first in the table, using the
mouse to click and drag the column over, I expected the index of the
corresponding header, "IP Address" to change to 0, like in the
following