Package net.thucydides.junit.annotations
Annotation Type 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=";")
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 -
Optional Element Summary
Optional Elements
-
Element Details
-
value
String value -
separator
char separator- Default:
','
-