Script development
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:
- JavaScript + Nightwatch.js
- Java + TestUI
- Python + Py-TestUI
client => {
// 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 can be found here.