Question managed by a remote engine

Question behaviour ::: qbehaviour_opaque
Maintained by Tim at Lone Pine Koala SanctuaryTim Hunt
This question behaviour uses web services to connect to other question engines like OpenMark or ounit, so that their questions can be used in a Moodle quiz.

Question managed by a remote engine 2.7 For Moodle 2.7+

Moodle 2.7, 2.8, 2.9, 3.0, 3.1
Released: Sunday, May 10, 2015, 10:48 PM
The Opaque question type and behaviour

Opaque ( is the Open protocol for
accessing question engines.

The Opaque protocol was originally created by sam marshall of the Open
University ( as part of the OpenMark project
( The Moodle implementation of Opaque was
done by Tim Hunt.

As well as OpenMark, this question type can also be used to connect to
ounit ( and possibly other question systems we
don't know about.

Opaque has been available since Moodle 1.8, but this version is compatible with
Moodle 2.6+.

This question behaviour also requires the Opaque question type to be installed.

To install using git, type this command in the root of your Moodle install
git clone -b MOODLE_25_STABLE git:// question/type/opaque
echo '/question/type/opaque/' >> .git/info/exclude
git clone -b MOODLE_25_STABLE git:// question/behaviour/opaque
echo '/question/behaviour/opaque/' >> .git/info/exclude

Alternatively, download the zip from
unzip it into the question/type folder, and then rename the new
folder to opaque. Then download the zip
unzip it into the question/behaviour folder, and then rename the new
folder to opaque.

Once installed you need to go to the question type settings page
(Site administration -> Plugins -> Question types -> Opaque) to
set up the URLs of the question engines you wish to use. can be used to test that
Opaque is working.

To be able to run the unit tests, you need to add
define('QTYPE_OPAQUE_TEST_ENGINE_TN', '!question');
to your config.php file. Of these, only the first is required. The remaining
ones are optional. Specify them if your set-up needs them.

Version information

Version build number
Version release name
2.7 For Moodle 2.7+
Stable version
MD5 Sum
Supported software
Moodle 2.7, Moodle 2.8, Moodle 2.9, Moodle 3.0, Moodle 3.1
  • Latest release for Moodle 2.7
  • Latest release for Moodle 2.8
  • Latest release for Moodle 2.9
  • Latest release for Moodle 3.0
  • Latest release for Moodle 3.1

Version control information

Version control system (VCS)
VCS repository URL
VCS branch
VCS tag

Default installation instructions for plugins of the type Question behaviour

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myqbehaviour") in the "question/behaviour" subdirectory.
  4. Visit to finish the installation