forked from moodleou/moodle-mod_ouwiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestcase.uploadtemplate.txt
149 lines (122 loc) · 4.77 KB
/
testcase.uploadtemplate.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
This script describes steps to test the use of the add template anytime facility
and codes ability to create OU wikis from that template. It assumes that the tt server
is set up so has to allow the Roll Forward of dummy courses.
The script also tests the embedding of files and attachments into templates.
NOTE: In this test case, the word 'wiki' always refers to the OU wiki.
The test steps in this script follow on from each other and aren't independent,
except as noted.
Initial setup
=============
Create a test course called TC1.
CRE Creating wikis and data
===========================
CRE01 / admin
In your test course TC1, create a wiki called CRE01.
Create the start page with 3 words.
Create 2 pages 'page1' and 'page2' from the start page in the wiki
Go to page1 and create a page 'inner page1'
Go to wiki index
Choose 'Structure' view
Download as wiki template and save the download zip file to a temp area on your PC as CRE01_template.zip
Unzip the downloaded template zip file and save the xml file to a temp area on your PC as CRE01_template.xml
CRE02 / admin
In your test course TC1, create a wiki called CRE02
Create the start page with 6 words.
Create 2 pages 'page1' and 'page2' from the start page in the wiki
Go to page2 and create a page 'inner page2'
Go to wiki index
Choose 'Structure' view
Download as wiki template and save the download zip file to a temp area on your PC as CRE02_template.zip
Unzip the downloaded template zip file and save the xml file to a temp area on your PC as CRE02_template.xml
CRE03 / admin
Create a wiki called CRE03
Create the start page with 1 word.
CRE04 / admin
Create a wiki called CRE04
Create the start page with 2 words.
CRE05 / admin
Create a wiki called CRE05
DO NOT create a start page for it.
CRE06 / admin
Create a wiki called CRE06
Create a start page for it.
Click the 'Cancel' button
CRE07 / admin
Set up the block 'View as'
Create a wiki called CRE07
Set Wiki Settings to 'Individual wiki per user'
Save and return to course
Navigate as example student to CRE07
DO NOT create a start page for it.
Log back in as admin
CRE08 / admin
In your test course TC1, create a wiki called CRE08.
Create the start page with 3 words.
Create 2 pages 'page1' and 'page2' from the start page in the wiki
Go to page1 and edit page
Click against the 'edit/insert image' tree icon.
Upload an image.
Insert the image and save.
Check that the image has been saved to the wiki page.
Go to page2 and edit page and add an attachment and save.
Check that the image has been saved to the wiki page.
Go to wiki index.
Download as wiki template and save the download zip file to a temp area on your PC as CRE08_template.zip
Upload Template Files Tests
===========================
UTFT01 / admin
Go to wiki CRE03
Go to edit settings
Choose to upload the downloaded template CRE01 zip file.
Save and display
This should leave the CRE03 start page as originally created
UTFT02 / admin
Go to wiki CRE04
Go to edit settings
Choose to upload the downloaded template CRE01 xml file.
Save and display
This should leave the CRE04 start page as originally created
UTFT03 / admin
Go to wiki CRE05
Go to edit settings
Choose to upload the downloaded template CRE01 zip file
Save and display
This should create a start page matching that of wiki CRE01
UTFT04 / admin
Go to wiki CRE06
Go to edit settings
Choose to upload the downloaded template CRE01 xml file
Save and display
This should create a start page matching that of wiki CRE01
UTFT05 / admin
Go to wiki CRE07
Go to edit settings
Choose to upload the downloaded template CRE01 xml file
Save and display
This should create a start page matching that of wiki CRE01
Return to course home page
Login as example student and visit CRE07 to see that the start page is matching that of wiki CRE01
UTFT06 / admin
As admin go to wiki CRE07
Go to edit settings
Choose to upload the downloaded template CRE02 xml file
Save and display
The start page should remain as previously
Go to course home page
Login as example Tutor and visit CRE07 - the start page should match that of wiki CRE02
UTFT07 / admin
Create wiki CRE09
Go to edit settings
Choose to upload the downloaded CRE08_template.zip.
Save and display.
This should create a copy of the CRE08 wiki.
Backup and Restore Test
=======================
BRT01 / admin
Login as admin user
Backup the test course TC1 disabling all user settings/inputs.
Restore the course as TC2.
Check to see that the ouwikis have been created correctly according to the template files.
CRE01, 03, 04, 05 and 06 should match the template of CRE01
CRE02 and O7 should match the template of CRE02
CRE08 and CRE09 should match the template of CRE08