|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.scenario.ScenarioRun
public abstract class ScenarioRun
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:
RUN_START_ID
: step from which the scenario has to start instead
of default one.RUN_END_ID
: step at which the scenario has to end instead
of default one.RUN_TEST_ID
: test of the starting step from which the scenario
has to start instead of default one.RUN_STEP_ID
: the single step the scenario has to runSTOP_ON_FAILURE_ID
: stop the scenario execution as soon as
a test failure occurs (true
by default).
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 |
---|
public ScenarioRun()
Method Detail |
---|
public WebBrowser getBrowser()
WebBrowser
.public Config getConfig()
Config
.public int getEnd()
To specify it, then use the following parameter:
runEnd
0
and getLastRunStep()
,
any other value will be ignored.runEnd=8
in the properties file-DrunEnd=8
in the VM Arguments field of the launch
configuration.
This parameter is ignored if RUN_STEP_ID
parameter is also specified.
public WebPage getPage()
WebPage
.public int getStart()
To specify it, then use the following parameter:
runStart
0
and getLastRunStep()
,
any other value will be ignored.runStart=2
in the properties file-DrunStart=2
in the VM Arguments field of the launch
configuration.
This parameter is ignored if RUN_STEP_ID
parameter is also specified.
public int getStep()
To specify it, then use the following parameter:
runStep
0
and getLastRunStep()
,
any other value will be ignored.runStep=2
in the properties file-DrunStep=2
in the VM Arguments field of the launch
configuration.
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.
public int getTest()
To specify it, then use the following parameter:
runTest
0
and and the first step last test
index. Note that there's no verification about this last test index, if it's over,
then no test will be run in the first step.runStart=2
in the properties file-DrunStart=2
in the VM Arguments field of the launch
configuration.
This parameter is ignored if RUN_STEP_ID
parameter is also specified.
public void setPage(WebPage page)
public boolean stopOnFailure()
To specify it, then use the following parameter:
stopOnFailure
true
or false
, any other
value will be ignored.stopOnFailure=true
in the properties file-DstopOnFailure=true
in the VM Arguments field of the launch
configuration.
public void tearDown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |