|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.thoughtworks.selenium.SeleneseTestCase
org.exoplatform.portal.test.selenium.tools.AbstractPortalTestCase
public class AbstractPortalTestCase
add some tools for helping creating selenium test case.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULTPASSWORD
the default timeout password in eXo. |
static java.lang.String |
DEFAULTTIMEOUT
the default timeout. |
static int |
DEFAULTTIMEOUTSEC
the default timeout in sec. |
| Fields inherited from class com.thoughtworks.selenium.SeleneseTestCase |
|---|
selenium |
| Constructor Summary | |
|---|---|
AbstractPortalTestCase()
|
|
| Method Summary | |
|---|---|
protected int |
getLastIndex(java.lang.String locator)
return the number of element in a collection. |
void |
login(java.lang.String login,
java.lang.String password)
login to the portal using the given credentials. |
void |
loginAsJohn()
login to the portal with the john account. |
void |
loginAsMarry()
login to the portal with the marry account. |
void |
loginAsRoot()
login to the portal with the root account. |
void |
logout()
logout of the portal. |
void |
setUp()
add the capture of screenshot in case of error. |
| Methods inherited from class com.thoughtworks.selenium.SeleneseTestCase |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertNotEquals, assertNotEquals, checkForVerificationErrors, clearVerificationErrors, getText, isCaptureScreetShotOnFailure, pause, runBare, seleniumEquals, seleniumEquals, setCaptureScreetShotOnFailure, setUp, setUp, tearDown, verifyEquals, verifyEquals, verifyEquals, verifyFalse, verifyNotEquals, verifyNotEquals, verifyTrue |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULTTIMEOUT
public static final int DEFAULTTIMEOUTSEC
public static final java.lang.String DEFAULTPASSWORD
| Constructor Detail |
|---|
public AbstractPortalTestCase()
| Method Detail |
|---|
public final void login(java.lang.String login,
java.lang.String password)
login - the username to login in the portalpassword - the password of the user
public void setUp()
throws java.lang.Exception
setUp in class com.thoughtworks.selenium.SeleneseTestCasejava.lang.Exception - on an initialization errorpublic final void loginAsRoot()
public final void loginAsJohn()
public final void loginAsMarry()
public final void logout()
protected final int getLastIndex(java.lang.String locator)
locator - xpath expression to locate the element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||