public abstract class AbstractConfluenceAcceptanceTest
extends com.atlassian.confluence.junit3.JUnit3TimingTestCase
Modifier and Type | Field and Description |
---|---|
static String |
DASHBOARD_RECENT_UPDATES_REST_URL |
static String |
DASHBOARD_RECENT_UPDATES_URL |
protected LogAdjuster |
logAdjuster
Can be used by subclasses to turn logging on the server up or down for just one test.
|
static Plugin |
ONBOARDING_PLUGIN |
protected ConfluenceRpc |
rpc |
protected static User |
TEST_ADMIN
Deprecated.
since 5.6 Use
User.ADMIN |
BlogPost |
TEST_BLOG |
Comment |
TEST_COMMENT |
protected static String |
TEST_GROUP1 |
protected static String |
TEST_GROUP2 |
Page |
TEST_PAGE |
Space |
TEST_SPACE |
Space |
TEST_SPACE2 |
protected static User |
TEST_USER1
Deprecated.
since 5.6 Use
createTestUser() |
protected static User |
TEST_USER2
Deprecated.
since 5.6 Use
User.TEST2 |
static String |
TESTBLOG_CONTENT |
static String |
TESTBLOG_TITLE |
protected TestData |
testData |
static String |
TESTPAGE_COMMENT |
static String |
TESTPAGE_CONTENT |
static String |
TESTPAGE_TITLE |
static String |
TESTSPACE_KEY |
static String |
TESTSPACE_TITLE |
static String |
TESTSPACE2_KEY |
static String |
TESTSPACE2_TITLE |
protected net.sourceforge.jwebunit.junit.WebTester |
webTester |
protected ConfluenceRpc |
wikiMarkupRpc
Use this for tests where you want to create pages/comments/blogs using wikimarkup.
|
Constructor and Description |
---|
AbstractConfluenceAcceptanceTest() |
AbstractConfluenceAcceptanceTest(String testName) |
Modifier and Type | Method and Description |
---|---|
AdminConsole |
adminConsole() |
AttachmentsTester |
attachments() |
BaseUrlSelector |
baseUrlSelector() |
void |
createSpaceViaWebUI(Space space)
Deprecated.
since 5.9 Tests that need to create a space via the UI should be written as a WebDriver test
|
void |
createTestSpaceViaWebUI()
Deprecated.
since 5.9 Tests that need to create a space via the UI should be written as a WebDriver test
|
protected User |
createTestUser()
Creates a user with a pseudo-random username.
|
protected DarkFeaturesHelper |
darkFeatures() |
static DirectoryConfiguration |
directoryConfig() |
File |
generateFile(String filename,
String contents) |
String |
getAppContext() |
protected String |
getBaseUrl() |
String |
getConfiguredBaseUrl()
Returns the configured base URL in the Confluence app.
|
protected PluginHelper |
getPluginHelper()
Deprecated.
since 5.6 Use
plugins() |
protected ServerStateManager |
getServerStateManager() |
protected Optional<org.junit.runner.Description> |
getTestDescription() |
void |
goToBlogCollector(String spaceKey) |
LoginHelper |
logins() |
void |
logout()
Log out by going straight to the regular logout.action and then starting a new conversation at the start
location, usually noop.jsp.
|
PageAcceptanceTester |
pages() |
protected PluginHelper |
plugins() |
protected void |
rebuildIndex() |
protected void |
setUp()
Default setUp method.
|
protected String |
substituteForNodeBaseUrl(String url) |
protected void |
tearDown()
Default tearDown method.
|
UserManagementHelper |
users() |
void |
viewHomepage() |
SpaceAdmin |
viewSpaceAdmin(Space space) |
SpacePermissions |
viewSpacePermissions(Space space) |
void |
viewSpaceSummary(String spaceKey) |
void |
viewSpaceTools(String spaceKey) |
void |
viewTrash(String spaceKey,
String spaceTitle) |
PagesCollectorBean |
watchSpace(String spaceKey) |
static String |
webAppContextPath() |
runBare, setExceptionTransformer
countTestCases, createResult, getName, run, run, runTest, setName, toString
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
protected TestData testData
protected static final String TEST_GROUP1
protected static final String TEST_GROUP2
public Space TEST_SPACE
public Space TEST_SPACE2
public static String TESTSPACE_TITLE
public static String TESTSPACE_KEY
public static String TESTSPACE2_TITLE
public static String TESTSPACE2_KEY
public static final String TESTPAGE_TITLE
public static final String TESTPAGE_CONTENT
public static final String TESTPAGE_COMMENT
public static final String TESTBLOG_TITLE
public static final String TESTBLOG_CONTENT
public static final Plugin ONBOARDING_PLUGIN
public Page TEST_PAGE
public BlogPost TEST_BLOG
public Comment TEST_COMMENT
@Deprecated protected static final User TEST_ADMIN
User.ADMIN
@Deprecated protected static final User TEST_USER1
createTestUser()
@Deprecated protected static final User TEST_USER2
User.TEST2
protected ConfluenceRpc wikiMarkupRpc
protected ConfluenceRpc rpc
protected LogAdjuster logAdjuster
LogAdjuster.resetLogLevels()
is called in tearDown()
.public static final String DASHBOARD_RECENT_UPDATES_URL
public static final String DASHBOARD_RECENT_UPDATES_REST_URL
protected net.sourceforge.jwebunit.junit.WebTester webTester
public AbstractConfluenceAcceptanceTest(String testName)
public AbstractConfluenceAcceptanceTest()
public static String webAppContextPath()
public static DirectoryConfiguration directoryConfig()
public AttachmentsTester attachments()
public AdminConsole adminConsole()
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
- from superprotected Optional<org.junit.runner.Description> getTestDescription()
@Deprecated protected PluginHelper getPluginHelper()
plugins()
protected void tearDown() throws Exception
filesToDelete
list.tearDown
in class junit.framework.TestCase
Exception
public String getConfiguredBaseUrl()
public void logout()
LoginHelper.logOutSlowly()
instead if you're
testing what logging out actually does, and LoginHelper.logout()
if you just want to clean up the session
as fast as possible.LoginHelper.logout()
,
LoginHelper.logOutSlowly()
@Deprecated public void createSpaceViaWebUI(Space space)
@Deprecated public void createTestSpaceViaWebUI()
public SpaceAdmin viewSpaceAdmin(Space space)
public void goToBlogCollector(String spaceKey)
public void viewSpaceSummary(String spaceKey)
public SpacePermissions viewSpacePermissions(Space space)
public void viewHomepage()
public String getAppContext()
public void viewSpaceTools(String spaceKey)
public PagesCollectorBean watchSpace(String spaceKey)
protected String getBaseUrl()
getConfiguredBaseUrl()
method.protected void rebuildIndex() throws InterruptedException
InterruptedException
public PageAcceptanceTester pages()
public UserManagementHelper users()
protected User createTestUser()
User.TEST
, User.TEST2
or User.APOSTROPHE
public LoginHelper logins()
protected ServerStateManager getServerStateManager()
protected DarkFeaturesHelper darkFeatures()
protected PluginHelper plugins()
public BaseUrlSelector baseUrlSelector()
Copyright © 2003–2016 Atlassian. All rights reserved.