-
-
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
Share <variable> value between <system-under-test> and <assert> #480
Comments
This is not the expected behavior of a variable. Once the value of a variable has been evaluated it should not be re-evaluated. I'll treat this has a bug ... should be fixed within 15 days. From the top of my head, the problem is that the variable is accessed in parallel by the system-under-test and the assertion ... both check if the variable has been evaluated and return false then perform the evaluation (due to non-predictability of your evaluation, will return two different values). As a work-around, I'd suggest to write a dummy test, that will trigger the evaluation of the variable ... on your real test, the evaluation of the variable will already be performed and you should have the same value for assert and system-under-test. |
Please point me to a sample of the suggestion provided. I think the work around may solve the issue. Thank you very much for your support, Khanh |
The fix is available at https://ci.appveyor.com/project/Seddryck/nbi/builds/24542854 or in nuget with version |
What I've done so far to work around since last post that I create a control that was populated with input parameter values. This way we can control in put value rather than random in puts. One set back with this approach is only a discrete input at a time. I work around this limitation is via that update control table for new values. THANKS! |
When testing ETL process, we need to validate between source and target. Typically, query of system-under-test should return same value as in assert with a given parameter input. If that parameter input is dynamic generate during runtime, how can we ensure both queries using the same value. Following is my test suite code:
Test result show parameter value of system-under-test and assert are different because the test case pulls value in for each query which designs to return discrete value every time invoke the command.
NBi version v1.19
Any suggestion?
Thanks.
The text was updated successfully, but these errors were encountered: