Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

End-to-End (E2E) Testing at Chroma

208 views

Published on

Javascript is most popular programming language at Chroma, that's the reason we have picked NightwatchJS as (End-toEnd (E2E) framework of choice.

We are considering using
https://github.com/blueberryapps/partition/blob/master/README.md

..as soon as we come across scaling issues.

Published in: Software
  • D0WNL0AD FULL ▶ ▶ ▶ ▶ http://1lite.top/5GES31 ◀ ◀ ◀ ◀
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • D0WNL0AD FULL ▶ ▶ ▶ ▶ http://1lite.top/5GES31 ◀ ◀ ◀ ◀
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

End-to-End (E2E) Testing at Chroma

  1. 1. END TO END TESTING - NIGHTWATCHJS WWW.CHROMASPORTS.COMAuthor: Chroma Nightwatch.js End-to-End (E2E) at CHROMA
  2. 2. END TO END TESTING - WHAT DO WE MEAN BY TESTING? WWW.CHROMASPORTS.COMAuthor: Chroma UNIT TESTING ● methods/functions INTEGRATION TESTING ● components/modules PENETRATION TESTING ● Complete System LOAD TESTING ● Complete System E2E TESTING ● Web browser ● As and end user ● Complete System
  3. 3. END TO END TESTING - WHY DO WE NEED E2E TESTING? WWW.CHROMASPORTS.COMAuthor: Chroma OBJECTIVES 1. Continuous Integration: => Push to production daily 1. No Dedicated QA resources as part of the scrum team 1. Release must not break user flows
  4. 4. END TO END TESTING - WORKFLOW WWW.CHROMASPORTS.COMAuthor: Chroma INSTALL ● Add nightwatch npm package to your front-end repository CREATE A TEST ● E2E test is part of “Done”, create a test for each user story RUN THE TEST ● Make sure “npm test” is added to the build script
  5. 5. END TO END TESTING - NIGHTWATCHJS WWW.CHROMASPORTS.COMAuthor: Chroma ABOUT Nightwatch.js is an automated testing framework for web applications and websites, written in Node.js and using the W3C WebDriver API (formerly Selenium WebDriver). It is a complete browser (End-to-End) testing solution which aims to simplify the process of setting up Continuous Integration and writing automated tests.
  6. 6. END TO END TESTING - NIGHTWATCHJS WWW.CHROMASPORTS.COMAuthor: Chroma WHY Best E2E testing framework for Javascript developers Rich community, actively supported Easy to get started
  7. 7. END TO END TESTING - WORKFLOW WWW.CHROMASPORTS.COMAuthor: Chroma KEY PRINCIPLES ● Easy to install & maintain (npm install chroma-nightwatch) ● Don’t repeat yourself (page objects) ● Use unique html identifiers
  8. 8. END TO END TESTING - LET’S GET SOME CODING DONE! WWW.CHROMASPORTS.COMAuthor: Chroma 1) npm install chroma-nightwatch 1) npm test 1) The tests are failing, let’s fix them

×