Last modified by Carina Enke on 14.01.2024

Show last authors
1 {{layout}}
2 {{layout-section ac:type="two_right_sidebar"}}
3 {{layout-cell}}
4 Test variables allow, among other things, the use of **once determined random values in various questions**, which helps to parametrise related question complexes.
5
6 In the following, the example "transport" will be extended by a second follow-up question. Both questions should use the same random values (vehicle type and speed), which are therefore defined as test variables and linked to question variables of the same name. The first question is about calculating the distance travelled by a vehicle based on its speed and the time defined in the question. The second question includes another vehicle of the same type travelling at a slower speed. The participant should calculate when the vehicles overtake each other.
7
8
9 {{/layout-cell}}
10
11 {{layout-cell}}
12 {{panel title="Content"}}
13 {{toc/}}
14 {{/panel}}
15
16 {{panel title="Using question variables"}}
17 * [[Definition of a variable>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.WebHome||shape="rect"]]
18 * [[Use of variables>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.WebHome||shape="rect"]]
19 * [[Definition of a condition>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.WebHome||shape="rect"]]
20 * [[Expert mode (IMS QTI)>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.WebHome||shape="rect"]]
21 * [[View variable assignment>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.WebHome||shape="rect"]]
22 {{/panel}}
23 {{/layout-cell}}
24 {{/layout-section}}
25
26 {{layout-section ac:type="single"}}
27 {{layout-cell}}
28 == Example test “Transport” ==
29
30
31 (% class="wrapped" %)
32 |(% class="numberingColumn" %)(% class="numberingColumn" %)
33 (((
34 1
35 )))|(% style="width:269px" %)(((
36 (% class="content-wrapper" %)
37 (((
38 [[image:attach:Test - Testvariablenbeispiele_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
39 )))
40 )))|(% style="width:701px" %)(((
41 In both questions, the same random values should be applied for the vehicle type (transport) and speed, with the speed depending on the vehicle type. These random values will be defined as test variables.
42
43 In the example, the [[text variable>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.Text Variables.WebHome||shape="rect"]] {transport} will be randomly initialised at** test level** with one of the following values: "bike", "bus”, "car" or "train". The [[numerical variable>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.Numerische Variablen.WebHome||shape="rect"]] {speed} should be randomly selected from a range of values, which will be set by a corresponding [[condition>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.WebHome||shape="rect"]], depending on the selected vehicle {transport}.
44 )))
45 |(% class="numberingColumn" %)(% class="numberingColumn" %)
46 (((
47 2
48 )))|(% style="width:269px" %)(((
49 (% class="content-wrapper" %)
50 (((
51 [[image:attach:Test - Variablen der Einzelaufgaben_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
52 )))
53 )))|(% style="width:701px" %)(((
54 (% class="content-wrapper" %)
55 (((
56 To use the random test values in the individual questions, you must also create variables in those questions and link the values to one another.
57
58 In the example, **two questions** of the type [[calculation interaction>>doc:ONYX.Erstellung von Testinhalten.Aufgabentypen.Berechnungsaufgabe.WebHome||shape="rect"]] will be created. In each question, the **question variables **{transport} and {speed} will be defined. For the purpose of clarity, the question variables in the example have the same name with the extension “item1” in the first question and “item2” in the second.
59
60 The values of the question variables will not be set in the question itself, as this would override the linked test variable values. When creating question variables, select the empty entry from the drop-down menu** Set value to** in the **Edit variable **dialogue for each question variable.
61
62 {{expand title="Detailed example of a variable with an empty value ..."}}
63 [[image:attach:Variable ohne Wertsetzung_en.png]]
64 {{/expand}}
65 )))
66 )))
67 |(% class="numberingColumn" %)(% class="numberingColumn" %)
68 (((
69 3
70 )))|(% style="width:269px" %)(((
71 (% class="content-wrapper" %)
72 (((
73 [[image:attach:Test - Verknüpfung von Test und Aufgabenvariablen_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
74 )))
75 )))|(% style="width:701px" %)(((
76 The **variable link **will be defined **at test level** for each test variable. Edit the particular variable and link it to the related question variables.
77
78 In the example, the test variable {transport} will be linked to the question variables {transport_item1} and {transport_item2}. The test variable {speed}, in contrast, will be linked to the question variables {speed_item1} and {speed_item2}.
79 )))
80 |(% class="numberingColumn" %)(% class="numberingColumn" %)
81 (((
82 4
83 )))|(% style="width:269px" %)(((
84 (% class="content-wrapper" %)
85 (((
86 [[image:attach:Aufgabenstellungen der Beispielaufgaben_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
87 )))
88 )))|(% style="width:701px" %)(((
89 You may also define more question-specific variables and conditions for your **questions**. The given values of all question variables, including the linked variables that will be filled in automatically, will be entered in the question text by typing the variable name (e. g. {transport_item1}, {speed_item1}).
90
91 In the example, an additional question-specific variable {speed} was created for **question 1**, and the correct solution was calculated as a variable {distance}. The variables will be included in the question text with appropriate syntax, and the variable with the correct solution {distance} will be bound to the gap. The [[Example “Transport”>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.Beispiele zum Einsatz von Variablen.Beispiel Transport - Einsatz von Zufallsparametern.WebHome||shape="rect"]] provides more detailed information on these steps.
92
93 For **question 2**, the variables will also be included, and the correct solution will be calculated within the question {distance2}.
94 )))
95 |(% class="numberingColumn" %)(% class="numberingColumn" %)
96 (((
97 5
98 )))|(% colspan="1" style="width:269px" %)(% colspan="1" %)
99 (((
100 (% class="content-wrapper" %)
101 (((
102 [[image:attach:Beispielansicht der Aufgaben im Testrun_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
103 )))
104 )))|(% colspan="1" style="width:701px" %)(% colspan="1" %)
105 (((
106 One of the defined values will be randomly chosen for each participant and each test attempt. In the example, the value "bus" was randomly selected as the vehicle ({transport}) together with a speed of 42 (km/h). These values calculated at test level can now be used in all questions, and related question series can be created with random values.
107 )))
108 {{/layout-cell}}
109 {{/layout-section}}
110 {{/layout}}