Forum Discussion

SiKing's avatar
SiKing
Community Expert
12 years ago

DataSource Excel wrong worksheet


  1. Create a testcase that uses DataSource Excel.

  2. For the Worksheet specify a name that does not exist in your spreadsheet.

  3. In the testCase options, set Abort on Error = checked.

  4. Run the testCase from command like testrunner. Notice testrunner will exit with error status.

  5. Change the testCase options, set Abort on Error = unchecked.

  6. Run the testCase from command like testrunner. Notice testrunner will now exit with non-error status.
  • SiKing's avatar
    SiKing
    Community Expert
    I found the problem: I had a testRunner.cancel() in my test, after the failed DataSource.

    This was a user error. Sorry about all the confusion.