Class CrowdWebDriverTest
java.lang.Object
com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdWebDriverTest
- Direct Known Subclasses:
AbstractBetterSSOTest
,AddApplicationTest
,AddDirectoryTest
,AddGroupWebdriverTest
,AliasTest
,ApplicationDirectoriesBrowserTest
,ApplicationPluginPermissioningTest
,ApplicationSSOConfigurationTest
,ApplinksTest
,ATSTPluginTest
,AuditLogTest
,AutoGroupAddApplicationTest
,AzureAdGroupFilteringTest
,BackupTest
,BaseCsvImporterTest
,BaseLegacyXmlRestoreTest
,BetterSSOAppTests
,BrowseApplicationsTest
,BrowseDirectoriesTest
,BrowseGroupsTest
,BrowsePrincipalSessionsTest
,BrowsePrincipalsTest
,ChangeExpiredPasswordTest
,ChangePasswordTest
,ConsoleLoginTest
,CreateAzureAdTest
,CrowdAcceptanceTestCaseWithEmailServer
,CrowdWebTestCase
,CrowdXsrfProtectionTest
,DelegatedDirectoryWithoutNestedGroupsTest
,EditProfileTest
,Error404PageTest
,ExpireSessionTest
,FailedFullSynchronizationStatusTest
,GLATest
,GroupAndUserPickerBaseTest
,LicensingTestBase
,LookAndFeelTest
,MailServerTest
,ModifyApplicationPermissionsTest
,ModifyApplicationRemoteAddressesTest
,OAuth2MailServerTest
,PathTraversalTest
,PruningConfigurationWebdriverTest
,PruningE2eTest
,RememberMeTest
,RemoveApplicationTest
,RemoveDirectoryTest
,SessionConfigTest
,SetupCrowdTestBase
,SetupCrowdUsingXmlFileTest
,SynchroniseDirectoryTest
,UpdateConnectionPoolTest
,ViewApplicationPluginTest
,ViewDirectoryTest
,ViewGroupLDAPTest
,ViewGroupMembersTest
,ViewGroupTest
,ViewPrincipalTest
,XWorkELClassloaderTest
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ApplinksClient
static final String
static final BatchedTestRule
protected final Supplier<AssertionError>
protected I18nHelper
protected static final String
protected static final String
protected static final String
protected final org.slf4j.Logger
protected static final String
protected final RestAdminClient
protected static final String
protected static final String
protected static final String
protected static final String
protected CrowdTestedProduct
protected TestkitClient
org.junit.rules.RuleChain
- retry rule should wrap all remaining rules, to avoid partial retries - cleanup rules should wrap all state capturing rules, to avoid polluting test state - remaining rules should be put at the end -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assertAtRelativePath
(String relativePath) protected void
protected void
protected void
assertAtUrl
(String url) protected void
assertHasError
(AbstractCrowdPage page, String message) protected void
assertHasErrorKey
(AbstractCrowdPage page, String messageKey) protected <T extends com.atlassian.pageobjects.Page>
Tprotected <T extends com.atlassian.pageobjects.Page>
Tprotected void
protected void
protected void
protected void
deleteCookie
(String cookieName) protected void
expectState
(ApplicationState state) Optional<org.openqa.selenium.Cookie>
org.openqa.selenium.Cookie
getCookieOrThrow
(String cookieName) protected String
protected org.openqa.selenium.WebDriver
protected String
protected boolean
protected boolean
void
protected ChangeExpiredPasswordPage
loginAsExpiredPasswordUser
(String username, String password) protected ViewProfilePage
loginAsNonAdmin
(String username, String password) protected <T extends com.atlassian.pageobjects.Page>
TloginAsNonAdmin
(String username, String password, Class<T> targetPage, Object... args) protected CrowdConsole
protected <T extends com.atlassian.pageobjects.Page>
TloginAsSysAdmin
(Class<T> targetPage, Object... args) protected <T extends com.atlassian.pageobjects.Page>
TloginAsSysAdminWithRememberMe
(Class<T> targetPage, Object... args) protected ViewProfilePage
loginAsUser
(String username, String password) protected CrowdLoginPage
loginExpectingFailure
(String username, String password) protected ViewProfilePage
protected <T extends com.atlassian.pageobjects.Page>
TloginImmutableUser
(Class<T> targetPage, Object... args) protected ViewProfilePage
protected <T extends com.atlassian.pageobjects.Page>
TloginTestUser
(Class<T> targetPage, Object... args) protected void
logout()
protected org.openqa.selenium.WebDriver.Options
manage()
protected <T extends com.atlassian.pageobjects.Page>
TnavigateToAndBind
(Class<T> pageClass, Object... args) protected void
navigateToUrl
(String url) void
void
restoreCrowdFromXML
(String xmlfilename) void
restoreCrowdFromXML
(String xmlfilename, boolean forceXmlRestore) void
setUp()
protected void
waitForUrl
(org.hamcrest.Matcher<String> url) protected void
-
Field Details
-
BATCHED_TEST_RULE
-
webDriverRules
public org.junit.rules.RuleChain webDriverRules- retry rule should wrap all remaining rules, to avoid partial retries - cleanup rules should wrap all state capturing rules, to avoid polluting test state - remaining rules should be put at the end -
BACKUP_RESOURCE
- See Also:
-
TEST_USER_NAME
- See Also:
-
TEST_USER_PW
- See Also:
-
TEST_USER_DISPLAYNAME
- See Also:
-
IMMUTABLE_USER_NAME
- See Also:
-
IMMUTABLE_USER_PW
- See Also:
-
REMEMBER_ME_COOKIE
- See Also:
-
SSO_COOKIE
- See Also:
-
JSESSIONID_COOKIE
- See Also:
-
COOKIE_ABSENT
-
testedProduct
-
i18n
-
log
protected final org.slf4j.Logger log -
testkitClient
-
restAdminClient
-
applinksClient
-
-
Constructor Details
-
CrowdWebDriverTest
public CrowdWebDriverTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
getTestkitClient
-
getDriver
protected org.openqa.selenium.WebDriver getDriver() -
manage
protected org.openqa.selenium.WebDriver.Options manage() -
loginTestUser
-
loginTestUser
-
loginImmutableUser
-
loginAsUser
-
bind
-
bind
-
loginAsSysAdminWithRememberMe
-
loginAsSysAdmin
-
loginAsSysAdmin
-
loginExpectingFailure
-
deleteAllCookies
protected void deleteAllCookies() -
deleteCookie
-
getCurrentUrl
-
restoreCrowdFromXML
-
restoreCrowdFromXML
-
intendToModifyLdapData
public void intendToModifyLdapData() -
getBaseUrl
-
getBaseUrlWithoutPort
-
restoreBaseSetup
public void restoreBaseSetup() -
getCookie
-
getCookieOrThrow
-
assertAtURIEndingWith
-
assertAtURIContaining
-
assertAtUrl
-
assertAtRelativePath
-
assertHasError
-
assertHasErrorKey
-
logout
protected void logout() -
loginImmutableUser
-
loginAsExpiredPasswordUser
-
loginAsNonAdmin
-
loginAsNonAdmin
-
waitForUrl
-
clearAndInvalidateSsoCookieIfPresent
protected void clearAndInvalidateSsoCookieIfPresent() -
clearAndInvalidateSsoCookieOrFail
protected void clearAndInvalidateSsoCookieOrFail() -
getSsoCookieOrFail
-
hasSsoCookie
protected boolean hasSsoCookie() -
hasCookie
-
waitUntilAsyncFinished
protected void waitUntilAsyncFinished() -
expectState
-