The SUMO toolbox  2018a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | List of all members
TestEngine Class Reference

Runs test cases (regression tests) More...

Public Member Functions

function TestEngine (var fileName, var testDir)
 Class constructor. More...
 
function delete ()
 Class destructor. More...
 
function run (var idx)
 run the test suite More...
 

Static Public Member Functions

static function checkTestCase (var testCase, var model, var outputDir)
 check an output dir against the test case More...
 
static function getDimensions ()
 
static function display ()
 
static function plotModel (var model, var oi)
 
static function close (var h)
 
static function evaluateDerivative (var p, var oi)
 
static function evaluate (var p)
 
static function evaluate (var p)
 
static function rethrow (var ME)
 
static function complexity ()
 
static function getId ()
 
static function getInputNames ()
 
static function getOutputNames ()
 
static function getMeasureScores ()
 
static function getSamples ()
 
static function getValues ()
 
static function getScore ()
 
static function getTransformationFunctions ()
 
static function evaluate (var p)
 
static function getBounds ()
 
static function getTransformationFunctions ()
 
static function inFunc (var LB)
 
static function inFunc (var UB)
 
static function addFailedCheck (var check, var text)
 Update failed checks. More...
 

Detailed Description

Runs test cases (regression tests)

Reads an XML file and then executes the test cases defined in the XML file

Constructor & Destructor Documentation

function TestEngine ( var  fileName,
var  testDir 
)
inline

Class constructor.

Parameters
fileNamexml file with the test cases
testDirpath to test results on server (optional)
Returns
Instance of the TestEngine class

Member Function Documentation

static function addFailedCheck ( var  check,
var  text 
)
inlinestatic

Update failed checks.

Parameters
checkfailed checks
textnew failed check
Return values
checkupdated failed checks
static function checkTestCase ( var  testCase,
var  model,
var  outputDir 
)
inlinestatic

check an output dir against the test case

Parameters
testCaseTestXml object
modelfinal surrogate model
outputDiroutput directory
Return values
successboolean
checkstring of all checks that failed
static function close ( var  h)
static
static function complexity ( )
static
function delete ( )
inline

Class destructor.

static function display ( )
static
static function evaluate ( var  p)
static
static function evaluate ( var  p)
static
static function evaluate ( var  p)
static
static function evaluateDerivative ( var  p,
var  oi 
)
static
static function getBounds ( )
static
static function getDimensions ( )
static
static function getId ( )
static
static function getInputNames ( )
static
static function getMeasureScores ( )
static
static function getOutputNames ( )
static
static function getSamples ( )
static
static function getScore ( )
static
static function getTransformationFunctions ( )
static
static function getTransformationFunctions ( )
static
static function getValues ( )
static
static function inFunc ( var  LB)
static
static function inFunc ( var  UB)
static
static function plotModel ( var  model,
var  oi 
)
static
static function rethrow ( var  ME)
static
function run ( var  idx)
inline

run the test suite

Parameters
idxindices to test cases to run (optional)
Return values
successboolean

The documentation for this class was generated from the following file: