diff --git a/admin/tool/generator/classes/testplan_backend.php b/admin/tool/generator/classes/testplan_backend.php
index 6f70dad3ed9..e4e4f1d0fa8 100644
--- a/admin/tool/generator/classes/testplan_backend.php
+++ b/admin/tool/generator/classes/testplan_backend.php
@@ -152,6 +152,7 @@ class tool_generator_testplan_backend extends tool_generator_backend {
}
$replacements = array(
+ $CFG->version,
self::$users[$size],
self::$loops[$size],
self::$rampups[$size],
@@ -166,6 +167,7 @@ class tool_generator_testplan_backend extends tool_generator_backend {
);
$placeholders = array(
+ '{{MOODLEVERSION_PLACEHOLDER}}',
'{{USERS_PLACEHOLDER}}',
'{{LOOPS_PLACEHOLDER}}',
'{{RAMPUP_PLACEHOLDER}}',
diff --git a/admin/tool/generator/testplan.template.jmx b/admin/tool/generator/testplan.template.jmx
index 2bfdaf45530..8d28bbc7a27 100644
--- a/admin/tool/generator/testplan.template.jmx
+++ b/admin/tool/generator/testplan.template.jmx
@@ -12,6 +12,11 @@
${__time()}
=
+
+ moodleversion
+ {{MOODLEVERSION_PLACEHOLDER}}
+ =
+
size
{{SIZE_PLACEHOLDER}}