void
|
addAnonymousPermissionsToSpace(String spaceKey, Vector permissions)
|
void
|
addComment(String spaceKey, String pageTitle, String comment)
|
void
|
addCommentToBlogPost(String spaceKey, String newsTitle, String comment)
|
void
|
addPageComment(String comment)
|
void
|
addSpaceLabel(String labelName)
|
void
|
addUserToGroupViaHelper(String username, String groupname)
Adds the given user to a groupname
|
ViewContentBean
|
addWatchPage()
|
void
|
assertImagePresent(String imageName)
|
void
|
assertImageValid(String imgSrc, String imgAlt)
We override the default implementation of this method as it has a bug when dealing with relative URLs
Basically if we are on the page /display/blah.action and there is an image src with /images/blah.gif, the
default implementation will verify that the img src matches but will attempt to request the image at the URL
/display/images/blah.gif.
|
void
|
assertLoggedInAs(String username)
|
void
|
assertMailReceived()
|
void
|
assertNoMailReceived()
|
void
|
attachFile(File attachment, String comment)
Click the attach file link, attach a given file with a given comment and submit the attachment form.
|
void
|
attachFile(File attachment)
Click the attach file link, attach a given file with a given comment and submit the attachment form.
|
void
|
attachFileWithName(String fileName, InputStream in, String contentType, String comment)
Click the attach file link, attach a given file with a given comment and submit the attachment form.
|
String
|
chooseRandomBaseUrl()
Selects a baseurl from the available specified base urls.
|
void
|
cleanUp()
|
void
|
createBlog(String spaceKey, String title, String body)
|
void
|
createGroup(String group)
Create a group via the Web Interface.
|
void
|
createGroupViaHelper(String groupName)
Creates a group with the given name
|
void
|
createMail(File mail, String spaceKey)
|
ViewContentBean
|
createPage(String spaceKey, String title, String content, String parentPageTitle)
|
ViewContentBean
|
createPageWithViewRestrictions(String spaceKey, String title, String content, String parentPageTitle, String viewPermissionUsers)
|
void
|
createSpaceViaWebUI(String key, String name, String description)
|
void
|
createSpaceViaWebUI(String key, String name, String description, String spaceGroupKey)
|
void
|
createSpaceViaWebUi(Space space)
|
void
|
createTemplate(String spaceName, String templateTitle, String templateDescription, String templateContent)
|
void
|
createTestMailServer()
|
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
|
createUserViaHelper(String token, String username, String password, String fullName, String email)
Creates a new user with the given details.
|
void
|
createUserViaHelper(User user)
|
void
|
disableAnonymousAccess()
|
void
|
disableAnonymousAccessToSpace(String spaceKey)
|
void
|
editBlogLabels(String labels)
|
void
|
editBlogPostContent(String content)
|
EditContentBean
|
editPage(String spaceKey, String pageTitle)
|
void
|
editPageContent(String content)
|
void
|
editPageContent(String content, String comment)
|
void
|
editPageLabels(String labels)
|
void
|
editPageWithContent(String spaceKey, String title, String content)
|
void
|
editSpaceDescription(User user, String spaceKey, String newDescription)
|
void
|
editSpacePermsForm()
|
void
|
editUserViaHelper(User user)
Update the full name or e-mail address of a user
|
void
|
emptyTrash()
|
void
|
enableAnonymousAccess()
|
void
|
enableAnonymousAccessToSpace(String spaceKey)
|
void
|
ensureTestUserCanViewTestSpace()
|
void
|
ensureUserCanViewSpace(String user, String spaceTitle)
|
void
|
forceViewGlobalAdmin()
|
String
|
generateBaseUrl()
|
File
|
generateFile(String filename, String contents)
|
String
|
getAppContext()
|
String
|
getBaseUrl()
|
String
|
getConfiguredBaseUrl()
Returns the configured base URL in the Confluence app.
|
int
|
getCurrentMailQueueSize()
|
String
|
getFriendlyRelativeDate(Date now, Date date, TimeZone timeZone)
|
long
|
getPageId(String spaceKey, String title)
|
PluginHelper
|
getPluginHelper()
|
Space
|
getTestSpace()
|
String
|
getTodaysBlogPostDate()
|
Collection
|
getUserGroups(String username)
Return the groups to which the user belongs.
|
void
|
gotoPageWithError(String url)
|
void
|
grantAnonymousUseConfluencePermission()
|
void
|
grantGlobalBrowsePermissionToGroup(String groupName)
|
void
|
grantGlobalPermissionToGroup(String permissionType, String groupName)
|
void
|
grantGlobalPermissionToUser(String permissionType, String userName)
|
void
|
grantSpacePermissionToGroup(String spaceKey, String permissionType, String groupName)
Grant view space permissions and one other space permission to a specified group.
|
void
|
grantSpacePermissionToGroupAndDelegate(String spaceKey, String permissionType, String groupName)
|
void
|
grantSpacePermissionToUser(String spaceKey, String permissionType, String userName)
Grant view space permissions and one other space permission to a specified user.
|
void
|
grantSpacePermissionToUserAndDelegate(String spaceKey, String permissionType, String userName)
Grants space permissions to the user by delegating to the rpc equivalent.
|
void
|
grantViewSpacePermissionToGroup(String spaceKey, String groupName)
|
void
|
grantViewSpacePermissionToGroupAndDelegate(String spaceKey, String groupName)
|
void
|
grantViewSpacePermissionToUser(String spaceKey, String username)
|
void
|
importGlobalBackup(String importZipLocation, boolean waitForSuccess)
Perform a site import via the web ui.
|
void
|
importGlobalBackup(File backupFile, boolean waitForSuccess)
Import a global backup from a file.
|
void
|
importMail(String filePath, String spaceKey)
Creates mails in the specified space.
|
void
|
importMailAndAssertNoRunningTask(String filePath, String spaceKey)
Creates mails in the specified space and then checks if it
successfully moved to the No Long Running Task page.
|
void
|
importSpaceBackup(String importZipLocation, boolean waitForSuccess)
Import an xml exported space from the classpath into Confluence via the web ui.
|
boolean
|
isClustered()
|
void
|
logIn(User user, String destination)
Log in as the specified user, going to the provided URL (relative to the context path)
after logging in.
|
void
|
logIn(User user)
Log in as the specified user, going to the default start page.
|
void
|
logInAs(String username, String password, boolean rememberMe)
|
void
|
logInAs(String username, String password)
|
void
|
logInAsAdminAtDashboard()
|
void
|
logInAsAtDashboard(String username, String password)
|
void
|
loginAs(User user)
|
void
|
loginAsAtDashboard(User user)
|
void
|
loginAsTestUser()
|
void
|
loginAsTestUser2()
|
void
|
loginAsTestUserAtDashboard()
|
void
|
loginViaForm(String username, String password, boolean rememberMe)
|
void
|
logout()
|
static
Vector<Object>
|
makeParams(Object... params)
|
void
|
movePage(String spaceKey, String title, String newSpaceKey, boolean moveHierarchy)
|
void
|
movePage(String spaceKey, String title, String newSpaceName, String newParentPage)
|
void
|
movePageToNewParent(String oldSpaceKey, String title, String newSpaceKey, String newParentPage)
|
void
|
movePageToNewParent(String spaceKey, String title, String newParentPage)
|
void
|
movePageToNewSpace(String spaceKey, String title, String newSpaceKey)
|
void
|
openInsertImagePopup()
Clicks the "Insert Image" 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
|
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()
|
void
|
pause(long milliseconds)
We use pause because some databases store timestamps without milliseconds.
|
void
|
rebuildIndex()
|
void
|
removeAnonymousPermissionToSpace(String spaceKey, String permission)
|
void
|
removeBlog(String spaceKey, String postDateString, String postTitle)
This method is deprecated.
Use remove() instead.
|
void
|
removeGroup(String groupName)
Delete a group via the Web Interface.
|
void
|
removePageOrBlogById(long id)
|
void
|
removePersonalSpace(String username)
|
void
|
removeTestUser1()
Remove testUser1 via the Web Interface.
|
void
|
removeTestUser1ViaHelper(String token)
Removes the test user
|
void
|
removeUser(String username)
Remove a user via the Web Interface.
|
void
|
removeUserFromGroupViaHelper(String username, String groupname)
Removes the given user from the group
|
void
|
removeUserViaHelper(String username)
Removes a user with the given username
|
void
|
renamePage(String spaceKey, String originalPageTitle, String newPageTitle)
|
final
void
|
restoreBaseUrl()
Sets Confluence's baseUrl to whatever it is in the test properties.
|
void
|
revokeAnonymousUseConfluencePermission()
|
void
|
revokeGlobalPermissionFromGroup(String permissionType, String groupName)
Removes the specified global permission (from SpacePermission) from the given group name
|
void
|
revokeGlobalPermissionFromUser(String permissionType, User user)
Removes the specified global permission (from SpacePermission) from the given group name
|
void
|
revokeSpacePermissionFromGroup(String spaceKey, String permissionType, String groupName)
Remove a space permission from a specified group.
|
void
|
revokeSpacePermissionFromUser(String spaceKey, String permissionType, String userName)
Remove a space permission from a specified user.
|
Hashtable
|
rpcAddComment(String token, long pageId, long parentCommentId, String comment)
Adds a comment to a page via the XML-RPC interface
|
Hashtable
|
rpcAddComment(String token, String spaceKey, String pageTitle, String comment)
Adds a comment to a page via the XML-RPC interface
|
Hashtable
|
rpcAddComment(String token, long pageId, String comment)
Adds a comment to a page via the XML-RPC interface
|
void
|
rpcAddLabelToBlog(String token, String label, long blogId)
Adds a label to the blogpost with the given page ID
|
void
|
rpcAddLabelToPage(String token, String label, long pageId)
Adds a label to the Page with the given page ID
|
void
|
rpcAddLabelToPage(String token, String label, String spaceKey, 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(String token, String label, String spaceKey)
Adds a label to a space
|
String
|
rpcAddTestComment(String token)
|
void
|
rpcClearIndex()
|
void
|
rpcClearQueue(String token, String queueName)
|
void
|
rpcConvertToPersonalSpace(String token, String userName, String spaceKey, String newName, boolean updateLinks)
|
long
|
rpcCreateBlogPost(String token, String spaceKey, String postTitle, String postContent, Date lastModification)
|
long
|
rpcCreateBlogPost(String token, String spaceKey, String postTitle, String postContent)
Creates a new blog entry via the XML-RPC interface
|
long
|
rpcCreatePage(String token, String spaceKey, String title, String content)
Creates a page via the XML-RPC interface
|
long
|
rpcCreatePage(String token, String spaceKey, String title, String content, long parentPageId)
Creates a page via the XML-RPC interface
|
Hashtable
|
rpcCreatePersonalSpace(String token, String name, String description, String username)
Creates a personal space via the XML-RPC interface
|
Hashtable
|
rpcCreateSpace(String token, String key, String name, String description)
|
Hashtable
|
rpcCreateSpace(String token, String key, String name, String description, String spaceGroup)
Creates a space via the XML-RPC interface
|
Hashtable
|
rpcCreateSpaceGroup(String token, String key, String name)
|
Hashtable
|
rpcCreateTestSpace(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
|
Hashtable
|
rpcCreateTestSpace2(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(String token, long entryId, String newTitle, String newContent)
Modifies the page with the given details via the XML-RPC interface
|
Hashtable
|
rpcEditComment(String token, long pageId, long commentId, String comment)
|
void
|
rpcEditPage(String token, String spaceKey, String pageTitle, String newTitle, String newContent)
Modifies the page with the given details via the XML-RPC interface
|
void
|
rpcFlushAllCaches(String token)
Flush all the caches via rpc.
|
void
|
rpcFlushIndexQueue()
|
void
|
rpcFlushMailQueue()
This method is deprecated.
since 3.3
|
String
|
rpcGetAdminToken()
Retrieves a token for the admin user
|
long
|
rpcGetBlogPostId(String token, String spaceKey, int dayOfMonth, String postTitle)
Retrieves the ID of a blog post with the given details
|
Vector
|
rpcGetChildren(String token, long pageId)
Returns the ordered id list of pages that are direct children of a given page.
|
Vector
|
rpcGetComments(String token, String pageId)
|
String
|
rpcGetLocalisedText(String messageKey)
Returns the localised message text for the given key, retrieved from the application via RPC.
|
int
|
rpcGetMailQueueSize()
|
long
|
rpcGetPageId(String token, String spaceKey, String pageTitle)
Retrieves the page ID for a page with the given details
|
List
|
rpcGetPageLabels(String token, String spaceKey, 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
|
List
|
rpcGetPageLabels(String token, long pageId)
Retrieves the labels assigned to a Page with the given page ID
|
String
|
rpcGetTestUser2Token()
Retrieves a token for the test user 2
|
String
|
rpcGetTestUserToken()
Retrieves a token for the test user
|
Vector
|
rpcGetTopLevelPages(String token, String spaceKey)
Returns the ordered id list of top-level pages in a given space.
|
Vector
|
rpcGetUserGroups(String token, String username)
|
String
|
rpcGetUserToken(User user)
|
String
|
rpcGetUserToken(String username, String password)
Retrieves the user token for the given details, for use with the XML-RPC interface
|
List
|
rpcGetUsersForActivity(String key)
|
int
|
rpcGetVersionForPage(String token, long pageId)
|
void
|
rpcGrantAnonymousSpacePermission(String token, String permission, String spaceKey)
Grants the given permission to the anonymous user for the given space
|
void
|
rpcGrantGlobalPermission(String token, String permission, String entityName)
Grants the given global permission to a user.
|
void
|
rpcGrantSpacePermission(String token, String permission, String username, String spaceKey)
Grants the given permission to a user for a particular Space
|
void
|
rpcGrantViewSpacePermission(String token, String entityName, String spaceKey)
Convenience method for granting VIEWSPACE permission to a particular user
|
boolean
|
rpcHasGroup(String token, String groupName)
|
boolean
|
rpcHasUser(String token, String username)
|
void
|
rpcLogOutAdmin()
|
void
|
rpcMovePage(String token, long sourcePageId, long targetPageId, String position)
Moves a page to a location relative to another page.
|
void
|
rpcMovePageToTopLevel(String token, long pageId, String targetSpaceKey)
Moves a page to the top of a given space.
|
void
|
rpcPauseJob(String jobName)
|
void
|
rpcRemoveAllSpaceGroups(String token)
|
void
|
rpcRemoveAnonymousSpacePermission(String token, String permission, String spaceKey)
Removes the given permission for the anonymous user from the given space
|
void
|
rpcRemoveAttachment(String token, String attachmentFileName, long contentId)
Remove an attachment from a page or blog.
|
void
|
rpcRemoveComment(String token, long commentId)
Remove a comment, identified by its id.
|
void
|
rpcRemoveComment(String token, String commentContent, String spaceKey, String pageTitle)
Remove a comment, identified by its location and content, from a page.
|
void
|
rpcRemoveGlobalPermissions(String token, String permission, String username)
Removes the given global permission for a user
|
void
|
rpcRemoveGroup(String groupname)
Removes the given group
|
void
|
rpcRemoveLabelFromPage(String token, String label, long pageId)
Removes the given label from the page with the given page ID
|
void
|
rpcRemoveLabelFromPage(String token, String label, String spaceKey, String pageTitle)
|
void
|
rpcRemoveLabelFromSpace(String token, String label, String spaceKey)
Removes a label from a space
|
void
|
rpcRemovePage(String token, String spaceKey, long pageId)
|
void
|
rpcRemoveSpace(String token, String spaceKey)
Remove a space with the given key via the XML-RPC interface
|
void
|
rpcRemoveSpacePermission(String token, String permission, String username, String spaceKey)
Removes the given permission for a user for a particular Space
|
void
|
rpcRemoveUserUncleanly(String username)
Removes a user with the given username but do not remove their dependent permissions or pages.
|
void
|
rpcRenderContent(String token, String spaceKey, long pageId, String newContent)
|
void
|
rpcRestoreAbstractPage(long id)
|
void
|
rpcResumeJob(String jobName)
|
void
|
rpcStartActivity(String key, String user)
|
Hashtable
|
rpcStoreBlogEntry(String token, long pageId, String comment)
|
void
|
rpcTrashPage(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(String token, String spaceKey, 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
|
rpcTrashPage(String token, String pageId)
Trashes (removes) a page with the given ID
|
void
|
rpcTriggerJob(String jobName)
|
void
|
rpclogCommandOutput(String commandString)
|
void
|
search(String query)
|
void
|
setAllowCamelCase(boolean allow)
|
void
|
setApplicationConfigProperty(String propertyKey, String propertyValue)
|
void
|
setAttachmentMaxUploadSize(long max)
|
void
|
setCheckbox(boolean check, String checkBox)
|
void
|
setEditPermissionsForGroups(String spaceKey, String pageTitle, String groups)
|
void
|
setEditPermissionsForUsers(String spaceKey, String pageTitle, String users)
|
void
|
setElevatedSecurityCheck(boolean enabled, int loginAttempts)
|
void
|
setEnableWysiwyg(boolean enabled)
|
void
|
setMaxAttachmentsInUI(long max)
|
void
|
setPageLabels(String spaceKey, String pageTitle, String labels)
Add the specified label to the page via the pages edit view.
|
void
|
setRemoteApi(boolean enabled)
Logs in as the admin before setting the remote api.
|
void
|
setSharedMode(boolean enable)
|
void
|
setThreadedComments(boolean enable)
|
void
|
setUp()
|
void
|
setUp(String beginAt)
Default setUp method.
|
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.
|
void
|
setViewPermissionsForGroups(String spaceKey, String pageTitle, String groups)
|
void
|
setViewPermissionsForUsers(String spaceKey, String pageTitle, String users)
|
void
|
showAllUsers()
|
void
|
shutdownQuartz()
|
void
|
stopTestMailServer()
|
String
|
stripContext(String context, String url)
This function takes a URL like /context/foo/bar/baz..., and the context, and returns foo/bar/baz
|
void
|
tearDown()
Default tearDown method.
|
void
|
tearDownTestNG(Method method)
Called by TestNG, calls tearDown() on the current class,
prevents the need to put this annotation everywhere, and sets the test name
properly.
|
void
|
viewAbstractPage(long entityId)
Views the page for a Page or BlogPost (AbstractPage)
|
void
|
viewBlog(String spaceKey, String datePath, 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(String spaceKey, String labelName)
|
void
|
viewLanguages()
|
ViewContentBean
|
viewPage(String spaceKey, String pageTitle)
|
void
|
viewPeopleDirectory()
|
SpaceAdmin
|
viewSpaceAdmin()
|
void
|
viewSpaceAdvanced()
|
void
|
viewSpaceContent()
|
void
|
viewSpacePermissions(String spaceKey)
|
void
|
viewSpaceSummary()
|
void
|
viewSpaceSummary(String spaceKey)
|
void
|
viewTodaysBlog(String spaceKey, String title)
|
void
|
viewTrash()
|
void
|
viewUser(String name)
|
boolean
|
waitForLongRunningTaskToComplete(int timeout, String errorText)
Wait for the current long running task to complete.
|
ViewContentBean
|
watchPage(String spaceKey, String pageTitle)
|
void
|
watchSpace(Space space)
|
void
|
watchSpace(String spaceKey)
|
Object
|
xmlRpcExecute(String method, Vector params)
Wrapper for calling the xml rpc methods and handles the exceptions properly.
|