Skip to content

Gauge Demo of Java by using gradle, test database,request and page operation

Notifications You must be signed in to change notification settings

helloworlde/Gauge-Java-Demo

Repository files navigation

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

About

Gauge Demo of Java by using gradle, test database,request and page operation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published