public abstract class AbstractConfluenceAcceptanceTest
extends com.atlassian.confluence.junit3.JUnit3TimingTestCase
Modifier and Type | Field and Description |
---|---|
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.ADMIN |
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) |
void |
createTestSpaceViaWebUI()
For those times we need to ensure a space was created via the web UI (For example if the web UI
may behave differently to RPC)
|
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() |
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 void |
setUpTestNG(Method method)
Called by TestNG, calls setUp() on the current class,
prevents the need to put this annotation everywhere, and sets the test name
properly.
|
protected String |
substituteForNodeBaseUrl(String url) |
protected void |
tearDown()
Default tearDown method.
|
protected void |
tearDownTestNG()
Called by TestNG, calls tearDown() on the current class,
prevents the need to put this annotation everywhere, and sets the test name
properly.
|
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
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toString
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.ADMIN
protected ConfluenceRpc wikiMarkupRpc
protected ConfluenceRpc rpc
protected LogAdjuster logAdjuster
LogAdjuster.resetLogLevels()
is called in tearDown()
.public static final String DASHBOARD_RECENT_UPDATES_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 setUpTestNG(Method method) throws Exception
method
- The test method being calledException
- if setup failsprotected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
- from super@Deprecated protected PluginHelper getPluginHelper()
plugins()
protected void tearDownTestNG() throws Exception
Exception
- if tear down failsprotected 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()
public void createSpaceViaWebUI(Space space)
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–2015 Atlassian. All rights reserved.