Skip to main content

Example: UnitTest Portal

Running a unit test generates a test report. Caché provides a UnitTest Portal for viewing the reports. The reports are organized by namespace.

Before viewing the reports in a namespace, you must grant the Management Portal access to the UnitTest framework for the particular namespace. Do this by entering the following command at a terminal prompt in the %SYS namespace:



%SYS>Set ^SYS("Security","CSP","AllowPrefix","/csp/user/","%UnitTest.")=1


You can now navigate to the UnitTest Portal, using System Explorer > Tools > UnitTest Portal. If necessary, switch to the USER namespace.

generated description: unittestportalnavigate 20141

Note:

Note the following about the above command:

  • You must include the trailing slash in "/csp/user/".

  • "/csp/user/" refers to the Web Application providing configuration for CSP and Zen pages accessing the USER namespace.

  • Placing a "." (period) after "%UnitTest" configures the Web Application to grant web access to subpackages of %UnitTest.

FeedbackOpens in a new tab