Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » EventHandler to loop on data until correct line is found(How to loop on data in a table until correct line is found)
EventHandler to loop on data until correct line is found [message #1403609] Thu, 24 July 2014 15:00 Go to next message
Antoine VINCENT is currently offline Antoine VINCENTFriend
Messages: 8
Registered: July 2014
Junior Member
Simplified problem : We have a Table (or a TreeTable in SWT), 3 columns
No unique identifier on a single column but the complete line is unique.
I need to loop on the lines until I found the correct line matching 3 criterias.

Actuel Test :
- check the first column against a FIRST_ROW_VALUE
- check the second column against a SECOND_ROW_VALUE
- check the third column against a THIRD_ROW_VALUE
EventHandler : on CheckFailed, switch to next row (with a move), retry

But the Retry event will retry beginning at the failing check (for example, directly on the second or third column).
I tried to put the three checks in a test called "Check full line", and the event handler on the test calling this aggregated test "Check full line", but the event handler will still apply only to current check, not to the all test.


Moreover, I want to use only Retry event because I don't want to have failed tests in the report.

Can you help me finding a way to test this ?
Thanks.
Re: EventHandler to loop on data until correct line is found [message #1404105 is a reply to message #1403609] Tue, 29 July 2014 16:09 Go to previous messageGo to next message
David Hickernell is currently offline David HickernellFriend
Messages: 85
Registered: October 2012
Member
It sounds like you need something like this?
https://www.eclipse.org/forums/index.php/t/713061/
icon14.gif  Re: EventHandler to loop on data until correct line is found [message #1415741 is a reply to message #1404105] Wed, 03 September 2014 13:51 Go to previous message
Antoine VINCENT is currently offline Antoine VINCENTFriend
Messages: 8
Registered: July 2014
Junior Member
It's a bit tricky, but it worked. Razz
Thanks !
Previous Topic:Problems with Jubula and possibly Spring
Next Topic:Select table row - row has to fulfill multiple conditions
Goto Forum:
  


Current Time: Fri Apr 26 11:51:04 GMT 2024

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

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

Back to the top