This is a template to get started with a Gauge project that uses Selenium as the driver to interact with a web browser.
gauge --install java_maven_selenium
- This template includes a sample specification which opens up a browser and navigates to
Get Started
page of Gauge. - Add more specifications on top of sample specification.
Read more about Specifications
This is where the java implementation of the steps would be implemented. Since this is a Selenium based project, the java implementation would invoke Selenium APIs as required.
We recommend considering modelling your tests using the Page Object pattern, and the Webdriver support for creating them.
- Note that every Gauge step implementation is annotated with a
Step
attribute that takes the Step text pattern as a parameter. Read more about Step implementations in Java
- You can execute the specification as:
mvn gauge:execute