Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-6693 Moodle 2.7 QA
  3. MDLQA-6946

CLONE - In a database activity File Picker can be used to upload a picture into a picture field.

    Details

      Description

      Test Pre-requisites:

      • A Database activity with a file field and a picture field.

      Test Steps:

      1. Login as a teacher, navigate to the Database activity, Click the Fields tab and update the picture field.
      2. Set the maximum size to "Course upload limit".
      3. Login as a Student and navigate to the Database activity. Select the Add an entry tab.
      4. Click 'Add...' on the Picture field and verify that File picker is displayed
      5. Select 'Upload a file', choose a file to upload and upload it.
      6. Click 'Save and view' and verify that the files have been uploaded.
      7. Verify that the picture displays, and download the picture (clicking on it) to verify that the file link has been created properly.
      8. Login as a Teacher and download the picture, then verify that the file is correct.
      9. Navigate to the Database activity.
      10. Click the fields tab and follow steps 2 and 3, but set the Maximum size to something lower than the course upload limit.
      11. Follow steps 3 onwards with the new setting.

        Gliffy Diagrams

          Activity

          Hide
          fox Séverin Terrier added a comment -

          Works as expected !

          File size limite is respected if you set this lower (with a debug message on Moodle QA site).

          I would just modify testing instructions like that (or better sentences) :
          4. Click 'Add...' on the Picture field and verify that File picker is displayed.
          7. Verify that the picture is well shown, and download the picture (clicking on it) to verify that the file link has been created properly.

          Because it's a picture (and not only a file), and can be directly viewed

          Show
          fox Séverin Terrier added a comment - Works as expected ! File size limite is respected if you set this lower (with a debug message on Moodle QA site). I would just modify testing instructions like that (or better sentences) : 4. Click 'Add...' on the Picture field and verify that File picker is displayed. 7. Verify that the picture is well shown, and download the picture (clicking on it) to verify that the file link has been created properly. Because it's a picture (and not only a file), and can be directly viewed
          Hide
          marycooch Mary Cooch added a comment -

          Thanks - I have reworded this!

          Show
          marycooch Mary Cooch added a comment - Thanks - I have reworded this!

            People

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

              Dates

              • Created:
                Updated:
                Resolved: