2018 up to now | 2017 | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2007


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: [QF-Test] I need help checking the order of the headers in a table.
  • From: Laurent Dolle <ldolle@?.com>
  • Date: Fri, 14 Sep 2007 10:19:33 +0200


Hi,

Moving a column does not change the model since the data of your table do not change.
Getting the column model rather than the model should give you what you want: table.getColumnModel().getColumn($(i)).getHeaderValue()

Rgds,
Laurent Dollé

Java Middleware Development

-----

Thales Security Solutions & Services
, on behalf of:
Amadeus - Global Core

+33 4 9715 3424



"Derrik Ammons" <dammons@?.COM>
To
<qftest-list@?.de>
cc
bcc
Subject
[QF-Test] I need help checking the order of the headers in a table.


"Derrik Ammons" <dammons@?.COM>  

Sent by: qftest-list-bounces@?.de  
14/09/2007 03:36




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:
 
0 : Description
1 : IP Address
2 : Discovery Status
3 : Community String
4 : RDC Address
5 : Product Type
6 : User ID

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
 
0 : IP Address
1 : Description
2 : Discovery Status
3 : Community String
4 : RDC Address
5 : Product Type
6 : User ID

 
but, in fact, after executing the procedure, again, after the column movement, the output was exactly the same as seen in the first example.
 
Am I doing something wrong?  Did the developer not update the table, or something?  Or is this type of test not supported in QF-Test 2.1?
 
What about sorting?  Do you have any examples of verifying the sorting on columns?
 
Thanks,
 
Derrik
_______________________________________________
qftest-list mailing list
qftest-list@?.de
http://www.qfs.de/mailman/listinfo/qftest-list