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

Random failures on "Go to the competency course competencies page"

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      1. Login as admin
      2. Go to "Site administration / Competencies / Competency frameworks".
      3. Create a new competency framework "CF1".
      4. Add a 3 competencies "Comp1", "Comp2" and "Comp3" to "CF1".
      5. Create a course C1.
      6. Enrol student s1 and s2 to the course C1.
      7. Click Competencies in the navigation block.
      8. Add "Comp1" and "Comp2" to C1's course competencies.
      9. Create a Label resource "Label1".
      10. On the Competencies section, add "Comp1".
      11. Create a Label resource "Label2".
      12. On the Competencies section, add "Comp2".
      13. Click Save and return to course.

      Scenario 1: admin/tool/lp/templates/user_competency_course_navigation.mustache (admin/tool/lp/user_competency_in_course.php)

      1. Access to the course C1.
      2. Click Competencies in the navigation block.
      3. Click "Comp1" link to view the competency details.
      4. In the "Jump to user" form, select a different user (for instance, s2).
      5. CHECK the displayed user is changed and the one selected is displayed properly.
      6. In the "Jump to competency" select a different competency (for instance, "Comp2").
      7. CHECK the displayed competency is changed and the one selected is displayed properly.

      Scenario 2: report/competency/templates/user_course_navigation.mustache (report/competency/index.php)

      1. Access to the course C1.
      2. Click the course cog, select "More..." and select the "Competency breakdown" report.
      3. In the "Jump to user" form, select a different user (for instance, s2).
      4. CHECK the displayed user is changed and the one selected is displayed properly.
      5. In the "Filter competencies by resource or activity" select a different resource (for instance, "Label2").
      6. CHECK the displayed resource is changed and the one selected is displayed properly. 

      Scenario 3: admin/tool/lp/templates/module_navigation.mustache (admin/tool/lp/coursecompetencies.php)

      Covered by behat tests. Execute the "Go to the competency course competencies page." behat scenario using Firefox and make sure it passes.

       

      Show
      Setup Login as admin Go to "Site administration / Competencies / Competency frameworks". Create a new competency framework " CF1 ". Add a 3 competencies " Comp1 ", " Comp2 " and " Comp3 " to " CF1 ". Create a course C1. Enrol student s1 and s2 to the course C1. Click Competencies in the navigation block. Add " Comp1 " and " Comp2 " to C1's course competencies. Create a Label resource " Label1 ". On the Competencies section, add " Comp1 ". Create a Label resource " Label2 ". On the Competencies section, add " Comp2 ". Click Save and return to course. Scenario 1: admin/tool/lp/templates/user_competency_course_navigation.mustache (admin/tool/lp/user_competency_in_course.php) Access to the course C1. Click Competencies in the navigation block. Click " Comp1 " link to view the competency details. In the "Jump to user" form, select a different user (for instance, s2). CHECK the displayed user is changed and the one selected is displayed properly. In the "Jump to competency" select a different competency (for instance, " Comp2 "). CHECK the displayed competency is changed and the one selected is displayed properly. Scenario 2: report/competency/templates/user_course_navigation.mustache (report/competency/index.php) Access to the course C1. Click the course cog, select "More..." and select the "Competency breakdown" report. In the "Jump to user" form, select a different user (for instance, s2). CHECK the displayed user is changed and the one selected is displayed properly. In the "Filter competencies by resource or activity" select a different resource (for instance, " Label2 "). CHECK the displayed resource is changed and the one selected is displayed properly.  Scenario 3: admin/tool/lp/templates/module_navigation.mustache (admin/tool/lp/coursecompetencies.php) Covered by behat tests. Execute the "Go to the competency course competencies page." behat scenario using Firefox and make sure it passes.  
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull from Repository:
    • Pull 3.6 Branch:
    • Pull 3.7 Branch:
    • Pull Master Branch:
      MDL-65538-master
    • Sprint:
      Moppies Moodle 3.8 Sprint 3

      Description

      This is a followup of MDL-65154, where it was detected that, sometimes, and apparently (not 100% sure) only under Firefox... we are getting this error with behat:

      And I press key "13" in the field "Filter competencies by resource or activity": Moodle exception: A required parameter (courseid) was missing More information about this error
       
      A required parameter (courseid) was missing
      More information about this error
      ×    
      Debug info:
      Error code: missingparam
       (Exception)
      

      Link: https://ci.moodle.org/job/W.04.01%20-%20Behat%20-%20Firefox%20+%20Postgres/lastFailedBuild/testReport/junit/See%20the%20competencies%20for%20an%20activity%20on%20the%20course%20competencies%20page/(empty)/Go_to_the_competency_course_competencies_page__2/

      Running all @tool_lp tests locally, in the other side, ended ok.

      So this issue is about to observe if it continues happening and, if possible, fix it. Not clear at this stage how, but creating the issue so we have it registered.

      Ciao

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sarjona Sara Arjona (@sarjona)
                Reporter:
                stronk7 Eloy Lafuente (stronk7)
                Peer reviewer:
                Eloy Lafuente (stronk7)
                Integrator:
                Andrew Nicols
                Tester:
                Janelle Barcega
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Damyon Wiese, Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Sep/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 15 minutes
                  4h 15m