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

Better behat steps for creating question categories and questions

XMLWordPrintable

      At the moment, a lot of behat tests involving questions do their set-up through the UI. This is slower than it should be, especially since we have a generator for questions.

      It should be possibl to say something like

          And the following "question categories" exist:
            | contextlevel | reference | name           |
            | Course       | C1        | Test questions |
          And the following "questions" exist:
            | questioncategory | qtype | name                       | questiontext                  |
            | Test questions   | essay | Test question to be copied | Write about whatever you want |
      

      Note we already have a generator for questions, we just need to hook it up.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Rajesh Taneja Rajesh Taneja
            Dan Poltawski Dan Poltawski
            Jetha Chan Jetha Chan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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