helloworlde / Gauge-Java-Demo

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Java 93.1%Language:Python 3.6%Language:Ruby 3.3%