Moodle QA

A teacher can export questions in a choice of formats

Details

Description

This test requires a question bank containing various types of question.

1. Login as a teacher and follow the questions link in the course administration block.
2. Try exporting questions in each of the formats: GIFT, Moodle XML, IMS QTI 2.0 and XHTML.
3. Download the files from the backupdata/quiz folder in course files.
4. Try importing the GIFT and Moodle XML files to a question bank in a different course.
5. Check that the questions are restored correctly.

Issue Links

Activity

Hide
Mónico Briseño Cortés added a comment - - edited

In my local Moodle course I didn't find the backupdata/quiz folder to download the files created with Quiz questions.

Does anybody has tested this issue?

Show
Mónico Briseño Cortés added a comment - - edited In my local Moodle course I didn't find the backupdata/quiz folder to download the files created with Quiz questions. Does anybody has tested this issue?
Hide
Helen Foster added a comment -

Monico, thanks for your feedback. I've linked this test to a report of the problem.

Show
Helen Foster added a comment - Monico, thanks for your feedback. I've linked this test to a report of the problem.
Hide
Teresa Gibbison added a comment -

Yes I'm still getting this
Also when I attempt to download from the 'Click to download the exported category file' (moodlesite/file.php/8/backupdata/quiz/quiz-features-default%20for%20features-20100806-1332.xml?forcedownload=1)
from the export screen the debugging shows:

Sorry, the requested file could not be found
More information about this error
Stack trace:

  • line 324 of /lib/setuplib.php: moodle_exception thrown
  • line 1454 of /lib/filelib.php: call to print_error()
  • line 97 of /file.php: call to send_file_not_found()

will copy/paste this error to MDL16094

Show
Teresa Gibbison added a comment - Yes I'm still getting this Also when I attempt to download from the 'Click to download the exported category file' (moodlesite/file.php/8/backupdata/quiz/quiz-features-default%20for%20features-20100806-1332.xml?forcedownload=1) from the export screen the debugging shows: Sorry, the requested file could not be found More information about this error Stack trace:
  • line 324 of /lib/setuplib.php: moodle_exception thrown
  • line 1454 of /lib/filelib.php: call to print_error()
  • line 97 of /file.php: call to send_file_not_found()
will copy/paste this error to MDL16094
Hide
Oleg Sychev added a comment -

There are one more bug on exporting: when exporting category data, even in the Moodle XML own format, category name is exported but category description don't.

I reported it as MDL-23545, it is don't work both in Moodle 1.9 and 2.0.

Show
Oleg Sychev added a comment - There are one more bug on exporting: when exporting category data, even in the Moodle XML own format, category name is exported but category description don't. I reported it as MDL-23545, it is don't work both in Moodle 1.9 and 2.0.
Hide
Helen Foster added a comment -

Oleg, thanks for reporting the issue. I've just removed it as a dependency for this QA test though, as according to Tim:

Exporting category info is a missing feature that has never been present, so if it is not present in 2.0 that is not a regression.

Show
Helen Foster added a comment - Oleg, thanks for reporting the issue. I've just removed it as a dependency for this QA test though, as according to Tim:
Exporting category info is a missing feature that has never been present, so if it is not present in 2.0 that is not a regression.
Hide
Dongsheng Cai added a comment -

I started on MDL-15573, and messages from Tim (in dev chat):

The really important format is Moodle XML. That is meant to be a perfect representation of the question, so you can transport questions from one Moodle to another without loosing any data.

But, it is also meant to be perfectly backwards-compatible.

I suggest you file a separate bug for updating Moodle XML format, and don't worry about the others.

Show
Dongsheng Cai added a comment - I started on MDL-15573, and messages from Tim (in dev chat):
The really important format is Moodle XML. That is meant to be a perfect representation of the question, so you can transport questions from one Moodle to another without loosing any data. But, it is also meant to be perfectly backwards-compatible. I suggest you file a separate bug for updating Moodle XML format, and don't worry about the others.
Hide
Chad Outten added a comment -

fail tested on MAMP with moodle preview 4+ build 20100905.

questions can be added to question bank and exported in selected formats: GIFT, IMS, Moodle and XHTML, however upon clicking link to download file error dialogue reads: Sorry, the requested file could not be found.

http://docs.moodle.org/en/error/moodle/filenotfound.

I note that the exported files are located in courseID/backupdata/quiz/ but upon question bank import of said files via 'upload a file' to another course, error dialogue reads: An unknown problem occurred while uploading the file '{$a}' (perhaps it was too large?)

http://docs.moodle.org/en/error/moodle/uploadproblem

Show
Chad Outten added a comment - fail tested on MAMP with moodle preview 4+ build 20100905. questions can be added to question bank and exported in selected formats: GIFT, IMS, Moodle and XHTML, however upon clicking link to download file error dialogue reads: Sorry, the requested file could not be found. http://docs.moodle.org/en/error/moodle/filenotfound. I note that the exported files are located in courseID/backupdata/quiz/ but upon question bank import of said files via 'upload a file' to another course, error dialogue reads: An unknown problem occurred while uploading the file '{$a}' (perhaps it was too large?) http://docs.moodle.org/en/error/moodle/uploadproblem
Hide
Helen Foster added a comment -

Just removing this test from QA1, as the issue of course files in 2.0 needs resolving before Dongsheng returns to question export. The test can be re-run as part of QA2.

Show
Helen Foster added a comment - Just removing this test from QA1, as the issue of course files in 2.0 needs resolving before Dongsheng returns to question export. The test can be re-run as part of QA2.

Dates

  • Created:
    Updated: