title: Java Cucumber: How to get string parameter values from all the steps in a single scenario
body: <p>I'm looking for a way to get all the parameters that are being passed in each step <strong><em>before entering the actual scenario</em></strong> for each scenario in my feature file.</p>
  
  <p><strong>Sample feature file:</strong></p>
  
  <pre><code>Feature: Login action
    Background:
      When "{login url}" is open
  
    Scenario: Registered user provides valid username and password
      Given user enters username "{username}" and password "test password"
      And user clicks on "btnLogin"
      Then user is logged in
  </code></pre>
  
  <p><strong>Parameters I want to get:</strong>
  <li> {login url}
  <li> {username}
  <li> password
  <li> btnLogin</p>
  
  <p><strong>What I tried so far:</strong></p>
  
  <p>I have tried using a common hook that will be automatically used by all of my scenarios:</p>
  
  <pre><code>public class ScenarioHook {
  
      public ScenarioHook() {
      }
  
      @Before
      public void setupScenario(Scenario scenario) throws InterruptedException {
      //Here I am currently watching the {scenario} object and I can see all the steps
      //but I still dont know where to get the passed parameter values.
      }
  
      @After
      public void teardownScenario() throws InterruptedException {
      }
  }
  </code></pre>
  
  <p><strong>UPDATE 1:</strong>
  The reason why I want to do this is I want to manipulate the strings (if possible). e.g. all data enclosed in "{}" will be transformed to something else before entering the actual scenario.</p>