How to run a Test Case#

A test case is run by using the TestCasePlayer markup. This markup is a common viewer and runner for all types of test cases specified in KnowWE.

It is created the following way:

%%TestCasePlayer 
%

Renders as:

Screenshot of a TestCasePlayer

Usage#

In the drop down menu on the top left you can choose any test case that is defined in the same package as the TestCasePlayer markup itself. Clicking the arrows in the first column will execute all rows up to that row. The success of the test in each row is shown by color highlighting of the check cell (green: passed; red: failed). With the red button on top the test execution can be reset to restart testing from scratch.

On the right side, you can add additional questions and solutions to be displayed for the current case. For each executed row, it will show the value the question or solution had at this step.

Related Doc Pages#

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
png
TestCasePlayer-screenshot.png 127.7 kB 2 26-Nov-2015 11:23 Albrecht Striffler
This page (revision-10) was last changed on 26-Nov-2015 11:24 by Albrecht Striffler