Last active
December 29, 2020 18:59
-
-
Save eliasnogueira/03377d46ccbb2465404496618c525069 to your computer and use it in GitHub Desktop.
Usage example of Allure Environment Writer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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