|
void
|
addAnonymousPermissionsToSpace(String spaceKey, Vector permissions)
|
|
void
|
addComment(String spaceKey, String pageTitle, String comment)
|
|
void
|
addCommentToBlogPost(String spaceKey, String newsTitle, 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
|
assertLinkPresentWithExactTextAndClass(String linkText, String cls)
|
|
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
|
createBlog(String spaceKey, String spaceTitle, String title, String body)
|
|
void
|
createBlogInTestSpace(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(Space space)
|
|
void
|
createSpaceViaWebUI(String key, String name, String description)
|
|
void
|
createSpaceViaWebUI(String key, String name, String description, String spaceGroupKey)
|
|
void
|
createTemplate(String spaceName, String templateTitle, String templateDescription, String templateContent)
|
|
void
|
createTestMailServer()
Starts up and configures a new mail server which will be pulled back down during tearDown().
|
|
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
|
editBlog(String spaceKey, String title, String content)
|
|
void
|
editBlogLabels(String labels)
|
|
EditContentBean
|
editPage(String spaceKey, String pageTitle)
|
|
void
|
editPageContent(String content)
Sets content via RPC, as the admin user.
|
|
void
|
editPageContentViaForm(String content)
Edits content on the form, and submits the form as the current user.
|
|
void
|
editPageWithContent(String spaceKey, String title, String content)
|
|
void
|
editSpaceDescription(User user, String spaceKey, String newDescription)
|
|
void
|
editSpacePermsForm()
|
|
void
|
enableAnonymousAccess()
|
|
void
|
enableAnonymousAccessToSpace(String spaceKey)
|
|
void
|
ensureTestUserCanViewTestSpace()
|
|
void
|
forceViewGlobalAdmin()
|
|
String
|
generateBaseUrl()
|
|
File
|
generateFile(String filename, String contents)
|
|
String
|
getAppContext()
|
|
String
|
getBaseUrl()
Returns base url that is used in tests.
|
|
String
|
getConfiguredBaseUrl()
Returns the configured base URL in the Confluence app.
|
|
int
|
getCurrentMailQueueSize()
|
|
long
|
getCurrentPageId()
|
|
String
|
getFriendlyRelativeDate(Date now, Date date, TimeZone timeZone)
|
|
long
|
getPageId(String spaceKey, String title)
|
|
PluginHelper
|
getPluginHelper()
|
|
String
|
getTodaysBlogPostDate()
|
|
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)
This method is deprecated.
since 4.1 use an Importer instead.
|
|
void
|
importGlobalBackup(File backupFile, boolean waitForSuccess)
This method is deprecated.
since 4.1 use an Importer instead.
|
|
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)
This method is deprecated.
since 4.1 use an Importer instead.
|
|
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)
This method is deprecated.
Use rpc instead.
|
|
void
|
movePage(String spaceKey, String title, String newSpaceKey)
|
|
void
|
movePage(String title, Space oldSpace, Space newSpace)
|
|
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
|
rebuildIndex()
|
|
void
|
removeAnonymousPermissionToSpace(String spaceKey, String permission)
|
|
void
|
removeGroup(String groupName)
Delete a group via the Web Interface.
|
|
void
|
removePageLabel(String spaceKey, String pageTitle)
|
|
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)
|
|
void
|
revokeAnonymousUseConfluencePermission()
|
|
void
|
revokeGlobalPermissionFromGroup(String permissionType, String groupName)
|
|
void
|
revokeGlobalPermissionFromUser(String permissionType, User user)
|
|
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)
|
|
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)
|
|
long
|
rpcCreatePage(String token, String spaceKey, String title, String content, long parentPageId)
|
|
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)
|
|
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
|
|
long
|
rpcCreateXhtmlPage(String token, String spaceKey, String title, String content)
|
|
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)
|
|
void
|
rpcFlushAllCaches(String token)
|
|
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
|
|
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
|
rpcLogOut(String token)
|
|
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)
|
|
void
|
rpcRemoveSpacePermission(String token, String permission, String username, String spaceKey)
Removes the given permission for a user for a particular Space
|
|
void
|
rpcRenderContent(String token, String spaceKey, long pageId, String newContent)
|
|
void
|
rpcRestoreAbstractPage(long id)
|
|
void
|
rpcResumeJob(String jobName)
|
|
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
|
setApplicationConfigProperty(String propertyKey, String propertyValue)
|
|
void
|
setAttachmentMaxUploadSize(long max)
|
|
JSONObject
|
setBlogLabels(String spaceKey, String blogTitle, String labels)
Add the specified labels to the blog
|
|
void
|
setCheckbox(boolean check, String checkBox)
|
|
void
|
setEditPermissionsForGroups(String spaceKey, String pageTitle, String groups)
|
|
void
|
setEditPermissionsForUsers(String spaceKey, String pageTitle, String users)
|
|
void
|
setMaxAttachmentsInUI(long max)
|
|
JSONObject
|
setPageLabels(String spaceKey, String pageTitle, String labels)
Add the specified labels to the page
|
|
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()
|
|
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
|
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()
|
|
GlobalPermissions
|
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()
|
|
SpacePermissions
|
viewSpacePermissions(Space space)
|
|
void
|
viewSpacePermissions(String spaceKey)
|
|
void
|
viewSpaceSummary()
|
|
void
|
viewSpaceSummary(String spaceKey)
|
|
ViewContentBean
|
viewTodaysBlog(String spaceKey, String title)
|
|
void
|
viewTrash()
|
|
void
|
viewUser(String name)
|
|
ViewContentBean
|
watchPage(String spaceKey, String pageTitle)
|
|
void
|
watchSpace(Space space)
|
|
void
|
watchSpace(String spaceKey)
|
|
String
|
withParagraph(String value)
|
|
Object
|
xmlRpcExecute(String method, Vector params)
This method is deprecated.
call ConfluenceRpc#execute(String, Object...) or ConfluenceRpc#executeFuncTest(String, Object...) instead.
|