-
Notifications
You must be signed in to change notification settings - Fork 16
/
article_doaj_xml_upload.yml
359 lines (342 loc) · 18.4 KB
/
article_doaj_xml_upload.yml
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
# ~~ DOAJArticleXMLUpload:FunctionalTest -> DOAJArticleXML:Feature ~~
suite: Article XML Upload
testset: DOAJ XML
tests:
- title: Try uploading without providing a file
context:
role: publisher
steps:
- step: Go to the "Upload Article XML" tab in the "Publisher Area" /publisher/uploadfile
- step: Do not fill in any inputs
- step: Click "Upload"
results:
- Under the Select a file input and Upload from a link input an error
"You must specify the file or upload from a link" error is displayed
- title: Upload a file which is not XML
context:
role: publisher
steps:
- step: Go to the "Upload Article XML" tab in the "Publisher Area" /publisher/uploadfile
- step: Select "Choose file" and select a file from your computer which is not text
based (e.g. an image file or a PDF)
- step: Click "Upload"
results:
- A flash message with appropriate text appears at the top of the screen, indicating an error has occurred
- Your file is shown in the "History of uploads" with the status "processing failed"
and a suitable entry in the "Notes". Check that the explanation link goes to
a suitable reason and resolution for the problem.
- title: Upload an XML file which does not meet the DOAJ schema
context:
role: publisher
steps:
- step: Go to the "Upload Article XML" tab in the "Publisher Area"
- step: Select "Choose file" and select a file from your computer which is XML but
not of the DOAJ schema. You may use the file "schema_invalid.xml" from the DOAJ
folder in resources for this test.
resource: /xml_upload_test_package/DOAJ/schema_invalid.xml
- step: Choose "DOAJ Native XML" from "Format of the file" dropdown
- step: Click "Upload"
results:
- A flash message with appropriate text appears at the top of the screen, indicating an error has occurred
- Your file is shown in the "History of uploads" with the status "processing failed"
and a suitable entry in the "Notes" (you may need to reload the page). Check
that the explanation link goes to a suitable reason and resolution for the problem.
- title: Upload a malformed XML file
context:
role: publisher
steps:
- step: Go to the "Upload Article XML" tab in the "Publisher Area"
- step: Select "Choose file" and select a file from your computer which looks like
XML but is actually malformed. You may use the file "not_xml.xml" from the
DOAJ folder in resources for this test.
resource: /xml_upload_test_package/DOAJ/not_xml.xml
- step: Choose "DOAJ Native XML" from "Format of the file" dropdown
- step: Click "Upload"
results:
- A flash message with appropriate text appears at the top of the screen, indicating an error has occurred
- Your file is shown in the "History of uploads" with the status "processing failed"
and a suitable entry in the "Notes". Check that the explanation link goes to
a suitable reason and resolution for the problem.
- title: Upload a file with duplicates inside the file
context:
role: publisher
steps:
- step: Ensure that the publisher account owns a journal with Print ISSN "1111-1111"
and E-ISSN "2222-2222", and these are not attached to any other journals
- step: Go to the "Upload Article XML" tab in the "Publisher Area"
- step: Choose "DOAJ Native XML" from "Format of the file" dropdown
- step: Select "Choose file" and select the test resource file "duplicate_in_file.xml"
from the DOAJ folder
resource: /xml_upload_test_package/DOAJ/duplicate_in_file.xml
- step: Click "Upload"
results:
- 'A flash message appears at the top of the screen: File uploaded and waiting
to be processed. Check back here for updates.'
- Click away to another tab and then back - your file is shown in the "History of uploads" with the status "pending"
- step: wait a short amount of time for the job to process, then click away and then back again. If the job remains in "pending", reload the
page until the status changes.
results:
- Your file is shown in the "History of uploads" with the status "processing failed"
and a suitable entry in the "Notes". Check that the explanation link goes to
a suitable reason and resolution for the problem.
- title: Upload a file containing ISSNs the publisher does not own
context:
role: publisher
steps:
- step: Ensure that the ISSNs 0000-0002 and 0000-000X are in DOAJ attached to one
or more journals (e.g. one with 0000-000X AND 0000-0002 or two, one with 0000-0002
and another with 0000-000X). None of the journals with these ISSNs should be
owned by the publisher
- step: Go to the "Upload Article XML" tab in the "Publisher Area"
- step: Choose "DOAJ Native XML" from "Format of the file" dropdown
- step: Select "Choose file" and select the test resource file "unowned_issn.xml"
from the DOAJ folder
resource: /xml_upload_test_package/DOAJ/unowned_issn.xml
- step: Click "Upload"
results:
- 'A flash message appears at the top of the screen indicating a successful upload:
File uploaded and waiting to be processed. Check back here for updates. (Dismiss)'
- Click away to another tab and then back - your file is shown in the "History of uploads" with status "pending"
- step: wait a short amount of time for the job to process, then click away and then back. If the job remains in "pending", reload the
page until the status changes.
results:
- Your file is shown in the "History of uploads" with status "processing failed"
and a suitable entry in the "Notes". Check that the explanation link goes to
a suitable reason and resolution for the problem.
- step: click on "(show error details)" for the record in the "History of uploads"
results:
- Clicking 'show error details' shows information indicating that the publisher does not own
ISSNs "0000-0000" and "0000-000X"
- title: Upload a file containing ISSN that has been withdrawn
context:
role: publisher
steps:
- step: Ensure that the publisher owns a journal with ISSN 0000-1111 that is not
in DOAJ (ie. has been withdrawn)
- step: Go to the "Upload Article XML" tab in the "Publisher Area"
- step: Choose "DOAJ Native XML" from "Format of the file" dropdown
- step: Select "Choose file" and select the test resource file "withdrawn_journal.xml"
from the DOAJ folder
resource: /xml_upload_test_package/DOAJ/withdrawn_journal.xml
- step: Click "Upload"
results:
- 'A flash message appears at the top of the screen indicating a successful upload:
File uploaded and waiting to be processed. Check back here for updates. (Dismiss)'
- Click away to another tab and then back - your file is shown in the "History of uploads" with the status "pending"
- step: wait a short amount of time for the job to process, then click away and then back. If the job remains in "pending", reload the
page until the status changes.
results:
- Your file is shown in the "History of uploads" with the status "processing failed"
and a suitable entry in the "Notes". Check that the explanation link goes to
a suitable reason and resolution for the problem.
- step: click on "(show error details)" for the record in the "History of uploads"
results:
- extra information indicates that ISSN is not in DOAJ
- title: Upload a file containing ISSNs not previously seen in DOAJ
context:
role: publisher
steps:
- step: Ensure that the ISSN "1111-1111" is attached to a journal owned by the publisher
and ISSN "5555-5555" is not present in any journal in DOAJ.
- step: Go to the "Upload Article XML" tab in the "Publisher Area"
- step: Choose "DOAJ Native XML" from "Format of the file" dropdown
- step: Select "Choose file" and select the test resource file "unmatched_issn.xml" from
the DOAJ folder
resource: /xml_upload_test_package/DOAJ/unmatched_issn.xml
- step: Click "Upload"
results:
- 'A flash message appears at the top of the screen indicating a successful upload:
File uploaded and waiting to be processed. Check back here for updates. (Dismiss)'
- Click away to another tab and then back - your file is shown in the "History of uploads" with the status "pending"
- step: wait a short amount of time for the job to process, then click away and then back. If the job remains in "pending", reload the
page until the status changes.
results:
- Your file is shown in the "History of uploads" with the status "processing failed"
and a suitable entry in the "Notes". Check that the explanation link goes to
a suitable reason and resolution for the problem.
- step: click on "(show error details)" for the record in the "History of uploads"
results:
- Additional error details are shown, indicating that the ISSN "5555-5555" does
not appear in DOAJ.
- title: Upload a file containing ISSNs erroneously shared with another account
context:
role: publisher
steps:
- step: Ensure that the ISSN "1111-1111" is attached a journal owned by the publisher
and ISSN "2222-2222" is attached to the same journal and also to another journal
not owned by the publisher
- step: Go to the "Upload Article XML" tab in the "Publisher Area"
- step: Choose "DOAJ Native XML" from "Format of the file" dropdown
- step: Select "Choose file" and select the test resource file "shared_issn.xml" from
the DOAJ folder
resource: /xml_upload_test_package/DOAJ/shared_issn.xml
- step: Click "Upload"
results:
- 'A flash message appears at the top of the screen indicating a successful upload:
File uploaded and waiting to be processed. Check back here for updates.(Dismiss)'
- Your file is shown in the "History of uploads" with status "pending"
- step: wait a short amount of time for the job to process, then reload the page
(do not re-submit the form data). If the job remains in "pending", reload the
page until the status changes.
results:
- Your file is shown in the "History of uploads" with status "processing failed"
and a suitable entry in the "Notes". Check that the explanation link goes to
a suitable reason and resolution for the problem.
- step: click on "(show error details)" for the record in the "History of uploads"
results:
- Additional error details are shown, indicating that the ISSN "2222-2222" is
shared with another user
- title: Successfully upload a file containing a new article
context:
role: publisher
steps:
- step: Ensure that the publisher account owns a journal with Print ISSN "1111-1111"
and E-ISSN "2222-2222", and these are not attached to any other journals and
that these journal does not contain "Success" or "Update" articles from previous
tests.
- step: Go to the "Upload Article XML" tab in the "Publisher Area"
- step: Choose "DOAJ Native XML" from "Format of the file" dropdown
- step: Select "Choose file" and select the test resource file "successful.xml" from
the DOAJ folder
resource: /xml_upload_test_package/DOAJ/successful.xml
- step: Click "Upload"
results:
- A flash message appears at the top of the screen, indicating a successful upload
File uploaded and waiting to be processed. Check back here for updates.(Dismiss)
- Your file is shown in the "History of uploads" with the status "pending"
- step: wait a short amount of time for the job to process, then reload the page
(do not re-submit the form data). If the job remains in "pending", reload the
page until the status changes.
results:
- Your file is shown in the "History of uploads" with status "successfully processed",
and the Note "1 articles imported (1 new, 0 updated)"
- step: Go to the Table of Contents for the journal (e.g. by going to /toc/2222-2222)
results:
- The list of articles should contain an article with the title "Success!"
- title: Successfully upload a file containing an updated article
context:
role: publisher
steps:
- step: Run through test 7 to upload a new article
- step: Go to the "Upload Article XML" tab in the "Publisher Area"
- step: Choose "DOAJ Native XML" from "Format of the file" dropdown
- step: Select "Choose file" and select the test resource file "update.xml" from
the DOAJ folder
resource: /xml_upload_test_package/DOAJ/update.xml
- step: Click "Upload"
results:
- A flash message appears at the top of the screen, indicating a successful upload
File uploaded and waiting to be processed. Check back here for updates.(Dismiss)
- Your file is shown in the "History of uploads" with the status "pending"
- step: wait a short amount of time for the job to process, then reload the page
(do not re-submit the form data). If the job remains in "pending", reload the
page until the status changes.
results:
- Your file is shown in the "History of uploads" with status "successfully processed",
and the Note "1 articles imported (0 new, 1 updated)"
- step: Go to the Table of Contents for the journal (e.g. by going to /toc/2222-2222)
results:
- The list of articles should contain an article with the title "Updated!", and
the previous version ("Success!") should be gone
- title: Successfully upload a file by reference containing a new or updated article
context:
role: publisher
steps:
- step: Run through test 7 and 8 to upload and update a new article
- step: 'Make sure there are no other articles in the database with the DOI: 10.1234/100.
Delete those first.'
- step: Go to the "Upload Article XML" tab in the "Publisher Area"
- step: In the box "Provide a URL where we can download the XML", enter the URL below
resource: /xml_upload_test_package/DOAJ/successful.xml
- step: Click "Upload"
results:
- A flash message appears at the top of the screen, indicating that the file reference
was successfully received
- Your file is shown in the "History of uploads" with the status "pending"
- step: wait a short amount of time for the job to process, then reload the page
(do not re-submit the form data). If the job remains in "pending", reload the
page until the status changes.
results:
- Your file is shown in the "History of uploads" with status "successfully processed",
and the Note "1 articles imported (1 new, 0 updated)" or "1 articles imported
(0 new, 1 updated)".
- step: Go to the Table of Contents for the journal (e.g. by going to /toc/2222-2222)
results:
- The list of articles should contain an article with the title "Success!"
- title: Upload a file containing author's ORCID iD in a wrong format
context:
role: publisher
steps:
- step: Go to the "Upload Article XML" tab in the "Publisher Area"
- step: Select "Choose file" and select the test resource file "orcid_id_invalid.xml"
resource: /xml_upload_test_package/DOAJ/orcid_id_invalid.xml
- step: Click "Upload"
results:
- A flash message with appropriate text appears at the top of the screen indicating an error has occurred
- Your file is shown in the "History of uploads" with status "processing failed"
and a "Unable to validate document with identified schema" entry in the "Notes". Check
that the explanation link goes to a suitable reason and resolution for the problem.
- step: click on "(show error details)" for the record in the "History of uploads"
results:
- Additional error details are shown, indicating that the ORCID iD is not in the
correct format
- title: Upload a file containing 2 identical ISSNs
context:
role: publisher
steps:
- step: Go to the "Upload Article XML" tab in the "Publisher Area"
- step: Select "Choose file" and select the test resource file "identical_issns.xml"
resource: /xml_upload_test_package/DOAJ/identical_issns.xml
- step: Click "Upload"
results:
- 'A flash message appears at the top of the screen indicating a successful upload:
File uploaded and waiting to be processed. Check back here for updates.(Dismiss)'
- Your file is shown in the "History of uploads" with status "pending"
- step: wait a short amount of time for the job to process, then reload the page
(do not re-submit the form data). If the job remains in "pending", reload the
page until the status changes.
results:
- Your file is shown in the "History of uploads" with status "processing failed"
and a suitable entry in the "Notes". Check that the explanation link goes to
a suitable reason and resolution for the problem.
- title: Upload a file without ISSN
context:
role: publisher
steps:
- step: Go to the "Upload Article XML" tab in the "Publisher Area"
- step: Select "Choose file" and select the test resource file "no_issn.xml"
resource: /xml_upload_test_package/DOAJ/no_issn.xml
- step: Click "Upload"
results:
- 'A flash message appears at the top of the screen indicating a successful upload:
File uploaded and waiting to be processed. Check back here for updates.(Dismiss)'
- Your file is shown in the "History of uploads" with status "pending"
- step: wait a short amount of time for the job to process, then reload the page
(do not re-submit the form data). If the job remains in "pending", reload the
page until the status changes.
results:
- Your file is shown in the "History of uploads" with status "processing failed"
and a suitable entry in the "Notes". Check that the explanation link goes to
a suitable reason and resolution for the problem.
- title: Check Outcome Status of "Upload a file with duplicates inside the file"
context:
role: admin
steps:
- step: Run through test "Upload a file with duplicates inside the file"
- step: Go to the DOAJ admin Background Jobs search at /admin/background_jobs
- step: Search related article background job by filter Action=ingest_articles, Status=complete
results:
- Related background job is found
- status is "complete"
- Outcome Status is "fail"
- title: Check Outcome Status of "Successfully upload a file containing a new article"
context:
role: admin
steps:
- step: Run through test "Successfully upload a file containing a new article"
- step: Go to the DOAJ admin Background Jobs search at /admin/background_jobs
- step: Search related article background job by filter Action=ingest_articles, Status=complete
results:
- Related background job is found
- status is "complete"
- Outcome Status is "success"