Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Variable change in event handler has no effect on variable value in parent test case
Variable change in event handler has no effect on variable value in parent test case [message #1060003] Wed, 22 May 2013 13:56 Go to next message
Alexander Kolesov is currently offline Alexander KolesovFriend
Messages: 43
Registered: November 2012
Member
Hello Jubula team,

Could you please evaluate the following problem with Jubula 2.0 x64

Have test case T1:
- assign variable Var value 'false'
- check $Var to be equal 'true'

Test case T1 has event handler EH1 with retry attempt on Check Failed

EH1:
- assign variable Var value 'true'

Step by step testcase T1 execution:
1. Var is assigned value 'false'
2. Compare $Var and 'true'. Var != true. Call event handler EH1.
3. EH1 assigns Var value 'true'
4. Retry comparison of $Var and 'true'
Expected: Retry passed
Problem: retry failed since variable $Var is still equal 'false'

This problem is not reproduced in Jubula 1.3 and has a great impact (actually stops from migration to Jubula 2.0) since the most of existing testcases and framework use such logic

Thanks, Alex.
Re: Variable change in event handler has no effect on variable value in parent test case [message #1060097 is a reply to message #1060003] Thu, 23 May 2013 06:34 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi,

The situation you are describing is a planned change. It was documented in the release notes on page 8. The old way of resolving parameters was wrong (see this bug) and the behaviour has been noted and explained on this ticket. There is also an example project attached with a workaround for any projects that were using this way of working.

HTH,
Alex
Re: Variable change in event handler has no effect on variable value in parent test case [message #1060352 is a reply to message #1060097] Fri, 24 May 2013 08:56 Go to previous messageGo to next message
Alexander Kolesov is currently offline Alexander KolesovFriend
Messages: 43
Registered: November 2012
Member
Hi,
Thank you for response.
Tricky thing ... Smile

Thanks, Alex.
Re: Variable change in event handler has no effect on variable value in parent test case [message #1060361 is a reply to message #1060352] Fri, 24 May 2013 09:55 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Definitely tricky! It seems to be one of those bugs that got used as a feature Wink
Previous Topic:How to use the System Enviorment Variables of AUT configuration?
Next Topic:How to handle popup in jubula?
Goto Forum:
  


Current Time: Sat Apr 27 05:02:41 GMT 2024

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

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

Back to the top