Package jp.vmi.selenium.selenese.parser
Class SeleneseCommandIterator
- java.lang.Object
-
- jp.vmi.selenium.selenese.parser.AbstractTestElementIterator<CommandEntry>
-
- jp.vmi.selenium.selenese.parser.SeleneseCommandIterator
-
- All Implemented Interfaces:
Iterable<CommandEntry>,Iterator<CommandEntry>,CommandIterator,TestElementIterator<CommandEntry>
public class SeleneseCommandIterator extends AbstractTestElementIterator<CommandEntry> implements CommandIterator
Iterator and iterable of test case of Selenese format.
-
-
Constructor Summary
Constructors Constructor Description SeleneseCommandIterator(String filename, Document document, String baseURL)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseURL()Get test case base URL.booleanhasNext()CommandEntrynext()-
Methods inherited from class jp.vmi.selenium.selenese.parser.AbstractTestElementIterator
getFilename, getId, getName, setId, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Methods inherited from interface jp.vmi.selenium.selenese.parser.TestElementIterator
getFilename, getId, getName, isDummy, iterator
-
-
-
-
Constructor Detail
-
SeleneseCommandIterator
public SeleneseCommandIterator(String filename, Document document, String baseURL) throws InvalidSeleneseException
Constructor.- Parameters:
filename- selenese script file. (Don't use to open a file. It is used as a label and is used to generate filenames based on it)document- Test case DOM.baseURL- base URL.- Throws:
InvalidSeleneseException- invalid selenese exception.
-
-
Method Detail
-
getBaseURL
public String getBaseURL()
Description copied from interface:CommandIteratorGet test case base URL.- Specified by:
getBaseURLin interfaceCommandIterator- Returns:
- base URL.
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<CommandEntry>
-
next
public CommandEntry next()
- Specified by:
nextin interfaceIterator<CommandEntry>
-
-