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

Better behat steps for creating question categories and questions

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Rajesh Taneja Rajesh Taneja
              Dan Poltawski Dan Poltawski
              Jetha Chan Jetha Chan
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Jan/15