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  

    Yes, that's my point.

    If there's a block list or allow list for HttpErrorsAsWarnings in RTS or API

    For example

    web_set_rts_key("key=HttpErrorsAsWarnings", "Value=1", LAST);//Enable HttpErrorsAsWarnings

    web_set_rts_key("key=BlockList", "Value=404,400,501", LAST);//HttpErrors as warnings except for 404 400 501

    or

    web_set_rts_key("key=HttpErrorsAsWarnings", "Value=1", LAST);//Enable HttpErrorsAsWarnings

    web_set_rts_key("key=AllowList", "Value=1**,3**,401", LAST);//HttpErrors as warnings only for 1XX, 3XX,401

    Will that meet your requirement?

     

    Regards,

    Wei-Wei Zhang

Comment
  • Hi  

    Yes, that's my point.

    If there's a block list or allow list for HttpErrorsAsWarnings in RTS or API

    For example

    web_set_rts_key("key=HttpErrorsAsWarnings", "Value=1", LAST);//Enable HttpErrorsAsWarnings

    web_set_rts_key("key=BlockList", "Value=404,400,501", LAST);//HttpErrors as warnings except for 404 400 501

    or

    web_set_rts_key("key=HttpErrorsAsWarnings", "Value=1", LAST);//Enable HttpErrorsAsWarnings

    web_set_rts_key("key=AllowList", "Value=1**,3**,401", LAST);//HttpErrors as warnings only for 1XX, 3XX,401

    Will that meet your requirement?

     

    Regards,

    Wei-Wei Zhang

Children
No Data