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
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.List<TestCase>getTestCaseList()Get Testcases included in TestSuite.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.voidsetResult(Result result)Set selenese result.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, waitMethods inherited from interface jp.vmi.selenium.selenese.ITreedFileGenerator
getFileBaseName, getFileBaseName, getIndexes
-
Constructor Details
-
TestSuite
public TestSuite()
-
-
Method Details
-
initialize
Initialize after constructed.- Parameters:
filename- Selenese script file.name- test-case name.- Returns:
- this.
-
getParent
Description copied from interface:ITreedFileGeneratorGet parent object.- Specified by:
getParentin interfaceITreedFileGenerator- Returns:
- parent object.
-
setParent
Description copied from interface:ITreedFileGeneratorSet parent object.- Specified by:
setParentin interfaceITreedFileGenerator- Parameters:
parent- parent object.
-
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
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
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.
-
getId
Description copied from interface:SeleneseGet id. -
setId
Set test-suite id.- Parameters:
id- test-suite id.
-
getWebDriverName
Get WebDriver name.- Returns:
- WebDriver name.
-
setWebDriverName
Set WebDriver name.- Parameters:
webDriverName- WebDriver name.
-
addSelenese
Add Selenese (test-suite/test-case) instance.- Parameters:
selenese- Selenese instance.
-
addSeleneseFile
Add Selenese file. (test-suite or test-case)- Parameters:
filename- Selenese file name.commandFactory- command factory.
-
getSeleneseList
Get Selenese list.- Returns:
- Selenese list.
-
getTestCaseList
Get Testcases included in TestSuite.- Returns:
- Testcases list.
-
getStopWatch
Get stop watch.- Specified by:
getStopWatchin interfaceITestTarget- Returns:
- stop watch.
-
getResult
Description copied from interface:SeleneseGet selenese result.- Specified by:
getResultin interfaceIHtmlResultTestTarget- Specified by:
getResultin interfaceSelenese- Returns:
- selenese result.
-
setResult
Set selenese result.- Parameters:
result- result of test suite.
-
execute
Description copied from interface:SeleneseExecute script. -
toStringImpl
-
toString
-