07 Schnittstelle ONYX Player
General information
The ONYX Player defines a web service, which is accessible via the URL <ONYXPlayer-URL>/onyx/onyxexamservices.
Link to the WSDL of the public demo runtime: http://demo.bps-system.de/onyx/onyxexamservices?wsdl
Registration of a test
Before participants can take tests, the tests need to be registered with ONYX.
public Long registerTest(
@WebParam(name = „testSessionId") final Long testSessionId,
@WebParam(name = „providerId") final String providerId,
@WebParam(name = „contentPackage") final byte[] contentPackage,
@WebParam(name = „parameters") final MapWrapper parameters) throws Exception {
}
Parameters registerTest
testSessionId | Unique ID assigned by the LMS, which serves as an identifier for this test. | ||||||||||||||||||||||||||||||||||
providerId | Identification under which the requesting LMS is registrated with ONYX. | ||||||||||||||||||||||||||||||||||
contentPackage | The IMS QTI v2.1 CP (zip file as byte array). | ||||||||||||||||||||||||||||||||||
parameters | List of parameters to control the test. It is also possible to set additional parameters for the individual participant (registerStudent). All parameters are optional. The default setting is shown in bold.
Questions evaluation:
Test evaluation:
|
ReturnValue registerTest
Long | One of the following values:
|
| Error codes:
|
Registration of a student
Students can use a test after it has been registered, provided that they have been registered as well.
public Long registerStudent(
@WebParam(name = „testSessionId", partName = „testSessionId") final Long test
SessionId,
@WebParam(name = „studentId", partName = „studentId") final Long studentId,
@WebParam(name = „payload", partName = „payload") final byte[] payload,
@WebParam(name = „parameters") final MapWrapper parameters) throws Exception {
}
Parameters registerStudent
testSessionId | Unique ID assigned by the LMS, which serves as an identifier for the test (cf. registerTest). |
studentId | Unique identification for test participants. ID will be returned by ONYX when status changes or results are transmitted. |
payload | Optional. Results for the participant (e. g. if interrupted tests are continued). |
parameters | List of test control parameters (all optional, bold = default):
|
ReturnValue registerStudent
Long | One of the values as described under "Registration of a test". |
Test control
The status of registered test participants can be controlled by the LMS, e. g. to start, finish, or continue the test for everyone after the tutor has approved of it.
public Long testControl(
@WebParam(name = „testSessionId") final Long testSessionId,
@WebParam(name = „studentIds") final StudentIdsWrapper students,
@WebParam(name = „status") final Integer status,
@WebParam(name = „parameters") final MapWrapper parameters) throws Exception {
}
Parameters testControl
testSessionId | Unique ID assigned by the LMS, which serves as an identifier for the test (cf. registerTest). |
studentIds | List of unique IDs for test participants. |
status | New status to be set for the given test participants. |
parameters | List of test control parameters (all optional):
|
ReturnValue testControl
Long | One of the values as described under "Registration of a test". |
Clear storage
When all participants have finished the test, the LMS can inform ONYX to deregister the test and to clear the storage.
public Long deregisterTest(
@WebParam(name = „testSessionId") final Long testSessionId,
@WebParam(name = „providerId") final String providerId,
@WebParam(name = „parameters") final MapWrapper parameters) throws Exception {
}
Parameters deregisterTest
testSessionId | Unique ID assigned by the LMS, which serves as an identifier for the test (cf. registerTest). |
providerId | Identification under which the requesting LMS is registered with ONYX. |
parameters | Currently not used. |
ReturnValue deregisterTest
Long | One of the values as described under "Registration of a test". |
Test display
After a test has been registered with the Player, the user can display it exactly once. For this reason, the LMS will show an IFrame with the target URL <ONYXWebPlayer-URL>/onyx/onyxrun?id=<UID> in the browser window. The <UID> must be the unique studentId used in the test registration. The test will then be started. If the user finishes the test, the results will be returned to the LMS. The LMS then needs to define a web service API that exactly matches the WSDL available under the following URL:
Configuration of the ONYX Player
The ONYX Player uses a configuration file named onyxplugin.config.xml, which must be stored in the Java Classpath.
If you have any questions about the configuration or the use of the ONYX Testsuite in other platforms, we will be happy to help you.
BPS Bildungsportal Sachsen GmbH
Phone: +49 (0) 371 666 2739 0
Email: support@bps-system.de
You are also welcome to use our Contact form.