This overview will go over creating an end-to-end test for searching for a movie on RottenTomatoes.com.

Pre-Requisites

👍 This guide is helpful for getting ChromeDriver set up as an environment variable in Windows.

First Time Setup

  • Click on "Configure" in the bottom corner of the start window
  • Click Plugins

From there,
  • Search for both Gherkin and Cucumber plugins.
  • Install them
  • Restart IntelliJ

Project Setup

Once you have the pre-requisites prepared,
  • Click on Create a New Project.
  • Select Maven on the sidebar,
  • Select your Java version
  • Click next.

  • Name your project
  • Set the Location where you want to store your project locally
  • Click 'Finish' to create your project

Dependencies

IntelliJ will generate and open a barebones pom.xml file where you will add your dependencies, properties, and other necessities for this project.

Cucumber Java Skeleton is helpful for building out similar projects.
  • View the pom.xml file listed
  • Copy the properties and dependencies tags to your pom.xml file.

For this project, you will be using TestNG instead of JUnit so

From there
  • Grab the latest stable version
  • Insert the dependency into our pom.xml.

You will also be replacing all instances of JUnit in our pom.xml as well, updating the version information in the properties section.

To do this, you will:

You will need to edit this further:
  • Updating your Java Version
  • Add the Maven compiler source and compiler target.