title: How to implement different data for cucumber scenarios based on environment
body: <p>I have an issue with executing the cucumber-jvm scenarios in different environments. Data that is incorporated in the feature files for scenarios belongs to one environment. To execute the scenarios in different environemnts, I need to update the data in the features files as per the environment to be executed.</p>
  
  <p>for example, in the following scenario, i have the search criteria included in the feature file. search criteria is valid for lets say QA env.</p>
  
  <pre><code>Scenario: search user with valid criteria
  
  Given user navigated to login page
  And clicked search link
  When searched by providing search criteria
  |fname1  |lname1  |address1|address2|city1|state1|58884|
  Then verify the results displayed 
  </code></pre>
  
  <p>it works fine in QA env. But to execute the same scenario in other environments (UAT,stage..), i need to modify search criteria in feature files as per the data in those environments.</p>
  
  <p>I'm thinking about maintaing the data for scenarios in properties file for different environments and read it based on the execution environment.</p>
  
  <p>if data is in properties file, scenario will look like below.  Instead of the search criteria, I will give propertyName:</p>
  
  <pre><code>Scenario: search user with valid criteria
  
  Given user navigated to login page
  And clicked search link
  When searched by providing search criteria
  |validSearchCriteria|
  Then verify the results displayed 
  </code></pre>
  
  <p>Is there any other way I could maintain the data for scenarios for all environments and use it as per the environment the scenario is getting executed? please let me know.</p>
  
  <p>Thanks</p>