how do I assert results from the test case run for all fields filled out into the values of the variables? thank you!
WebUI.verifyEqual(variableValue, expectedValue, FailureHandling.CONTINUE_ON_FAILURE)
Because you are using “local” variables, the issue you will have will be the values in the calling test case will always be the same as they were when you sent then out to the “called” test case, even if you updated the values in the “called” test case. It’s called, Pass by Value.
What you can do is make Global Variables for them all and then put them out and get the “updated” values back, as long as you put:
import internal.GlobalVariable as GlobalVariable
at the top of all your test cases. Then, you can use @dineshh method to verify the results, or even:
assert GlobalVariable.var_extra_level == 56
or some such.
Edit: of course, you can maybe “assert” the variables at the end of the “called” test case, too, where your test case can fail because of your FailureHandling option.
Edit2: and another idea is to use a Map Global Variable so all you pass between the two test cases is one variable, which has all the others inside: