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

admin/tool/generator/cli/runtestscenario.php should define BEHAT_TEST

XMLWordPrintable

    • MOODLE_404_STABLE, MOODLE_405_STABLE
    • MOODLE_404_STABLE
    • MDL-82863-404
    • MDL-82863-main
    • Hide

      Testing scenario 1: CLI

      1. Download the attached MDL-82863-testing-scenario_1.feature
      2. Run the following command to create a course: 

        php admin/tool/generator/cli/runtestscenario.php --feature="absolute/path/to/file.feature"

      3. Check no errors are displayed.
      4. Login as admin.
      5. Go to Site administration > Competencies > Competency frameworks.
      6. Check a couple of competency frameworks have been created (Cookery and Literacy).

       

      Testing scenario 2: Web interface

      1. Download the attached MDL-82863-testing-scenario_2.feature
      2. Login as admin.
      3. Go to Site administration > Development > Create testing scenarios.
      4. Upload the feature file and submit the form.
      5. Check no errors are displayed.
      6. Go to Site administration > Competencies > Competency frameworks.
      7. Check a couple of competency frameworks have been created (Cookery2 and Literacy2).
      Show
      Testing scenario 1: CLI Download the attached MDL-82863-testing-scenario_1.feature Run the following command to create a course:  php admin/tool/generator/cli/runtestscenario.php --feature="absolute/path/to/file.feature" Check no errors are displayed. Login as admin. Go to Site administration > Competencies > Competency frameworks. Check a couple of competency frameworks have been created (Cookery and Literacy).   Testing scenario 2: Web interface Download the attached MDL-82863-testing-scenario_2.feature Login as admin. Go to Site administration > Development > Create testing scenarios. Upload the feature file and submit the form. Check no errors are displayed. Go to Site administration > Competencies > Competency frameworks. Check a couple of competency frameworks have been created (Cookery2 and Literacy2).
    • 1
    • HQ 2024 Sprint I3.1 Moppies

      While creating some feature files for testing MDL-76889 I faced an error with competencies generators because BEHAT_TEST is not defined (so PHPUNIT_TEST generators were used by default, which is wrong).

      As far as admin/tool/generator/cli/runtestscenario.php is running behat steps, BEHAT_TEST should be defined, to avoid errors.

        1. MDL-82863_scenario1_passed.png
          MDL-82863_scenario1_passed.png
          56 kB
        2. MDL-82863-testing-scenario_1.feature
          1 kB
        3. MDL-82863-testing-scenario_2.feature
          1 kB
        4. t1s3.png
          t1s3.png
          259 kB
        5. t2s5.png
          t2s5.png
          613 kB
        6. t2s7.png
          t2s7.png
          457 kB

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Carlos Escobedo Carlos Escobedo
            Simey Lameze Simey Lameze
            Glyn (Mathew) May Glyn (Mathew) May
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 5 minutes
                1h 5m

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