End to End tests overview

Post on 12-Apr-2017

122 views 0 download

transcript

E2E tests overviewOksana Sivets, software engineer at ElifTech

What is End to End Testing?

What is End to End Testing?

What is the idea behind E2E testing?How would the users see my application?Is my backend communicating with my frontend?Can I release this code?It does NOT replace Unit Testing!

Integration into the project

Integration into the project

How to Install1. Download Node.js

2. npm install -g protractor

3. webdriver-manager update

4. webdriver-manager start

Setup a conf.js file

Writing testsWrite tests using Jasmine and WebdriverJS

Run the testprotractor conf.js

element() and element.all()

Using Page Objects to Organize Tests example.js

example.spec.js

Thank you for your attention!

Find us at eliftech.comHave a question? Contact us:info@eliftech.com