Create a test suite to verify that various scenarios using well-formed submissions give expected results.
Run tests after changing the application or the database structure.
Attached file testsuite-v03.tar.gz is a simple script for testing submission integration.
test_submissions.py executes test scripts. Test scripts connect to the database, insert a test submission,
log into web server and approve the submission. Then they check (using SQL commands) if the data is modified
as expected.
Submissions has to be integrated in sequence to make non-trivial tests;
e.g. add a new publication; add another publication; then merge their titles; then
check that the publications share the same title record. It's up to you to
find the ids of created records. Use identifiers like TITLE_ID1, REVIEW_TITLE_ID
in the XML files as placeholders for real record ids.
Included are three scenarios:
1. create two novels and merge their titles
2. create magazine with a review, create parent variant (pseudonymous review)
3. create magazine with an interview, create parent variant (pseudonymous interview)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A very simple test suite with 3 simple scenarios
Attached file testsuite-v03.tar.gz is a simple script for testing submission integration.
test_submissions.py executes test scripts. Test scripts connect to the database, insert a test submission,
log into web server and approve the submission. Then they check (using SQL commands) if the data is modified
as expected.
Submissions has to be integrated in sequence to make non-trivial tests;
e.g. add a new publication; add another publication; then merge their titles; then
check that the publications share the same title record. It's up to you to
find the ids of created records. Use identifiers like TITLE_ID1, REVIEW_TITLE_ID
in the XML files as placeholders for real record ids.
Included are three scenarios:
1. create two novels and merge their titles
2. create magazine with a review, create parent variant (pseudonymous review)
3. create magazine with an interview, create parent variant (pseudonymous interview)
Ticket moved from /p/isfdb/feature-requests/22/