Notifications¶
The notification page displays the list of notifications configured. It is accessible from the left menu. A notification is a message sent to an external system when a test reaches a particular status referred to as an Event.
Tip
Notifications can be used along with scheduled tests to keep track of automated tests.
Notifications page¶
There are several types of notification available:
Here's an example notification for a test start and end:
demo@octoperf.com - TEST_STARTED demo, with 100 concurrent users, for 10 min, in regions Paris
demo@octoperf.com - TEST_ENDED demo ended with status: FINISHED
Hits = 36146.00 hits, Errors = 5.00 errors, % Errors = 0.01 % errors, Avg Elapsed = 1.71 sec, Total Throughput = 138.15 MB, Alarms: [WARNING]
As you can see you also get basic statistics along with the TEST_ENDED message.
Notification list¶
This list shows all the existing notifications in this workspace.
Info
The search functions are detailed in this section of the navigation page.
| Action | Description |
|---|---|
| Add notification | This will create a new notification in the current workspace. |
| Delete notification | Removes a Notification. This operation cannot be reverted so proceed with caution. |
Add a Notification¶
You can select the notification type from this menu. Further instructions on each notification type can be found below:
Warning
Once selected the notification type cannot be changed.
Edit a Notification¶
Email¶
The email notification will simply send a direct mail on every event that triggers it.
Two options attach the report of the test to the email sent when the test ends (the Ended event):
- Attach PDF Report attaches the report as a PDF file. Click the gear icon next to it to configure the export: cover page, tables, print format.
- Attach Markdown Report attaches the report as a Markdown file, named after the report. Use it to read every value of the report as text, or to give it to an AI assistant.
You can enable both: the email then carries the two files. If a report cannot be produced, the email is sent without it.
Slack¶
You will need to configure an incoming webhook in slack. The procedure can be found in their documentation.
For this example we have:
- The Token given by slack during the webhook creation
T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX, - The user that created the webhook is named
Demo, - Has an
#octoperfchannel andDemocan post into it.
Note
The token is considered a secret and as such is not displayed in our UI.
Microsoft Teams¶
You need to configure an incoming webhook in Microsoft Teams. The procedure can be found in their documentation.
To create the notification in OctoPerf, simply provide the Teams Webhook URL.
Google¶
You need to configure an incoming webhook in Google Chat. The procedure can be found in their documentation.
To create the notification in OctoPerf, simply provide the Google chat Webhook URL.
Webex¶
You need to configure an incoming webhook in Webex using the Incoming Webhooks app. Once created, Webex gives you a webhook URL in the following form:
https://webexapis.com/v1/webhooks/incoming/<incoming_url>
To create the notification in OctoPerf, copy the <incoming_url> part at the end of that address into the Incoming URL field. This value identifies the Webex space that will receive your notifications.
Note
The Incoming URL is considered a secret and as such is not displayed in our UI.
Jira¶
A Jira notification keeps your board in sync with your load tests by commenting on and moving issues as tests run. It works with both Jira Cloud and Jira Data Center.
Configuring Jira involves two steps: connecting to your Jira instance, then choosing which board and issues are involved. Because there are several options, this is covered in its own guide:
- Jira notifications overview: what it does and which platforms are supported,
- Connecting to Jira: Jira Cloud and Jira Data Center connection types and credentials,
- Configuring the board and issue workflow: board, column, issue filtering and issue moving, and the report attached to the issues as a PDF or a Markdown file.
To record the result of each test in Xray, rather than commenting on and moving issues, use an Xray notification.
Xray¶
An Xray notification records each load test as a test execution in Xray, with its verdict, a summary of the results and a link to the report. Your performance tests then sit in Xray next to your functional tests, with the same pass / fail history. It works with Xray Cloud and Xray Data Center.
Xray is the test management app of your Jira site: the test execution it records is an issue of your Jira project. An Xray notification works on its own: it needs no Jira notification, and a Jira notification needs no Xray.
Choose the Type of connection first: it decides which credentials the form asks for.
| Type | Fields | Where to find them |
|---|---|---|
| Cloud | Xray URL, Client ID, Client secret | An Xray administrator creates an API key in the Xray global settings, under API Keys: it gives the client id and the client secret. The Xray URL is filled in with https://xray.cloud.getxray.app; replace it with the regional address of Xray if your Jira site uses one. |
| Data Center - Basic | URL, Username, Password | The address of your Jira server, for example https://jira.example.com, and a Jira account allowed to create test executions in the project. |
| Data Center - Access Token | URL, Token | The address of your Jira server and a personal access token, created from the Jira profile of the account (Personal Access Tokens). |
The message at the top of the form sums up what the notification will do: which test execution it creates, which test it records the result on, and what the result carries. It changes as you fill in the fields, so read it before saving.
Then tell OctoPerf where to record the result:
- Project key: the key of the Jira project, for example
PERF. - Attach PDF Report: prints the report as a PDF and attaches it to the test execution as evidence.
- Attach Markdown Report: attaches the report as a Markdown file to the test execution as evidence. Use it to read every value of the report as text, or to give it to an AI assistant.
Both options are off by default: the test execution then carries the verdict, the summary and the link to the report. Enable both to attach the two files.
The panel Your test, test plan and environment holds the optional fields. It is folded by default, and opens by itself when one of its fields is filled in:
- Test key: the Xray test the result belongs to, for example
PERF-1.- Left empty, one notification covers every scenario of the workspace: OctoPerf creates a Generic test for each scenario on its first run, named after it, then records the following runs on it.
- Filled in, every scenario that passes the filters records its result on this test. To follow a single scenario, add a Scenario filter to the notification.
- Test plan key: the test plan the test execution is added to.
- Test environment: the test environment of the test execution, for example
staging, to tell apart the runs made on different environments. OctoPerf creates it in Xray when it does not exist yet.
Here is a test OctoPerf created for a scenario, with no Test key: each test of the scenario added a test execution to it, named after its report.
Note
The client secret, the password and the token are secrets: once saved, they are never displayed again.
Results sent to Xray¶
An Xray notification is sent once, when the test ends. The test execution carries:
- the verdict of the test, see the table below;
- a comment summing up the run:
- its end status, who launched it, and when it started and ended, in the time zone of the user who saved the notification;
- its error rate;
- the SLA thresholds in alarm, or No threshold in alarm.;
- a table of the transactions (hits, hits per second, errors, average and percentiles of the response times) for each user profile, titled with the profile's name, or
<virtual user> in <location>for a profile with no name, for exampleUser Journey in Paris. The Set Up and Tear Down phases of a virtual user get their own table;
- the link to the report in OctoPerf: click the name of the test, at the top of the comment, to open the report and analyze the test. The link is also in the description of the test execution;
- the report as a PDF, attached as evidence, only when Attach PDF Report is on. It is printed with the export settings of the report, in the locale and the time zone of the user who saved the notification;
- the report as a Markdown file, attached as evidence next to the PDF, only when Attach Markdown Report is on.
When a report cannot be produced, the result is sent without it, and the comment says which one is missing, for example The PDF report could not be produced. When Xray refuses a result that carries files, for example a file larger than your Jira site accepts, OctoPerf sends it once more with no file, so the verdict is still recorded. The comment then ends with The report files could not be attached: and the reason Xray gave.
Here is a result received by Xray, with a Test key, a Test plan key and a Test environment: the test execution belongs to the test plan, carries the environment OctoPerf created, the PDF of the report as evidence, then the comment with its tables.
The verdict follows the same rule as the Test passed and Test failed events: the test fails when it recorded no hit, when its error rate reaches the limit (5% by default) or when a critical alarm triggered. An alarm in warning does not fail it.
| End of the test | Xray Cloud | Xray Data Center |
|---|---|---|
| Finished, passed | PASSED | PASS |
| Finished, failed | FAILED | FAIL |
| Stopped by a user | ABORTED | ABORTED |
| In error | ABORTED | ABORTED |
If Xray refuses the result when the test ends, you receive the usual email telling you that a notification failed.
TestRail¶
A TestRail notification adds the result of each load test to a TestRail test case, with its status, a summary of the results and a link to the report. The performance of your application is then tracked in the same test runs as the rest of your testing. One notification covers the whole workspace: by default, each scenario gets its own test case, created by OctoPerf.
Before you start
OctoPerf adds the results through the TestRail API, which is disabled by default on a new TestRail instance.
- Enable the API, as a TestRail administrator: Administration → Site Settings → API tab → check Enable API → Save Settings.
- Create an API key, with the account that will add the results: My Settings → API Keys → Add Key → Save Settings. The key is displayed only once: copy it before saving.
- Note the project id, at the end of the address of the project's page:
index.php?/projects/overview/1gives1. The case, suite, run and milestone ids are optional, and read the same way: the caseC42gives42, the runR12gives12.
The message at the top of the form sums up what the notification will do: which run receives the result, which case it is recorded on, and what it carries. It changes as you fill in the fields, so read it before saving.
Fill in:
- URL: the address of your TestRail instance, for example
https://example.testrail.io. - Email and API key: the email of the TestRail account that adds the results, and the API key it created.
- Project ID: the number of the project.
- Attach PDF Report: prints the report as a PDF and attaches it to the TestRail result.
- Attach Markdown Report: attaches the report as a Markdown file to the TestRail result. Use it to read every value of the report as text, or to give it to an AI assistant.
Both options are off by default: the result then carries the verdict, the summary and the link to the report. Enable both to attach the two files.
The panel Your case, run and milestone holds the optional fields. It is folded by default, and opens by itself when one of its fields is filled in. Left empty, OctoPerf creates a run for each test and a case for each scenario; fill them in to use yours instead:
- Case ID: the test case that receives the results.
- Left empty, OctoPerf finds or creates a section named OctoPerf in the project, then creates a case for each scenario on its first test, and records the following tests on it. The case is named after the scenario, with the Performance type when your TestRail has it. You can rename it in TestRail: OctoPerf keeps recording on it.
- Filled in, every scenario that passes the filters records its result on this case. To follow a single scenario, add a Scenario filter to the notification.
- Suite ID: the test suite of the case. Required when the project has several suites and the Case ID is empty: OctoPerf then creates its section in this suite.
- Run ID: the test run that receives the results.
- Left empty, OctoPerf creates a new run for each test, named after the report.
- Filled in, the run must be open: OctoPerf adds the case to it when the run does not contain it yet, and leaves its other cases as they are. A closed run is refused:
The TestRail run 12 is closed: give an open run, or none to create one.
- Milestone ID: the milestone of the runs OctoPerf creates. It is disabled while a Run ID is filled in, since your run already has its own.
Here is a case OctoPerf created for a scenario, in its OctoPerf section. It keeps the history of the scenario: the first result was added to a run OctoPerf created, the second one to an existing run given as Run ID.
Three common setups:
| Goal | Case ID | Run ID | Milestone ID | Filters |
|---|---|---|---|---|
| Track every scenario of the workspace with one notification: each one gets its own case and history | empty | empty | optional | none |
| Track a reference scenario release after release, on a case linked to a requirement | your case | empty | the current release | a Scenario filter |
| Add the results to a test campaign already planned in TestRail | optional | your open run | disabled | optional |
Note
The API key is a secret: once saved, it is never displayed again.
Results sent to TestRail¶
A TestRail notification is sent once, when the test ends. The result carries:
- the verdict of the test, see the table below;
- a comment summing up the run:
- its end status, who launched it, and when it started and ended, in the time zone of the user who saved the notification;
- its error rate;
- the SLA thresholds in alarm, or No threshold in alarm.;
- a table of the transactions (hits, hits per second, errors, average and percentiles of the response times) for each user profile, titled with the profile's name, or
<virtual user> in <location>for a profile with no name, for exampleUser Journey in Paris. The Set Up and Tear Down phases of a virtual user get their own table;
- the link to the report in OctoPerf: click the name of the test, at the top of the comment, to open the report and analyze the test. The link is also in the description of the runs OctoPerf creates;
- the report as a PDF, attached to the result, only when Attach PDF Report is on. It is printed with the export settings of the report, in the locale and the time zone of the user who saved the notification;
- the report as a Markdown file, attached to the result, only when Attach Markdown Report is on.
When a report cannot be produced, the result is sent without it, and the comment says which one is missing, for example The Markdown report could not be produced. When TestRail refuses a file, for example one larger than your instance accepts, the result stays recorded, without that file.
Here is a result received by TestRail: the verdict, the duration of the test, then the comment with its SLA and transaction tables. The attached files show below the tables.
The verdict follows the same rule as the Test passed and Test failed events: the test fails when it recorded no hit, when its error rate reaches the limit (5% by default) or when a critical alarm triggered. An alarm in warning does not fail it.
| End of the test | TestRail |
|---|---|
| Finished, passed | Passed |
| Finished, failed | Failed |
| Stopped by a user | Retest |
| In error | Blocked |
If TestRail refuses the result when the test ends, you receive the usual email telling you that a notification failed.
HTTP¶
The HTTP Notification allows you to send the notification to any API or compatible Webhook. It is possible to pass custom headers in order to send authentication information.
Events¶
The events define what events are sent for each configuration:
| Event | Description |
|---|---|
| Test started | The test has been launched. Note that this event only logs that a test has been queued for startup, not that is successfully started. |
| Test ended | The test has stopped. There can be a number of reasons for a test to stop, check our dedicated Test status page for more info. |
| Test error | The test was unable to launch, usually because an on premise load generator is down. Check the test logs for more info. |
| Test passed | The test has finished with at least one hit recorded, no critical alert, and an error rate below the limit. |
| Test failed | The test has finished but recorded no hit (for instance stopped before its first request), a monitoring alert or an SLA triggered a critical alarm, or the error rate reached octoperf.notifications.max-errors-percent (5% is the default on the SaaS platform). |
Xray and TestRail notifications only offer Test ended: they record a result once the test is over, and their verdict (Xray, TestRail) already tells whether it passed or failed.
Filters¶
Filter the tests that will trigger notifications based on:
- Test duration,
- Number of concurrent users,
- Scenario name.
This setting is a good way to target notifications on a specific type of test.
Remove a notification¶
You can remove one or several notifications using the list.
Warning
Notifications cannot be restored, be careful when removing them.
Test notification¶
When you click Send dummy event, a dummy notification is sent:
For Xray and TestRail, the test checks the connection without creating anything: OctoPerf signs in, then looks for the project, and for the fields you filled in among the optional ones: the test and the test plan in Xray, the suite and the test case in TestRail. The Xray test environment is not checked, since OctoPerf creates it when it does not exist yet.
When the test fails, the error answered by the external system is displayed as is, its secrets hidden, for every type of notification. For example:
| Error displayed | What to fix |
|---|---|
POST /api/v2/authenticate failed: 401: Authentication failed. Invalid client credentials! |
The Xray Client ID or Client secret. |
Xray could not find the test PERF-999: it does not exist or is not a test. |
The Xray Test key: it must be the key of an existing issue of type Test. |
Xray could not find the test plan PERF-2: it does not exist or is not a test plan. |
The Xray Test plan key: it must be the key of an existing test plan. |
Invalid Xray test key: 1PERF |
The format of the key: the project key, a dash and a number, for example PERF-1. |
GET /index.php failed: 403: The API is disabled for your installation. ... |
Enable the TestRail API, as described in TestRail. |
GET /index.php failed: 400: Field :project_id is not a valid or accessible project. |
The TestRail Project ID, or the access of the account to that project. |
This project has several suites: give the Suite ID. |
The TestRail Suite ID: required when the project has several suites and the Case ID is empty. |
GET /index.php failed: 404 |
The URL: it does not point to a TestRail or Jira instance. |
Fix the field the error points to, then send the test again. If no error shows but you do not receive the message, double check your notification configuration.



















