Dharmesh Verma
Katalon Apprentice
01/07/2018

How to get the reason for failure of a test case ?

I want to update a field in Jira based upon the reason of failure of a test case. How can I access this information in a custom keyword? The status can be obtained from testCaseContext.getTestCaseStatus() but I require TestCaseFailureMessage.
Upvote
Quote

Comments

  • Trong Bui
    Katalon Moderator
    03/15/2018
    The topic is moved to New Feature/Suggestion for further discussion.
    Upvote
    Quote
  • Bob Jones
    Katalon Ambassador
    05/03/2018
    +1 for this.
    Upvote
    Quote
  • Dung Ngo
    Katalon Apprentice
    11/08/2018
    This feature request has been acknowledged and logged to Github: https://github.com/katalon-studio/katalon-studio/issues/14.
    Please follow up its status there.
    Upvote
    Quote
  • Russ Thomas
    Katalon Evangelist
    11/08/2018
    edited November 8
    Dung,

    Please ensure this proposal is approached in a way that encompasses the entire logging mechanism. As you will recall, for this same reason, I rewrote how logging and reporting works for my test harnesses since the required hooks were not available (this proposed API/hook included).
    Upvote
    Quote
Sign In or Register to comment.