|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
net.sourceforge.jwebunit.junit.WebTestCase
com.atlassian.confluence.AbstractAtlassianWebTestCase
com.atlassian.confluence.AbstractConfluenceAcceptanceTest
com.atlassian.confluence.cluster.Node
public class Node
Clustered tests instantiate an instance of this class for each cluster node to allow public access to the protected test methods against that node.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.confluence.AbstractAtlassianWebTestCase |
|---|
SITE_TITLE_SUFFIX, TITLE_SEPARATOR |
| Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase |
|---|
tester |
| Constructor Summary | |
|---|---|
Node(java.lang.String name,
java.lang.String nodeBaseUrl)
|
|
| Method Summary | |
|---|---|
void |
addComment(java.lang.String spaceKey,
java.lang.String pageTitle,
java.lang.String comment)
|
void |
addCommentToBlogPost(java.lang.String spaceKey,
java.lang.String newsTitle,
java.lang.String comment)
|
void |
addSpaceLabel(java.lang.String labelName)
|
void |
addUserProfilePicture(java.lang.String fileName,
java.lang.String username)
|
void |
addUserToGroupViaHelper(java.lang.String token,
java.lang.String username,
java.lang.String groupname)
Adds the given user to a groupname |
ViewContentBean |
addWatchPage()
|
void |
assertCollectionContainsKeyWithValue(java.util.Collection collection,
java.lang.String key,
java.lang.String value)
|
void |
assertLinkWithTextExists(java.lang.String linkText)
|
void |
assertSelectBoxContainsOption(java.lang.String selectName,
java.lang.String optionName)
|
void |
assertTitleEquals(java.lang.String pageTitle,
java.lang.String spaceTitle)
Asserts that the title equals the passed pageTitle plus separator plus spaceTitle plus site suffix (usually SITE_TITLE_SUFFIX). |
void |
attachFile(java.io.File attachment,
java.lang.String comment)
Click the attach file link, attach a given file with a given comment and submit the attachment form. |
void |
checkCheckbox(java.lang.String checkBoxName)
|
void |
checkCheckbox(java.lang.String checkBoxName,
java.lang.String value)
|
void |
clickAnyButtonWithValue(java.lang.String value)
|
void |
clickButton(java.lang.String string)
|
void |
clickButtonWithValue(java.lang.String value)
|
void |
clickLink(java.lang.String string)
|
void |
clickLinkWithImage(java.lang.String string)
|
void |
clickLinkWithText(java.lang.String string)
|
void |
clickLinkWithText(java.lang.String string,
int i)
|
void |
clickSubmitButtonWithValue(java.lang.String value)
|
void |
createBlog(java.lang.String spaceKey,
java.lang.String title,
java.lang.String body)
|
void |
createGroup(java.lang.String group)
Create a group via the Web Interface. |
void |
createGroupViaHelper(java.lang.String token,
java.lang.String groupName)
Creates a group with the given name |
void |
createMail(java.io.File mail,
java.lang.String spaceKey)
|
ViewContentBean |
createPage(java.lang.String spaceKey,
java.lang.String title,
java.lang.String body,
java.lang.String parentPageTitle)
|
void |
createPersonalSpace(java.lang.String fullname)
|
void |
createSpaceViaWebUi(Space space)
|
void |
createSpaceViaWebUI(java.lang.String key,
java.lang.String name,
java.lang.String description)
|
void |
createTemplate(java.lang.String spaceName,
java.lang.String templateTitle,
java.lang.String templateDescription,
java.lang.String templateContent)
|
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) |
void |
createTestUser1ViaHelper(java.lang.String token)
Creates the test user via the XML-RPC interface |
void |
createTestUser2ViaHelper(java.lang.String token)
Creates the 2nd test user via the XML-RPC interface |
void |
createUserViaHelper(java.lang.String token,
java.lang.String username,
java.lang.String password,
java.lang.String fullName,
java.lang.String email)
Creates a new user with the given details. |
void |
disableAnonymousAccess()
|
void |
disableAnonymousRemoteApi()
|
void |
disablePublicSignup()
|
void |
disableRemoteApi()
|
void |
disableThreadedComments()
|
void |
dumpTable(java.lang.String tableNameOrId,
java.io.PrintStream stream)
|
void |
editPage(java.lang.String spaceKey,
java.lang.String pageTitle)
|
void |
editPageWithContent(java.lang.String spaceKey,
java.lang.String title,
java.lang.String newContent)
|
void |
editProfile(java.lang.String info)
|
void |
editSpacePermsForm()
|
void |
emptyTrash()
|
void |
enableAnonymousAccess()
|
void |
enableAnonymousAccessToSpace(java.lang.String spaceKey)
|
void |
ensureTestUserCanViewTestSpace()
|
void |
ensureUserCanViewSpace(java.lang.String user,
java.lang.String spaceTitle)
|
protected java.lang.String |
generateBaseUrl()
|
java.io.File |
generateFile(java.lang.String filename,
java.lang.String contents)
|
java.lang.String |
getAppContext()
|
int |
getCurrentMailQueueSize()
|
EDU.oswego.cs.dl.util.concurrent.Latch |
getEventLatch(java.lang.String token,
java.lang.Class eventClass,
int timeout)
Create a Latch object that will be released when the event has been fired
OR when the timeout has elapsed. |
java.lang.String |
getGroupFromResponse(java.lang.String pattern)
|
long |
getPageId(java.lang.String spaceKey,
java.lang.String title)
|
ConfluenceRpc |
getRpc()
|
Space |
getTestSpace()
|
java.lang.String |
getTodaysBlogPostDate()
|
org.apache.xmlrpc.XmlRpcClient |
getXmlRpcClient()
|
void |
goToEditGeneralConfiguration()
|
void |
grantAnonymousUseConfluencePermission()
|
void |
grantGlobalBrowsePermissionToGroup(java.lang.String groupName)
|
void |
grantGlobalPermissionToGroup(java.lang.String permissionType,
java.lang.String groupName)
|
void |
grantGlobalPermissionToUser(java.lang.String permissionType,
java.lang.String userName)
|
void |
grantSpacePermissionToGroup(java.lang.String spaceKey,
java.lang.String permissionType,
java.lang.String groupName)
Grant view space permissions and one other space permission to a specified group. |
void |
grantSpacePermissionToUser(java.lang.String spaceKey,
java.lang.String permissionType,
java.lang.String userName)
Grant view space permissions and one other space permission to a specified user. |
void |
grantViewSpacePermissionToGroup(java.lang.String spaceKey,
java.lang.String groupName)
|
void |
grantViewSpacePermissionToUser(java.lang.String spaceKey,
java.lang.String username)
|
void |
importGlobalBackup(java.lang.String importZipLocation,
boolean waitForSuccess)
Perform a site import via the web ui. |
void |
logInAs(java.lang.String username,
java.lang.String password)
|
void |
logInAs(java.lang.String username,
java.lang.String password,
boolean fastMode)
|
void |
logInAsAdmin()
|
void |
logInAsAdminAtDashboard()
|
void |
loginAsTestUser()
|
void |
logout()
|
void |
movePage(java.lang.String spaceKey,
java.lang.String title,
java.lang.String newSpaceName,
java.lang.String newParentPage)
|
void |
movePageToNewParent(java.lang.String spaceKey,
java.lang.String title,
java.lang.String newParentPage)
|
void |
openInsertLinkPopup()
Clicks the "Insert Link" button, if it exists, on the current page (expected to be the "Add" or "Edit" page) Focus will then be moved to the popup window |
void |
pause(long milliseconds)
We use pause because mysql is not very good at distinguishing times that are close together. |
void |
removeBlog(java.lang.String spaceKey,
java.lang.String postDateString,
java.lang.String postTitle)
|
void |
removeGroup(java.lang.String groupName)
Delete a group via the Web Interface. |
void |
removePersonalSpace(java.lang.String username)
|
void |
removeTestUser1()
Remove testUser1 via the Web Interface. |
void |
removeTestUser1ViaHelper(java.lang.String token)
Removes the test user |
void |
removeUser(java.lang.String username)
Remove a user via the Web Interface. |
void |
removeUserFromGroupViaHelper(java.lang.String token,
java.lang.String username,
java.lang.String groupname)
Removes the given user from the group |
void |
removeUserViaHelper(java.lang.String token,
java.lang.String username)
Removes a user with the given username |
void |
renamePage(java.lang.String spaceKey,
java.lang.String originalPageTitle,
java.lang.String newPageTitle)
|
void |
revokeAnonymousUseConfluencePermission()
|
void |
revokeGlobalPermissionFromGroup(java.lang.String permissionType,
java.lang.String groupName)
Removes the specified global permission (from SpacePermission) from the given group name |
java.util.Hashtable |
rpcAddComment(java.lang.String token,
long pageId,
java.lang.String comment)
Adds a comment to a page via the XML-RPC interface |
java.util.Hashtable |
rpcAddComment(java.lang.String token,
java.lang.String spaceKey,
java.lang.String pageTitle,
java.lang.String comment)
Adds a comment to a page via the XML-RPC interface |
void |
rpcAddLabelToBlog(java.lang.String token,
java.lang.String label,
long blogId)
Adds a label to the blogpost with the given page ID |
void |
rpcAddLabelToPage(java.lang.String token,
java.lang.String label,
long pageId)
Adds a label to the Page with the given page ID |
void |
rpcAddLabelToPage(java.lang.String token,
java.lang.String label,
java.lang.String spaceKey,
java.lang.String pageTitle)
Adds a label to the Page with the given details This method retrieves the ID for the given Page and passes it onto the appropriate rpcAddLabelToPage method |
void |
rpcAddLabelToSpace(java.lang.String token,
java.lang.String label,
java.lang.String spaceKey)
Adds a label to a space |
void |
rpcConvertToPersonalSpace(java.lang.String token,
java.lang.String userName,
java.lang.String spaceKey,
java.lang.String newName,
boolean updateLinks)
|
long |
rpcCreateBlogPost(java.lang.String token,
java.lang.String spaceKey,
java.lang.String postTitle,
java.lang.String postContent)
Creates a new blog entry via the XML-RPC interface |
long |
rpcCreatePage(java.lang.String token,
java.lang.String spaceKey,
java.lang.String title,
java.lang.String content)
Creates a page via the XML-RPC interface |
long |
rpcCreatePage(java.lang.String token,
java.lang.String spaceKey,
java.lang.String title,
java.lang.String content,
long parentPageId)
Creates a page via the XML-RPC interface |
java.util.Hashtable |
rpcCreatePersonalSpace(java.lang.String token,
java.lang.String name,
java.lang.String description,
java.lang.String username)
Creates a personal space via the XML-RPC interface |
java.util.Hashtable |
rpcCreateSpace(java.lang.String token,
java.lang.String key,
java.lang.String name,
java.lang.String description)
|
long |
rpcCreateTestPage(java.lang.String token)
Creates the test page in the test space via the XML-RPC interface |
java.util.Hashtable |
rpcCreateTestSpace(java.lang.String token)
Creates the test space via the XML-RPC interface This method first checks if the test space exists, and logs a message if it does |
java.util.Hashtable |
rpcCreateTestSpace2(java.lang.String token)
Creates the 2nd test space via the XML-RPC interface This method first checks if the test space exists, and logs a message if it does |
void |
rpcEditBlogPost(java.lang.String token,
long entryId,
java.lang.String newTitle,
java.lang.String newContent)
Modifies the page with the given details via the XML-RPC interface |
void |
rpcEditPage(java.lang.String token,
java.lang.String spaceKey,
java.lang.String pageTitle,
java.lang.String newTitle,
java.lang.String newContent)
Modifies the page with the given details via the XML-RPC interface |
void |
rpcFlushIndexQueue()
|
java.lang.String |
rpcGetAdminToken()
Retrieves a token for the admin user |
long |
rpcGetBlogPostId(java.lang.String token,
java.lang.String spaceKey,
int dayOfMonth,
java.lang.String postTitle)
Retrieves the ID of a blog post with the given details |
long |
rpcGetPageId(java.lang.String token,
java.lang.String spaceKey,
java.lang.String pageTitle)
Retrieves the page ID for a page with the given details |
java.util.List |
rpcGetPageLabels(java.lang.String token,
long pageId)
Retrieves the labels assigned to a Page with the given page ID |
java.util.List |
rpcGetPageLabels(java.lang.String token,
java.lang.String spaceKey,
java.lang.String pageTitle)
Retrieves the labels assigned to a page with the given details This method retrieves the page ID and passes it onto the appropriate rpcGetPageLabels method |
java.lang.String |
rpcGetTestUser2Token()
Retrieves a token for the test user 2 |
java.lang.String |
rpcGetTestUserToken()
Retrieves a token for the test user |
java.lang.String |
rpcGetUserToken(java.lang.String username,
java.lang.String password)
Retrieves the user token for the given details, for use with the XML-RPC interface |
void |
rpcGrantAnonymousSpacePermission(java.lang.String token,
java.lang.String permission,
java.lang.String spaceKey)
Grants the given permission to the anonymous user for the given space |
void |
rpcGrantSpacePermission(java.lang.String token,
java.lang.String permission,
java.lang.String username,
java.lang.String spaceKey)
Grants the given permission to a user for a particular Space |
void |
rpcGrantViewSpacePermission(java.lang.String token,
java.lang.String entityName,
java.lang.String spaceKey)
Convenience method for granting VIEWSPACE permission to a particular user |
boolean |
rpcLog(java.lang.String destination,
java.lang.String message)
|
void |
rpcLogOutAdmin()
|
void |
rpcRemoveAnonymousSpacePermission(java.lang.String token,
java.lang.String permission,
java.lang.String spaceKey)
Removes the given permission for the anonymous user from the given space |
void |
rpcRemoveGroup(java.lang.String token,
java.lang.String groupname)
Removes the given group |
void |
rpcRemoveLabelFromPage(java.lang.String token,
java.lang.String label,
long pageId)
Removes the given label from the page with the given page ID |
void |
rpcRemoveLabelFromPage(java.lang.String token,
java.lang.String label,
java.lang.String spaceKey,
java.lang.String pageTitle)
|
void |
rpcRemoveLabelFromSpace(java.lang.String token,
java.lang.String label,
java.lang.String spaceKey)
Removes a label from a space |
void |
rpcRemovePage(java.lang.String token,
java.lang.String spaceKey,
long pageId)
|
void |
rpcRemoveSpace(java.lang.String token,
java.lang.String spaceKey)
Remove a space with the given key via the XML-RPC interface |
void |
rpcRemoveSpacePermission(java.lang.String token,
java.lang.String permission,
java.lang.String username,
java.lang.String spaceKey)
Removes the given permission for a user for a particular Space |
void |
rpcTrashPage(java.lang.String token,
long pageId)
Trashes (removes) a page with the given ID This method converts the long into a String and calls the appropriate rpcTrashPage method |
void |
rpcTrashPage(java.lang.String token,
java.lang.String pageId)
Trashes (removes) a page with the given ID |
void |
rpcTrashPage(java.lang.String token,
java.lang.String spaceKey,
java.lang.String pageTitle)
Trashes (removes) a page with the given details This method retrieves the page with the given details and calls the appropriate rpcTrashPage method |
void |
search(java.lang.String query)
|
void |
setAnonymousRemoteApi(boolean enabled)
|
void |
setAttachmentMaxUploadSize(long max)
|
void |
setDraftSaveInterval(long seconds)
|
void |
setEmailMask(java.lang.String setting)
|
void |
setFormElement(java.lang.String formElementName,
java.lang.String value)
|
void |
setNotifyOnMyActions(boolean notify)
|
void |
setPageLabels(java.lang.String spaceKey,
java.lang.String pageTitle,
java.lang.String label)
Add the specified label to the page via the pages edit view. |
void |
setPublicSignup(boolean enabled)
|
void |
setRemoteApi(boolean enabled)
|
void |
setThreadedComments(boolean enable)
|
void |
setViewPermissionsForGroups(java.lang.String spaceKey,
java.lang.String pageTitle,
java.lang.String group)
Edit the permissions of the specified page as the current user. |
void |
setViewPermissionsForUsers(java.lang.String spaceKey,
java.lang.String pageTitle,
java.lang.String user)
Edit the permissions of the specified page as the current user. |
void |
showAllUsers()
|
void |
submit()
|
void |
tearDown()
Default tearDown method. |
void |
uncheckCheckbox(java.lang.String checkBoxName)
|
void |
uncheckCheckbox(java.lang.String checkBoxName,
java.lang.String value)
|
void |
viewAbstractPage(long entityId)
Views the page for a Page or BlogPost (AbstractPage) |
void |
viewBlog(java.lang.String spaceKey,
java.lang.String datePath,
java.lang.String title)
|
void |
viewEditBlogPostPage(long entryId)
Views the edit blog post page for the post with the given ID |
void |
viewGlobalAdmin()
|
void |
viewGlobalPermissions()
|
void |
viewHomepage()
|
void |
viewLabel(java.lang.String spaceKey,
java.lang.String labelName)
|
ViewContentBean |
viewPage(java.lang.String spaceKey,
java.lang.String pageTitle)
|
void |
viewSpaceAdmin()
|
void |
viewSpaceAdvanced()
|
void |
viewSpaceContent()
|
void |
viewSpacePermissions(java.lang.String spaceKey)
|
void |
viewSpaceSummary()
|
void |
viewTodaysBlog(java.lang.String spaceKey,
java.lang.String title)
|
void |
viewTrash()
|
void |
viewUser(java.lang.String name)
|
| Methods inherited from class net.sourceforge.jwebunit.junit.WebTestCase |
|---|
assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementPresent, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHiddenFieldPresent, assertImagePresent, assertImageValidAndStore, assertKeyInTable, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeysInTable, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithText, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertSubmitButtonNotPresent, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertTableEquals, assertTableEquals, assertTableMatch, assertTableMatch, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTableRowsEqual, assertTableRowsEqual, assertTableRowsMatch, assertTableRowsMatch, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTextPresent, assertTitleEqualsKey, assertTitleEqualsKey, assertTitleMatch, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, clickButtonWithText, clickElementByXPath, clickLinkWithExactText, clickLinkWithExactText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, getDialog, getElementAttributByXPath, getElementTextByXPath, getFormElementValue, getImage, getMessage, getMessage, getPageSource, getServeurResponse, getTable, getTestContext, getTester, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, reset, runBare, saveAs, selectOption, selectOptionByValue, selectOptions, selectOptionsByValues, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setScriptingEnabled, setTestContext, setTestingEngineKey, setTextField, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Node(java.lang.String name,
java.lang.String nodeBaseUrl)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
protected java.lang.String generateBaseUrl()
generateBaseUrl in class AbstractConfluenceAcceptanceTestpublic void logInAsAdmin()
logInAsAdmin in class AbstractConfluenceAcceptanceTestpublic void logInAsAdminAtDashboard()
logInAsAdminAtDashboard in class AbstractConfluenceAcceptanceTest
public void addComment(java.lang.String spaceKey,
java.lang.String pageTitle,
java.lang.String comment)
addComment in class AbstractConfluenceAcceptanceTest
public void addCommentToBlogPost(java.lang.String spaceKey,
java.lang.String newsTitle,
java.lang.String comment)
addCommentToBlogPost in class AbstractConfluenceAcceptanceTestpublic void addSpaceLabel(java.lang.String labelName)
addSpaceLabel in class AbstractConfluenceAcceptanceTest
public void addUserProfilePicture(java.lang.String fileName,
java.lang.String username)
public ViewContentBean addWatchPage()
throws java.lang.Exception
addWatchPage in class AbstractConfluenceAcceptanceTestjava.lang.Exception
public void assertCollectionContainsKeyWithValue(java.util.Collection collection,