- Report Preview
- Code Samples
- System Requirements
- Eclipse Setup
- Run The Demo Example
- Library References
@Features("Jimmy's feature")
public class ExampleTest {
@Stories("Jimmy's full example")
@Test(description = "Combine all examples.")
public void testFullExample() {
new CoreWebDiver().addStep("Produce amazing things")
.recordScreenshot("During Test example.")
.recordDataFile("During test data file", "{ More Data }");
}
}
- Java 8
- This could technically be down graded to Java 7 but would require some adjustments
- Maven
- Import as an existing Maven project.
- Install the TestNG Plugin.
- Optional: If you want to run tests from within Eclipse and want the annotation features to work then you need to add a java agent for AspectJ Weaver to your JVM so that it can watch for the annotations.
- Go to Eclipse's
Preferences
- Expand the
Java
section - Click
Installed JREs
- Click on the version of Java 8 that you are using
- Click
Edit
- Add
-javaagent:allure-tools/aspectjweaver-1.8.3.jar
to your Default JVM arguments - Click
Finish
- Click
Apply
- Go to Eclipse's
- From command line:
$ mvn clean test
- From Eclipse:
- Navigate to the test file
ExampleTest.java
- Right click on the file
- Click
Run As
- Click
TestNG Test
- Navigate to the test file
Library | About |
---|---|
Selenium | UI Browser Automation |
Allure | Fancy Test Result Reports |
TestNG | Test Suite Management |