-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
full implementation of functional test
- Loading branch information
1 parent
66ca4a4
commit bb88d7c
Showing
8 changed files
with
113 additions
and
13 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Journal title,Journal ISSN (print version),Journal EISSN (online version),Publisher,APC,APC information URL,APC amount,Journal waiver policy (for developing country authors etc),Waiver policy information URL,Has other fees,Other fees information URL (only if answer is in Column J is 'Yes') | ||
Electronics Letters,0000-0001,0000-0002,Another,Yes,https://ietresearch.onlinelibrary.wiley.com/hub/journal/1350911x/homepage/open-access,2200 USD; 1700 GBP; 2000 EUR,Yes,https://authorservices.wiley.com/open-research/open-access/for-authors/waivers-and-discounts.html,No, | ||
,,,,,,,,,, | ||
Journal of Veterinary Internal Medicine,0000-0003,,Another,Yes,http://onlinelibrary.wiley.com/journal/10.1111/%28ISSN%291939-1676/homepage/article_publication_charges.htm,1650 USD,Yes,http://www.wileyopenaccess.com/details/content/13707a1ddf6/Waivers-and-Discounts-on-Article-Publication-Charges.html,No,http://onlinelibrary.wiley.com/journal/10.1111/%28ISSN%291939-1676/homepage/article_publication_charges.htm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
journal title,Journal ISSN (print version),Journal EISSN (online version),Publisher,APC,APC information URL,APC amount,Journal waiver policy (for developing country authors etc),Waiver policy information URL,Has other fees,Other fees information URL (only if answer is in Column J is 'Yes') | ||
Electronics Letters,0000-0001,0000-0002,Another,Yes,https://ietresearch.onlinelibrary.wiley.com/hub/journal/1350911x/homepage/open-access,2200 USD; 1700 GBP; 2000 EUR,Yes,https://authorservices.wiley.com/open-research/open-access/for-authors/waivers-and-discounts.html,No, | ||
,,,,,,,,,, | ||
Journal of Veterinary Internal Medicine,0000-0003,,Another,Yes,http://onlinelibrary.wiley.com/journal/10.1111/%28ISSN%291939-1676/homepage/article_publication_charges.htm,1650 USD,Yes,http://www.wileyopenaccess.com/details/content/13707a1ddf6/Waivers-and-Discounts-on-Article-Publication-Charges.html,No,http://onlinelibrary.wiley.com/journal/10.1111/%28ISSN%291939-1676/homepage/article_publication_charges.htm | ||
No Updates,,0000-0010,,,,,,,, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
suite: Publisher CSV | ||
testset: Validate CSV | ||
tests: | ||
- title: Invalid headers in upload | ||
context: | ||
role: Publisher | ||
testdrive: publisher_csv_upload | ||
setup: | ||
- Use the publisher_csv_upload testdrive to setup for this test at /testdrive/publisher_csv_upload | ||
- At the end of the test please use the 'teardown' link provided by the testdrive to remove test assets from the system | ||
steps: | ||
- step: Log in as the publisher account specified by the testdrive result | ||
- step: Go to the 'Validate your Journal CSV' tab in the publisher dashboard | ||
path: publisher/journal-csv | ||
results: | ||
- There is a page that offers you documentation and an upload box for your Journal CSV | ||
- step: Click 'Choose File' and select a CSV file with invalid headers | ||
resource: /doajtest/example_files/publisher_csv_invalid_headers.csv | ||
- step: Click 'Validate' | ||
results: | ||
- You are briefly shown a message to say that your file is being validated (this may appear only briefly, if you | ||
blink you may miss it) | ||
- Shortly after, you are shown a set of validation errors. The following are the expected errors | ||
- A general error saying that "Journal ISSN (print version)" is a required header and is missing | ||
- An issue with the header row in Column A, warning that the header case is different from the expected header | ||
- An issue with the header row in Column K, saying "Extra unexpected header" is not a valid header | ||
- step: If you are finished testing, you can teardown the testdrive using the link provided. If you are going to continue | ||
with the other tests in this suite you can leave the testdrive in place until the very end | ||
|
||
- title: Invalid data in upload | ||
context: | ||
role: Publisher | ||
testdrive: publisher_csv_upload | ||
setup: | ||
- If you have not done so already, use the publisher_csv_upload testdrive to setup for this test at /testdrive/publisher_csv_upload | ||
steps: | ||
- step: Log in as the publisher account specified by the testdrive result | ||
- step: Go to the 'Validate your Journal CSV' tab in the publisher dashboard | ||
path: publisher/journal-csv | ||
- step: Click 'Choose File' and select a CSV file with invalid data | ||
resource: /doajtest/example_files/publisher_csv_invalid_data.csv | ||
- step: Click 'Validate' | ||
results: | ||
- You are shown a set of validation errors. The following are the expected errors | ||
- Row 2 and Row 6 were not found in DOAJ | ||
- Row 3 is owned by another user | ||
- Row 4 did not provide any updates to the journal | ||
- Row 5 changed the journal title, which is not permitted | ||
- Row 7 had a selection of validation errors. The errors are identified, and the original and newly supplied | ||
values are shown | ||
- step: If you are finished testing, you can teardown the testdrive using the link provided. If you are going to continue | ||
with the other tests in this suite you can leave the testdrive in place until the very end | ||
|
||
- title: Valid uploads | ||
context: | ||
role: Publisher | ||
testdrive: publisher_csv_upload | ||
setup: | ||
- If you have not done so already, use the publisher_csv_upload testdrive to setup for this test at /testdrive/publisher_csv_upload | ||
steps: | ||
- step: Log in as the publisher account specified by the testdrive result | ||
- step: Go to the 'Validate your Journal CSV' tab in the publisher dashboard | ||
path: publisher/journal-csv | ||
- step: Click 'Validate' without selecting a file | ||
results: | ||
- You are shown a message saying that you must select a file to upload | ||
- step: Click 'Choose File' and select a CSV file with valid data that will generate warnings | ||
resource: /doajtest/example_files/publisher_csv_upload_warnings.csv | ||
- step: Click 'Validate' | ||
results: | ||
- You are shown a validation message that says validation is successful with warnings | ||
- You are shown a list of warnings. The following are the expected warnings | ||
- One of the headers is in the wrong case | ||
- One of the rows does not provide an update to the data | ||
- step: Click 'Choose File' and select a CSV file with valid data that will not generate any warnings | ||
resource: /doajtest/example_files/publisher_csv_upload_success.csv | ||
- step: Click 'Validate' | ||
results: | ||
- You are shown a validation message that says validation is successful |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters