|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.ibm.team.fvt.tests.scenario.ScenarioStep
public class ScenarioStep
Manage a list of tests to execute in a scenario step.
Scenario may have several steps usually defines in a subclass of
Scenario
.
The step provides easy access to configuration information through its
ScenarioRun
stored instance.
This step is connected to a web page. The page might be stored by the step
when loaded. If so, it's given to the ScenarioRun
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
Constructor Summary | |
---|---|
ScenarioStep()
|
Method Summary | |
---|---|
java.lang.String |
getStepName()
Return the step name of the current BVT running test case. |
void |
runTest()
Override JUnit framework execution in order to take a snapshot when a failure occurs during the test run. |
void |
setName(java.lang.String name)
Override to store our own test name. |
void |
setRun(ScenarioRun run)
Store the scenario run. |
void |
setUp()
Override the default set up command. |
void |
setUpSuite()
Common set up for each scenario step. |
void |
takeSnapshotFailure()
Takes a failure snapshot. |
void |
takeSnapshotInfo(java.lang.String title)
Takes a graph snapshot. |
void |
takeSnapshotWarning()
Takes a warning snapshot. |
void |
tearDownSuite()
Common tear down for each scenario step. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, getName, run, run, runBare, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScenarioStep()
Method Detail |
---|
public java.lang.String getStepName()
The step name is the name of the current test suite without the package name.
String
of the current running test.public void runTest() throws java.lang.Throwable
It also display any workaround which has been used in the meanwhile.
Design Needs finalization
runTest
in class junit.framework.TestCase
java.lang.Throwable
public void setName(java.lang.String name)
setName
in class junit.framework.TestCase
name
- The name of the test case.public void setRun(ScenarioRun run)
run
- The scenario run for the current steppublic void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
public void setUpSuite()
The default is to display the step title and the time at which it has been started. Can be overriden if necessary.
ScenarioUtils.printStepStart(ScenarioStep)
public void takeSnapshotFailure()
public void takeSnapshotInfo(java.lang.String title)
title
- The title to display in the console when taking the snapshotpublic void takeSnapshotWarning()
public void tearDownSuite()
The default is to do nothing. Can be overridden if necessary.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |