Mailingliste - Einträge 2006


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

Re: [qftestJUI] Table column identification


  • Subject: Re: [qftestJUI] Table column identification
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 28 Apr 2006 13:38:07 +0200

Hello Jon,

similar cases always turned out to be caused by classes derived from
JTable with a broken implementation of either the
convertColumnIndexToView or the getColumnCount method. In this case it
would have to be the former.

If that doesn't immediately ring some developer's bell, let me know
and I'll send you some info on how to (dis)prove this hypothesis.

Best regards,
    Greg


Jon Bright <jbright@?.de> writes:

> Hi,
> 
> We have a problem with identification of table columns.  We have a
> table looking something like this:
> 
> +-------+-------+-------+-------+
> |   A   |   B   |   C   |   D   |
> +-------+-------+-------+-------+
> |     1 | Foo   |    10 | 15,00 |
> |     2 | Bar   |    20 | 10,00 |
> +-------+-------+-------+-------+
> 
> We have a test which does a Check Text on (e.g.) "table@C&0", checking
> for "10".  This works fine (and also works fine if we use an Item
> node, "table.C&0").
> 
> What doesn't work fine is if we remove a column from the table:
> 
> +-------+-------+-------+
> |   A   |   C   |   D   |
> +-------+-------+-------+
> |     1 |    10 | 15,00 |
> |     2 |    20 | 10,00 |
> +-------+-------+-------+
> 
> If we now run the test again, the Check Text gets a mismatch,
> expecting "10" and getting "15,00".  Is QFTest caching the index of a
> given column name?  If so, is there some way we can get it to flush
> this cache?  If not, how can we work around this problem?
> 
> -- 
> Jon Bright
> Software Entwickler, tick-IT GmbH
> http://www.tick-it.de

-- 
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876


Videos Downloads Dokumentation Kaufen Gratis Testen