Skip to content

Commit

Permalink
Integration test / Add chrome driver instruction. (#2964)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre authored and josegar74 committed Jul 17, 2018
1 parent d11d6b1 commit c2d92c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion integration-test/README.md
Expand Up @@ -8,7 +8,8 @@ Based on [selenium-cucumber](https://github.com/selenium-cucumber/selenium-cucum

Go to your project directory from terminal and hit following command

* `mvn test -Dbrowser=phantomjs -Dphantomjs.binary.path=$DRIVERS_BIN/phantomjs -DendPointToTest=http://localhost:8080/geonetwork`
* With phantomJS `mvn test -Dbrowser=phantomjs -Dphantomjs.binary.path=$DRIVERS_BIN/phantomjs -DendPointToTest=http://localhost:8080/geonetwork`
* With Chrome `mvn test -Dbrowser=chrome -Dwebdriver.chrome.driver=/pathto/chromedriver -DendPointToTest=http://localhost:8080/geonetwork`

* The url to test could by defined in **src/test/resources/system.properties** by changing the property **endPointToTest.url** or provided to the mvn command with the parameter `-DendPointToTest=YOUR_URL`

Expand All @@ -17,6 +18,7 @@ Go to your project directory from terminal and hit following command
* To specify a path for the reports use the option `-Dcucumber.options="--plugin html:./report` in case you need to specify your path, the path must go after `-Dcucumber.options="--plugin html:./report your path`



## PhantomJS driver

The purpose of this software it's to run automated tests after builds, so it's used the phantomJS driver.
Expand All @@ -31,6 +33,10 @@ If you want to see the running tests on firefox you can also use a geckodriver b

Download the geckodriver from [here](https://github.com/mozilla/geckodriver/releases)

## Chrome driver

Download Chrome driver from [here](http://chromedriver.chromium.org/downloads).


## Writing a test

Expand Down

0 comments on commit c2d92c0

Please sign in to comment.