MDL-42151 behat: Adding the version to the testplan
authorDavid Monllao <davidm@moodle.com>
Tue, 8 Oct 2013 06:20:29 +0000 (14:20 +0800)
committerDavid Monllao <davidm@moodle.com>
Mon, 14 Oct 2013 04:43:52 +0000 (12:43 +0800)
admin/tool/generator/classes/testplan_backend.php
admin/tool/generator/testplan.template.jmx

index 6f70dad..e4e4f1d 100644 (file)
@@ -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}}',
index 2bfdaf4..8d28bbc 100644 (file)
             <stringProp name="Argument.value">${__time()}</stringProp>
             <stringProp name="Argument.metadata">=</stringProp>
           </elementProp>
+          <elementProp name="moodleversion" elementType="Argument">
+            <stringProp name="Argument.name">moodleversion</stringProp>
+            <stringProp name="Argument.value">{{MOODLEVERSION_PLACEHOLDER}}</stringProp>
+            <stringProp name="Argument.metadata">=</stringProp>
+          </elementProp>
           <elementProp name="size" elementType="Argument">
             <stringProp name="Argument.name">size</stringProp>
             <stringProp name="Argument.value">{{SIZE_PLACEHOLDER}}</stringProp>