Package jp.vmi.selenium.selenese
Class TestSuite
- java.lang.Object
-
- jp.vmi.selenium.selenese.TestSuite
-
- All Implemented Interfaces:
IHtmlResultTestSuite,IHtmlResultTestTarget,ITestSuite,ITestTarget,ITreedFileGenerator,Selenese
- Direct Known Subclasses:
TestProject
public class TestSuite extends Object implements Selenese, ITreedFileGenerator, ITestSuite, IHtmlResultTestSuite
test-suite object for execution.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jp.vmi.selenium.selenese.Selenese
Selenese.Type
-
-
Constructor Summary
Constructors Constructor Description TestSuite()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSelenese(Selenese selenese)Add Selenese (test-suite/test-case) instance.voidaddSeleneseFile(String filename, ICommandFactory commandFactory)Add Selenese file.Resultexecute(Selenese parent, Context context)Execute script.StringgetBaseName()Get test-target file base name.StringgetId()Get id.intgetIndex()Get index of this object in the parent object.StringgetName()Get test-target name.ITreedFileGeneratorgetParent()Get parent object.ResultgetResult()Get selenese result.List<Selenese>getSeleneseList()Get Selenese list.StopWatchgetStopWatch()Get stop watch.Selenese.TypegetType()Get script type.StringgetWebDriverName()Get WebDriver name.TestSuiteinitialize(String filename, String name)Initialize after constructed.booleanisError()Is error instance?voidsetId(String id)Set test-suite id.voidsetIndex(int index)Set index of this object in the parent object.voidsetParent(ITreedFileGenerator parent)Set parent object.voidsetWebDriverName(String webDriverName)Set WebDriver name.StringtoString()protected StringtoStringImpl(String className)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jp.vmi.selenium.selenese.ITreedFileGenerator
getFileBaseName, getFileBaseName, getIndexes
-
-
-
-
Method Detail
-
initialize
public TestSuite initialize(String filename, String name)
Initialize after constructed.- Parameters:
filename- Selenese script file.name- test-case name.- Returns:
- this.
-
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.
-
getType
public Selenese.Type getType()
Description copied from interface:SeleneseGet script type.- Specified by:
getTypein interfaceIHtmlResultTestTarget- Specified by:
getTypein interfaceSelenese- Returns:
- script type.
-
isError
public boolean isError()
Description copied from interface:ITestTargetIs error instance?- Specified by:
isErrorin interfaceITestTarget- Returns:
- true if this is error instance.
-
getName
public String getName()
Description copied from interface:ITestTargetGet test-target name.- Specified by:
getNamein interfaceIHtmlResultTestTarget- Specified by:
getNamein interfaceITestTarget- Specified by:
getNamein interfaceITreedFileGenerator- Returns:
- test-target name.
-
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- Specified by:
getBaseNamein interfaceITreedFileGenerator- Returns:
- test-target file base name.
-
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.
-
setId
public void setId(String id)
Set test-suite id.- Parameters:
id- test-suite id.
-
getWebDriverName
public String getWebDriverName()
Get WebDriver name.- Returns:
- WebDriver name.
-
setWebDriverName
public void setWebDriverName(String webDriverName)
Set WebDriver name.- Parameters:
webDriverName- WebDriver name.
-
addSelenese
public void addSelenese(Selenese selenese)
Add Selenese (test-suite/test-case) instance.- Parameters:
selenese- Selenese instance.
-
addSeleneseFile
public void addSeleneseFile(String filename, ICommandFactory commandFactory)
Add Selenese file. (test-suite or test-case)- Parameters:
filename- Selenese file name.commandFactory- command factory.
-
getStopWatch
public StopWatch getStopWatch()
Get stop watch.- Specified by:
getStopWatchin interfaceITestTarget- Returns:
- stop watch.
-
getResult
public Result getResult()
Description copied from interface:SeleneseGet selenese result.- Specified by:
getResultin interfaceIHtmlResultTestTarget- Specified by:
getResultin interfaceSelenese- Returns:
- selenese result.
-
execute
public Result execute(Selenese parent, Context context)
Description copied from interface:SeleneseExecute script.
-
-