Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-42538

JMeter test plan generator is checking the course enrolments number against the course generator number of users instead of the test plan number of users

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.5.2, 2.6
    • Fix Version/s: 2.5.3
    • Component/s: Performance
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a 'S' course using admin/tool/generator/cli/maketestcourse.php
      2. It SHOULD have 100 enrolled users
      3. Set $CFG->tool_generator_users_password if it is not already set (more info in config-dist.php)
      4. Create a 'M' test plan using admin/tool/generator/cli/maketestplan.php pointing at the previously created course
      5. You SHOULD NOT see any error
      6. The test plan SHOULD be correctly generated
      7. Download and open the test plan (You will see the URL after the last CLI command, the one with .jmx extension)
      8. Search for something like ${__P(users, IM_A_NUMBER)}
      9. IM_A_NUMBER SHOULD be 100
      Show
      Create a 'S' course using admin/tool/generator/cli/maketestcourse.php It SHOULD have 100 enrolled users Set $CFG->tool_generator_users_password if it is not already set (more info in config-dist.php) Create a 'M' test plan using admin/tool/generator/cli/maketestplan.php pointing at the previously created course You SHOULD NOT see any error The test plan SHOULD be correctly generated Download and open the test plan (You will see the URL after the last CLI command, the one with .jmx extension) Search for something like ${__P(users, IM_A_NUMBER)} IM_A_NUMBER SHOULD be 100
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-42538_master

      Description

      The test plan uses the correct values to fill the test plan template, but when validating the user inputs, it is checking the selected size against the course number of users, the problem is that size is looking for the number of users in course_backend instead of in testplan_backend, where the number of users is related with the testplan size.

      Embarrassing bug as I created a public method in course_backend to make the number of users visible to other classes...

      Discovered by Adrian while testing MDL-42343

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Nov/13