com.atlassian.jira.webtest.selenium.gadgets
Class TestLoginGadget

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.selenium.SeleniumTest
              extended by com.atlassian.jira.webtest.selenium.JiraSeleniumTest
                  extended by com.atlassian.jira.webtest.selenium.gadgets.TestLoginGadget
All Implemented Interfaces:
EnvironmentAware, com.atlassian.performance.junit.PerformanceTest, junit.framework.Test

public class TestLoginGadget
extends JiraSeleniumTest

Test for JRA-19714. Login gadget now behaves in the same manner as the login.jsp and tells the user that they do not have permission to log in when they get the username and password correct but they dont have permission to login. Use the TestLoginGadget setup. In this setup the admin user can log in as usual. Fred does not have permission to log in.

Since:
v4.2

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest
JiraSeleniumTest.Check
 
Field Summary
protected static String BAD_PASSWORD
           
protected static String FRED_PASSWORD
           
protected static String FRED_USERNAME
           
protected static int TIMEOUT
           
 
Fields inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest
ADMIN_PASSWORD, ADMIN_USERNAME, backdoor, DROP_DOWN_WAIT, environmentData, HSP_1, logger, MKY_1, PAGE_LOAD_WAIT, PAGE_LOAD_WAIT_TIME, PRESENT_TO_VISIBLE_DELAY, VK_DOWN, VK_ESC, VK_UP
 
Fields inherited from class com.atlassian.selenium.SeleniumTest
assertThat, client, config, recorder
 
Constructor Summary
TestLoginGadget()
           
 
Method Summary
 void onSetUp()
           
 void testCorrectPasswordNoPermissionsToLogin()
           
 void testGoodLogin()
           
 void testLoginOptions()
           
 void testShouldNotShowResetPasswordLinkIfExternalUserManagementIsOn()
           
 
Methods inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest
assertFalse, assertFalse, assertTrue, assertTrue, backgroundLogout, context, getAdministration, getBackdoor, getEnvironmentData, getNavigator, getSeleniumConfiguration, getUserPreferences, getWebUnitTest, getXsrfToken, globalPages, internalSetup, isBeforeJdk15, isKickAssEnabled, isUserAgentFirefox, log, onTearDown, restoreBlankInstance, restoreData, restoreData, restoreData, restoreDataWithPluginsReload, restoreDataWithReplacedTokens, restoreI18nData, restoreUnsetupJIRA, restoreViaBackdoor, restoreViaBackdoorAndGoToDashboard, runBare, runBareTestCase, selectMainWindow, setEnvironmentData, setSeleniumTestListener, suiteFor, timeouts, turnOffProfiling, turnOnProfiling, visibleByTimeoutWithDelay, waitFor, waitForContentUpdate, waitForRestore
 
Methods inherited from class com.atlassian.selenium.SeleniumTest
getRecorder, getSeleniumClient, setUp, tearDown
 
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, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
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

TIMEOUT

protected static final int TIMEOUT
See Also:
Constant Field Values

BAD_PASSWORD

protected static final String BAD_PASSWORD
See Also:
Constant Field Values

FRED_USERNAME

protected static final String FRED_USERNAME
See Also:
Constant Field Values

FRED_PASSWORD

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

TestLoginGadget

public TestLoginGadget()
Method Detail

onSetUp

public void onSetUp()
Overrides:
onSetUp in class JiraSeleniumTest

testGoodLogin

public void testGoodLogin()
                   throws Exception
Throws:
Exception

testCorrectPasswordNoPermissionsToLogin

public void testCorrectPasswordNoPermissionsToLogin()
                                             throws Exception
Throws:
Exception

testLoginOptions

public void testLoginOptions()

testShouldNotShowResetPasswordLinkIfExternalUserManagementIsOn

public void testShouldNotShowResetPasswordLinkIfExternalUserManagementIsOn()


Copyright © 2002-2013 Atlassian. All Rights Reserved.