title: Protractor - how to reuse the same spec file for different tests
body: <p>In my Protractor <code>conf.js</code> file, I'd like to re-use the same spec files multiple times; however, it's seems to not be possible.</p>
  
  <p><strong><em>Some background:</em></strong></p>
  
  <p>We are reading test cases from a JSON file, launching reports, then testing grid results and various DOM elements.</p>
  
  <p>All reports have the same format. The primary differences lie in the report titles, data columns, actual data results, etc.</p>
  
  <p>So in my <code>conf.js</code> file, ideally I'd like to re-use the same spec files multiple times - but my understanding is that I cannot do this.</p>
  
  <p>For example, my spec array:</p>
  
  <pre><code>specs: [
        'spec/report1-spec.js',
        'spec/report-grid-details-spec.js',
        'spec/report2-spec.js',
        'spec/report-grid-details-spec.js',
        'spec/report3-spec.js',
        'spec/report-grid-details-spec.js',
   ]
  </code></pre>
  
  <p>I've read this post (<a href="http://ramt.in/how-to-run-identical-jasmine-specs-multiple-times-with-protractor/" rel="nofollow noreferrer">http://ramt.in/how-to-run-identical-jasmine-specs-multiple-times-with-protractor/</a> ) where you can move your spec files into a <code>node module</code>, but <code>1)</code> I don't want to move all specs files there, and <code>2)</code> it doesn't work anyway when I move even one spec file into a module export file.</p>
  
  <p>If I can't do it, then I'll just move my <code>report-grid-details-spec.js</code> code into a common <code>page object</code> file and call it whenever it's needed.</p>
  
  <p>Just wondering if anyone out there has found a solution to this need to re-use spec files multiple times in one <code>conf.js</code> configuration.</p>
  
  <p>Thank you,
  Bob</p>