title: Can we create a feature level or global variable in cucumber feature files (java)
body: <p>Is there any way to create a common variable at the feature file level &amp; use it across scenarios instead of hardcoding as below for each step in cucumber feature files using java</p>
  <pre><code>eg:
  Feature: Test
  Scenario: scenario 1
    Given a user
    When get request is sent to &quot;url&quot;
    Then response code is 200
  
  Scenario: scenario 2
    Given a user
    When get request is sent to &quot;url&quot;
    Then response code is 200
  </code></pre>
  <p>Want to do something like this</p>
  <pre><code>eg:
  Feature: Test
  global_variable_url=url
  Scenario: scenario 1
    Given a user
    When get request is sent to &quot;&lt;global_variable_url&gt;&quot;
    Then response code is 200
  
  Scenario: scenario 2
    Given a user
    When get request is sent to &quot;&lt;global_variable_url&gt;&quot;
    Then response code is 200
  
  </code></pre>