-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support of variables for measure attribute #566
Comments
I’ll need to double-check but it should not be a big issue to support variables in NCalc expressions. Will try to add it for next release. About using variables in an assertion, it is already globally supported. But something that could be potentially not supported is to use a variable for a specific element or attribute. Could you post your test and highlight which element or attribute has an issue. I know that the comparison of result-sets have a good support for variables but not assertions on structures. |
For the third case, I’d try to switch to |
|
<test name="Measure Exist">
<instance-settling>
<local-variable name="PerspectiveName" type="text">
<item>Claims</item>
<item>Assessors</item>
</local-variable>
</instance-settling>
<system-under-test>
<structure>
<!-- variable is not evaluated in this context -->
<measure caption="Additional Report" perspective="@PerspectiveName"/>
</structure>
</system-under-test>
<assert>
<exists />
</assert>
</test> |
I have two scenarios where it would be handy to have variable support:
<instance-settling>
<system-under-test>
? It seems I can't use a variable as belowMaybe it is already possible and I don't know how to configure, in case it's not let me know your thoughts. I guess the latter might be a rough one 😉
The text was updated successfully, but these errors were encountered: