Logo QF-Test

Im Archiv der Mailingliste
wertvolle Antworten finden.

 

Gratis Testen  Download  Kaufen

Thomas Max, QF-Test Training und Support

Tipp für die Recherche in der Mailingliste: Volltextsuche (oben) verwenden.

Thomas Max,
Sr. Software Engineer & Trainer, QFS

2016 bis heute 2015 | 2014 | 2013 | 2012 | 2011 2010 2009 | 2008 | 2007

(ältere Archiveinträge vor 2007 nicht dargestellt, aber in der Suche enthalten)

Mailingliste - Einträge 2007


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

[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:
 
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


Videos Downloads Dokumentation Kaufen Gratis Testen