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

              Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              Rajesh Taneja Rajesh Taneja
              Integrator:
              Dan Poltawski Dan Poltawski
              Tester:
              Jetha Chan Jetha Chan
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Jan/15