Lua Tester API
Introduction
The Lua Tester API is a set of REST methods used to request, monitor, and cancel Lua test scripts which perform multi-protocol actions and validations. Lua test scripts are used internally by N-Squared as part of their continuous engineering develop/test/release cycle, and the entire multi-procol scripted testing framework is also available to external clients as the N2PTF (N-Squared Protocol Testing Framework) product.
These test scripts are written using the Lua scripting language with the current supported version being Lua 5.2.
The Lua test scripts have access to the N-Squared library of Protocol Agent methods to generate and receive operations in a range of telephony domain protocols including CAMEL/INAP, MAP, SIP, Diameter, Radius, and ENUM. Other relevant general-purpose protocols including REST, SOAP, EDR/file access, are also supported.
The REST API described here provides the mechanism by which Lua test scripts are provided for execution, and the corresponding results are queried. The methods are:
- StartRun: Start a test run.
- QueryRun: Query the progress of a test run (return results if complete).
- CancelRun: Cancel a test run and return results.
Supplementary information here includes:
- Test Run Variables: Information provided to your test run script.
- Trace Log Entries: Structure of the “trace log” entries in test results.
This API is used by the command-line program lua_test, as well as by the N2PTF IDE plugins, and/or any other JSON/REST client.