title: Codeception multiple tests, 1 script
body: <p>I think I might be getting the concept wrong or not thinking about something correctly. I'm looking for a way to connect to db, and then run a selenium test (in phantomjs) for every row of a table. The test is to check for broken images on a bespoke CMS, and could be applied to any CMS.</p>
  
  <p>I basically want to run an acceptance test for every page (of a specific type) by loading their IDs from the db and then running a separate test for each ID.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>$I = new WebGuy($scenario);
  $results = $I-&gt;getArrayFromDB('talkthrough', '`key`', array());
  foreach ($results as $r) {
      $I-&gt;wantTo('Check helpfile '.$r['key'].'for broken images');
      $I-&gt;amOnPage('/talkThrough.php?id='.$r['key']);
      $I-&gt;seeAllImages();
  }
  </code></pre>
  
  <p>This works to some extent in that it executes until the first failure (because it is running as 1 test with many assertions).</p>
  
  <p>How do I make this run as individual tests?</p>