Forum Discussion

june20satya's avatar
june20satya
Occasional Contributor
10 years ago

Handling expected test log errors.

My test log would show some expected errors due to which the script is mistaken to be failed in functionality.Is there a way to handle it like replacing them as warnings or deleting them from the log.



2 Replies

  • darshan_gandhi's avatar
    darshan_gandhi
    Occasional Contributor
    Hi Satya,



    You can use Log.message if you just want to post it as a message in Test logs..it will in this case not appear as Fail.

    Also you can disable the logging results to Test Result by Log.enabled = false and make it as True when you require to post something on Test Logs.



    Let me know in case you require additional information.



    Cheers,

    Darshan