@Retention(value=RUNTIME)
@Target(value={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=";")