NightwatchJS Automated testing in a nutshell

shwetaneelsharma

It is never too late to get started with automating your Acceptance tests. It is a known fact that automation is not here to replace humans, however, Automation is definitely a blessing when it comes to performing the repetitive tasks on a regular basis on different environments.

If you have been reluctant to implement Automation testing in your project / organization due to the fear of coding, well, browser Automation testing just got easier with the testing solution provided by Nightwatch.js for browser based apps and websites. It is an easy to use Node.js based end-to-end testing framework which can run tests using Selenium Driver.

In this session, we will demo and explain the following:

  • Configuration settings

  • Write simple scripts (No coding experience required)

  • Selector strategy

    • XPath

    • CSS

  • BDD Expect Assertions (which makes the assertions more readable)

  • Test Hooks

  • Test Execution

    • Execute test(s)

    • Tests as a Group

    • Tagged tests

    • Parallel execution on multiple browsers

    • Disabling tests

  • Custom Commands

    • Write custom functions that suit your application

  • Custom Assertions

    • Write custom assertions for more impactful tests

  • Custom Reports

    • Create customized reports as per your project need

  • Run tests on Cloud

Program tags

automation, javascript, testing

Experience Level

Beginner

Drupal Version