Skip to content

Latest commit

 

History

History
66 lines (40 loc) · 2.32 KB

README.md

File metadata and controls

66 lines (40 loc) · 2.32 KB

Gauge-Java-Demo

This is a project of Gauge of JavaWeb and build by Gradle. For test database,request and page operation automation of a SpringBoot application.

Running this example

The tests are run on Chrome by default.

Prerequisites

This example requires the following softwares to run.

Setting up the System Under Test (SUT)

java -jar SpringBootDemo.jar

Run specs

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:

On Linux / Mac

./gradlew gauge

On Windows

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.

If you want to use Firefox/IE or other browser

  • 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.

WebDriver download


This project reference from https://github.com/getgauge/gauge-example-java