Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Usage example of Allure Environment Writer
import com.google.common.collect.ImmutableMap;
import static com.github.automatedowl.tools.AllureEnvironmentWriter.allureEnvironmentWriter;
public class ExampleTest {
@BeforeSuite
void setAllureEnvironment() {
allureEnvironmentWriter(
ImmutableMap.<String, String>builder()
.put("Browser", "Chrome")
.put("Browser.Version", "87.0.4280.88")
.put("URL", "http://eliasnogueira.com")
.build());
}
@Test
void myTest() {
// test goes here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment