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

The behat DOM dump & screenshot file names don't have a length limit

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      This testing instructions are unusual and a challenge to your our robot-testing Wednesdays; ping [~davmon] if you feel unhappy about these intructions and detailed robot-style steps will be provided.

      Tips:

      1. In the following github repository there is a branch you can use to test this issue: https://github.com/dmonllao/moodle/branches
      2. You will need to run behat to solve this (Using --name 'Add a bunch of courses and categories' option you will not need to wait for the whole suite to finish to have the results)
      Show
      This testing instructions are unusual and a challenge to your our robot-testing Wednesdays; ping [~davmon] if you feel unhappy about these intructions and detailed robot-style steps will be provided. Tips: In the following github repository there is a branch you can use to test this issue: https://github.com/dmonllao/moodle/branches You will need to run behat to solve this (Using --name 'Add a bunch of courses and categories' option you will not need to wait for the whole suite to finish to have the results)
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-44111_master

      Description

      When the length exceeds the maximum allowed by PHP the file can not be written, this may happen when the failure is in a step which requires a tablenode for example, which contains many characters.

      PHP Warning:  file_put_contents(/home/marina/repositories/master/behatsshot/20140212_081037/View-assignment-submissions-in-recent-activity-block_-div-role-main-div-contains-concat-normalize-space-class-box-1-contains-Common-and-name-H3-and-2-contains-Sam1-and-name-H3-and-3-contains-VisibleGroups-and-name-H3-and-4-contains-Sam1-and-name-H3-and-5-contains-SeparateGroupsNoGrouping-and-name-H3-and-6-contains-Sam1-and-name-H3-and-7-contains-SeparateGroupsGrouping1-and-name-H3-and-8-contains-Sam1-and-name-H3-xpath_element-should-exists.png): failed to open stream: File name too long in /home/marina/repositories/master/moodle/vendor/behat/mink-extension/src/Behat/MinkExtension/Context/RawMinkContext.php on line 147
       
      Warning: file_put_contents(/home/marina/repositories/master/behatsshot/20140212_081037/View-assignment-submissions-in-recent-activity-block_-div-role-main-div-contains-concat-normalize-space-class-box-1-contains-Common-and-name-H3-and-2-contains-Sam1-and-name-H3-and-3-contains-VisibleGroups-and-name-H3-and-4-contains-Sam1-and-name-H3-and-5-contains-SeparateGroupsNoGrouping-and-name-H3-and-6-contains-Sam1-and-name-H3-and-7-contains-SeparateGroupsGrouping1-and-name-H3-and-8-contains-Sam1-and-name-H3-xpath_element-should-exists.png): failed to open stream: File name too long in /home/marina/repositories/master/moodle/vendor/behat/mink-extension/src/Behat/MinkExtension/Context/RawMinkContext.php on line 147
      PHP Warning:  fopen(/home/marina/repositories/master/behatsshot/20140212_081037/View-assignment-submissions-in-recent-activity-block_-div-role-main-div-contains-concat-normalize-space-class-box-1-contains-Common-and-name-H3-and-2-contains-Sam1-and-name-H3-and-3-contains-VisibleGroups-and-name-H3-and-4-contains-Sam1-and-name-H3-and-5-contains-SeparateGroupsNoGrouping-and-name-H3-and-6-contains-Sam1-and-name-H3-and-7-contains-SeparateGroupsGrouping1-and-name-H3-and-8-contains-Sam1-and-name-H3-xpath_element-should-exists.html): failed to open stream: File name too long in /home/marina/repositories/master/moodle/lib/tests/behat/behat_hooks.php on line 350
       
      Warning: fopen(/home/marina/repositories/master/behatsshot/20140212_081037/View-assignment-submissions-in-recent-activity-block_-div-role-main-div-contains-concat-normalize-space-class-box-1-contains-Common-and-name-H3-and-2-contains-Sam1-and-name-H3-and-3-contains-VisibleGroups-and-name-H3-and-4-contains-Sam1-and-name-H3-and-5-contains-SeparateGroupsNoGrouping-and-name-H3-and-6-contains-Sam1-and-name-H3-and-7-contains-SeparateGroupsGrouping1-and-name-H3-and-8-contains-Sam1-and-name-H3-xpath_element-should-exists.html): failed to open stream: File name too long in /home/marina/repositories/master/moodle/lib/tests/behat/behat_hooks.php on line 350
      PHP Warning:  fwrite() expects parameter 1 to be resource, boolean given in /home/marina/repositories/master/moodle/lib/tests/behat/behat_hooks.php on line 351
       
      Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/marina/repositories/master/moodle/lib/tests/behat/behat_hooks.php on line 351
      PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in /home/marina/repositories/master/moodle/lib/tests/behat/behat_hooks.php on line 352
       
      Warning: fclose() expects parameter 1 to be resource, boolean given in /home/marina/repositories/master/moodle/lib/tests/behat/behat_hooks.php on line 352
          Given "//div[@role='main']/div[contains(concat(' ',normalize-space(@class),' '),' box ')].[*[1][contains(.,'Common') and name()='H3'] and *[2][contains(.,'Sam1') and name()!='H3'] and *[3][contains(.,'VisibleGroups') and name()='H3'] and *[4][contains(.,'Sam1') and name()!='H3'] and *[5][contains(.,'SeparateGroupsNoGrouping') and name()='H3'] and *[6][contains(.,'Sam1') and name()!='H3'] and *[7][contains(.,'SeparateGroupsGrouping1') and name()='H3'] and *[8][contains(.,'Sam1') and name()!='H3']]" "xpath_element" should exists # behat_general::should_exists()
            Xpath matching locator "//div[@role='main']/div[contains(concat(' ',normalize-space(@class),' '),' box ')].[*[1][contains(.,'Common') and name()='H3'] and *[2][contains(.,'Sam1') and name()!='H3'] and *[3][contains(.,'VisibleGroups') and name()='H3'] and *[4][contains(.,'Sam1') and name()!='H3'] and *[5][contains(.,'SeparateGroupsNoGrouping') and name()='H3'] and *[6][contains(.,'Sam1') and name()!='H3'] and *[7][contains(.,'SeparateGroupsGrouping1') and name()='H3'] and *[8][contains(.,'Sam1') and name()!='H3']]" not found.
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Mar/14