I have 1 request which need authentication before it. Authentication executes one time at start and each time when request return code 403. Code of second auth looks like next:
int rc;
lr_start_transaction("trans");
lr_continue_on_error(1);
web_custom_request(...); // [1]
lr_continue_on_error(0);
rc = web_get_int_property(HTTP_INFO_RETURN_CODE);
if (rc == 403){
authentication(); // custom action which authenticate user
web_custom_request(...); // same as [1]
} else if (rc != 200){
lr_stop_transaction("trans", LR_FAIL);
}
lr_stop_transaction("trans", LR_FAIL);
But when I start this test, I see error in first run of request [1], which I don't want to see, how to make it PASS if second request of [1] is successfull?