If you pass an argument, it is passed by value. When you call
with "shared scope" you typically don't need to pass arguments. Because all variables are visible anyway. Try a simpler example, and please watch white-space around the =
sign.
main.feature
:
Feature:
Background:
* def json = { foo: 'bar' }
* call read('called.feature')
Scenario:
* match json == { foo: 'baz' }
called.feature
Feature:
Scenario:
* set json.foo = 'baz'
* match json == { foo: 'baz' }
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…