Example: Executing the Test
Here are the steps for executing the test:
-
Place ABC1.txt and ABCOut_Reference.txt in C:\Tutorial or whatever directory you choose for HL7MainDir.
-
Open Terminal and change to the namespace in which you installed the production and test classes.
-
Assign ^UnitTestRoot to either a valid directory or the empty string.
ENSDEMO>Set ^UnitTestRoot=""
-
Execute the test
ENSDEMO>Do ##class(Tutorial.HL7ProductionTest).Run()
Your output looks something like this:
-
Note the url on the last line of the output. You can past this into a Web browser to view a full report on the test execution.
The test creates a directory structure underneath TestAutoNNN.
There are a variety of different ways to execute the test. See Executing a Test for discussion of several of them.