Forum Discussion

SiKing's avatar
SiKing
Community Expert
12 years ago

[Resolved]DataSink type Excel errors for nonexistant file


  1. create a step that defines a variable; I used a Groovy Step with just a simple:
    testRunner.testCase.setPropertyValue("my_property", "good")

  2. set the property from #1 initially to value "bad"

  3. create a DataSink Excel step

  4. for File use: ${#TestCase#my_property}.xls

  5. make sure the file good.xls exists

  6. run the test - see it fail: java.io.FileNotFoundException
  • SiKing's avatar
    SiKing
    Community Expert
    FYI: just found out that adjusting the filename from TestCase Setup works.
    I still do not get why the DataSink step has to read the file at the start of the test as opposed to at the start of the step.