List Icon
Archive de la liste de diffusion

La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous abonner à la newsletter :
abonner à la newsletter 


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

Re: [QF-Test] Table in GWT


  • Subject: Re: [QF-Test] Table in GWT
  • From: Wim Willemsens <Wim.Willemsens@?.be>
  • Date: Wed, 4 Feb 2015 15:05:35 +0000

Hello,

 

Thanx for the reply!

 

I'm trying your solution with the next script

 

 

# first get the table and index

table, (row, column) = rc.getComponent("192.168.203.201.table14@Omschrijving@Pauze")

# then get the value of the table cell

cell = table.getValueAt(row, column)

 

 

But I always get:

 

Table

 

 

Kind regards

Wim

 

 

 

 

 

-----Oorspronkelijk bericht-----

Van: Gregor Schmid [mailto:Gregor.Schmid@?.de]

Verzonden: woensdag 28 januari 2015 17:18

Aan: qftest-list@?.de

CC: Wim Willemsens

Onderwerp: Re: [QF-Test] Table in GWT

 

 

Hi Wim,

 

the approach for such a situation is the same for all GUI engines:

 

First use a 'Fetch index' node on

 

table@Omschrijving@vergoeding verplaatsingstijd

 

to fetch the row index into a variable, e.g. the local variable "row".

Instead of "table", use the QF-Test ID of the specific table in your test-suite.

 

Follow this with a mouse click on the cell at the given row in the first column, e.g.

 

table&0&$(row)

 

You may want to set X and Y to 10,10 to be sure to hit the checkbox.

 

Best regards,

    Greg

 

Wim Willemsens <Wim.Willemsens@?.be> writes:

 

> Dear,

> 

> I’m testing a GWT-project and I’m stuck with following…

> 

> We have a table with 4 columns,

> 

> 1 = checkbox

> 

> 2,3,4 = text

> 

> Now I would like a script (or something else) that search a text in

> the 4^th column (Omschrijving) and then select the checkbox in the first column.

> 

> I don’t have any fixed reference to the checkbox, so it have something

> like: search for text and then select the checkbox in the first

> column(TD) of this row(TR)

> 

> Table

> 

> [cid]                               

> 

> Structure of html

> 

> In this case I need a script that search for “vergoeding

> verplaatsingstijd” and the select checkbox gwt-uid-162.

> 

> The table can be very long (2000 rows).

> 

> [cid]                                                         

> 

> Can somebody give me a hint where to start

> 

> Kind regards Wim

> 

> _______________________________________________

> 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