org.squashtest.tm.service.execution
Interface ExecutionProcessingService

All Known Implementing Classes:
ExecutionProcessingServiceImpl

public interface ExecutionProcessingService


Method Summary
 void changeExecutionStepStatus(Long executionStepId, org.squashtest.tm.domain.execution.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
 org.squashtest.tm.domain.execution.Execution findExecution(Long executionId)
           
 org.squashtest.tm.domain.execution.ExecutionStep findExecutionStep(Long executionStepId)
           
 int findExecutionStepRank(Long executionStepId)
           
 org.squashtest.tm.domain.execution.ExecutionStep findRunnableExecutionStep(long executionId)
           
 org.squashtest.tm.domain.execution.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)
           
 org.squashtest.tm.domain.execution.ExecutionStatusReport getExecutionStatusReport(Long executionId)
           
 List<org.squashtest.tm.domain.execution.ExecutionStep> getExecutionSteps(Long executionId)
           
 void setExecutionStatus(Long executionId, org.squashtest.tm.domain.execution.ExecutionStatus status)
           
 void setExecutionStatus(Long executionId, org.squashtest.tm.domain.execution.ExecutionStatusReport report)
           
 void setExecutionStepComment(Long executionStepId, String comment)
           
 void updateExecutionMetadata(org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender extender)
          Asks an execution to update it's metadata (lastExecutionOn, lastExecutedBy) according to automated execution business rules.
 void updateExecutionMetadata(org.squashtest.tm.domain.execution.Execution execution)
          Asks an execution to update it's metadata (lastExecutionOn, lastExecutedBy) according to regular execution business rules.
 boolean wasNeverRun(Long executionId)
          Tells whether the execution is fresh new or not.
 

Method Detail

findExecution

org.squashtest.tm.domain.execution.Execution findExecution(Long executionId)

findExecutionStep

org.squashtest.tm.domain.execution.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)
org.squashtest.tm.domain.execution.ExecutionStep findRunnableExecutionStep(long executionId)
                                                                           throws org.squashtest.tm.exception.execution.ExecutionHasNoStepsException
Parameters:
executionId -
Returns:
the first occurence of a running or ready ExecutionStep
Throws:
org.squashtest.tm.exception.execution.ExecutionHasNoStepsException

getExecutionSteps

List<org.squashtest.tm.domain.execution.ExecutionStep> getExecutionSteps(Long executionId)

findStepAt

@Transactional(readOnly=true)
org.squashtest.tm.domain.execution.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:

changeExecutionStepStatus

void changeExecutionStepStatus(Long executionStepId,
                               org.squashtest.tm.domain.execution.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,
                        org.squashtest.tm.domain.execution.ExecutionStatus status)

setExecutionStatus

void setExecutionStatus(Long executionId,
                        org.squashtest.tm.domain.execution.ExecutionStatusReport report)

getExecutionStatusReport

org.squashtest.tm.domain.execution.ExecutionStatusReport getExecutionStatusReport(Long executionId)

setExecutionStepComment

void setExecutionStepComment(Long executionStepId,
                             String comment)

findExecutionStepRank

int findExecutionStepRank(Long executionStepId)

findTotalNumberSteps

int findTotalNumberSteps(Long executionId)

updateExecutionMetadata

void updateExecutionMetadata(org.squashtest.tm.domain.execution.Execution execution)
Asks an execution to update it's metadata (lastExecutionOn, lastExecutedBy) according to regular execution business rules.

Parameters:
execution - the execution to update

updateExecutionMetadata

void updateExecutionMetadata(org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender extender)
Asks an execution to update it's metadata (lastExecutionOn, lastExecutedBy) according to automated execution business rules. The said execution is the one referenced by the given extender.

Parameters:
execution - the execution to update


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