This page (revision-11) was last changed on 21-Nov-2019 00:07 by Albrecht Striffler

This page was created on 21-Nov-2019 00:07 by Jochen Reutelshöfer

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
11 20-Nov-2019 00:07 1 KB Albrecht Striffler to previous
10 20-Nov-2019 00:07 931 bytes Jochen Reutelshöfer to previous | to last
9 20-Nov-2019 00:07 943 bytes Jochen Reutelshöfer to previous | to last
8 20-Nov-2019 00:07 829 bytes Jochen Reutelshöfer to previous | to last
7 20-Nov-2019 00:07 790 bytes Jochen Reutelshöfer to previous | to last
6 20-Nov-2019 00:07 781 bytes Jochen Reutelshöfer to previous | to last
5 20-Nov-2019 00:07 674 bytes Jochen Reutelshöfer to previous | to last
4 20-Nov-2019 00:07 480 bytes Jochen Reutelshöfer to previous | to last
3 20-Nov-2019 00:07 426 bytes Jochen Reutelshöfer to previous | to last
2 20-Nov-2019 00:07 380 bytes Jochen Reutelshöfer to previous | to last
1 20-Nov-2019 00:07 345 bytes Jochen Reutelshöfer to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 changed 2 lines
!!! How to run a test case
A test suite is run by using the test case player type. This type allows you to specify which sequential test case you want to run. The test case player can be used in the following way.
!!! How to run a Test Case
At line 3 added 4 lines
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:
At line 6 removed one line
@uses: demo
At line 10 changed one line
[{Image src='TestCasePlayer-screenshot.png' caption='Screenshot of a TestCasePlayer' width='..' height='..' align='center' style='..' class='..' }]
Renders as:\\
At line 12 changed one line
The annotation ''uses'' specifies the package, where the test cases are defined.
[{Image src='TestCasePlayer-screenshot.png' caption='Screenshot of a TestCasePlayer' width='800' height='..' align='center' style='..' class='..' }]
At line 16 added one line
At line 15 removed one line
Clicking the green arrows allows to run the test-case line until the respective line. The success of the test in each line 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.
At line 19 added 2 lines
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.
At line 22 added 2 lines
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.