org.ourgrid.test.functionaltests
Class ExecutionLoadFunctionalTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.test.functionaltests.ExecutionLoadFunctionalTests
All Implemented Interfaces:
junit.framework.Test

public class ExecutionLoadFunctionalTests
extends junit.framework.TestCase

Stressfully test job executions on OurGrid communities under different conditions. Test details are documented on the test methods.

Author:
Flavio Vinicius Diniz de Figueiredo - flaviov@lsd.ufcg.edu.br

Constructor Summary
ExecutionLoadFunctionalTests()
           
 
Method Summary
 void runStressTestWithEnviroment(int numMyGrids, int numPeers, int numGumsPerPeer, java.io.File jobFile, int numJobs)
          Test scenario:
- Peer [1 to x], MyGrid [1 to y] randomly at Peers [1 to x], Gums at Peers [1 to x], Peer [1 to x] at Core Peer 1 Description:
- Tests execution of a wide number of jobs in various Peer from various MyGrid.
protected  void tearDown()
          Reset the FunctionTestsControl to clear any properties configuration that was used before.
 void testOneMyGridAFewOfEchoTaskBasedAndOnePeer()
          Test scenario:
- Peer A, MyGrid A at Peer A, Gums at Peer A Description:
- Tests execution of a wide number of jobs in a Single Peer from one MyGrid.
 void testOneMyGridAFewOfEchoTaskBasedJobsAndVariousPeer()
          Test scenario:
- Peer [1 to 5], MyGrid A at Peer 1, Gums at Peers [1 to 5], Peer [1 to 5] at Core Peer A Description:
- Tests execution of a wide number of jobs in various Peer from one MyGrid.
 void testOneMyGridALotOfEchoJobsAndOnePeer()
          Test scenario:
- Peer A, MyGrid A at Peer A, Gums at Peer A Description:
- Tests execution of a wide number of jobs in a Single Peer from one MyGrid.
 void testOneMyGridALotOfEchoJobsAndVariousPeer()
          Test scenario:
- Peer [1 to 5], MyGrid A at Peer 1, Gums at Peers [1 to 5], Peer [1 to 5] at Core Peer A Description:
- Tests execution of a wide number of jobs in various Peer from one MyGrid.
 void testVariousMyGridAFewOfEchoTaskBasedAndOnePeer()
          Test scenario:
- Peer A, MyGrid [1 to 5] at Peer A, Gums at Peer A Description:
- Tests execution of a wide number of jobs in a Single Peer from various MyGrid.
 void testVariousMyGridAFewOfEchoTaskBasedJobsAndVariousPeer()
          Test scenario:
- Peer [1 to 5], MyGrid [1 to 5] randomly at Peers [1 to 5], Gums at Peers [1 to 5], Peer [1 to 5] at Core Peer 1 Description:
- Tests execution of a wide number of jobs in various Peer from various MyGrid.
 void testVariousMyGridALotOfEchoJobsAndOnePeer()
          Test scenario:
- Peer A, MyGrid [1 to 5] at Peer A, Gums at Peer A Description:
- Tests execution of a wide number of jobs in a Single Peer from various MyGrid.
 void testVariousMyGridALotOfEchoJobsAndVariousPeer()
          Test scenario:
- Peer [1 to 5], MyGrid [1 to 5] randomly at Peers [1 to 5], Gums at Peers [1 to 5], Peer [1 to 5] at Core Peer 1 Description:
- Tests execution of a wide number of jobs in various Peer from various MyGrid.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExecutionLoadFunctionalTests

public ExecutionLoadFunctionalTests()
Method Detail

tearDown

protected void tearDown()
                 throws java.lang.Exception
Reset the FunctionTestsControl to clear any properties configuration that was used before.

Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception
See Also:
TestCase.tearDown()

testOneMyGridALotOfEchoJobsAndOnePeer

public void testOneMyGridALotOfEchoJobsAndOnePeer()
                                           throws java.lang.Exception
