com.day.qa.test.selenium.crx
Class CRXBaseTestCase

java.lang.Object
  extended by com.day.qa.test.selenium.testrunner.BaseTestCase
      extended by com.day.qa.test.selenium.crx.CRXBaseTestCase
Direct Known Subclasses:
CreateManyLDAPUsers

public class CRXBaseTestCase
extends com.day.qa.test.selenium.testrunner.BaseTestCase

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.

Author:
mirko, tstiftne, lbalazs

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

startURL

public static final String startURL
The user for restricted access. Gets set by TestRunner tool. Default is admin.

See Also:
Constant Field Values

loginURL

public static final String loginURL
See Also:
Constant Field Values

DEFAULT_WORKSPACE

public static final String DEFAULT_WORKSPACE
See Also:
Constant Field Values
Constructor Detail

CRXBaseTestCase

public CRXBaseTestCase()
Method Detail

setUp

public void setUp()
The set setup method for all CRX test cases.


tearDown

public void tearDown()
The set setup method for all CRX test cases.


addUserToCrx

public static void addUserToCrx(String userName)
                         throws Exception
Add a user to CRX Method assumes that we're already logged in to crx.system workspace

Parameters:
userName - the username of the user to add
Throws:
Exception

removeUserFromCrx

public static void removeUserFromCrx(String userName)
                              throws Exception
Throws:
Exception

addGroupToCrx

public static void addGroupToCrx(String groupName)
                          throws Exception
Throws:
Exception

removeGroupFromCrx

public static void removeGroupFromCrx(String groupName)
                               throws Exception
Throws:
Exception

addUserToGroup

public static void addUserToGroup(String userName,
                                  String groupName)
                           throws Exception
Throws:
Exception

removeUserFromGroup

public static void removeUserFromGroup(String userName,
                                       String groupName)
                                throws Exception
Throws:
Exception

setRootNode

public void setRootNode(String rn)
Creates a root Node for testing

Parameters:
rn - - Name of the root node

loginToWorkspace

public void loginToWorkspace(String workspace,
                             String username,
                             String password)
Login to the specified Workspace as admin

Parameters:
workspace - - Name of the Workspace to login

logOut

public void logOut()
Logout


uploadCRXPackage

public void uploadCRXPackage(String workspace,
                             String pathToCRXPackage)
Upload CRXPackage

Parameters:
workspace - - Name of the workspace to upload package
pathToCRXPackage - - Path to CRXPackage
Throws:
Exception

removeNode

public void removeNode(String workspace,
                       String pathToRemove)


Copyright © 2008 Day Management AG. All Rights Reserved.