|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LaunchService
This interface is the central API used by clients to load test suites into the execution queue to be picked and executed by the test cluster execution daemon. It is intended to be a remote interface exposing a stateless session EJB3.0 bean.
| Method Summary | |
|---|---|
void |
rerunTestExecution(Long testExecutionId,
String name,
String tags)
Schedule execution of a new TestExecution based on the TestExecution with the given id. |
void |
rerunTestExecutionAgainstNewDarkstar(Long testExecutionId,
String name,
String tags,
PkgLibraryDTO darkstarPkg)
Schedule execution of a new TestExecution based on the TestExecution with the given id to be run against the given darkstar application. |
void |
rerunTestExecutionAgainstNewServerApp(Long testExecutionId,
String name,
String tags,
PkgLibraryDTO darkstarPkg)
Schedule execution of a new TestExecution based on the TestExecution with the given id to be run against the given server application. |
void |
runTestExecution(Long testExecutionId)
Schedule execution of the TestExecution with the given id. |
void |
runTestSuite(Long testSuiteId,
String name,
String tags)
Schedule execution of the TestSuite with the given id. |
void |
runTestSuiteAgainstNewDarkstar(Long testSuiteId,
String name,
String tags,
PkgLibraryDTO darkstarPkg)
Schedule execution of the TestSuite with the given id to be run against the given darkstar package. |
void |
runTestSuiteAgainstNewServerApp(Long testSuiteId,
String name,
String tags,
PkgLibraryDTO serverPkg)
Schedule execution of the TestSuite with the given id to be run against the given server application package. |
| Method Detail |
|---|
void runTestExecution(Long testExecutionId)
throws DTCServiceException
Schedule execution of the TestExecution with the given id. A TestQueue object will be created as a wrapper around the given TestExecution. The execution daemon should then pick up the test from the queue and run the complete TestExecution as it is specified.
testExecutionId - id of the TestExecution to execute
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException
void runTestSuite(Long testSuiteId,
String name,
String tags)
throws DTCServiceException
Schedule execution of the TestSuite with the given id. This method specifically will create a TestExecution object derived from the TestSuite object with the given id and will load it into the execution queue as a TestQueue object.
The newly created TestExecution will be assigned the given name as its name attribute. It will also be associated with a set of tags represented by the comma/space separated list of given tags. For each tag in the list, either a new TestExecutionTag entity will be created, or the corresponding entity from persistent storage will be used.
testSuiteId - id of the TestSuite to executename - name to assign to the new TestExecutiontags - comma/space separated list of tags to assign to the new TestExecution
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException
void runTestSuiteAgainstNewDarkstar(Long testSuiteId,
String name,
String tags,
PkgLibraryDTO darkstarPkg)
throws DTCServiceException
Schedule execution of the TestSuite with the given id to be run against the given darkstar package. This method will create a TestExecution object derived from the TestSuite object with the given id. However, the PkgLibrary required for darkstar with the given TestSuite will be replaced with the darkstarPkg. A TestQueue will then be created to schedule this suite for execution.
The newly created TestExecution will be assigned the given name as its name attribute. It will also be associated with a set of tags represented by the comma/space separated list of given tags. For each tag in the list, either a new TestExecutionTag entity will be created, or the corresponding entity from persistent storage will be used.
testSuiteId - id of the TestSuite to executename - name to assign to the new TestExecutiontags - comma/space separated list of tags to assign to the new TestExecutiondarkstarPkg - package library of the darkstar package to test
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException
void runTestSuiteAgainstNewServerApp(Long testSuiteId,
String name,
String tags,
PkgLibraryDTO serverPkg)
throws DTCServiceException
Schedule execution of the TestSuite with the given id to be run against the given server application package. This method will create a TestExecution object derived from the TestSuite object with the given id. However, the PkgLibrary required for the serverApp in each of the TestSuite's TestSpec will be replaced by the serverPkg. A TestQueue will then be created to schedule this suite for execution.
The newly created TestExecution will be assigned the given name as its name attribute. It will also be associated with a set of tags represented by the comma/space separated list of given tags. For each tag in the list, either a new TestExecutionTag entity will be created, or the corresponding entity from persistent storage will be used.
Note that the assumption made with this method is that the TestSpec objects of the given TestSuite are all associated with the same server application. If they are not, the results may be unexpected.
testSuiteId - id of the TestSuite to executename - name to assign to the new TestExecutiontags - comma/space separated list of tags to assign to the new TestExecutionserverPkg - package library of the server application to test
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException
void rerunTestExecution(Long testExecutionId,
String name,
String tags)
throws DTCServiceException
Schedule execution of a new TestExecution based on the TestExecution with the given id. This method will create a new TestExecution which is identical to the TestExecution with the given id and schedule it to be run by creating a TestQueue object.
The newly created TestExecution will be assigned the given name as its name attribute. It will also be associated with a set of tags represented by the comma/space separated list of given tags. For each tag in the list, either a new TestExecutionTag entity will be created, or the corresponding entity from persistent storage will be used.
Note that there is a distinction between using this method and
simply using the runTestSuite(java.lang.Long, java.lang.String, java.lang.String) method against
the TestSuite id from the given TestExecution. The difference is that
this method guarantees that the execution configuration will be
completely duplicated. This is not the case when running against
a TestSuite because the TestSuite may have changed.
testExecutionId - id of the TestExecution to rerunname - name to assign to the new TestExecutiontags - comma/space separated list of tags to assign to the new TestExecution
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException
void rerunTestExecutionAgainstNewDarkstar(Long testExecutionId,
String name,
String tags,
PkgLibraryDTO darkstarPkg)
throws DTCServiceException
Schedule execution of a new TestExecution based on the TestExecution with the given id to be run against the given darkstar application. This method will create a new TestExecution which is identical to the TestExecution with the given id. It will then modify the darkstar package of the new TestExecution to use the new darkstar package and schedule the test to be run by creating a TestQueue object.
The newly created TestExecution will be assigned the given name as its name attribute. It will also be associated with a set of tags represented by the comma/space separated list of given tags. For each tag in the list, either a new TestExecutionTag entity will be created, or the corresponding entity from persistent storage will be used.
testExecutionId - id of the TestExecution to rerunname - name to assign to the new TestExecutiontags - comma/space separated list of tags to assign to the new TestExecutiondarkstarPkg - package library of the darkstar package to test
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException
void rerunTestExecutionAgainstNewServerApp(Long testExecutionId,
String name,
String tags,
PkgLibraryDTO darkstarPkg)
throws DTCServiceException
Schedule execution of a new TestExecution based on the TestExecution with the given id to be run against the given server application. This method will create a new TestExecution which is identical to the TestExecution with the given id. It will then modify the server application package specified for each of the tests to use to the given server package library and schedule the tests to be run by creating a TestQueue object.
The newly created TestExecution will be assigned the given name as its name attribute. It will also be associated with a set of tags represented by the comma/space separated list of given tags. For each tag in the list, either a new TestExecutionTag entity will be created, or the corresponding entity from persistent storage will be used.
testExecutionId - id of the TestExecution to rerunname - name to assign to the new TestExecutiontags - comma/space separated list of tags to assign to the new TestExecutiondarkstarPkg - library of the server application package to test
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||