Package jp.vmi.selenium.selenese
Class ErrorTestCase
- java.lang.Object
-
- jp.vmi.selenium.selenese.ErrorSource
-
- jp.vmi.selenium.selenese.ErrorTestCase
-
- All Implemented Interfaces:
IHtmlResultTestCase,IHtmlResultTestTarget,ITestCase,ITestTarget,Selenese
public class ErrorTestCase extends ErrorSource implements ITestCase, IHtmlResultTestCase
Test-case with errrors.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jp.vmi.selenium.selenese.Selenese
Selenese.Type
-
-
Constructor Summary
Constructors Constructor Description ErrorTestCase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resultexecute(Selenese parent, Context context)Execute script.CommandListgetCommandList()Get command list.LogRecordergetLogRecorder()Get log recorder.CommandResultListgetResultList()Get test-case result list.Selenese.TypegetType()Get selenese type.ErrorTestCaseinitialize(String filename, InvalidSeleneseException e)Initialize.voidsetLogRecorder(LogRecorder logRecorder)Set log recorder.-
Methods inherited from class jp.vmi.selenium.selenese.ErrorSource
getBaseName, getFilename, getId, getName, getResult, getStopWatch, isError, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jp.vmi.html.result.IHtmlResultTestCase
getFilename
-
Methods inherited from interface jp.vmi.html.result.IHtmlResultTestTarget
getName, getResult
-
Methods inherited from interface jp.vmi.junit.result.ITestTarget
getBaseName, getName, getStopWatch, isError
-
-
-
-
Method Detail
-
setLogRecorder
public void setLogRecorder(LogRecorder logRecorder)
Description copied from interface:ITestCaseSet log recorder.- Specified by:
setLogRecorderin interfaceITestCase- Parameters:
logRecorder- log recorder.
-
getLogRecorder
public LogRecorder getLogRecorder()
Description copied from interface:ITestCaseGet log recorder.- Specified by:
getLogRecorderin interfaceITestCase- Returns:
- log recorder.
-
initialize
public ErrorTestCase initialize(String filename, InvalidSeleneseException e)
Description copied from class:ErrorSourceInitialize.- Overrides:
initializein classErrorSource- Parameters:
filename- Selenese script file.e- InvalidSeleneseException or null.- Returns:
- this.
-
getType
public Selenese.Type getType()
Description copied from interface:IHtmlResultTestTargetGet selenese type.- Specified by:
getTypein interfaceIHtmlResultTestTarget- Specified by:
getTypein interfaceSelenese- Returns:
- selenese type.
-
execute
public Result execute(Selenese parent, Context context) throws InvalidSeleneseException
Description copied from interface:SeleneseExecute script.- Specified by:
executein interfaceSelenese- Overrides:
executein classErrorSource- Parameters:
parent- parent selenese instance or null.context- Selenese Runner context.- Returns:
- result.
- Throws:
InvalidSeleneseException- failed in parsing or executing selenese.
-
getCommandList
public CommandList getCommandList()
Get command list.- Specified by:
getCommandListin interfaceIHtmlResultTestCase- Returns:
- command list.
-
getResultList
public CommandResultList getResultList()
Get test-case result list.- Specified by:
getResultListin interfaceIHtmlResultTestCase- Returns:
- test-case result list.
-
-