Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Insert text in new Row on Empty Table failed
Insert text in new Row on Empty Table failed [message #1671059] Fri, 13 March 2015 12:53 Go to next message
Karl-Heinz Schnoepel is currently offline Karl-Heinz SchnoepelFriend
Messages: 2
Registered: March 2015
Junior Member
Hi,
i test the developer API from Jubula and first tests works fine.


But when i try to insert text in a new row on a empty Table, following error occurs:

org.eclipse.jubula.client.exceptions.ActionException: Invalid row/column value
at org.eclipse.jubula.client.internal.impl.AUTImpl.processResponse(AUTImpl.java:197)


Since I'm still kind of new to the usage of Jubula can you please tell me where my problem is?

      
                ....
                TableComponent personenTable = SwingComponents
				.createJTable(ObjectMap.Personeliste_Jtable_Person);
                ButtonComponent add = SwingComponents
				.createAbstractButton(ObjectMap.Personenliste_Toolbar_Add);
                   ...
                 // Add new row in empty Table 
                 // Works fine!
                m_aut.execute(add.click(1, InteractionMode.primary),
				"Personenliste add");
		m_aut.execute(app.delay(1000), null);
                // Select the new Cell/Row in new Row 
                // Works fine!
		m_aut.execute(personenTable.selectCell("1", Operator.equals, "1",
				Operator.equals, 2, 50, Unit.percent, 50, Unit.percent,
				BinaryChoice.no, InteractionMode.primary), null);
		// Input Text in new row
                // Occurs Error: Invalid row/column value ????
		m_aut.execute(personenTable.inputTextSpecifyCell("Test KHS", "1",
				Operator.equals, "1", Operator.equals), null);
            ....


Thanks in advance.
Karl-Heinz
Re: Insert text in new Row on Empty Table failed [message #1679183 is a reply to message #1671059] Mon, 16 March 2015 14:04 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi there,

Thanks for your entry! So you're trying to enter the text "Test KHS" into the first cell in the first row, yes?

There are two things that come to mind:
1. It may not be necessary to select the new cell first. Can you try without this selection?
2. It could be the case that the error message is misleading. The "input text" action on tables can't always be used, and it is often advisable to write a method to e.g. select the cell (double click or single click depending on your table), then to use the "application input" text, then to press enter. Can you see if this works for you?

Let me know of your progress,
Alex
Re: Insert text in new Row on Empty Table failed [message #1689350 is a reply to message #1679183] Mon, 23 March 2015 11:35 Go to previous message
Karl-Heinz Schnoepel is currently offline Karl-Heinz SchnoepelFriend
Messages: 2
Registered: March 2015
Junior Member
Hi Alexandra,

thanks for your answers.
1. Input Text in new row without select new cell first becomes same error.
2. But select first row /cell and add text with:
"m_aut.execute(app.inputText("Test KHS"), "Fill first row");"
works fine.

Thanks for your help.

Karl-Heinz Schnöpel
Previous Topic:Accessing custom widgets from Java API
Next Topic:Customizing the Dashboard Summary Page
Goto Forum:
  


Current Time: Thu Dec 12 16:25:50 GMT 2024

Powered by FUDForum. Page generated in 0.02873 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top