Menu

#58 Create a test suite to test submission integration

None
open
nobody
None
5
2014-02-26
2009-06-01
No

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.

Discussion

  • Robert Glowczynski

    A very simple test suite with 3 simple scenarios

     
  • Robert Glowczynski

    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)

     
  • Ahasuerus

    Ahasuerus - 2014-02-26

    Ticket moved from /p/isfdb/feature-requests/22/

     

Anonymous
Anonymous

Add attachments
Cancel