This guide provides step-by-step instructions for configuring a Backend test in Carrier. Backend tests are designed to simulate traffic to your application’s backend services and measure their performance.
Before you begin configuring a Backend test in Carrier, ensure that you have completed the following:
- Installed and set up Carrier successfully
- Created a project in Carrier
Follow the steps below to configure a Backend test in Carrier:
- Open a web browser and enter the URL of your Carrier installation.
- Log in to the Carrier web interface using your credentials.
Note: Make sure you have logged in using the appropriate user account that has access to the project where you want to configure the Backend test.
- From the project dropdown menu, select the desired project where you want to configure the Backend test.
- Click “Go!” to navigate to the project’s configuration page.
- In the project configuration page, click on the “Backend” tab located in the left menu.
- This will open the Backend configuration section where you can define and manage your Backend tests.
- Click on the “Add Backend Test” button.
- Fill in the required details for the Backend test, including the test name, description, and test type.
- Select the desired option to get Source code with test scripts. Options include
ARTIFACT(upload archive), and
LOCAL(path to test scripts on Carrier host).
- For the
GIToption, provide the credentials to the repository with test scripts if required.
- Specify the entrypoint, which is the path to the test script to run.
It is recommended to use Git integration to automatically update scripts.
In the Backend test configuration page, set various parameters for your test:
- Test Name: Enter the name of the Backend test. The test name should describe its purpose.
- Test Type: Specify the type to group similar tests.
- Test Environment: Specify the environment name to group related tests.
- Test Runner: Select the tool to use for load generation, such as JMeter or Gatling.
- Custom CMD: Configure additional parameters for the test run if required. For example, JMeter script (-J variables) or Gatling simulation (-D variables).
- Load Configuration: Specify the engine region and load profile. By default, the test will run on the Carrier host. CPU cores and memory are distributed for each parallel runner.
- Test Parameters: Create additional parameters that can be changed in subsequent test runs. For example, the number of virtual users, duration, and ramp-up period.
- Integrations: Configure integrations to compare test results with SLAs using
- Reporters: Specify the reporters for test results. You can also set reporters in the Integrations section.
- Scheduling: Create schedules for the test with different parameters.
- Advanced Parameters: Configure additional parameters for the test runner, test data, and network settings.
It is recommended to define Test Execution Parameters and update test scripts to use them.
Adjust these parameters based on your specific test scenario and system under test requirements.
- After configuring all the necessary parameters and settings for the Backend test, click the “Save” button to save your changes.
- To run the test, click the “Run” button.
You can also schedule the test to run at specific intervals or on a recurring basis using the scheduling options provided in the Carrier web interface.
- Once the Backend test is running, you can monitor its execution and view the results.
- In the Carrier web interface, navigate to the “Performance” tab to access the test run details and performance metrics.
- The test progress and logs can be found at the bottom of the page.
- You can set the “autoupdate” and results aggregation time.
- Analyze the test results to evaluate the performance of your backend services.
- The errors panel can be found below the graphs.
- Summary table for test metrics.
Congratulations! You have successfully configured and run the Backend test in Carrier. You can now run and monitor the test to measure the performance of your backend services.
Once you have configured and executed your Backend test in Carrier, you may want to explore other testing capabilities and features offered by Carrier, such as Frontend testing, Security testing, and advanced reporting and analysis options. Follow the guide on how to analyze and compare test runs in Carrier to get started.