How to use BDD Gauge test headless chrome in CI
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BrowserDriver
env/default
gradle/wrapper
libs
specs
src/test/java
.gitignore
.travis.yml
README.md
build.gradle
gradlew
gradlew.bat
manifest.json
settings.gradle

README.md

GaugeChromeHeadlessBuild Status

Use Gauge with local headless chrome.

Usage

  • Command line
./gradlew clean gauge
  • Test Scenario

    • Open Baidu Homepage
    • Input 123
    • Click SearchBtn
    • Check first result
  • Tech

    • ChromeDriver version 2.35.528157
    • Use Chrome headless with ChromeOptions
    • Use local Chrome Driver with System.setProperty("webdriver.chrome.driver", "BrowserDriver/chromedriver");
    • Use DriverFactory and Driver to manage all Driver behave
  • CI - Agent Prepare

    • Install Java
    • Install Gauge
    • Install Gauge Java Plugin
    • Install Chrome

Tips

  • ChromeDriver is for linux,If you want to run in other OS,please replace chromedriver in BrowserDriver folder.
  • If you want to run the special spec, chage build.gauge like this.
gauge {
    specsDir = 'specs'
}
  • If you want to use this in CI, eg.Jenkins. Please make sure: CI User is not root user