Conditional pass/failure within recording
Posted: Wed Aug 29, 2018 3:42 pm
I have some UserCodeMethods to test a web API. The functions are returning the status of the response as well as the response body acceptably. What isn't clear (to me anyway) is how I can get ranorex to register either a pass or failure within a recording by testing a local variable value that has been passed back from the method and also specify which value constitutes success since this can change from one test to another.
For example if I'm testing whether something is invalid because of lack of valid credentials being passed (intentionally in this case) then 403 would constitute a pass whereas in tests where all parameters are valid something like 200 would normally be expected.
For example if I'm testing whether something is invalid because of lack of valid credentials being passed (intentionally in this case) then 403 would constitute a pass whereas in tests where all parameters are valid something like 200 would normally be expected.