com.atlassian.crowd.selenium.utils
Class CrowdSeleniumTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.selenium.SeleniumTest
              extended by com.atlassian.crowd.selenium.utils.CrowdSeleniumTestCase
All Implemented Interfaces:
com.atlassian.performance.junit.PerformanceTest, junit.framework.Test
Direct Known Subclasses:
CreateConnectorTest, CreateDelegateTest, GroupGroupPickerAddTest, GroupGroupPickerRemoveTest, GroupUserPickerAddTest, GroupUserPickerRemoveTest, PreventAdminGroupUserPickerRemoveTest, PreventAdminUserGroupPickerRemoveTest, UserGroupPickerAddTest, UserGroupPickerRemoveTest

public class CrowdSeleniumTestCase
extends com.atlassian.selenium.SeleniumTest


Field Summary
protected static String ADMIN_EMAIL
           
protected static String ADMIN_FULL_NAME
           
protected static String ADMIN_GROUP
           
protected static String ADMIN_PW
           
protected static String ADMIN_USER
           
protected static String END_OF_WARNING_MESSAGE
           
protected  org.slf4j.Logger logger
           
 
Fields inherited from class com.atlassian.selenium.SeleniumTest
assertThat, client, config, recorder
 
Constructor Summary
CrowdSeleniumTestCase()
           
 
Method Summary
 void _loginAdminUser()
           
 void _loginAsUser(String username, String password)
           
 void _logout()
           
protected  void _waitForPicker()
           
 com.atlassian.selenium.SeleniumConfiguration getSeleniumConfiguration()
           
protected  String getText(String key)
           
protected  void gotoDirectories()
           
protected  void gotoHome()
           
protected  void goToImportUsersCSV()
           
protected  void gotoRestore()
           
protected  void gotoViewGroup(String groupName, String directoryName)
           
protected  void gotoViewRole(String roleName, String directoryName)
           
protected  void gotoViewUser(String userName, String directoryID)
           
protected  String htmlButton(String i8lnKey)
           
protected  void log(String message)
           
protected  void onSetUp()
           
 void restoreCrowdFromXML(String xmlfilename)
           
protected  String seleniumJsElementNotPresent(String elementId)
           
protected  String seleniumJsElementPresent(String elementId)
           
protected  String seleniumJsTextNotPresent(String text)
           
protected  String seleniumJsTextPresent(String text)
           
 
Methods inherited from class com.atlassian.selenium.SeleniumTest
getRecorder, getSeleniumClient, onTearDown, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Field Detail

ADMIN_GROUP

protected static final String ADMIN_GROUP
See Also:
Constant Field Values

ADMIN_USER

protected static final String ADMIN_USER
See Also:
Constant Field Values

ADMIN_PW

protected static final String ADMIN_PW
See Also:
Constant Field Values

ADMIN_FULL_NAME

protected static final String ADMIN_FULL_NAME
See Also:
Constant Field Values

ADMIN_EMAIL

protected static final String ADMIN_EMAIL
See Also:
Constant Field Values

logger

protected final org.slf4j.Logger logger

END_OF_WARNING_MESSAGE

protected static final String END_OF_WARNING_MESSAGE
See Also:
Constant Field Values
Constructor Detail

CrowdSeleniumTestCase

public CrowdSeleniumTestCase()
Method Detail

getSeleniumConfiguration

public com.atlassian.selenium.SeleniumConfiguration getSeleniumConfiguration()
Specified by:
getSeleniumConfiguration in class com.atlassian.selenium.SeleniumTest

onSetUp

protected void onSetUp()
Overrides:
onSetUp in class com.atlassian.selenium.SeleniumTest

getText

protected String getText(String key)

restoreCrowdFromXML

public void restoreCrowdFromXML(String xmlfilename)

_loginAdminUser

public void _loginAdminUser()

_loginAsUser

public void _loginAsUser(String username,
                         String password)

_logout

public void _logout()

log

protected void log(String message)

htmlButton

protected String htmlButton(String i8lnKey)

seleniumJsTextPresent

protected String seleniumJsTextPresent(String text)

seleniumJsTextNotPresent

protected String seleniumJsTextNotPresent(String text)

seleniumJsElementPresent

protected String seleniumJsElementPresent(String elementId)

seleniumJsElementNotPresent

protected String seleniumJsElementNotPresent(String elementId)

gotoHome

protected void gotoHome()

gotoRestore

protected void gotoRestore()

gotoViewGroup

protected void gotoViewGroup(String groupName,
                             String directoryName)

gotoViewRole

protected void gotoViewRole(String roleName,
                            String directoryName)

gotoViewUser

protected void gotoViewUser(String userName,
                            String directoryID)

goToImportUsersCSV

protected void goToImportUsersCSV()

gotoDirectories

protected void gotoDirectories()

_waitForPicker

protected void _waitForPicker()


Copyright © 2013 Atlassian. All Rights Reserved.