|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.atlassian.jira.functest.framework.FuncTestCase
com.atlassian.jira.webtests.ztests.bundledplugins2.rest.RestFuncTest
com.atlassian.jira.webtests.ztests.bundledplugins2.rest.TestLogin
public class TestLogin
Testing for the /auth/session login/logout resource
Field Summary | |
---|---|
static int |
CAPTCHA_MAX_TRIES
|
static String |
REST_AUTH_RESOURCE
|
static String |
SESSION_PARAM
|
static String |
X_AUTHENTICATION_DENIED_REASON
|
Fields inherited from class com.atlassian.jira.functest.framework.FuncTestCase |
---|
administration, assertions, backdoor, environmentData, form, funcTestHelperFactory, issueTableAssertions, locator, log, navigation, oldway_consider_porting, page, parse, tester, text |
Constructor Summary | |
---|---|
TestLogin()
|
Method Summary | |
---|---|
protected com.meterware.httpunit.WebResponse |
loginAs(JSONObject json)
|
protected com.meterware.httpunit.WebResponse |
provokeCaptchaFailure(JSONObject badCredentials)
|
protected void |
setUpTest()
Setup for an actual test |
void |
testCanLoginAfterSessionTimeout()
|
void |
testCaptchaFailureWithWrongPasswordIsIdenticalToCaptchaFailureWithRightPassword()
|
void |
testCurrentUser()
|
void |
testCurrentUserAnon()
|
void |
testCurrentUserUglyName()
|
void |
testLogin()
|
void |
testLoginsThatAreDeniedDueToCaptchaProtectionShouldReturn403()
|
void |
testLogout()
|
void |
testWhenTheLoginResourceGivesYouACookieYouShouldBeAbleToActuallyDoSomethingWithIt()
|
Methods inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.RestFuncTest |
---|
assertEqualDateStrings, DELETE, GET, GET, getBaseUriPlus, getBaseUriPlus, getBaseUrl, getBaseUrlPlus, getBaseUrlPlus, getJSON, getRestApiUri, getRestApiUri, getRestApiUrl, isDumpHTML, POST, POST, PUT, PUT, setUpHttpUnitOptions, tearDownTest |
Methods inherited from class com.atlassian.jira.functest.framework.FuncTestCase |
---|
builtInCustomFieldKey, getAssertions, getEnvironmentData, getTester, getWebClientListener, log, log, runBare, runTest, setEnvironmentData, setUp, shouldSkipSetup, tearDown, xpath |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, 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 |
Field Detail |
---|
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
Constructor Detail |
---|
public TestLogin()
Method Detail |
---|
protected void setUpTest()
FuncTestCase
setUpTest
in class RestFuncTest
public void testCurrentUser() throws Exception
Exception
public void testCurrentUserUglyName() throws Exception
Exception
public void testCurrentUserAnon() throws Exception
Exception
public void testLogin() throws Exception
Exception
public void testWhenTheLoginResourceGivesYouACookieYouShouldBeAbleToActuallyDoSomethingWithIt() throws Exception
Exception
public void testCanLoginAfterSessionTimeout() throws Exception
Exception
public void testLoginsThatAreDeniedDueToCaptchaProtectionShouldReturn403() throws Exception
Exception
public void testCaptchaFailureWithWrongPasswordIsIdenticalToCaptchaFailureWithRightPassword() throws Exception
Exception
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
public void testLogout() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |