This page (revision-18) was last changed on 01-Feb-2013 15:57 by Tim Baier-Loewenstein

This page was created on 28-Jan-2013 13:38 by Albrecht Striffler

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
18 01-Feb-2013 15:57 3 KB Tim Baier-Loewenstein to previous
17 01-Feb-2013 15:27 3 KB Tim Baier-Loewenstein to previous | to last
16 28-Jan-2013 15:59 3 KB Albrecht Striffler to previous | to last
15 28-Jan-2013 15:53 3 KB Albrecht Striffler to previous | to last
14 28-Jan-2013 15:24 3 KB Albrecht Striffler to previous | to last
13 28-Jan-2013 15:14 3 KB Albrecht Striffler to previous | to last
12 28-Jan-2013 15:12 3 KB Albrecht Striffler to previous | to last
11 28-Jan-2013 15:10 3 KB Albrecht Striffler to previous | to last
10 28-Jan-2013 15:06 3 KB Albrecht Striffler to previous | to last
9 28-Jan-2013 15:06 3 KB Albrecht Striffler to previous | to last
8 28-Jan-2013 14:51 3 KB Albrecht Striffler to previous | to last
7 28-Jan-2013 14:49 3 KB Albrecht Striffler to previous | to last
6 28-Jan-2013 14:48 3 KB Albrecht Striffler to previous | to last
5 28-Jan-2013 14:39 2 KB Albrecht Striffler to previous | to last
4 28-Jan-2013 14:37 2 KB Albrecht Striffler to previous | to last
3 28-Jan-2013 14:07 994 bytes Albrecht Striffler to previous | to last
2 28-Jan-2013 13:48 432 bytes Albrecht Striffler to previous | to last
1 28-Jan-2013 13:38 64 bytes Albrecht Striffler to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 22 changed one line
!Adding findings and checks to the SequentialTestCase
!Adding RatedTestCases to SequentialTestCases
At line 24 added 23 lines
A SequentialTestCases can contain multiple RatedTestCases. These RatedTestCases contain the actual inputs and checks for the knowledge base and are sequentially applied to the testing session. For each RatedTestCase it is also possible to set a timestamp for which the RatedTestCase will then be applied to the session.
After instantiating the RatedTestCase, you can add three types of elements:
# __Finding__s: Contains a Question and a Value that will be set in the testing session
# __ExpectedFinding__s: Contains a Question and a Value that will be check after the findings are set in the testing session
# __RatedSolution__s: Contains a Solution and a Rating or State for this Solution to be checked after the findings are set in the testing session
Example code:
%%prettify
{{{
RatedTestCase rtc = new RatedTestCase();
rtc.setTimeStamp(date);
rtc.addFinding(new Finding(question, value));
rtc.addExpectedFinding(new Finding(question, value));
rtc.addDerived(new RatedSolution(solution, rating));
}}}
/%
The variables question and solution are the well known objects that can be retrieved from your knowledge base ({{knowledgeBase.getManager().search(name)}}). As the value a Finding expects a object of the type QuestionValue. In most cases this will be a ChoiceValue or a NumValue which can be instantiated with a simple String or double.