com.atlassian.jira.webtest.selenium.issue.dialogs
Class TestAttachFile
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.selenium.SeleniumTest
com.atlassian.jira.webtest.selenium.JiraSeleniumTest
com.atlassian.jira.webtest.selenium.auidialog.AbstractAuiDialogTest
com.atlassian.jira.webtest.selenium.issue.dialogs.TestAttachFile
- All Implemented Interfaces:
- EnvironmentAware, com.atlassian.performance.junit.PerformanceTest, junit.framework.Test
public class TestAttachFile
- extends AbstractAuiDialogTest
Selenium tests for attachments.
- Since:
- v4.1
| 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 |
| Methods inherited from class com.atlassian.jira.webtest.selenium.auidialog.AbstractAuiDialogTest |
assertAuiErrorMessage, assertDialogContainsAuiForm, assertDialogContainsText, assertDialogIsOpenAndReady, assertDialogNotLoaded, assertDialogNotOpen, assertFieldHasInlineError, assertFormIsUndecorated, closeDialogByClickingCancel, closeDialogByEscape, defaultDialogSubmitSelector, submitDialog, submitDialog, submitDialogAndWaitForAjax, submitDialogAndWaitForReload, submitDialogAndWaitForReload, submitSelector |
| 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, 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 interface junit.framework.Test |
countTestCases, run |
TestAttachFile
public TestAttachFile()
suite
public static junit.framework.Test suite()
onSetUp
public void onSetUp()
- Overrides:
onSetUp in class AbstractAuiDialogTest
onTearDown
public void onTearDown()
- Overrides:
onTearDown in class AbstractAuiDialogTest
testAttachFileXSS
public void testAttachFileXSS()
testAttachFile
public void testAttachFile()
throws Exception
- Throws:
Exception
testAttachFileNoFileSelected
public void testAttachFileNoFileSelected()
testAttachmentSearchById
public void testAttachmentSearchById()
testFileSizesForSingleAttachment
public void testFileSizesForSingleAttachment()
testAttachFileWithBadCharacters
public void testAttachFileWithBadCharacters()
testAttachFileWithWeirdCharacters
public void testAttachFileWithWeirdCharacters()
testAttachFileAndEditAttachmentSize
public void testAttachFileAndEditAttachmentSize()
throws SAXException
- Test editing the attachment size (total upload size limit) and verify the limit has changed by attaching files.
- Throws:
SAXException - error when uploading attachment
testMimeCasing
public void testMimeCasing()
testHtmlAttachmentDownloadDefaultMimeSniffingPolicy
public void testHtmlAttachmentDownloadDefaultMimeSniffingPolicy()
testHtmlAttachmentDownloadParanoidMimeSniffingPolicy
public void testHtmlAttachmentDownloadParanoidMimeSniffingPolicy()
throws SAXException
- Throws:
SAXException
testHtmlAttachmentDownloadWorkaroundMimeSniffingPolicy
public void testHtmlAttachmentDownloadWorkaroundMimeSniffingPolicy()
throws SAXException
- Throws:
SAXException
testHtmlAttachmentDownloadPwnedMimeSniffingPolicy
public void testHtmlAttachmentDownloadPwnedMimeSniffingPolicy()
throws SAXException
- Throws:
SAXException
testAttachmentDownloadDefaultMimeSniffingPolicyInternetExplorer
public void testAttachmentDownloadDefaultMimeSniffingPolicyInternetExplorer()
throws SAXException
- Throws:
SAXException
testAttachmentDownloadParanoidMimeSniffingPolicyInternetExplorer
public void testAttachmentDownloadParanoidMimeSniffingPolicyInternetExplorer()
throws SAXException
- Throws:
SAXException
testAttachmentDownloadPwnedMimeSniffingPolicyInternetExplorer
public void testAttachmentDownloadPwnedMimeSniffingPolicyInternetExplorer()
throws SAXException
- Throws:
SAXException
testAttachmentDownloadWorkaroundMimeSniffingPolicyInternetExplorer
public void testAttachmentDownloadWorkaroundMimeSniffingPolicyInternetExplorer()
throws SAXException
- Throws:
SAXException
testAttachFileFromSubTaskQuickCreateForm
public void testAttachFileFromSubTaskQuickCreateForm()
throws Exception
- Throws:
Exception
testAttachmentSlashLimiting
public void testAttachmentSlashLimiting()
throws IOException,
SAXException
- Throws:
IOException
SAXException
testCanDownloadAPlainTextFileWithGzipCompression
public void testCanDownloadAPlainTextFileWithGzipCompression()
throws SAXException
- Throws:
SAXException
testFileNotFoundWhenAttachmentNotOnDisk
public void testFileNotFoundWhenAttachmentNotOnDisk()
throws IOException
- Throws:
IOException
testIssueResourceAttachmentsWithThumbnail
public void testIssueResourceAttachmentsWithThumbnail()
throws Exception
- Throws:
Exception
testCommentVisibility
public void testCommentVisibility()
testWikiRendererInlineThumbnail
public void testWikiRendererInlineThumbnail()
- Attach a picture to an issue, and use the wiki to display the picture/thumbnail inline as part of the comment
testIssueNavigatorWithPicture
public void testIssueNavigatorWithPicture()
throws IOException
- Throws:
IOException
testIssueNavigator
public void testIssueNavigator()
throws IOException
- Throws:
IOException
testAttachMultiple
public void testAttachMultiple()
Copyright © 2002-2012 Atlassian. All Rights Reserved.