Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.83 KB

README.md

File metadata and controls

31 lines (18 loc) · 1.83 KB

Test e2e

This repository was created to help in this guide:

Automation with Protractor, PageObject and Cucumber

Requirement

To set up

  • Run npm install to install dependencies;
  • Run webdriver-manager update to install the helper that download the browsers and instance of Selenium.

Technologies used

I used the technologies below:

  • Protractor: Protractor is an end-to-end test framework for Angular and AngularJS applications. Protractor runs tests against your application running in a real browser, interacting with it as a user would;
  • Page Objects: Page Objects help you write cleaner tests by encapsulating information about the elements on your application page. A Page Object can be reused across multiple tests, and if the template of your application changes, you only need to update the Page Object;
  • CucumberJS: Cucumber is a tool for running automated tests written in plain language. Because they're written in plain language, they can be read by anyone on your team. Because they can be read by anyone, you can use them to help improve communication, collaboration and trust on your team;

Running tests

  • Start the Selenium Server webdriver-manage start

  • Run the tests protractor protractor.conf.js

  • Just run the tests are done protractor protractor protractor.conf.js -- --cucumberOpts.tags='@pending' without pending scenarios