I'm using LoadRunner Vugen (Virtual User Generator) to implement a C script and I am a bit puzzled because I'm getting this result:
Usually when I use some functions like
web_reg_find()
web_reg_save_param_regexp()
web_custom_request()
the flow interrupts if a HTTP error code comes in, but I needed to process data and treat some errors as normal situations using a code inside the response body, so I changed some of the parameters in order to do so.
But now is not clear to me what to do for making the script pass or fail as I wish. I already succeed with the transaction using:
lr_end_transaction(NOMBRE_TRANSACCION, transactionResult);
where transactionResult evaluates to LR_FAIL or LR_PASS depending on my needs, but I don't know which rules apply for making the script behave the same as the transaction. I tried returning different int values from the Action.c main body. I looked also in the docs but maybe I'm not searching properly, because I found nothing.
I just want to know which rules apply to force manually a LR vugen script to pass or fail.
Thanks in advance.