Package jp.vmi.selenium.selenese
Class ErrorSource
- java.lang.Object
-
- jp.vmi.selenium.selenese.ErrorSource
-
- All Implemented Interfaces:
ITestTarget,Selenese
- Direct Known Subclasses:
ErrorTestCase,ErrorTestSuite
public abstract class ErrorSource extends Object implements Selenese
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jp.vmi.selenium.selenese.Selenese
Selenese.Type
-
-
Constructor Summary
Constructors Constructor Description ErrorSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resultexecute(Selenese parent, Context context)Execute script.StringgetBaseName()Get test-target file base name.StringgetFilename()Get filename.StringgetId()Get id.StringgetName()Get test-target name.ResultgetResult()Get result.StopWatchgetStopWatch()Get stop watch.ErrorSourceinitialize(String filename, InvalidSeleneseException e)Initialize.booleanisError()Is error object?StringtoString()
-
-
-
Method Detail
-
initialize
public ErrorSource initialize(String filename, InvalidSeleneseException e)
Initialize.- Parameters:
filename- Selenese script file.e- InvalidSeleneseException or null.- Returns:
- this.
-
isError
public boolean isError()
Is error object?- Specified by:
isErrorin interfaceITestTarget- Returns:
- true.
-
getName
public String getName()
Description copied from interface:ITestTargetGet test-target name.- Specified by:
getNamein interfaceITestTarget- Returns:
- test-target name.
-
getFilename
public String getFilename()
Get filename.- Returns:
- filename.
-
getBaseName
public String getBaseName()
Description copied from interface:ITestTargetGet test-target file base name. For example, return "def" when file name is "/abc/def.html".- Specified by:
getBaseNamein interfaceITestTarget- Returns:
- test-target file base name.
-
getStopWatch
public StopWatch getStopWatch()
Description copied from interface:ITestTargetGet stop watch.- Specified by:
getStopWatchin interfaceITestTarget- Returns:
- stop watch.
-
execute
public Result execute(Selenese parent, Context context) throws InvalidSeleneseException
Description copied from interface:SeleneseExecute script.- Specified by:
executein interfaceSelenese- Parameters:
parent- parent selenese instance or null.context- Selenese Runner context.- Returns:
- result.
- Throws:
InvalidSeleneseException- failed in parsing or executing selenese.
-
getResult
public Result getResult()
Get result.
-
-