Create large page counts in Confluence using REST Client for Testing.

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

No Support for Client

This client is not officially supported by Atlassian and as such any issues noted during usage may not be supported by the official support team.

Solution

Confluence Testing and Page Creation

While testing Confluence if there is a a requirement to create large number of pages within Confluence in a matter of minutes, you can use the below utility to perform this operation. This is a java based client that can sent REST api calls to Confluence server to rapidly create any number of pages. This can come in handy for load testing and in scenarios where the user would like to monitor the performance of the server or to simply mimic a heavy traffic. This can also be used in environments where a third party utility like Postman etc are blocked from use. The parameters for the client are all configurable and can run on any java based environment.

Client Usage:

Upon downloading the above utility, you can run the following command to execute the application:

Java Page Creation Utility

1 java -Jar CssConfluencePageCountCreator.jar

Once started, the client will start requesting for details about your instance. You would notice the following details being requested:

(Auto-migrated image: description temporarily unavailable)

Once the above details are provided, the utility will print the values back on the screen with a base64 encoded password for the username/password supplied, like below:

(Auto-migrated image: description temporarily unavailable)

The following are the questions requested by the utility and the details about their expected response:

Domain name and port

Provide the domain ip address, name and port in the format. Domain_name:port. If there is a context involved, provide this as well, as shown in the above screenshot.

Username and Password:

Provide the username and password. The utility does not have a database and this information is not persisted anywhere. This information will be converted into Base64 value for authentication with the REST server.

Space Key:

The key value of the space under which the test pages will be created. The space needs to already exist within Confluence. In the absence of a space, Confluence will throw an error.

Page Name Pattern:

This would be the pattern for the name of the pages. If the pattern is provided as "TEST", then the utility will continue to create pages named TEST 1, TEST 2... etc until a desired number within the SPACE provided above.

Number of Pages:

This decides the number of pages to be created within the SPACE.

Working:

Once these details are provided, the utility will start creating the pages if the provided details are correct and if the server is reachable. For each page created, the utility will respond back with a success or failure message like below. The response message from the server will also be displayed:

(Auto-migrated image: description temporarily unavailable)

SSL Unsupported

Currently the utility does not support calling SSL urls. This is a work in progress and will be added in future releases. There may also be more calls added for using other functions.

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.