Add project dependencies

Open the pom.xml file.

Copy the following inside the dependencies tag.

<dependency>
    <groupId>info.cukes</groupId>
    <artifactId>cucumber-java</artifactId>
    <version>1.1.5</version>
    <scope>test</scope>
</dependency>

<dependency>
    <groupId>info.cukes</groupId>
    <artifactId>cucumber-jvm</artifactId>
    <version>1.1.5</version>
    <type>pom</type>
</dependency>

<dependency>
    <groupId>info.cukes</groupId>
    <artifactId>cucumber-junit</artifactId>
    <version>1.1.5</version>
    <scope>test</scope>
</dependency>

<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>2.41.0</version>
</dependency>

If you notice, we are cucumber-jvm version 1.1.5 and selenium 2.41.0. These are the latest available at the time of writing the book.

Choose to pull the latest jar versions available.

Once you do this, all the required jars for your project would be imported and available for you while writing the test code.

Now the environment is all set to start writing the test code.

results matching ""

    No results matching ""