com.ibm.team.fvt.tests.scenario
Class ScenarioWorkaround<P extends WebPage>

java.lang.Object
  extended by com.ibm.team.fvt.tests.scenario.ScenarioWorkaround<P>
Direct Known Subclasses:
WebPageWorkaround

public abstract class ScenarioWorkaround<P extends WebPage>
extends java.lang.Object

Manage workaround applied when running a scenario.

Design Need to be finalized Workaround


Constructor Summary
ScenarioWorkaround(P page, java.lang.String msg)
           
ScenarioWorkaround(P page, java.lang.String msg, boolean fail)
           
 
Method Summary
abstract  WebBrowserElement execute()
          Execute an action to workaround the failure.
 java.lang.String getTimestamp()
          Get the workaround timestamp.
 boolean shouldFail()
          Returns whether the current workaround should raise a failure at the end of the test execution.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScenarioWorkaround

public ScenarioWorkaround(P page,
                          java.lang.String msg)

ScenarioWorkaround

public ScenarioWorkaround(P page,
                          java.lang.String msg,
                          boolean fail)
Method Detail

getTimestamp

public java.lang.String getTimestamp()
Get the workaround timestamp.

Returns:
The timestamp as a String with 'YYYYMMDD-HHMMSS' format.

shouldFail

public boolean shouldFail()
Returns whether the current workaround should raise a failure at the end of the test execution.

Returns:
true if the workaround should raise a failure, false otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

execute

public abstract WebBrowserElement execute()
Execute an action to workaround the failure.

Subclass has to specify what to do to workaround the problem.