Details
-
Type:
Functional Test
-
Status:
Passed
-
Affects Version/s: Moodle 2.1
-
Fix Version/s: Moodle 2.1
-
Component/s: Database activity module, Teacher
-
Labels:None
Description
This test requires a database activity in which several students have added entries.
1. Login as a teacher and try exporting database activity entries as a CSV file.
2. Open the CSV file in Excel or OpenOffice and check that all entries are listed.
3. Select only one field for export then try exporting entries in ODS format.
4. Open the file and check that all entries with just the field selected are listed.
Attachments
-
$i18n.getText("admin.common.words.hide")
- mdlqa964.mbz
- 28/Jun/11 2:48 PM
- 10 kB
- Anthony Borrow
-
- activities/data_138/module.xml 0.7 kB
- activities/data_138/data.xml 7 kB
- activities/data_138/inforef.xml 0.1 kB
- activities/data_138/grades.xml 0.1 kB
- activities/data_138/roles.xml 0.1 kB
- course/course.xml 1 kB
- course/enrolments.xml 3 kB
- course/inforef.xml 0.2 kB
- course/roles.xml 0.1 kB
- files.xml 0.1 kB
- groups.xml 0.1 kB
- moodle_backup.xml 4 kB
- outcomes.xml 0.1 kB
- questions.xml 10 kB
- roles.xml 0.4 kB
- scales.xml 0.1 kB
- sections/section_5/section.xml 0.2 kB
- sections/section_5/inforef.xml 0.1 kB
- moodle_backup.log 9 kB
-
- MDLQA-964-3_records-20110628_0643-comma_separated.csv
- 28/Jun/11 2:48 PM
- 0.3 kB
- Anthony Borrow
-
$i18n.getText("admin.common.words.hide")
- MDLQA-964-3_records-20110628_0644.ods
- 28/Jun/11 2:48 PM
- 11 kB
- Anthony Borrow
-
- mimetype 0.0 kB
- content.xml 7 kB
- styles.xml 8 kB
- meta.xml 0.9 kB
- Thumbnails/thumbnail.png 4 kB
- Configurations2/accelerator/current.xml 0.0 kB
- settings.xml 7 kB
- META-INF/manifest.xml 2 kB
$i18n.getText("admin.common.words.show")- MDLQA-964-3_records-20110628_0644.ods
- 28/Jun/11 2:48 PM
- 11 kB
- Anthony Borrow
-
- MDLQA-964-3_records-20110628_0644.xls
- 28/Jun/11 2:48 PM
- 4 kB
- Anthony Borrow
Issue Links
Activity
To reproduce failure
1) add a few links to the database at http://qa.moodle.net/mod/data/view.php?d=2
2) export the database and save as an Excel file
3) open the Excel file with OpenOffice (if I recall I also had this issue when working with Office directly) - see screen shot in MDL-19864 or Dongsheng for translation
While there are some known specific scenarios (like when URLs are in the text and exporting to Excel) where this test can fail (and there may be others), the basic functionality of being able to export a database is working but can use some TLC. I'm going to pass this issue and allow the developers some time to work on fixing MDL-19864. Peace - Anthony
a backup file of a database with one field for each of the various types than can save time testing - no student data so a couple of entries will need to be added if using this
The Excel option is still failing. Since this can be accomplished by using either the CSV or ODF formats (both of which seem to be able to be opened via Excel) I think we can just remove the xls option which is problematic. For now, I am going to fail this until that option is removed and we can work on re-writing the test instructions. Folks using Excel should be recommended to use the csv option (Moodle Docs should probably be updated to reflect this) Peace - Anthony
Hi, Helen.
Could you please remove the Excel option from the test steps.
Also, could you change CVS to CSV. (I always mix those up.)
Michael;
Test description amended as suggested. Sorry for the CVS / CSV mix-up. I had ODS mixed up too!
This works somewhat as expected provided we are not using the URL field type (and perhaps as long as a URL is not in a text field). I had filed
MDL-19864a while back. Another thing that I noticed that I would not expect is that the description field - since it is using the text editor saves the html code into the database and this code also gets exported which seems a bit ugly. I'm not sure if that is a feature or a bug. Peace - AnthonyMDL-19864a while back. Another thing that I noticed that I would not expect is that the description field - since it is using the text editor saves the html code into the database and this code also gets exported which seems a bit ugly. I'm not sure if that is a feature or a bug. Peace - Anthony