Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 1.32 KB

nemojs-the-natural-nodejs-automation-solution.md

File metadata and controls

29 lines (26 loc) · 1.32 KB

"NemoJS: The natural nodejs automation solution" by Matt Edelman

This talk introduced Nemo, a way to do end-to-end testing.

(video)

  • Background
    • Transformation at PayPal from Java -> NodeJS
    • Needed a way to automate testing
  • Nemo is a wrapper for Selenium / WebDriver
    • JSON config through confit
    • starts WebDriver
    • initializes plugins
    • provides access to the WebDriver API
    • still need a test framework and runner
  • Simpler code to get Selenium running
  • Provides access to WebDriver API -- nemo.driver, nemo.wd
  • Confit + Shortstop handlers
    • syntax to point to environment variables, a file, argv, etc.
    • multiple configurations possible, looks at the environment (NODE_ENV)
  • What can go in plugins?
    • WebDriver abstractions
    • user interactions
    • proprietary functionality
  • nemo-view plugin
    • provides a way to work with elements on the page
    • _find() & pass it a CSS selector
    • use a JS object to define locator methods, e.g. nemo.view.nav.bank().click()
    • helps you create "flow files" -- pattern to put workflows into modules