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

Behat forms steps very slow

    XMLWordPrintable

Details

    Description

      The behat form field manager is very slow, in particular in get_field_node_type which takes a NodeElement and tries to determine the type of field base do various attributes. It does this by asking the NodeElement for things like tagname, attributes, class, etc.

      Unfortunately this is very slow because the Mink NodeElement requests that information from WebDriver. On a large page containing lots of detail, this is very slow!!

      This is a quick attempt to use DOMDocument, DOMNode, and DOMXPath locally instead.

      Attachments

        Activity

          People

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Andrew Lyons, 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:
              8/Nov/21

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 50 minutes
                3h 50m