Test cases

The application has been tested in these different user scenarios

Common assumptions between different scenarios

  • All the test are done with and without the Directory Service
  • The Masters running the same job file : testOK.job
  • There are two Workers submitted through GANGA

The tests are run with the Scenarios below. The workers should always cleanup correctly (exit by themselves).

Scenario 1: active mode

Setup:
  • Start Master1 in active mode with a single job
  • Submit Workers to Master1
  • Start the Master2

Test 1.1:

  • DS: After Master 1 completes OK, the workers should connect to Master 2 and complete OK
    • test runs successfully
  • NODS: After Master 1 completes OK, the workers should cleanup.
    • test runs successfully
Test 1.2: While Master 1 is running, kill the Directory Service.
  • DS: After Master 1 completes, the workers should cleanup.
    • test runs successfully
Test 1.3: While Master 1 is running, kill Master 1.
  • DS: The workers should connect to Master 2 and complete OK.
    • test runs successfully
  • NODS: The workers should cleanup.
    • test runs successfully

Scenario 2: inactive mode

Setup:
  • Start Master1 in inactive mode
  • Submit Workers
  • Wait until workers register with Master1
  • Start Master2 in active mode

Test 2.1: Activate Master1

  • DS: both masters should complete and the workers cleanup.
    • test runs successfully
  • NODS: Master 1 should complete and the workers cleanup.
    • test runs successfully

Test 2.2: Kill Master1

  • DS: workers should connect to Master2, Master2 should complete and the workers should cleanup
    • test runs successfully
  • NODS: the workers should cleanup
    • test runs successfully

Scenario 3: job chain

  • Start Master1 running in active mode with a job chain, after processing the first job in the chain the master should enter interactive mode
  • Submit Workers
  • Wait until workers register with Master1
  • Start Master2 in active mode

Test 3.1: exit from the job chain gracefully (Master1)

  • DS: workers should connect to Master2, Master2 should complete and the workers should cleanup
    • test runs successfully
  • NODS: workers should cleanup
    • test runs successfully

Test 3.2: While Master 1 is running, kill Master 1

  • DS: workers should connect to Master2, Master2 should complete and the workers should cleanup
    • test runs successfully
  • NODS: workers should cleanup
    • test runs successfully

Test 3.3: kill the master while it is waiting for the next job in the chain (interactive mode)

  • DS: workers should connect to Master2, Master2 should complete and the workers should cleanup
    • test runs successfully
  • NODS: workers should cleanup
    • test runs successfully

Scenario 4: job chain in inactive mode

  • Start Master1 running in inactive mode with a job chain
  • Submit Workers
  • Wait until workers register with Master1
  • Start Master2 in active mode
  • After processing the first job in the chain the master should enter interactive mode

Test 4.1: exit from the job chain gracefully (Master1)

  • DS: workers should connect to Master2, Master2 should complete and the workers should cleanup
    • test runs successfully
  • NODS: workers should cleanup
    • test runs successfully

Test 4.2: While Master 1 is running, kill Master 1

  • DS: workers should connect to Master2, Master2 should complete and the workers should cleanup
    • test runs successfully
  • NODS: workers should cleanup
    • test runs successfully

-- PaolaDiMarcello - 30 Mar 2007

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r9 - 2007-03-30 - unknown
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    ArdaGrid All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback