This project demonstrates the usage of the Concordion Storyboard Extension with Selenium WebDriver.
Example output is shown here.
The tests use Selenium's ChromeDriver, so you'll need to have:
- Chrome installed (or you could change the code to use a different driver).
- chromedriver installed and added to the
PATH
(or thewebdriver.chrome.driver
system property set)
The download includes support to run the tests with either Gradle or Maven.
- From a command line opened at the location to which this package has been unzipped, run
gradlew clean test
- View the Concordion output under the subfolder
build/reports/spec/demo
- Download and install maven (this has been tested with 3.0.3)
- From a command line opened at the location to which this package has been unzipped, run
mvn test
- View the Concordion output under the subfolder
target/concordion/demo
Import as a Gradle or as a Maven project. This may require additional plugins to be installed to support Gradle or Maven.
Under the src/test/java
folder, find the StoryboardDemoFixture
class in the demo
package and run as a JUnit test. The location of the Concordion output is shown on the standard output console.
The tests will open a Chrome browser and perform a Google search.
The test should pass successfully,
The output folder should contain the following specification. (You can see an example of it here).
A GUI base and a REST based example.
If you are behind a HTTP proxy server, you may need to configure the proxy to allow access to www.google.com
The easiest way to do this may be to add the following lines to the Browser() constructor:
System.setProperty("http.proxyHost", "<proxy.host>");
System.setProperty("http.proxyPort", "<proxy.port>");
replacing <proxy.host>
with the host name of the proxy server, and <proxy.port>
with the port number.
If your proxy requires authentication, you will also need to set the properties http.ProxyUser
and http.proxyPassword
.
dev.gradle
is only needed if you want to run against snapshot or local builds of the concordion-storyboard-extension.
publish.gradle
is only needed if you want to publish the output to Github pages.
If copying the project for your own use, you probably won't want either of these files.
Feel free to discuss this demo project on the Concordion mailing list.