title: How to get the current behave step with Python?
body: <p>I'm using behave with Python to do my tests. In the step file, I want to get the current step name, because if the test fails, I take a screenshot and rename the file to the step name.</p>
  
  <p>Something like this:</p>
  
  <p><strong>Given</strong> user is logged in<br>
  <strong>When</strong> user does something<br>
  <strong>Then</strong> something happens</p>
  
  <p>And I wanted my step code to be like this:</p>
  
  <pre><code>@given('user is logged in')  
  try:  
     # MY CODE HERE  
  except:  
     # GET THE STEP NAME HERE
  </code></pre>
  
  <p>Anyone have an idea how to do this?</p>