| java.lang.Object | |||||
| ↳ | junit.framework.Assert | ||||
| ↳ | junit.framework.TestCase | ||||
| ↳ | com.atlassian.confluence.ThreadLocalWebTestCase | ||||
| ↳ | com.atlassian.confluence.AbstractAtlassianWebTestCase | ||||
| ↳ | com.atlassian.confluence.AbstractConfluenceAcceptanceTest | ||||
This super class provides Confluence specific functions useful in acceptance tests.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.confluence.AbstractAtlassianWebTestCase
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| BLOG_DATE_FORMAT | |||||||||||
| CONFLUENCE_ADMIN_GROUP | |||||||||||
| CONFLUENCE_USERS_GROUP | |||||||||||
| CROWD_MODE | |||||||||||
| DIRECTORY_CONFIG | |||||||||||
| RANDOM | |||||||||||
| TESTMAILSERVER_HOSTNAME | |||||||||||
| TESTSPACE2_DESCRIPTION | |||||||||||
| TESTSPACE2_KEY | |||||||||||
| TESTSPACE2_TITLE | |||||||||||
| TESTSPACE_DESCRIPTION | |||||||||||
| TESTSPACE_KEY | |||||||||||
| TESTSPACE_TITLE | |||||||||||
| TEST_ADMIN | |||||||||||
| TEST_ADMIN_EMAIL | |||||||||||
| TEST_ADMIN_FULLNAME | |||||||||||
| TEST_ADMIN_PASSWORD | |||||||||||
| TEST_ADMIN_USERNAME | |||||||||||
| TEST_BLOG | |||||||||||
| TEST_COMMENT | |||||||||||
| TEST_GEN_EMAIL1 | |||||||||||
| TEST_GEN_EMAIL2 | |||||||||||
| TEST_GEN_FULLNAME1 | |||||||||||
| TEST_GEN_FULLNAME2 | |||||||||||
| TEST_GEN_PASSWORD1 | |||||||||||
| TEST_GEN_PASSWORD2 | |||||||||||
| TEST_GEN_USERNAME1 | |||||||||||
| TEST_GEN_USERNAME2 | |||||||||||
| TEST_PAGE | |||||||||||
| TEST_SPACE | |||||||||||
| TEST_SPACE2 | |||||||||||
| TEST_USER1 | |||||||||||
| TEST_USER2 | |||||||||||
| adminConsole | |||||||||||
| adminToken | |||||||||||
| context | |||||||||||
| filesToDelete | |||||||||||
| log | |||||||||||
| logAdjuster | Can be used by subclasses to turn logging on the server up or down for just one test. | ||||||||||
| mailServices | |||||||||||
| rpc | |||||||||||
| testUser2Token | |||||||||||
| testUserToken | |||||||||||
| userHelper | |||||||||||
| wikiMarkupRpc | Use this for tests where you want to create pages/comments/blogs using wikimarkup. | ||||||||||
| xmlrpc |
This field is deprecated.
use rpc instead.
|
||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.confluence.AbstractAtlassianWebTestCase
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Should use
addComment() instead.
| |||||||||||
Adds the given user to a groupname
| |||||||||||
Provide our own implementation of
assertImagePresent(String, String) that asserts the image name with
a contains check rather than equals. | |||||||||||
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.
| |||||||||||
This method is deprecated.
since 4.0. Use
isLoggedInAs(String) and assertTrue.
| |||||||||||
Click the attach file link, attach a given file with a given comment and submit the attachment form.
| |||||||||||
Click the attach file link, attach a given file with a given comment and submit the attachment form.
| |||||||||||
Click the attach file link, attach a given file with a given comment and submit the attachment form.
| |||||||||||
Selects a baseurl from the available specified base urls.
| |||||||||||
Create a group via the Web Interface.
| |||||||||||
Creates a group with the given name
| |||||||||||
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)
| |||||||||||
Creates a new user with the given details.
| |||||||||||
Sets content via RPC, as the admin user.
| |||||||||||
Edits content on the form, and submits the form as the current user.
| |||||||||||
This method is deprecated.
since 3.5 permissions should be granted using
grantPermission(com.atlassian.confluence.it.SpacePermission, User)
(which already ensures that users can view a space before other permissions are granted)
| |||||||||||
Returns base url that is used in tests.
| |||||||||||
Returns the configured base URL in the Confluence app.
| |||||||||||
Use the
FriendlyDateFormatter to format the date relative to the "now" time. | |||||||||||
This method is deprecated.
since 3.5 use
grantPermission(GlobalPermission, Group) instead
| |||||||||||
This method is deprecated.
since 3.5 use
grantPermission(GlobalPermission, Group) instead
| |||||||||||
This method is deprecated.
since 3.5 use
grantPermission(GlobalPermission, User) instead
| |||||||||||
Grant view space permissions and one other space permission to a specified group.
| |||||||||||
Grant view space permissions and one other space permission to a specified user.
| |||||||||||
Grants space permissions to the user by delegating to the rpc equivalent.
| |||||||||||
This method is deprecated.
since 3.5 use
grantPermission(com.atlassian.confluence.it.SpacePermission, Group) instead
| |||||||||||
This method is deprecated.
since 3.5 use
grantPermission(com.atlassian.confluence.it.SpacePermission, User) instead
| |||||||||||
This method is deprecated.
since 4.1 use an
Importer instead.
| |||||||||||
Creates mails in the specified space.
| |||||||||||
Creates mails in the specified space and then checks if it
successfully moved to the No Long Running Task page.
| |||||||||||
Log in as the specified user, going to the provided URL (relative to the context path)
after logging in.
| |||||||||||
Log in as the specified user, going to the default start page.
| |||||||||||
This method is deprecated.
Use
rpc instead.
| |||||||||||
Delete a group via the Web Interface.
| |||||||||||
Remove testUser1 via the Web Interface.
| |||||||||||
Removes the test user
| |||||||||||
Remove a user via the Web Interface.
| |||||||||||
Removes the given user from the group
| |||||||||||
Removes a user with the given username
| |||||||||||
This method is deprecated.
since 3.5 use
revokePermission(GlobalPermission, Entity) instead
| |||||||||||
This method is deprecated.
since 3.5 use
revokePermission(GlobalPermission, Entity) instead
| |||||||||||
Remove a space permission from a specified group.
| |||||||||||
Remove a space permission from a specified user.
| |||||||||||
Adds a comment to a page via the XML-RPC interface
| |||||||||||
Adds a comment to a page via the XML-RPC interface
| |||||||||||
Adds a comment to a page via the XML-RPC interface
| |||||||||||
Adds a label to the blogpost with the given page ID
| |||||||||||
Adds a label to the Page with the given page ID
| |||||||||||
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
| |||||||||||
Adds a label to a space
| |||||||||||
Creates a new blog entry via the XML-RPC interface
| |||||||||||
This method is deprecated.
use
createPage(String, String, String, long) instead.
| |||||||||||
This method is deprecated.
use
createPage(String, String, String, long) instead.
| |||||||||||
Creates a personal space via the XML-RPC interface
| |||||||||||
This method is deprecated.
Use
createSpace(com.atlassian.confluence.it.Space) instead.
| |||||||||||
This method is deprecated.
Use
createSpace(com.atlassian.confluence.it.Space) instead.
| |||||||||||
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
| |||||||||||
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
| |||||||||||
Modifies the page with the given details via the XML-RPC interface
| |||||||||||
This method is deprecated.
use
editPage(com.atlassian.confluence.it.Space, String, String, String) instead
| |||||||||||
This method is deprecated.
use
flushIndexQueue() instead.
| |||||||||||
This method is deprecated.
since 3.3
| |||||||||||
Retrieves a token for the admin user
| |||||||||||
Retrieves the ID of a blog post with the given details
| |||||||||||
Returns the ordered id list of pages that are direct children of a given page.
| |||||||||||
Returns the localised message text for the given key, retrieved from the application via RPC.
| |||||||||||
Retrieves the page ID for a page with the given details
| |||||||||||
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
| |||||||||||
Retrieves the labels assigned to a Page with the given page ID
| |||||||||||
Retrieves a token for the test user 2
| |||||||||||
Retrieves a token for the test user
| |||||||||||
Returns the ordered id list of top-level pages in a given space.
| |||||||||||
Retrieves the user token for the given details, for use with the XML-RPC interface
| |||||||||||
Grants the given permission to the anonymous user for the given space
| |||||||||||
Grants the given global permission to a user.
| |||||||||||
Grants the given permission to a user for a particular Space
| |||||||||||
Convenience method for granting VIEWSPACE permission to a particular user
| |||||||||||
Moves a page to the top of a given space.
| |||||||||||
Removes the given permission for the anonymous user from the given space
| |||||||||||
Remove an attachment from a page or blog.
| |||||||||||
Removes the given global permission for a user
| |||||||||||
Removes the given group
| |||||||||||
Removes the given label from the page with the given page ID
| |||||||||||
Removes a label from a space
| |||||||||||
This method is deprecated.
use
removePage(long) instead.
| |||||||||||
This method is deprecated.
use
removeSpace(String) instead.
| |||||||||||
Removes the given permission for a user for a particular Space
| |||||||||||
Trashes (removes) a page with the given ID
This method converts the long into a String and calls the appropriate rpcTrashPage method
| |||||||||||
Trashes (removes) a page with the given details
This method retrieves the page with the given details and calls the appropriate rpcTrashPage method
| |||||||||||
Trashes (removes) a page with the given ID
| |||||||||||
Add the specified labels to the blog
| |||||||||||
This method is deprecated.
Use
grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, ContentEntity)
| |||||||||||
This method is deprecated.
Use
grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, ContentEntity)
| |||||||||||
Add the specified labels to the page
| |||||||||||
This method is deprecated.
Use
grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, ContentEntity)
| |||||||||||
This method is deprecated.
Use
grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, ContentEntity)
| |||||||||||
Views the edit blog post page for the post with the given ID
| |||||||||||
This method is deprecated.
since 3.5 use
viewSpacePermissions(com.atlassian.confluence.it.Space) instead
| |||||||||||
This method is deprecated.
call ConfluenceRpc#execute(String, Object...) or ConfluenceRpc#executeFuncTest(String, Object...) instead.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Starts up and configures a new mail server which will be pulled back down during
tearDown(). | |||||||||||
This method is deprecated.
since 4.1 use an
Importer instead.
| |||||||||||
This method is deprecated.
since 4.1 use an
Importer instead.
| |||||||||||
This method is deprecated.
use
flushAllCaches() instead.
| |||||||||||
Moves a page to a location relative to another page.
| |||||||||||
Remove a comment, identified by its id.
| |||||||||||
Remove a comment, identified by its location and content, from a page.
| |||||||||||
Default setUp method.
| |||||||||||
Called by TestNG, calls setUp() on the current class,
prevents the need to put this annotation everywhere, and sets the test name
properly.
| |||||||||||
Default tearDown method.
| |||||||||||
Called by TestNG, calls tearDown() on the current class,
prevents the need to put this annotation everywhere, and sets the test name
properly.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.confluence.AbstractAtlassianWebTestCase
| |||||||||||
From class
com.atlassian.confluence.ThreadLocalWebTestCase
| |||||||||||
From class
junit.framework.TestCase
| |||||||||||
From class
junit.framework.Assert
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
junit.framework.Test
| |||||||||||
Can be used by subclasses to turn logging on the server up or down for just one test.
resetLogLevels() is called in tearDown().
Use this for tests where you want to create pages/comments/blogs using wikimarkup.
Adds the given user to a groupname
| username | the username of the user to be added |
|---|---|
| groupname | the group the user should be added to |
Provide our own implementation of assertImagePresent(String, String) that asserts the image name with
a contains check rather than equals.
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. The bug is in the method #createUrl(String, URL)Click the attach file link, attach a given file with a given comment and submit the attachment form.
| attachment | the file attachment |
|---|---|
| comment | the comment for the attachment |
Click the attach file link, attach a given file with a given comment and submit the attachment form.
| attachment | the file attachment |
|---|
Click the attach file link, attach a given file with a given comment and submit the attachment form.
| fileName | the filename to attach |
|---|---|
| in | the stream to read the file |
| contentType | the content type of the attachment |
| comment | a comment for this attachment |
Selects a baseurl from the available specified base urls. Base urls are specified by
properties of the form baseurl, baseurl2 etc. The randomness is introduced by RANDOM
which is created with a seed that is logged so that the tests may be reproduced by passing
a test property named "seed".
Create a group via the Web Interface. This should only be used where the web interface itself is being tested. It cannot be used when the UserRepository being tested is unmodifiable.
Creates a group with the given name
| groupName | the name of the group to be created |
|---|
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)
Creates a new user with the given details. Depending on the value of the ldapMode test property the
user is created in an ldap repository or via the XML-RPC interface.
| token | the authentication token |
|---|---|
| username | the username of the new user |
| password | the password of the new user |
| fullName | the full name of the new user |
| the email of the new user |
Edits content on the form, and submits the form as the current user.
This method is deprecated.
since 3.5 permissions should be granted using
grantPermission(com.atlassian.confluence.it.SpacePermission, User)
(which already ensures that users can view a space before other permissions are granted)
Returns base url that is used in tests.
Note that in case of cluster it will return a base url of the node that the current test is running against.
For configured base url please use getConfiguredBaseUrl() method.
Returns the configured base URL in the Confluence app. This is the same as the base URL of node #1 in a cluster.
Use the FriendlyDateFormatter to format the date relative to the "now" time.
Note that the output format varies greatly even from second to second -- see FriendlyDateFormatter.
| now | the date which the relative time is calculated in relation to |
|---|---|
| date | the date of some event which is to be formatted |
| timeZone | the current time zone |
Grant view space permissions and one other space permission to a specified group. Grants the permission via the web interface. Must already be logged in as a user with permission to set permissions on the space. Group must not already have view space permissions for the space.
| spaceKey | the key of the existing space. |
|---|---|
| permissionType | one of the strings in SpacePermission,
eg SYSTEM_ADMINISTRATOR_PERMISSION |
| groupName | The name of the group. |
Grant view space permissions and one other space permission to a specified user. Grants the permission via the web interface. Must already be logged in as a user with permission to set permissions on the space. User must not already have view space permissions for the space.
| spaceKey | the key of the existing space. |
|---|---|
| permissionType | one of the strings in SpacePermission,
eg SYSTEM_ADMINISTRATOR_PERMISSION |
| userName | The name of the user. |
Grants space permissions to the user by delegating to the rpc equivalent. Used to minify the amount of changes required for many existing calls.
| spaceKey | to grant the space permission to |
|---|---|
| permissionType | to grant |
| userName | the name of the user to grant the permission to. |
This method is deprecated.
since 3.5 use grantPermission(com.atlassian.confluence.it.SpacePermission, Group) instead
This method is deprecated.
since 3.5 use grantPermission(com.atlassian.confluence.it.SpacePermission, User) instead
This method is deprecated.
since 4.1 use an Importer instead.
Perform a site import via the web ui. Logs in as admin first. After the import is performed, the admin user logs in again and the base url setting is restored.
If waiting for success, the method relies on being the only import process running at the time,
since it waits for an ImportFinishedEvent.
| importZipLocation | zip file location relative to classpath |
|---|---|
| waitForSuccess | synchronously wait for the export to complete |
| InterruptedException |
|---|
Creates mails in the specified space. Mail import can be done with an Mbox file or single mail. No explicit assertions are made by this method.
| filePath | the file path to the mailbox |
|---|---|
| spaceKey | the space key to import into |
Creates mails in the specified space and then checks if it successfully moved to the No Long Running Task page. Mail import can be done with an Mbox file or single mail.
| filePath | the file path to the mailbox |
|---|---|
| spaceKey | the space key to import into |
Log in as the specified user, going to the provided URL (relative to the context path) after logging in.
| user | the user to log in as. |
|---|---|
| destination | where to go after logging in. Pass 'null' to go to the default homepage. |
Log in as the specified user, going to the default start page.
| user | the user to log in as. |
|---|
This method is deprecated.
Use rpc instead.
Convert the given params into a Vector.
| params | the params. |
|---|
Delete a group via the Web Interface. This should only be used where the web interface itself is being tested. It cannot be used when the UserRepository being tested is unmodifiable.
Remove testUser1 via the Web Interface. This should only be used where the web interface itself is being tested. It cannot be used when the UserRepository being tested is unmodifiable.
Removes the test user
| token | the authentication token |
|---|
Remove a user via the Web Interface. This should only be used where the web interface itself is being tested. It cannot be used when the UserRepository being tested is unmodifiable.
Removes the given user from the group
| username | the username of the user to be removed |
|---|---|
| groupname | the name of the group the user should be removed from |
Removes a user with the given username
| username | the username of the user to remove |
|---|
This method is deprecated.
since 3.5 use revokePermission(GlobalPermission, Entity) instead
Removes the specified global permission (from SpacePermission) from the given group name
| permissionType | the permissiont type |
|---|---|
| groupName | the group to remove the permission from |
This method is deprecated.
since 3.5 use revokePermission(GlobalPermission, Entity) instead
Removes the specified global permission (from SpacePermission) from the given group name
| permissionType | the permission type to remove |
|---|---|
| user | who will lose the permission |
Remove a space permission from a specified group. Removes the permission via the web interface. Must already be logged in as a group with permission to set permissions on the space.
| spaceKey | the key of the existing space. |
|---|---|
| permissionType | one of the strings in SpacePermission,
eg SYSTEM_ADMINISTRATOR_PERMISSION |
| groupName | The name of the group. |
Remove a space permission from a specified user. Removes the permission via the web interface. Must already be logged in as a user with permission to set permissions on the space.
| spaceKey | the key of the existing space. |
|---|---|
| permissionType | one of the strings in SpacePermission,
eg SYSTEM_ADMINISTRATOR_PERMISSION |
| userName | The name of the user. |
Adds a comment to a page via the XML-RPC interface
| token | the authentication token |
|---|---|
| pageId | the ID of the page to add the comment to |
| parentCommentId | the ID of the parent comment to add the comment to |
| comment | the text of the comment |
Adds a comment to a page via the XML-RPC interface
| token | the authentication token |
|---|---|
| spaceKey | the space key of the page |
| pageTitle | the title of the page |
| comment | the text of the comment |
Adds a comment to a page via the XML-RPC interface
| token | the authentication token |
|---|---|
| pageId | the ID of the page to add the comment to |
| comment | the text of the comment |
Adds a label to the blogpost with the given page ID
| token | the authentication token |
|---|---|
| label | the label to be added to the Page |
| blogId | the ID of the page |
Adds a label to the Page with the given page ID
| token | the authentication token |
|---|---|
| label | the label to be added to the Page |
| pageId | the ID of the page |
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| token | the authentication token |
|---|---|
| label | the label to be added to the page |
| spaceKey | the key of the Space the page is located in |
| pageTitle | the title of the Page |
Adds a label to a space
| token | the token identifying the user |
|---|---|
| label | the label name (namespaces allowed) |
| spaceKey | the space key |
Creates a new blog entry via the XML-RPC interface
| token | the authentication token |
|---|---|
| spaceKey | the key of the Space the blog entry will be created in |
| postTitle | the title of the post to be created |
| postContent | the content of the post to be created |
This method is deprecated.
use createPage(String, String, String, long) instead.
Creates a page via the XML-RPC interface
| token | the authentication token |
|---|---|
| spaceKey | the key for the space the page will be created in |
| title | the title of the new page |
| content | the content of the new page |
This method is deprecated.
use createPage(String, String, String, long) instead.
Creates a page via the XML-RPC interface
| token | the authentication token |
|---|---|
| spaceKey | the key for the space the page will be created in |
| title | the title of the new page |
| content | the content of the new page |
| parentPageId | the id of the parent page, 0 if none. |
Creates a personal space via the XML-RPC interface
| token | the authentication token |
|---|---|
| name | the name of the Space |
| description | the description of the Space |
| username | name of the user to own the space |
This method is deprecated.
Use createSpace(com.atlassian.confluence.it.Space) instead.
Creates a space via the XML-RPC interface
| token | the authentication token |
|---|---|
| key | the key of the Space |
| name | the name of the Space |
| description | the description of the Space |
| spaceGroup | the space group key, can be null |
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| token | the authentication 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| token | the authentication token |
|---|
Modifies the page with the given details via the XML-RPC interface
| token | the authentication token |
|---|---|
| entryId | the ID of the blog entry |
| newTitle | the new title of the Blog Post (null if the same) |
| newContent | the new content of the Blog Post (null if the same) |
This method is deprecated.
use editPage(com.atlassian.confluence.it.Space, String, String, String) instead
Modifies the page with the given details via the XML-RPC interface
| token | the authentication token |
|---|---|
| spaceKey | the key of the Space the Page is in |
| pageTitle | the current title of the Page |
| newTitle | the new title of the Page (null if the same) |
| newContent | the new content of the Page (null if the same) |
Retrieves a token for the admin user
Retrieves the ID of a blog post with the given details
| token | the authentication token |
|---|---|
| spaceKey | the key of the Space the blog post is located int |
| dayOfMonth | the day of the month the blog post was made |
| postTitle | the title of the blog post |
Returns the ordered id list of pages that are direct children of a given page.
| token | the authentication token |
|---|---|
| pageId | the page to find children for |
Returns the localised message text for the given key, retrieved from the application via RPC. The message will be localised to the administrator's locale.
If the key is not found, the key itself will be returned, as pergetText(String).| messageKey | the message key to internationalise. |
|---|
Retrieves the page ID for a page with the given details
| token | the authentication token |
|---|---|
| spaceKey | the key of the Space the Page is located in |
| pageTitle | the title of the page |
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| token | the authentication token |
|---|---|
| spaceKey | the key of the space the Page is located in |
| pageTitle | the title of the Page |
Retrieves the labels assigned to a Page with the given page ID
| token | the authentication token |
|---|---|
| pageId | the ID of the page |
Retrieves a token for the test user 2
Retrieves a token for the test user
Returns the ordered id list of top-level pages in a given space.
| token | the authentication token |
|---|---|
| spaceKey | the key of the space to find top-level pages for |
Retrieves the user token for the given details, for use with the XML-RPC interface
| username | the username |
|---|---|
| password | the password |
Grants the given permission to the anonymous user for the given space
| token | the token identifying the current user |
|---|---|
| permission | the permission to give the anonymous user |
| spaceKey | the space to grant the permission on |
Grants the given global permission to a user.
| token | the authentication token |
|---|---|
| permission | the String corresponding to the permission |
| entityName | the username or group name to grant the permission to |
Grants the given permission to a user for a particular Space
| token | the authentication token |
|---|---|
| permission | the String corresponding to the permission |
| username | the user to grant the permission to |
| spaceKey | the key of the Space to grant the permission in |
Convenience method for granting VIEWSPACE permission to a particular user
| token | the authentication token |
|---|---|
| entityName | the username or group name |
| spaceKey | the key of the Space to grant the permission in |
Moves a page to the top of a given space.
| token | the authentication token |
|---|---|
| pageId | the id of the page being moved |
| targetSpaceKey | the space to move the page to |
Removes the given permission for the anonymous user from the given space
| token | the token identifying the current user |
|---|---|
| permission | the permission to remove |
| spaceKey | the space to remove the permission on |
Remove an attachment from a page or blog.
| attachmentFileName | The name of the attachment |
|---|---|
| contentId | the id of the page or blogpost to which the file is currently attached |
Removes the given global permission for a user
| token | the authentication token |
|---|---|
| permission | the String corresponding to the permission |
| username | the user to remove the permission from |
Removes the given group
| groupname | the group to be removed |
|---|
Removes the given label from the page with the given page ID
| token | the authentication token |
|---|---|
| label | the label name to be removed |
| pageId | the page ID of the page with the label |
Removes a label from a space
| token | the token identifying the user |
|---|---|
| label | the label name (namespaces allowed) |
| spaceKey | the space key |
This method is deprecated.
use removeSpace(String) instead.
Remove a space with the given key via the XML-RPC interface
| token | the authentication token |
|---|---|
| spaceKey | the space to remove |
Removes the given permission for a user for a particular Space
| token | the authentication token |
|---|---|
| permission | the String corresponding to the permission |
| username | the user to remove the permission from |
| spaceKey | the key of the Space to grant the permission in |
| IOException | |
|---|---|
| XmlRpcException |
Trashes (removes) a page with the given ID
This method converts the long into a String and calls the appropriate rpcTrashPage method| token | the authentication token |
|---|---|
| pageId | ID of the page to be trashed |
Trashes (removes) a page with the given details
This method retrieves the page with the given details and calls the appropriate rpcTrashPage method| token | the authentication token |
|---|---|
| spaceKey | key of the Space the page is in |
| pageTitle | title of the page to be trashed |
Trashes (removes) a page with the given ID
| token | the authentication token |
|---|---|
| pageId | ID of the page to be trashed |
Add the specified labels to the blog
| spaceKey | the space key |
|---|---|
| blogTitle | the blog title |
| labels | the labels |
| JSONException |
|---|
This method is deprecated.
Use grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, ContentEntity)
Edit the permissions of the specified page as the current user.
One doesn't need to navigate to the page before calling this method.
| spaceKey | the space the page belongs to |
|---|---|
| pageTitle | the title of the page |
| groups | the groups to restrict edit permissions to as a comma separated list of group names. |
This method is deprecated.
Use grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, ContentEntity)
Edit the permissions of the specified page as the current user.
One doesn't need to navigate to the page before calling this method.
| spaceKey | the space the page belongs to |
|---|---|
| pageTitle | the title of the page |
| users | the users to restrict edit permissions to as a comma separated list of usernames. |
Add the specified labels to the page
| spaceKey | the space key |
|---|---|
| pageTitle | the page title |
| labels | the labels |
| JSONException |
|---|
This method is deprecated.
Use grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, ContentEntity)
Edit the permissions of the specified page as the current user.
One doesn't need to navigate to the page before calling this method.
| spaceKey | the space the page belongs to |
|---|---|
| pageTitle | the title of the page |
| groups | the groups to restrict view permissions to as a comma separated list of group names. |
This method is deprecated.
Use grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, ContentEntity)
Edit the permissions of the specified page as the current user.
One doesn't need to navigate to the page before calling this method.
| spaceKey | the space the page belongs to |
|---|---|
| pageTitle | the title of the page |
| users | the users to restrict view permissions to as a comma separated list of usernames. |
Views the edit blog post page for the post with the given ID
| entryId | the ID of the blog post |
|---|
This method is deprecated.
since 3.5 use viewSpacePermissions(com.atlassian.confluence.it.Space) instead
This method is deprecated.
call ConfluenceRpc#execute(String, Object...) or ConfluenceRpc#executeFuncTest(String, Object...) instead.
Wrapper for calling the xml rpc methods and handles the exceptions properly.
| method | the method Name |
|---|---|
| params | the method parameters |
Starts up and configures a new mail server which will be pulled back down during tearDown().
| Exception |
|---|
This method is deprecated.
since 4.1 use an Importer instead.
Import a global backup from a file. This differs from the method that takes a string as the file may not be in the classpath. For example it could be a tempfile we created in a previous backup during the same test. This method also overwrites any directory configuration contained in the backup.
| backupFile | the backup file to import. |
|---|---|
| waitForSuccess | synchronously wait for the export to complete |
| InterruptedException |
|---|
This method is deprecated.
since 4.1 use an Importer instead.
Import an xml exported space from the classpath into Confluence via the web ui. Logs in as admin first.
If waiting for success, the method relies on being the only import process running at the time,
since it waits for an ImportFinishedEvent.
| importZipLocation | zip file location relative to classpath |
|---|---|
| waitForSuccess | synchronously wait for the export to complete |
| InterruptedException |
|---|
This method is deprecated.
use flushAllCaches() instead.
Flush all the caches via rpc. Note that this clears all the cached rpc tokens.
| token | of the user who is flushing the caches. |
|---|
| IOException | e |
|---|---|
| XmlRpcException | e |
Moves a page to a location relative to another page.
| token | the authentication token |
|---|---|
| sourcePageId | the id of the page being moved |
| targetPageId | the id of the page the source page is moved in relation to |
| position | the relative position to move to, see MovePageCommand
|
| XmlRpcException |
|---|
Remove a comment, identified by its id.
| token | authentication token of user |
|---|---|
| commentId | the id of the comment to remove |
| AssertionFailedError | if the comment cannot be found or removed. |
|---|---|
| IOException | |
| XmlRpcException |
Remove a comment, identified by its location and content, from a page.
| token | authentication token of user |
|---|---|
| commentContent | content of the comment to remove. This is used to identify the comment |
| spaceKey | identifies the space containing the comment |
| pageTitle | identifies the page |
| AssertionFailedError | if the comment cannot be found or removed. |
|---|---|
| IOException | |
| XmlRpcException |
| InterruptedException | |
|---|---|
| XmlRpcException |
Default setUp method. Establishes XML-RPC connection and sets the base URL. Also configures LDAP repository.
| beginAt | the initial path (relative to the context path) to begin at |
|---|
| Exception | from super |
|---|
Called by TestNG, calls setUp() on the current class, prevents the need to put this annotation everywhere, and sets the test name properly.
| Exception |
|---|
Default tearDown method. Removes any files which were added to the filesToDelete list.
| Exception |
|---|
Called by TestNG, calls tearDown() on the current class, prevents the need to put this annotation everywhere, and sets the test name properly.
| Exception |
|---|