|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.simplium.SimpliumWebTest
public abstract class SimpliumWebTest
The base class that all Simplium test cases must extend. This base class contains funtionality to retrieve a pre initated Selenium instance.
With the methods isDevelopment, isTest, isProduction can
be used to determine if the test case is run in respective enviroment.
| Field Summary | |
|---|---|
protected SimpliumDefaultSelenium |
selenium
Protected instance of selenium that can be used directly in the test cases without the need for any getters. |
| Constructor Summary | |
|---|---|
SimpliumWebTest()
|
|
| Method Summary | |
|---|---|
SimpliumDefaultSelenium |
getSelenium()
Returns the selenium instance. |
boolean |
isDevelopment()
Returns if the test case is executed in development enviroment. |
boolean |
isProduction()
Returns if the test case is executed in production enviroment. |
boolean |
isTest()
Returns if the test case is executed in test enviroment. |
void |
onOpen()
Override this method to perform actions that is executed after the open command on selenium is run. |
void |
onStart()
Override this method to perform actions that is executed before the test case is run. |
void |
setSelenium(SimpliumDefaultSelenium aSelenium)
Method used by the Simplium framework to populate the base class with a pre initiated instance of Selenium. |
void |
setUpServer(int aPort)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SimpliumDefaultSelenium selenium
| Constructor Detail |
|---|
public SimpliumWebTest()
| Method Detail |
|---|
public void setUpServer(int aPort)
throws java.lang.Exception
java.lang.Exceptionpublic void setSelenium(SimpliumDefaultSelenium aSelenium)
aSelenium - a pre initiated instance of Selenium.public SimpliumDefaultSelenium getSelenium()
public void onStart()
public void onOpen()
public boolean isTest()
public boolean isDevelopment()
public boolean isProduction()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||