title: Robot Framework - how to get names of all keywords which include failed keyword?
body: <p>I'm currently working on reporting of Robot Framework test results to an external Test Management tool and I wanted to get the names of keywords that include a failed keyword.
  Example Test Case:</p>
  <pre><code>*** Test Cases ***
  Sample Test Case
      Top-level keyword
  
  
  *** Keywords ***
  Top-level keyword
      Keyword that Passes
      Middle-level keyword
  
  Middle-level keyword
      Bottom-level keyword
  
  Bottom-level keyword
      ${substraction}=  Evaluate  ${5} - ${4}
      Should Be Equal As Integers  ${substraction}  ${3}
  
  Keyword that Passes
      ${addition}=  Evaluate  ${5} + ${4}
      Should Be Equal As Integers  ${addition}  ${9}
  </code></pre>
  <p>After I run this Test Suite I see following result in the log file:
  <a href="https://i.stack.imgur.com/7amgK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7amgK.png" alt="sample test case" /></a></p>
  <p>I would like to get all the keyword names, which include failed &quot;Should Be Equal As Integers&quot; keyword with fail message. So a sample function output would include &quot;Top-level keyword&quot; -&gt; &quot;Middle-level keyword&quot; -&gt; &quot;Bottom-level keyword&quot; -&gt; &quot;Should Be Equal As Integers&quot; with fail message.
  I think that the best way would be to use the robot.result package from Robot Framework API, but I'm still a Python beginner so I'm not sure how to use it. Thanks in advance for any help.</p>