Introduction to Nightwatch.js, artifacts and implementation examples with Page Objects and a simple integration with Jenkins.
Link to public presentation in Google Drive: https://docs.google.com/presentation/d/1SPXFqfrKOW5ki93_F0Zbxgv4dL9QQrnPo7UkkR7aKTo/edit?usp=sharing
13. ā¢ Test Runner with parallel execution support.
ā¢ JUnit-compliant XML reports.
ā¢ assert-like and expect-like validations.
ā¢ Hooks: before, beforeEach, after, afterEach.
ā¢ Unit Testing support
Main Features
23. ā Martin Fowler.
āPage objects are a classic example of
encapsulation - they hide the details of the
UI structure and widgetry from other
components (the tests).ā
45. Tips & Tricks: Resources
ā Official Docs: nightwatchjs.org.
ā Starter Repo: https://github.com/salvamomo/nightwatch-starter.
ā API CODE: https://github.com/nightwatchjs/nightwatch/tree/master/lib/api.
46. ā All dependencies retrievable through npm.
ā 4 Artifacts to rule them all.
ā Good bye Selenium (mostly).
ā Remote testing: Chrome + Nightwatch + Node.
ā Almost fully extensible architecture.
Recap...