← Back to team overview

mahara-contributors team mailing list archive

[Bug 1415247] Re: Behat uploading a file step is currently broken

 

In order to attach files in behat tests, you need to
 specify the full path to the upload file on the testing server, or
 put the upload file into the folder test/behat/upload_files and use only the relative path to the file in the behat feature.

I attached a working feature file which uses the "Image2.png" file
already available in the upload_files folder.

** Attachment added: "file_upload_test.feature"
   https://bugs.launchpad.net/mahara/+bug/1415247/+attachment/4367953/+files/file_upload_test.feature

** Changed in: mahara
     Assignee: (unassigned) => Son Nguyen (ngson2000)

** Changed in: mahara
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1415247

Title:
  Behat uploading a file step is currently broken

Status in Mahara ePortfolio:
  In Progress

Bug description:
  Hi Sonn,

  There is an issue with the "Attaching a file" step.

  Currently it passes and says it's a success but they file doesn't
  actually attach.

  I have attached a test script below for you to test with.

  Thanks,
  Jinelle

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1415247/+subscriptions


References