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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.5.3
    • 2.5.2, 2.6
    • Performance
    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • MOODLE_25_STABLE
    • MDL-42538_master
    • 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

      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

            dmonllao David Monllaó
            dmonllao David Monllaó
            Adrian Greeve Adrian Greeve
            Dan Poltawski Dan Poltawski
            Petr Skoda Petr Skoda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.