public class TestLogin extends BaseJiraFuncTest
| Modifier and Type | Field and Description |
|---|---|
static int |
CAPTCHA_MAX_TRIES |
static String |
REST_AUTH_RESOURCE |
static String |
SESSION_PARAM |
static String |
X_AUTHENTICATION_DENIED_REASON |
assertions, backdoor, environmentData, initClass, navigation, tester, testRule| Constructor and Description |
|---|
TestLogin() |
| Modifier and Type | Method and Description |
|---|---|
protected com.meterware.httpunit.WebResponse |
loginAs(JSONObject json) |
protected com.meterware.httpunit.WebResponse |
provokeCaptchaFailure(JSONObject badCredentials) |
void |
setUpTest() |
void |
testCanLoginAfterSessionTimeout() |
void |
testCaptchaFailureWithWrongPasswordIsIdenticalToCaptchaFailureWithRightPassword() |
void |
testCurrentUser() |
void |
testCurrentUserAnon() |
void |
testCurrentUserUglyName() |
void |
testLogin() |
void |
testLoginReturnEncodedUsername_IncludingUtf8Chars_InResponseHeader() |
void |
testLoginsThatAreDeniedDueToCaptchaProtectionShouldReturn403() |
void |
testLogout() |
void |
testWhenTheLoginResourceGivesYouACookieYouShouldBeAbleToActuallyDoSomethingWithIt() |
getAssertions, getBackdoor, getEnvironmentData, getTesterpublic static final int CAPTCHA_MAX_TRIES
public static final String X_AUTHENTICATION_DENIED_REASON
public static final String REST_AUTH_RESOURCE
public static final String SESSION_PARAM
public void setUpTest()
public void testWhenTheLoginResourceGivesYouACookieYouShouldBeAbleToActuallyDoSomethingWithIt()
throws Exception
Exceptionpublic void testCanLoginAfterSessionTimeout()
throws Exception
Exceptionpublic void testLoginsThatAreDeniedDueToCaptchaProtectionShouldReturn403()
throws Exception
Exceptionpublic void testCaptchaFailureWithWrongPasswordIsIdenticalToCaptchaFailureWithRightPassword()
throws Exception
Exceptionpublic void testLoginReturnEncodedUsername_IncludingUtf8Chars_InResponseHeader()
throws Exception
ExceptionAgile (GHS-10385)protected com.meterware.httpunit.WebResponse loginAs(JSONObject json) throws IOException, SAXException
IOExceptionSAXExceptionprotected com.meterware.httpunit.WebResponse provokeCaptchaFailure(JSONObject badCredentials) throws IOException, SAXException
IOExceptionSAXExceptionCopyright © 2002-2023 Atlassian. All Rights Reserved.