|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase com.atlassian.jira.functest.framework.FuncTestCase com.atlassian.jira.webtests.ztests.security.xss.AbstractXssFuncTest
public abstract class AbstractXssFuncTest
Some common methods for the tests which are testing Xss.
Field Summary | |
---|---|
static String |
XSS
|
static String |
XSS_ENCODED
|
static String |
XSS_ID
|
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 | |
---|---|
AbstractXssFuncTest()
|
Method Summary | |
---|---|
void |
assertXssNotInPage(String url)
A shortcut to assertXssNotInPage using the built in XSS_ID XSS and XSS_ENCODED variables |
void |
assertXssNotInPage(String url,
String xssId,
String xss,
String xssEncoded)
Assert that there the xss is not in the page |
Methods inherited from class com.atlassian.jira.functest.framework.FuncTestCase |
---|
builtInCustomFieldKey, getAssertions, getEnvironmentData, getTester, getWebClientListener, isDumpHTML, log, log, runBare, runTest, setEnvironmentData, setUp, setUpHttpUnitOptions, setUpTest, shouldSkipSetup, tearDown, tearDownTest, 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 String XSS_ID
public static final String XSS
public static final String XSS_ENCODED
Constructor Detail |
---|
public AbstractXssFuncTest()
Method Detail |
---|
public void assertXssNotInPage(String url, String xssId, String xss, String xssEncoded)
url
- the url to navigate toxssId
- the id of the injected xss elementxss
- the injected xss string e.g. xssEncoded
- the encoded (html) version of the xss stringpublic void assertXssNotInPage(String url)
url
- the url to navigate to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |