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, getTester
public 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
Exception
public void testCanLoginAfterSessionTimeout() throws Exception
Exception
public void testLoginsThatAreDeniedDueToCaptchaProtectionShouldReturn403() throws Exception
Exception
public void testCaptchaFailureWithWrongPasswordIsIdenticalToCaptchaFailureWithRightPassword() throws Exception
Exception
public void testLoginReturnEncodedUsername_IncludingUtf8Chars_InResponseHeader() throws Exception
Exception
Agile (GHS-10385)
protected com.meterware.httpunit.WebResponse loginAs(JSONObject json) throws IOException, SAXException
IOException
SAXException
protected com.meterware.httpunit.WebResponse provokeCaptchaFailure(JSONObject badCredentials) throws IOException, SAXException
IOException
SAXException
Copyright © 2002-2020 Atlassian. All Rights Reserved.