title: cucumber Repeat steps
body: <p>I am learing cucumber and trying to write a feature file.</p>
  
  <p>Following is my feature file. </p>
  
  <blockquote>
    <p>Feature: Doctors handover Notes Module</p>
  </blockquote>
  
  <pre><code>Scenario: Search for patients on the bases of filter criteria
  Given I am on website login page
  When I put username, password and select database:
    | Field        | Value        |
    | username     | test         |
    | password     | pass         |
    | database     | test|
  Then I login to eoasis
  Then I click on doctors hand over notes link
  And I am on doctors handover notes page
  Then I select sites, wards, onCallTeam, grades,potential Discharge, outstanding task,High priority:
    | siteList      | wardsList                     | onCallTeamList   | gradesList | potentialDischargeCB | outstandingTasksCB | highPriorityCB |
    | THE INFIRMARY | INFIRMARY WARD 9 - ASSESSMENT | null             | null       | null                 | null               | null           |
    | THE INFIRMARY | INFIRMARY WARD 9 - ASSESSMENT | GENERAL MEDICINE | null       | null                 | null               | null           |
    | THE INFIRMARY | INFIRMARY WARD 9 - ASSESSMENT | GENERAL MEDICINE | CONSULTANT | null                 | null               | null           |
    | THE INFIRMARY | INFIRMARY WARD 9 - ASSESSMENT | GENERAL MEDICINE | CONSULTANT | true                 | null               | null           |
    | THE INFIRMARY | INFIRMARY WARD 9 - ASSESSMENT | GENERAL MEDICINE | CONSULTANT | true                 | true               | null           |
    | THE INFIRMARY | INFIRMARY WARD 9 - ASSESSMENT | GENERAL MEDICINE | CONSULTANT | true                 | true               | true           |
  Then I click on search button
  Then I should see search results
  </code></pre>
  
  <p>I want to repeat last three steps like I select the search criteria then click on search button and then check search result. So how should I break this feature file. if I use scenario outline then there would be two different scenarios One for login and one for search criteria. Is that fine? Will the session will maintain in that case? Whats the best way to write such feature file.</p>
  
  <p>Or is this a right way to write?</p>