Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 09:56 Go to next message
Alexander Kolesov is currently offline Alexander Kolesov
Messages: 36
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 02:34 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1092
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 04:56 Go to previous messageGo to next message
Alexander Kolesov is currently offline Alexander Kolesov
Messages: 36
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 05:55 Go to previous message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1092
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: Thu Jul 31 07:37:42 EDT 2014

Powered by FUDForum. Page generated in 0.01847 seconds