Annotation Type UseTestDataFrom


@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface UseTestDataFrom
Lets you to perform data-driven tests using CSV file in the specified location with the first row acting as header. Default separator is comma, which could be overridden by specifying the separator attribute.
You can specify multiple file paths separated by path separators – colon, semi-colon or comma.
You can also configure an arbitrary directory using system property serenity.data.dir and then refer to it as $DATADIR variable in the annotation.
Example usage: @UseTestDataFrom(value = "test-data/simple-data.csv,$DATADIR/simple-data.csv", separator=";")
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    char
     
  • Element Details

    • value

      String value
    • separator

      char separator
      Default:
      ','