Script

Script #

Test script is a frontend automation script that mocks participant actions using Selenium. It is one of the main factors which determines successful test runs. This script must be written in JavaScript+ Nightwatch.js as a function that accepts a single parameter (usually browser or client); Java+ TestUI as a public void function or Python+ Py-TestUI as a function with name that starts with test, and accepts single parameter named driver. Check the examples below:

function(browser) {
    // Nightwatch.js function code goes here
}
public void myFunction() {
    // TestUI function code goes here
}
def test(driver):
    // Py-TestUI function code goes here

More examples for JavaScript can be found here; for Java here and for Python here.