Uploaded image for project: 'Magnolia Test Framework'
  1. Magnolia Test Framework
  2. MGNLTEST-413

FileUpload#fromResource should always return a valid File instance

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 1.4.5
    • None
    • None
    • Yes

    Description

      FileUpload#fromResource only returns a valid File for resources of the local project. For resources in dependencies it returns one that does not exist as in this case the URL of the resource points to a jar file. In such cases affected tests fail:

      java.io.FileNotFoundException: file:/var/lib/jenkins/maven-local-repo/info/magnolia/bundle/test/tests/6.3-SNAPSHOT/tests-6.3-SNAPSHOT-tests.jar!/me.jpg
      	at info.magnolia.test.selenium.pageobjects.FileUpload.upload(FileUpload.java:79)
      	at info.magnolia.test.selenium.pageobjects.Form.uploadFile(Form.java:354)
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mduerig Michael Duerig
              mduerig Michael Duerig
              Foundation
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Work Started:

                Checklists

                  Task DoD