Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.jbehave:jbehave-tutorial:'
}
dependencies {
implementation("com.github.jbehave:jbehave-tutorial:")
}
<dependency>
<groupId>com.github.jbehave</groupId>
<artifactId>jbehave-tutorial</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.jbehave" % "jbehave-tutorial" % ""
:dependencies [[com.github.jbehave/jbehave-tutorial ""]]
Tutorials in using jbehave-core, jbehave-web, and Selenium against pre-existing website etsy.com to show how BDD allows the description and test of the behaviour of a web application.
<img src="http://jbehave.org/reference/preview/images/jbehave-logo.png" alt="JBehave logo" align="right" />Etsy.com is a public live website that we treat as a black box and whose content we cannot control. As the structure of the application evolves, some scenarios may fail because the underlying elements of the web pages are not found any more or the content categories have changed.
The objective of the tutorial is not to test the website itself but to show how its behaviour can be described in BDD terms and - as a consequence - be made verifiable in an automated way. In this sense, failures are also a useful thing to have.
That said, we strive to keep up with the structure of Etsy.com so if you find that some scenarios fail due to changes in Etsy.com, feel free to contribute a patch.
Uses the 'etsy-selenium/java-spring' steps and makes them available via the JBehave Web Runner.
NOTE: The Web Runner is a standalone web application that provides a simple web interface for running the Etsy stories via the Java steps.
It does not run the (web) stories by command line.
mvn clean install -Pstable
mvn clean install -P\<profile\>,stable
mvn clean install -s settings.xml -P\<profile\>,codehaus
Building the tutorial has been tested with Maven 3.0.5-3.2.1 and JDK 1.7. Newer versions of Maven and JDK should work but could also present issues.
If you find any, please report them via JIRA
See Licence