Package jp.vmi.selenium.selenese
Class ErrorTestSuite
- java.lang.Object
-
- jp.vmi.selenium.selenese.ErrorSource
-
- jp.vmi.selenium.selenese.ErrorTestSuite
-
- All Implemented Interfaces:
IHtmlResultTestSuite,IHtmlResultTestTarget,ITestSuite,ITestTarget,ITreedFileGenerator,Selenese
- Direct Known Subclasses:
ErrorTestProject
public class ErrorTestSuite extends ErrorSource implements ITreedFileGenerator, ITestSuite, IHtmlResultTestSuite
Test-suite with errors.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jp.vmi.selenium.selenese.Selenese
Selenese.Type
-
-
Constructor Summary
Constructors Constructor Description ErrorTestSuite()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resultexecute(Selenese parent, Context context)Execute script.intgetIndex()Get index of this object in the parent object.ITreedFileGeneratorgetParent()Get parent object.Selenese.TypegetType()Get selenese type.ErrorTestSuiteinitialize(String filename, InvalidSeleneseException e)Initialize.voidsetIndex(int index)Set index of this object in the parent object.voidsetParent(ITreedFileGenerator parent)Set parent object.-
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.IHtmlResultTestTarget
getName, getResult
-
Methods inherited from interface jp.vmi.junit.result.ITestTarget
getBaseName, getName, getStopWatch, isError
-
Methods inherited from interface jp.vmi.selenium.selenese.ITreedFileGenerator
getBaseName, getFileBaseName, getFileBaseName, getIndexes, getName
-
-
-
-
Method Detail
-
initialize
public ErrorTestSuite 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.
-
getParent
public ITreedFileGenerator getParent()
Description copied from interface:ITreedFileGeneratorGet parent object.- Specified by:
getParentin interfaceITreedFileGenerator- Returns:
- parent object.
-
setParent
public void setParent(ITreedFileGenerator parent)
Description copied from interface:ITreedFileGeneratorSet parent object.- Specified by:
setParentin interfaceITreedFileGenerator- Parameters:
parent- parent object.
-
getIndex
public int getIndex()
Description copied from interface:ITreedFileGeneratorGet index of this object in the parent object.- Specified by:
getIndexin interfaceITreedFileGenerator- Returns:
- index.
-
setIndex
public void setIndex(int index)
Description copied from interface:ITreedFileGeneratorSet index of this object in the parent object.- Specified by:
setIndexin interfaceITreedFileGenerator- Parameters:
index- index.
-
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.
-
-