Tester Methods
Introduction
The “Tester Methods” are specifically provided for Lua scripts which are running test functions as part of the new Lua version of the N-Squared “IN Tester” product.
These methods are handled by the LogicApp itself and do not rely on external Lua Agent or Lua Service components.
Invoking Built-In Methods
A Lua Script can access the built-in actions with code such as the following:
local tester = require "n2.n2svcd.tester"
local args = ...
-- Perform a KPath test which passes (KPath ARRAYs are zero-based).
local object = {
k1 = { 1, 2, 3 }
}
tester.match_kpath_integer (object, "k1.[1]", 2)
return