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

List available behat data generators on admin/tool/behat/index.php

    XMLWordPrintable

Details

    • Any
    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-75105_401_STABLE
    • MDL-75105_master
    • Hide
      • Initialise behat
      • Visit Site Administration > Development > Acceptance testing
      • Enter "the following" in the Contains field and press "Filter"
      • Find the step 'Given the following "" exist:'
      • There should be a select list inside the quotes containing a list of all core entities, all core component entities, and all plugin entities available.
      • Selecting an entity will show an example Gherkin table with the required fields for that entity (For example | username | for user).
      Show
      Initialise behat Visit Site Administration > Development > Acceptance testing Enter "the following" in the Contains field and press "Filter" Find the step 'Given the following "" exist:' There should be a select list inside the quotes containing a list of all core entities, all core component entities, and all plugin entities available. Selecting an entity will show an example Gherkin table with the required fields for that entity (For example | username | for user).

    Description

      Currently the step definitions reference on admin/tools/behat/index.php lists the available step definitions, and the available options for some of the fields in a definition (for example, '"ELEMENT_STRING" "SELECTOR_STRING" should exist' displays the available selectors in place of SELECTOR_STRING).

      When using a data generator via the 'the following "ELEMENT_STRING" exist:' step, the only ways to find out what elements are available are by searching for other uses of the step in a feature file, or by looking at the code in behat_core_generator::get_creatable_entities() and others.

      It would make writing tests a lot easier of the step definitions list displayed a similar select list with the entities that can be generated.

      Attachments

        1. (I) Passed -- (311)MDL-75105.png
          81 kB
          Kim Jared Lucas
        2. (I) Passed -- (39)MDL-75105.png
          78 kB
          Kim Jared Lucas
        3. (I) Passed -- (400)MDL-75105.png
          61 kB
          Kim Jared Lucas
        4. (I) Passed -- (401)MDL-75105.png
          73 kB
          Kim Jared Lucas
        5. (I) Passed -- (Master)MDL-75105.png
          79 kB
          Kim Jared Lucas
        6. 75105.patch
          9 kB
          Andrew Lyons
        7. MDL-75105.png
          23 kB
          Simey Lameze

        Issue Links

          Activity

            People

              marxjohnson Mark Johnson
              marxjohnson Mark Johnson
              Simey Lameze Simey Lameze
              Andrew Lyons Andrew Lyons
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 36 minutes
                  1d 36m

                  Clockify

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