Script

Test script is frontend automation script that mocks participant actions. It is one of the main factors which determines successful test run. This script must be written in Nightwatch.js as a function that accepts single parameter (usually browser or client) or TestUI as public void function. Check the example below:

function(browser) {
// Nightwatch.js function code goes here
}
public void myFunction() {
// TestUI function code goes here
}

More examples for Nightwatch.js can be found here and for TestUI here