Test scenario:
- Peer A, MyGrid A at Peer A, Gums at Peer A Description:
- Tests execution of a wide number of jobs in a Single Peer from one MyGrid. Functional tests units:
- Peer A,
- MyGrid A.
Test scenario workflow:
- Start Peer A,
- Set Gums at Peer A,
- Start MyGrid A,
- Set MyGrid A with Peer A,
- Add job at MyGrid A,
- Wait until MyGrid A job is running,
- Wait until MyGrid A job is finished,
- Clear scenario.

Throws:
java.lang.Exception - If any exception is thrown the test fails.

testVariousMyGridALotOfEchoJobsAndOnePeer

public void testVariousMyGridALotOfEchoJobsAndOnePeer()
                                               throws java.lang.Exception
Test scenario:
- Peer A, MyGrid [1 to 5] at Peer A, Gums at Peer A Description:
- Tests execution of a wide number of jobs in a Single Peer from various MyGrid. Functional tests units:
- Peer A,
- MyGrid [1 to 5].
Test scenario workflow:
- Start Peer A,
- Set Gums at Peer A,
- Start MyGrid [1 to 5],
- Set MyGrid [1 to 5] with Peer A,
- Add job at MyGrid [1 to 5],
- Wait until MyGrid [1 to 5] job is running,
- Wait until MyGrid [1 to 5] job is finished,
- Clear scenario.

Throws:
java.lang.Exception - If any exception is thrown the test fails.

testOneMyGridALotOfEchoJobsAndVariousPeer

public void testOneMyGridALotOfEchoJobsAndVariousPeer()
                                               throws java.lang.Exception
Test scenario:
- Peer [1 to 5], MyGrid A at Peer 1, Gums at Peers [1 to 5], Peer [1 to 5] at Core Peer A Description:
- Tests execution of a wide number of jobs in various Peer from one MyGrid. Functional tests units:
- Peer [1 to 5],
- MyGrid A.
Test scenario workflow:
- Start Core Peer A,
- Start Peer [1 to 5],
- Set Gums at Peer [1 to 5],
- Set Peer [1 to 5] at Core Peer A,
- Start MyGrid A,
- Set MyGrid A with Peer 1,
- Add jobs at MyGrid A,
- Wait until MyGrid A jobs are running,
- Wait until MyGrid A job are finished,
- Clear scenario.

Throws:
java.lang.Exception - If any exception is thrown the test fails.

testVariousMyGridALotOfEchoJobsAndVariousPeer

public void testVariousMyGridALotOfEchoJobsAndVariousPeer()
                                                   throws java.lang.Exception
Test scenario:
- Peer [1 to 5], MyGrid [1 to 5] randomly at Peers [1 to 5], Gums at Peers [1 to 5], Peer [1 to 5] at Core Peer 1 Description:
- Tests execution of a wide number of jobs in various Peer from various MyGrid. Functional tests units:
- Peer [1 to 5],
- MyGrid [1 to 5].
- Core Peer 1 Test scenario workflow:
- Start Core Peer 1,
- Start Peer [1 to 5],
- Set Gums at Peer [1 to 5],
- Set Peer [1 to 5] at Core Peer 1,
- Start MyGrid [1 to 5],
- Set MyGrid [1 to y] with Peers [1 to 5] randomly,
- Add job at MyGrid [1 to 5],
- Wait until MyGrid [1 to 5] job is finished,
- Clear scenario.

Throws:
java.lang.Exception - If any exception is thrown the test fails.

testOneMyGridAFewOfEchoTaskBasedAndOnePeer

public void testOneMyGridAFewOfEchoTaskBasedAndOnePeer()
                                                throws java.lang.Exception
Test scenario:
- Peer A, MyGrid A at Peer A, Gums at Peer A Description:
- Tests execution of a wide number of jobs in a Single Peer from one MyGrid. Functional tests units:
- Peer A,
- MyGrid A.
Test scenario workflow:
- Start Peer A,
- Set Gums at Peer A,
- Start MyGrid A,
- Set MyGrid A with Peer A,
- Add job at MyGrid A,
- Wait until MyGrid A job is running,
- Wait until MyGrid A job is finished,
- Clear scenario.

Throws:
java.lang.Exception - If any exception is thrown the test fails.

