Javascript parameter issue following fail in TestExecution
Hello!
We are observing a scenario when executing tests composed of multiple KeywordTests and Script calls assembled in Test Execution.
Typically the flow of Keyword A -> Keyword B -> Script A -> Script B succeeds and all is well.
However, we are seeing that when Script A fails (Log.Error, anticipated fail), Script B throws an exception for a null value. When reviewing the call stack, it indicates that after the failure in Script A, Script B runs with some parameters not defined. If the previous script succeeds, there is no issue.
In the multiple cases where we observe this, the passed parameters that go missing following a failure are project variables, aliases. Strings, integers passed are unaffected.
Any idea why this might be occurring? Are there steps to take on failures earlier in Test Execution to prevent this?
The script calls we observe this in are Javascript functions stored in the same script file.