Use Gauge with local headless chrome.
- 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
andDriver
to manage all Driver behave
- ChromeDriver version
-
CI - Agent Prepare
- Install Java
- Install Gauge
- Install Gauge Java Plugin
- Install Chrome
- 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