This is a project of Gauge of JavaWeb and build by Gradle. For test database,request and page operation automation of a SpringBoot application.
The tests are run on Chrome by default.
This example requires the following softwares to run.
-
Java 1.7 or above
-
Gauge Java plugin
- can be installed using
gauge --install java
- can be installed using
-
Chrome and Chrome WebDriver
- Download SpringBootDemo.jar file
- Bring up the SUT by executing the below command
java -jar SpringBootDemo.jar
- The SUT should now be available at http://localhost:8080/
If you already have Gradle installed, you can execute specs as gradle specs
. Otherwise, you can use the gradle wrapper and run specs as below:
./gradlew gauge
gradlew.bat gauge
This runs Gauge specs with Gradle.
This uses Chrome as default browser for specs execution. Make sure your Chrome and Chrome WebDriver is comparable.
- Edit build.gradle file and change env to what you wanted browser name which in env folder
Make sure WebDriver under env folder is comparable with your browser, if not, you need to replace it.
- IE WebDriver
- Chrome WebDriver
- Edge WebDriver
- Others you can find inhttp://www.seleniumhq.org/download/ mostly
This project reference from https://github.com/getgauge/gauge-example-java