Re: Understanding manual SCXML test 307.

The relevant assertion is:

When "late" data binding is used, accessing data substructure in 
expressions before the corresponding data element is loaded MUST yield 
the same execution-time behavior as accessing non-existent data 
substructure in a loaded data instance.

So to pass the test, you should have the same output in s0 and s1, 
meaning either no error in both, or an error in both.

- Jim
On 6/30/2014 4:17 PM, Gavin Kistner wrote:
> I cannot tell from the leading comment how to determine if this test 
> is passing or not. I currently get these messages:
>
> entering s0 value of Var 1 is: : nil
> no error in s0
> error in state s1: <event>{type="platform", 
> name="error.execution.evaluation", data="[string \"return 
> testvar1.nonono\"]:1: attempt to index global 'testvar1' (a number 
> value)"}
>
> This looks correct to me, but I wanted to be sure. It looks to me like 
> this test may have been expecting an error in the first log, under the 
> assumption that all data models would raise an error reading a value 
> that had not yet been set.
>

-- 
Jim Barnett
Genesys

Received on Monday, 30 June 2014 21:55:31 UTC