testVariousMyGridAFewOfEchoTaskBasedAndOnePeer

public void testVariousMyGridAFewOfEchoTaskBasedAndOnePeer()
                                                    throws java.lang.Exception
Test scenario:
- Peer A, MyGrid [1 to 5] at Peer A, Gums at Peer A Description:
- Tests execution of a wide number of jobs in a Single Peer from various MyGrid. Functional tests units:
- Peer A,
- MyGrid [1 to 5].
Test scenario workflow:
- Start Peer A,
- Set Gums at Peer A,
- Start MyGrid [1 to 5],
- Set MyGrid [1 to 5] with Peer A,
- Add job at MyGrid [1 to 5],
- Wait until MyGrid [1 to 5] job is running,
- Wait until MyGrid [1 to 5] job is finished,
- Clear scenario.

Throws:
java.lang.Exception - If any exception is thrown the test fails.

testOneMyGridAFewOfEchoTaskBasedJobsAndVariousPeer

public void testOneMyGridAFewOfEchoTaskBasedJobsAndVariousPeer()
                                                        throws java.lang.Exception
Test scenario:
- Peer [1 to 5], MyGrid A at Peer 1, Gums at Peers [1 to 5], Peer [1 to 5] at Core Peer A Description:
- Tests execution of a wide number of jobs in various Peer from one MyGrid. Functional tests units:
- Peer [1 to 5],
- MyGrid A.
Test scenario workflow:
- Start Core Peer A,
- Start Peer [1 to 5],
- Set Gums at Peer [1 to 5],
- Set Peer [1 to 5] at Core Peer A,
- Start MyGrid A,
- Set MyGrid A with Peer 1,
- Add jobs at MyGrid A,
- Wait until MyGrid A jobs are running,
- Wait until MyGrid A job are finished,
- Clear scenario.

Throws:
java.lang.Exception - If any exception is thrown the test fails.

testVariousMyGridAFewOfEchoTaskBasedJobsAndVariousPeer

public void testVariousMyGridAFewOfEchoTaskBasedJobsAndVariousPeer()
                                                            throws java.lang.Exception
Test scenario:
- Peer [1 to 5], MyGrid [1 to 5] randomly at Peers [1 to 5], Gums at Peers [1 to 5], Peer [1 to 5] at Core Peer 1 Description:
- Tests execution of a wide number of jobs in various Peer from various MyGrid. Functional tests units:
- Peer [1 to 5],
- MyGrid [1 to 5].
- Core Peer 1 Test scenario workflow:
- Start Core Peer 1,
- Start Peer [1 to 5],
- Set Gums at Peer [1 to 5],
- Set Peer [1 to 5] at Core Peer 1,
- Start MyGrid [1 to 5],
- Set MyGrid [1 to y] with Peers [1 to 5] randomly,
- Add job at MyGrid [1 to 5],
- Wait until MyGrid [1 to 5] job is finished,
- Clear scenario.

Throws:
java.lang.Exception - If any exception is thrown the test fails.

runStressTestWithEnviroment

public void runStressTestWithEnviroment(int numMyGrids,
                                        int numPeers,
                                        int numGumsPerPeer,
                                        java.io.File jobFile,
                                        int numJobs)
                                 throws java.lang.Exception
Test scenario:
- Peer [1 to x], MyGrid [1 to y] randomly at Peers [1 to x], Gums at Peers [1 to x], Peer [1 to x] at Core Peer 1 Description:
- Tests execution of a wide number of jobs in various Peer from various MyGrid. Functional tests units:
- Peer [1 to x],
- MyGrid [1 to y].
- Core Peer 1 Test scenario workflow:
- Start Core Peer 1,
- Start Peer [1 to x],
- Set Gums at Peer [1 to x],
- Set Peer [1 to x] at Core Peer 1,
- Start MyGrid [1 to y],
- Set MyGrid [1 to y] with Peers [1 to x] randomly,
- Add job at MyGrid [1 to y],
- Wait until MyGrid [1 to y] job is finished,
- Clear scenario.

Throws:
java.lang.Exception - If any exception is thrown the test fails.