title: Protractor failure and browser handling on data driven approach
body: <p>We are developing data driven protractor framework (jasmine), I need help in handling certain failure scenario.</p>
  <p>I will be iterating same test with different data set, my Page module will handle the all verification.</p>
  <p>If any it blocks fails, I want to run the certain function to clear cookies, capture session details and re-start the browser (I do have all the functions )</p>
  <p>but ,</p>
  <p>I am not sure how to get the it block failure and trigger the specific function, also I want to make sure next loop iteration is triggered.</p>
  <p><code>browser.restart()</code> - never worked in data driven in before or after all .....</p>
  <p>If am running this data driven in parallel (we can run same test in parallel browser, but we can't distribute each data in to multiple browser), is there any way to distribute?</p>
  <pre><code>var dData = requireFile('testData/data.json');
  
  using(dData,async function(data, description) {
     describe( scenario 1++  , function() { 
  
           it('Load URL' , async function() { })
  
           it('validate Page1' , async function() { xxxxx })
           it('validate Page2' , async function() { xxxxx })
           it('validate Page3' , async function() { xxxxx })
  
     }) }
  </code></pre>