class %UnitTest.TestScript
extends %UnitTest.TestCase
Extends TestCase. Add methods to compare log files and write out test results and display errors.
The TestScript class is an example of how you can extend TestCase to create classes for your own testing needs.
parameter CORRELATIONLIST;
List that correlates XML tags in a data file with classes. Tag/class entries are in the form tag:class, tag1:class1, tag2:class2. Each entry is like setting the DATATAG and DATACLASS parameters, but the CORRELATIONLIST sets several tag/class pairs in one parameter. If CORRELATIONLIST, DATACLASS, and DATATAG are all specified, the DATATAG and DATACLASS pair are added to the end of the CORRELATIONLIST.
parameter DATACLASS;
Specifies a class, such as Sample.Person which should be correlated with the XML tag specified by DATATAG, such as <person>, in the DATAFILE.
parameter DATAFILE;
File that contains data in XML format, such as Person.xml. If no directory name is specified by RunTest, then the current UnitTest directory is used.
parameter DATATAG;
Specifies an XML tag in DATAFILE, such as <person>, which should be correlated to the class specified by DATACLASS, such as Sample.Person.
parameter SHOWPLAN;
parameter TESTFILE;
method TestRunScript()
Runs the test script.
abstract classmethod runScript(scriptfile As %String, outputfile As %String)