Protractor, CucumberJS, and Gulp Example

Writing acceptance tests in Gherkin format helps the agile team to collaborate effectively. Implementing Cucumberjs step definitions using Protractor makes easier to define automated acceptance tests and encourages effective team collaboration.

protractor and cucumberjs

In this blog post, you will learn how to setup Protractor, CucumberJS, and Gulp with an example.

Gulp Installation

Automation – gulp is a toolkit that helps you automate painful or time-consuming tasks in your development workflow.

Cucumber + Protractor Folder Structure

Install Required Packages

After installing Gulp CLI and setting up folder struture, you can install the dependencies in package.json.

package.json

Feature File

The below feature contains one scenario for https://www.room77.com

Step Definitions

conf.js

Gulp File

[Total: 13    Average: 4.4/5]