I'm just wondering why the following html code fails the test with
null values for the results:
<p concordion:execute="StartApollo()">
During startup Apollo loads all the core services, verifies that
the license is valid
and then sends a message to the user interface indicating that the
startup process is <b
concordion:assertEquals="#hasStartupCompleted">finished</b>.
</p>
with as code:
public string hasStartupCompleted = "not finished";
public void StartApollo()
{
// Do nothing
}
While the following does actually get the values correct:
<p>
During startup Apollo loads all the core services, verifies that
the license is valid and then sends a message to the user interface
indicating that the startup process is <b
concordion:assertEquals="StartApollo()">finished</b>.
</p>
with as code:
public void StartApollo()
{
return "not finished"
}
As far as I can tell the concordion:execute directive is implemented
and my code is executed. The member variable (hasStartupCompleted)
gets set to the correct value but it seems that Concordion never reads
the value. This may well be due to the fact that I'm confused about
some of the Concordion concepts (e.g. does it matter if the member
variable starts with captial or not? My tests seem to indicate it
should start with non-capitalised letter). Any hints / suggestions for
this one would be appreciated.
Patrick
I don't know the .NET version of Concordion, but here's how it works in
the Java version, which I understand is compatible,
#hasStartupCompleted refers to a temporary variable, not to a field on
the class. You would need to set this temporary variable in the
Concordion html for it to be available. For example:
<p concordion:execute="#hasStartupCompleted = StartApollo()">
During startup Apollo loads all the core services, verifies that
the license is valid
and then sends a message to the user interface indicating that the
startup process is<b
concordion:assertEquals="#hasStartupCompleted">finished</b>.
</p>
with:
public string StartApollo()
{
return "not finished"
}
hope that helps
Nigel.
It makes sense now. I've tried your example and it works perfectly.
Thanks for the help.
Regards
Patrick
> --
> You received this message because you are subscribed to the Google Groups
> "Concordion For .Net" group.
> To post to this group, send email to concordio...@googlegroups.com.
> To unsubscribe from this group, send email to
> concordion-for-...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/concordion-for-net?hl=en.
>
>