nightwatch-data-driven
Provides tool for emulating data driven tests in Nightwatch.js.
Installation
npm i nightwatch-data-driven --save
Example 1: Simple usage
;; var test = { browser; } { // . Initialize DataDrivenTest with browser and AAA function // and call it for a set of test cases browser { // . Arrange browser; // . Act browserpage; // . Assert browserpage; } ; } { browser; };;
Example 2: Building and reusing of "test blanks"
;; // . Create "test blank"let submitLoginForm = ; var test = { browser; // . Initialize "test blank" with browser submitLoginForm; } { // . Use "test blank" with specific assertion and test cases submitLoginForm ; } { // . Use "test blank" with specific assertion and test cases submitLoginForm ; };