All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.thucydides.junit.annotations.UseTestDataFrom Maven / Gradle / Ivy

package net.thucydides.junit.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 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=";") */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE, ElementType.METHOD}) public @interface UseTestDataFrom { String value(); char separator() default ','; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy