Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » ub_tbl_replaceTextWithCellSpec doesn't replace text(behavior of a test case not what it is supposed to be)
ub_tbl_replaceTextWithCellSpec doesn't replace text [message #938140] Tue, 09 October 2012 11:34 Go to next message
Erik Gilbert is currently offline Erik Gilbert
Messages: 55
Registered: September 2010
Member
using ub_tbl_replaceTextWithCellSpec to replace the value of a cell in table with text. But text is not being replaced but instead appears to be inserted in the middle of the text or added to the beginning. Is this the correct behavior? Is there other test case I should use instead?
Re: ub_tbl_replaceTextWithCellSpec doesn't replace text [message #946592 is a reply to message #938140] Tue, 16 October 2012 06:17 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1132
Registered: July 2009
Senior Member
Hi,

The replace text with cell spec is an action whose behaviour is highly dependent on the cell editor used in the table. What is sometimes necessary is that you create a module that does this for your tables e.g.

- Select the cell you want to edit
- Click in it / press ctrl+a / press delete (depending on how your editor works)
- Use input text to enter the text
- Press enter if necessary

It takes a bit of time to make the module perhaps, but then you can reuse it for any table and any value.

HTH,
Alex
Re: ub_tbl_replaceTextWithCellSpec doesn't replace text [message #953763 is a reply to message #946592] Mon, 22 October 2012 10:11 Go to previous message
Erik Gilbert is currently offline Erik Gilbert
Messages: 55
Registered: September 2010
Member
I see! Yes, that works. I added a select cell and delete key press before the replace text and now I am getting what I need. Thank you again for your help!

Previous Topic:How to make common test case for 2 similar screens
Next Topic:Limit to modularization and referencing?
Goto Forum:
  


Current Time: Thu Aug 28 11:25:19 EDT 2014

Powered by FUDForum. Page generated in 0.04141 seconds