Skip to content

Instantly share code, notes, and snippets.

@eliasnogueira
Last active December 29, 2020 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliasnogueira/03377d46ccbb2465404496618c525069 to your computer and use it in GitHub Desktop.
Save eliasnogueira/03377d46ccbb2465404496618c525069 to your computer and use it in GitHub Desktop.
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