You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the update from 1.3.1 to 1.4.1, we have had the problem that variables "lose" their reference after a scenario is called in another feature.
The following simplified example code shows the problem:
Feature: references test
Scenario: references scenario
* def nestedJson = { value: 1 }
# Changing the value works:
* set nestedJson.value = 2
And match nestedJson == { value: 2 }
* def containingJson = { nested: "#(nestedJson)" }
# Changing the value is reflected in the containing element:
* set nestedJson.value = 3
And match containingJson.nested == { value: 3 }
* call read("./callEmptyFeature.feature")
# Changing the value is still reflected in the containing element:
* set nestedJson.value = 4
And match containingJson.nested == { value: 4 }
* call read("./callEmptyScenario.feature")
# Changing the value is no longer reflected in the containing element:
* set nestedJson.value = 5
And match containingJson.nested == { value: 5 }
# -> fails, the value is still 4
Thanks in advance for a fix.
The text was updated successfully, but these errors were encountered:
Since the update from 1.3.1 to 1.4.1, we have had the problem that variables "lose" their reference after a scenario is called in another feature.
The following simplified example code shows the problem:
Thanks in advance for a fix.
The text was updated successfully, but these errors were encountered: