org.squashtest.csp.tm.service
Interface ExecutionProcessingService

All Known Implementing Classes:
ExecutionProcessingServiceImpl

@Transactional
public interface ExecutionProcessingService


Method Summary
 Execution findExecution(Long executionId)
           
 ExecutionStep findExecutionStep(Long executionStepId)
           
 int findExecutionStepRank(Long executionStepId)
           
 ExecutionStep findRunnableExecutionStep(long executionId)
           
 ExecutionStep findStepAt(long executionId, int executionStepIndex)
          Returns, for a given execution and for a given step index, the corresponding ExecutionStep Will create the next step if the index corresponds to the one immediately following the last step, similarly to "nextExecutionStep"
 int findTotalNumberSteps(Long executionId)
           
 ExecutionStatusReport getExecutionStatusReport(Long executionId)
           
 List<ExecutionStep> getExecutionSteps(Long executionId)
           
 void setExecutionStatus(Long executionId, ExecutionStatus status)
           
 void setExecutionStatus(Long executionId, ExecutionStatusReport report)
           
 void setExecutionStepComment(Long executionStepId, String comment)
           
 void setExecutionStepStatus(Long executionStepId, ExecutionStatus status)
          Method which modify the execution step status
It implies :
* execution status update
* item test plan status update
* last execution date and user update for step, execution and item test plan
 boolean wasNeverRun(Long executionId)
          Tells whether the execution is fresh new or not.
 

Method Detail

findExecution

Execution findExecution(Long executionId)

findExecutionStep

ExecutionStep findExecutionStep(Long executionStepId)

wasNeverRun

boolean wasNeverRun(Long executionId)
Tells whether the execution is fresh new or not. Namely, that all its steps have a status READY.

Parameters:
executionId -
Returns:

findRunnableExecutionStep

@Transactional(readOnly=true)
ExecutionStep findRunnableExecutionStep(long executionId)
                                        throws ExecutionHasNoStepsException
Parameters:
executionId -
Returns:
the first occurence of a running or ready ExecutionStep
Throws:
ExecutionHasNoStepsException

getExecutionSteps

List<ExecutionStep> getExecutionSteps(Long executionId)

findStepAt

@Transactional(readOnly=true)
ExecutionStep findStepAt(long executionId,
                                       int executionStepIndex)
Returns, for a given execution and for a given step index, the corresponding ExecutionStep Will create the next step if the index corresponds to the one immediately following the last step, similarly to "nextExecutionStep"

Parameters:
executionId -
executionStepRank -
Returns:

setExecutionStepStatus

void setExecutionStepStatus(Long executionStepId,
                            ExecutionStatus status)
Method which modify the execution step status
It implies :
* execution status update
* item test plan status update
* last execution date and user update for step, execution and item test plan

Parameters:
executionStepId - the step id
status - the new status

setExecutionStatus

void setExecutionStatus(Long executionId,
                        ExecutionStatus status)

setExecutionStatus

void setExecutionStatus(Long executionId,
                        ExecutionStatusReport report)

getExecutionStatusReport

ExecutionStatusReport getExecutionStatusReport(Long executionId)

setExecutionStepComment

void setExecutionStepComment(Long executionStepId,
                             String comment)

findExecutionStepRank

int findExecutionStepRank(Long executionStepId)

findTotalNumberSteps

int findTotalNumberSteps(Long executionId)


Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.