com.ibm.team.fvt.tests.scenario
Class ScenarioStep

java.lang.Object
  extended by com.ibm.team.fvt.tests.scenario.ScenarioStep

public class ScenarioStep
extends java.lang.Object

Manage a list of tests to execute in a scenario step.

Scenario may have several steps which are defined using a specific ScenarioRunner and a list of classes as argument of Suite.SuiteClasses annotation.

The step provides easy access to scenario configuration and data through its ScenarioExecution stored instance.

This step is connected to a web page. The page might be stored by the step when loaded. If so, it's automatically stored to the ScenarioExecution at the end of the test execution to allow next test or step to have the last page used by previous step in hand when starting.

The step also stores all workaround used during the tests and can provide information about them.

Design: To be finalized


Field Summary
 com.ibm.team.fvt.tests.scenario.ScenarioStep.ScenarioStepRule stepRule
           
 
Constructor Summary
ScenarioStep()
           
 
Method Summary
 ScenarioExecution getScenarioExecution()
          Return the scenario execution.
static void setUpStep()
           
 void setUpTest()
          Setup executed at the beginning of each test step.
 void tearDownTest()
          Tear down executed at the end of each test step.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stepRule

public com.ibm.team.fvt.tests.scenario.ScenarioStep.ScenarioStepRule stepRule
Constructor Detail

ScenarioStep

public ScenarioStep()
Method Detail

setUpStep

public static void setUpStep()

getScenarioExecution

public ScenarioExecution getScenarioExecution()
Return the scenario execution.

Returns:
The scenario execution as a ScenarioExecution.

setUpTest

public void setUpTest()
Setup executed at the beginning of each test step.

So far, it only displays the step title when it's the first test and the test title in the console.


tearDownTest

public void tearDownTest()
                  throws java.lang.Exception
Tear down executed at the end of each test step.

So far, it turn off the first step flag and stores the current page to the scenario execution to pass it to next test.

Throws:
java.lang.Exception