com.projectdarkstar.tools.dtc.service
Interface ConfigExecutionsService


public interface ConfigExecutionsService

This interface exposes operations that allow creating and configuring TestExecutions before executing them. It is intended to be a remote interface exposing a stateless session EJB3.0 bean.


Method Summary
 Long cloneTestExecution(Long testExecutionId, String name, String tags)
          Creates a new TestExecution which is an exact replica of the TestExecution with the given id.
 Long generateTestExecution(Long testSuiteId, String name, String tags)
          Generates a new TestExecution based on the TestSuite with the given id.
 void updateTestExecution(Long testExecutionId, Map<String,Object> updates)
           Update the TestExecution in storage with the given id.
 

Method Detail

generateTestExecution

Long generateTestExecution(Long testSuiteId,
                           String name,
                           String tags)
                           throws DTCServiceException
Generates a new TestExecution based on the TestSuite with the given id.

Parameters:
testSuiteId - id of the TestSuite to use to generate the TestExecution
name - name to assign to the generated TestExecution
tags - comma/space separated list of tags to assign to the TestExecution
Returns:
id of the newly created TestExecution
Throws:
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException

cloneTestExecution

Long cloneTestExecution(Long testExecutionId,
                        String name,
                        String tags)
                        throws DTCServiceException
Creates a new TestExecution which is an exact replica of the TestExecution with the given id.

Parameters:
testExecutionId -
name - name to assign to the generated TestExecution
tags - comma/space separated list of tags to assign to the TestExecution
Returns:
id of the newly created TestExecution
Throws:
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException

updateTestExecution

void updateTestExecution(Long testExecutionId,
                         Map<String,Object> updates)
                         throws DTCServiceException

Update the TestExecution in storage with the given id. The given Map of updates maps bean attribute names to values that are to be used for the updates.

Note that the only valid attributes that can be updated using this method are:

Attempts to update other attributes will throw an exception.

Parameters:
testExecutionId - id of the TestExecution to update
updates - map of updates to use to update the TestExecution
Throws:
DTCServiceException


Copyright © 2013. All Rights Reserved.