Logo QF-Test

Finding valuable answers
in the Mailing List Archive.

 

Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2017 up to now  | 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 2015


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

Re: [QF-Test] Reg : Queries in accessing JtreeTable


  • Subject: Re: [QF-Test] Reg : Queries in accessing JtreeTable
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Fri, 09 Jan 2015 15:41:01 +0100

Hello Arul,

a Swing JTable can be addressed as a TreeTable by implementing a
TreeTableResolver. This is explained in manual section 39.1.10:

http://www.qfs.de/qftest/manual/en/tech_nameresolvers.html#sec_treetableresolver

Example 39.7 shows a Jython SUT script that you can add to your
startup sequence after your SUT has connected and that works for most
Swing TreeTables:


def getTree(table):
    return table.getTree()
def getColumn(table):
    return 0
resolvers.addTreeTableResolver("treeTable", getTree, getColumn,
                               "my.package.TreeTable")

You should then be able to record events and checks on the table as
usual, but row indexes should always be represented as tree paths from
the first column.

If that doesn't work, please get back to our support and include your
test-suite and specific information about what goes wrong.

Best regards,
    Greg

arulraj.savariraj@?.com writes:

> Hi,
>
> Thanks a lot for your response for my previous post.
>
> Question:        How to connect the jTreeTable by using Server / SUT Script ? It would be much
> helpful for me if you provide a sample code to connect  jTreetable , find out the total row /
> column count and fetch the data using row / column number.
>
> Best Regards
> Arul S
>
> This message and any attachments (the "message") is
> intended solely for the intended addressees and is confidential.
> If you receive this message in error,or are not the intended recipient(s),
> please delete it and any copies from your systems and immediately notify
> the sender. Any unauthorized view, use that does not comply with its purpose,
> dissemination or disclosure, either whole or partial, is prohibited. Since the internet
> cannot guarantee the integrity of this message which may not be reliable, BNP PARIBAS
> (and its subsidiaries) shall not be liable for the message if modified, changed or falsified.
> Do not print this message unless it is necessary,consider the environment.
>
> ------------------------------------------------------------------------------------------
>
> Ce message et toutes les pieces jointes (ci-apres le "message")
> sont etablis a l'intention exclusive de ses destinataires et sont confidentiels.
> Si vous recevez ce message par erreur ou s'il ne vous est pas destine,
> merci de le detruire ainsi que toute copie de votre systeme et d'en avertir
> immediatement l'expediteur. Toute lecture non autorisee, toute utilisation de
> ce message qui n'est pas conforme a sa destination, toute diffusion ou toute
> publication, totale ou partielle, est interdite. L'Internet ne permettant pas d'assurer
> l'integrite de ce message electronique susceptible d'alteration, BNP Paribas
> (et ses filiales) decline(nt) toute responsabilite au titre de ce message dans l'hypothese
> ou il aurait ete modifie, deforme ou falsifie.
> N'imprimez ce message que si necessaire, pensez a l'environnement.
>
> _______________________________________________
> qftest-list mailing list
> qftest-list@?.de
> http://www.qfs.de/mailman/listinfo/qftest-list

--
Gregor Schmid

E: gregor.schmid@?.de
T: +49 (0)8171 38648-11
F: +49 (0)8171 38648-16

Quality First Software GmbH | www.qfs.de
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Karlheinz Kellerer
HRB München 140833



Videos Downloads Documentation Buy Free Trial