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

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

public abstract class ScenarioRun
extends java.lang.Object

Manage scenario execution.

A scenario run starts at step 0 (usually an initialization as JTS Setup) and ends at it last step (getLastRunStep()).

This scenario execution can be modified by specifying following parameters:


Constructor Summary
ScenarioRun()
           
 
Method Summary
 WebBrowser getBrowser()
          Return the browser used to run the scenario
 Config getConfig()
          Return the scenario configuration to use during the run.
 int getEnd()
          Returns the step at which to end the scenario run.
 WebPage getPage()
          Return the current page.
 int getStart()
          Returns the step from which to start the scenario run.
 int getStep()
          Returns the single step to run.
 int getTest()
          Returns the first step test from which to start the scenario run.
 void setPage(WebPage page)
          Set the current scenario page.
 boolean stopOnFailure()
          Returns whether the scenario execution will stop as soon as a test failure occurs.
 void tearDown()
          Ends the scenario execution.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScenarioRun

public ScenarioRun()
Method Detail

getBrowser

public WebBrowser getBrowser()
Return the browser used to run the scenario

Returns:
The WebBrowser.

getConfig

public Config getConfig()
Return the scenario configuration to use during the run.

Returns:
The scenario Config.

getEnd

public int getEnd()
Returns the step at which to end the scenario run.

To specify it, then use the following parameter:

This parameter is ignored if RUN_STEP_ID parameter is also specified.


getPage

public WebPage getPage()
Return the current page.

Returns:
The web page as WebPage.

getStart

public int getStart()
Returns the step from which to start the scenario run.

To specify it, then use the following parameter:

This parameter is ignored if RUN_STEP_ID parameter is also specified.


getStep

public int getStep()
Returns the single step to run.

To specify it, then use the following parameter:

This parameter has precedence on start and end ones. Which means that as soon as RUN_STEP_ID parameter is defined, only this step will be run.


getTest

public int getTest()
Returns the first step test from which to start the scenario run.

To specify it, then use the following parameter:

This parameter is ignored if RUN_STEP_ID parameter is also specified.


setPage

public void setPage(WebPage page)
Set the current scenario page.


stopOnFailure

public boolean stopOnFailure()
Returns whether the scenario execution will stop as soon as a test failure occurs.

To specify it, then use the following parameter:


tearDown

public void tearDown()
Ends the scenario execution.