2018 bis heute | 2017 2016 2015 2014 | 2013 | 2012

Mailingliste - Einträge 2012

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

Re: [QF-Test] setText in a generic JTable

  • Subject: Re: [QF-Test] setText in a generic JTable
  • From: MEVEL Clement <Clement.MEVEL@?.com>
  • Date: Thu, 4 Oct 2012 08:17:53 +0000


I don't really understand your question... I don't record all text fields but use only one genericTextField identified by its name.
In my case, in the Generic Table, I don't record other  component than GenericTable and GenericTableItem but I don't use the item for the moment (I would like to address directly the table).
The textField located in the table cell is not recorded, should I make it? But what kind of component and what identifier? 

Best regards


-----Original Message-----
From: Martin Moser [mailto:martin.moser@?.de] 
Sent: jeudi 4 octobre 2012 08:23
To: 'qftest-list@?.de'
Cc: MEVEL Clement
Subject: Re: [QF-Test] setText in a generic JTable

Hi Clement,

what do you get if you record setting a text?
If you get an additional text-field recorded you also need to make this generic as well.

Best Regards,

--On Mittwoch, Oktober 03, 2012 09:06:27 +0000 MEVEL Clement <Clement.MEVEL@?.com> wrote:

> Hi all,
> I have to set text in table cells.
> I defined a Generic JTable in order to not record every tables in my GUI.
> This generic table is recognized thanks to the table name passed in 
> parameter in the procedures. I tried to fill the table cell (text 
> field) using a procedure or a script but I did not succeed. Here are my tries:
> ·         By procedure:
> setText on GenericTable@$(columnName)&$(rowId)
> ð  The cell is found but the input method does not work
> [cid:image002.jpg@?.2230C2A0]
> ·         By script (Groovy)
> import javax.swing.JTable;
> xOffset = rc.lookup("xOffset")
> // Table with column "X from host" and an iterator for the lines // 
> The local variable tableName was set before to identify the 
> GenericTable table, (row, column) = rc.getComponent("GenericTable@X 
> from
> host&$(iterator)") table.setValueAt(xOffset, row, column)
> ð  Exception "Unexpected token: table@line 8, column 1"
> Any ideas?
> Regards
> Clement Mevel

Martin Moser                           martin.moser@?.de
Quality First Software GmbH            http://www.qfs.de
Tulpenstr. 41                          Tel: +49 8171 38648-14
DE-82538 Geretsried                    Fax: +49 8171 38648-16
GF: Gregor Schmid, Karlheinz Kellerer  HRB München 14083