| || |
how to fail a api test in UFT when any of the checkpoints fail
I am making a call to api test from gui test in UFT. I have several checkpoints in api test that are being validated. I want to return a failure to gui test when any of the checkpoints fail without using too many if conditions.
var_CallAPITest = CallAPITest ("APITest7","APITest7Params-1.xml")
the above should get failure when any checkpoints fail. right now I have to use a if condition to return failure when a checkpoint fails but I have too many checkpoints to be checked and i dont want to use if condition for eaach checkpoint.
I'm trying to guess what is inside of CallAPITest(). I have never seen this function name before so I'm guessing that it is a custom function.
Are testing multipleitems in the function such as:
If something wrong then CallAPITest = False
If something else wrong then CallAPITest = False
Else CallAPITest = True
I don't know what is in the function.