|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.qa.test.selenium.testrunner.BaseTestCase
com.day.qa.test.selenium.crx.CRXBaseTestCase
public class CRXBaseTestCase
This is the base test case for all tests in the CRX package. It defines the setup and tear down methods executed before and after each test.
| Field Summary | |
|---|---|
static String |
DEFAULT_WORKSPACE
|
static String |
loginURL
|
static String |
startURL
The user for restricted access. |
| Fields inherited from class com.day.qa.test.selenium.testrunner.BaseTestCase |
|---|
baseURL, browser, password, selenium, selServerHost, selServerPort, speed, username |
| Constructor Summary | |
|---|---|
CRXBaseTestCase()
|
|
| Method Summary | |
|---|---|
static void |
addGroupToCrx(String groupName)
|
static void |
addUserToCrx(String userName)
Add a user to CRX Method assumes that we're already logged in to crx.system workspace |
static void |
addUserToGroup(String userName,
String groupName)
|
void |
loginToWorkspace(String workspace,
String username,
String password)
Login to the specified Workspace as admin |
void |
logOut()
Logout |
static void |
removeGroupFromCrx(String groupName)
|
void |
removeNode(String workspace,
String pathToRemove)
|
static void |
removeUserFromCrx(String userName)
|
static void |
removeUserFromGroup(String userName,
String groupName)
|
void |
setRootNode(String rn)
Creates a root Node for testing |
void |
setUp()
The set setup method for all CRX test cases. |
void |
tearDown()
The set setup method for all CRX test cases. |
void |
uploadCRXPackage(String workspace,
String pathToCRXPackage)
Upload CRXPackage |
| Methods inherited from class com.day.qa.test.selenium.testrunner.BaseTestCase |
|---|
classSetUp, classTearDown, getBaseURL, getCompleteBaseURL, setBaseURL, setBrowser, setPassword, setSeleniumServerHost, setSeleniumServerPort, setSpeed, setUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String startURL
public static final String loginURL
public static final String DEFAULT_WORKSPACE
| Constructor Detail |
|---|
public CRXBaseTestCase()
| Method Detail |
|---|
public void setUp()
public void tearDown()
public static void addUserToCrx(String userName)
throws Exception
userName - the username of the user to add
Exception
public static void removeUserFromCrx(String userName)
throws Exception
Exception
public static void addGroupToCrx(String groupName)
throws Exception
Exception
public static void removeGroupFromCrx(String groupName)
throws Exception
Exception
public static void addUserToGroup(String userName,
String groupName)
throws Exception
Exception
public static void removeUserFromGroup(String userName,
String groupName)
throws Exception
Exceptionpublic void setRootNode(String rn)
rn - - Name of the root node
public void loginToWorkspace(String workspace,
String username,
String password)
workspace - - Name of the Workspace to loginpublic void logOut()
public void uploadCRXPackage(String workspace,
String pathToCRXPackage)
workspace - - Name of the workspace to upload packagepathToCRXPackage - - Path to CRXPackage
Exception
public void removeNode(String workspace,
String pathToRemove)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||