Idea ID: 2798211

Need after check "mark http erros as warnings" the script be PASSED

Status: Delivered

Solution offered by scripting.

See status update history

In some aplication that we are testing, it is normal to get some error code like 403 or 422. In these cases we mark the transaction as "Pass" using the "lr_set_transaction_status(LR_PASS)"

For avoid these situation, we have used "lr_continue_on_error" to be able to continue executing the script and "lr_set_transacion_status (LR_PASS)" to mark as "PASS" the transaction.

But with these 2 workaround, we have continue our script running and we have put the transaction to PASSED but our script status still been FAILED.

We need a function to change the final script status to PASSED if we have changed any transaction to from FAILED to PASSED.

Tags:

Parents
  • Hi  

    I understand you solution, but for us is a workaround. We can apply this time due to we know that there always we are going to have a error code.

     

    But imagine that you have a request, and depending the return code we need to put as error or as warning.
    Example:
    404, 400, 501 we need to be error
    300,401 we need to be warning.

    with your solutin, you are forcing that all returned codes be warning. and this is why for us is a workaround and not a solution.

    regards

Comment
  • Hi  

    I understand you solution, but for us is a workaround. We can apply this time due to we know that there always we are going to have a error code.

     

    But imagine that you have a request, and depending the return code we need to put as error or as warning.
    Example:
    404, 400, 501 we need to be error
    300,401 we need to be warning.

    with your solutin, you are forcing that all returned codes be warning. and this is why for us is a workaround and not a solution.

    regards

Children
No Data