Mailingliste - Einträge 2005


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

RE: [qftestJUI] differences qftestJUI 1.2 and qftestJUI 1.4 -- table column header names


  • Subject: RE: [qftestJUI] differences qftestJUI 1.2 and qftestJUI 1.4 -- table column header names
  • From: "Moser, Martin \(Bbn\)" <mmoser@?.com>
  • Date: Wed, 5 Oct 2005 09:45:05 +0200

Hi Gregor,

you are right. I talk about versions 1.08.2 and 1.08.4.

The ItemNameResolver worked, thank you.

Regards,
Martin

-----Original Message-----
From: Gregor Schmid [mailto:Gregor.Schmid@?.de]
Sent: Tuesday, October 04, 2005 4:19 PM
To: qftestJUI-list@?.de
Cc: Moser, Martin (Bbn)
Subject: Re: [qftestJUI] differences qftestJUI 1.2 and qftestJUI 1.4 --
table column header names



Hi Martin,

are you really talking about versions 1.2 and 1.4? I guess you mean
1.08.2 and 1.08.4, right?

There was a bugfix that changed the treatment of table headers. Before
1.08.3, html markup in table headers wasn't correctly removed because
qftestJUI didn't properly retrieve the table header's default renderer.

This change is backwards compatible unless your table uses HTML headers
or a special header cell renderer. Now it looks like your renderer
prepends blanks to the header cells.

To get the old behavior, use the following ItemNameResolver:

-----------------------------------------------------------------
from javax.swing.table import TableColumn
from de.qfs.apps.qftest.extensions import ItemNameResolver,
ResolverRegistry

class MyHeaderResolver(ItemNameResolver):
    def getItemName(self, source, primary, secondary):
        try:
            # source must be a TableColumn
            return str(source.getHeaderValue())
        except:
            # Error handling: print a Jython stacktrace
            import traceback
            traceback.print_exc()

headerResolver = MyHeaderResolver()
ResolverRegistry.instance().registerItemNameResolver(TableColumn,
headerResolver)
-----------------------------------------------------------------

Best regards,
    Greg


"Moser, Martin \(Bbn\)" <mmoser@?.com> writes:

>    Hi all,
>
>    I tried to migrate my tests from qftestJUI 1.2 to qftestJUI 1.4
> today.
>
>    Unfortunately I got troubles recording clicks on the content of a
>    JTable.
>
>    Here is a brief description of the problem:
>
>    Behaviour with qftestJUI 1.2:
>            I clicked on the first element of a table and qftestJUI
>    recorded something like <TABLEID>@<COLHEADERNAME>@<VALUE>
>
>    Behaviour with qftestJUI 1.4:
>            I clicked on the first element of a table and qftestJUI
>    recorded something like <TABLEID>@ <COLHEADERNAME>@<VALUE>
>
>            This leading blank in front of the <COLHEADERNAME> is
>    interrupting all my tests.
>            I used the same SUT Version for both qftestJUI Versions.
>
>    Is this difference by design or by error?
>
>    Thanks in advance!
>
>    Regards,
>    Martin
>
>    --
>    Mit freundlichen Gruessen/Best regards
>
>    Martin Moser
>    PHONE: (+49)-7031-14-3047 (HP TELNET: 777-3047)
> _______________________________________________
> qftestJUI-list mailing list
> qftestJUI-list@?.de
> http://www.qfs.de/mailman/listinfo/qftestjui-list

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