public abstract class AbstractTestCriticalResources extends BaseJiraWebTest
Modifier and Type | Field and Description |
---|---|
protected static String |
COMMON_CSS |
protected static String |
COMMON_JS |
jiraWebTestClassRules, webTestRule
backdoor, jira, logger, mailHelper, pageBinder
Constructor and Description |
---|
AbstractTestCriticalResources() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertCriticalNetworkRequests(CriticalResources.ResourceType resourceType,
List<String> expected)
Verifies that scripts or stylesheets that were drained on the page load match the given list
(such resources block further processing and take part in the critical path).
|
protected void |
assertNoErrors() |
protected String |
getCommonPageURL() |
protected static void |
setProperty(String key) |
protected static void |
unsetProperty(String key) |
protected void |
verifyResources(String exemptResourceFile,
CriticalResources.ResourceType resourceType) |
protected void |
verifyResources(String exemptResourceFile,
CriticalResources.ResourceType resourceType,
boolean includeCommonResources) |
protected void |
visitPage(Runnable visitor) |
getBackdoor, getBaseClassRule, getBaseRule
protected static final String COMMON_JS
protected static final String COMMON_CSS
protected static void setProperty(String key)
protected static void unsetProperty(String key)
protected void visitPage(Runnable visitor)
protected void verifyResources(String exemptResourceFile, CriticalResources.ResourceType resourceType) throws IOException
IOException
protected void verifyResources(String exemptResourceFile, CriticalResources.ResourceType resourceType, boolean includeCommonResources) throws IOException
IOException
protected void assertNoErrors()
protected String getCommonPageURL()
protected void assertCriticalNetworkRequests(CriticalResources.ResourceType resourceType, List<String> expected)
resourceType
- look either for Scripts or Stylesheetsexpected
- the list of critical resources (in the format of "[context|resource]:[name]")Copyright © 2002-2019 Atlassian. All Rights Reserved.