-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #692 from reportportal/develop
Release 24.1
- Loading branch information
Showing
89 changed files
with
1,438 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
sidebar_position: 2 | ||
sidebar_label: Immediate Auto-Analysis | ||
--- | ||
|
||
# Immediate Auto-Analysis | ||
|
||
In the realm of software development, quick issue detection is a critical aspect that directly impacts the quality of your products. Understanding modern trends, ReportPortal is ready to introduce a new feature – Immediate Auto-Analysis (Immediate AA). Starting from version 24.1, Auto-Analysis can be started via API after certain test cases finish before whole Launch is done thereby accelerating the test failure triage. | ||
|
||
With Immediate AA, you no longer need to wait for the Launch finish before starting the analysis of failed tests. For instance, in your Launch there are 2000 tests, you can now see that 16 tests have already failed, and Immediate AA promptly marked these issues for you on the fly. | ||
|
||
To initiate Immediate AA, you need to specify the following parameters in the **attributes** section **for each step on its start or finish** when reporting: | ||
|
||
<MediaViewer src={require('./img/ImmediateAA.png')} alt="Parameters to initiate Immediate AA in our test automation dashboard" /> | ||
|
||
If the value for **“immediateAutoAnalysis”** is set to **“false”**, Immediate AA will not work. | ||
|
||
If the “immediateAutoAnalysis” attribute is not specified, Immediate AA will not work either. | ||
|
||
:::important | ||
The “immediateAutoAnalysis” attribute can only be applied to a step level. It is essential to send the log, as the Analyzer operates based on the log. | ||
::: | ||
|
||
Immediate AA will work in any case if this attribute is present, regardless Auto-Analysis is enabled or disabled in Project Settings. In case when some items have been already analyzed by Immediate AA, Auto-Analysis and Manual Analysis on Launch finish will skip previously analyzed items. | ||
|
||
Immediate AA, like Auto-Analysis on Launch finish, is based on the following options: | ||
|
||
* All previous launches | ||
* Current and all previous launches with the same name | ||
* All previous launches with the same name | ||
* Only previous launch with the same name | ||
* Only current launch | ||
|
||
You can select the required option in the Project settings for Auto-Analysis. | ||
|
||
It is important to highlight that Immediate AA works only for defect types from “To Investigate” group. If you reported a Launch with failed step, and this step has another defect type (“Product Bug”, etc.), then step will not be analyzed by Immediate AA. | ||
|
||
This way, Immediate AA allows to detect issues early and enhances testing performance. | ||
|
||
<MediaViewer src="https://youtu.be/YR2lYtpukks" alt="Immediate Auto-Analysis: how it works" type="video" /> | ||
|
||
<MediaViewer src="https://youtu.be/kZ--1DFJGYg" alt="Immediate Auto-Analysis feature in our test automation reporting dashboard" type="video" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
sidebar_position: 8 | ||
sidebar_label: Immediate Pattern Analysis | ||
--- | ||
|
||
# Immediate Pattern Analysis | ||
|
||
In a modern software world, quick issue detection becomes necessary. ReportPortal as a progressive test automation dashboard, follows today’s faster development methods. Starting from version 24.1, Pattern Analysis can be started via API after certain test cases finish before whole Launch is done. Immediate Pattern Analysis (PA) significantly speeds up failure triage. | ||
|
||
Previously, Pattern Analysis can’t be started before Launch finish. Since some users may have their launches last up to 12 hours, or even all day, they couldn’t start test failure analysis for a long time. This was slowing down issue spotting. With Immediate Pattern Analysis, you can begin looking at your test results much faster, which is especially valuable for large Launches. | ||
|
||
To initiate Immediate PA, fulfill the following conditions: | ||
|
||
1. PA rule should be created. | ||
|
||
2. PA rule should be enabled. | ||
|
||
3. When reporting, you need to specify the following parameters in the **attributes** section **for each step on its start or finish**: | ||
|
||
<MediaViewer src={require('./img/ImmediatePA1.png')} alt="Parameters to initiate Immediate PA in our test reporting tool" /> | ||
|
||
If the value for **“immediatePatternAnalysis”** is set to **“false”**, Immediate PA will not work. | ||
|
||
If the “immediatePatternAnalysis” attribute is not specified, Immediate PA will not work either. | ||
|
||
The “system” parameter determines whether the “immediatePatternAnalysis” attribute will be displayed in the UI. If **“system”** is set to **“true”**, the “immediatePatternAnalysis” attribute will not be displayed on the UI, and if **“system”** is set to **“false”**, it will be. | ||
|
||
<MediaViewer src={require('./img/ImmediatePA2.png')} alt="immediatePatternAnalysis attribute with system parameter set to false" /> | ||
|
||
You can provide this attribute at the start of the step or at the finish. You can also set one value at the start and another at the finish, in which case the last value will take. | ||
|
||
:::note | ||
Immediate PA will work in any case if this attribute is present, regardless Auto Pattern Analysis is enabled or disabled. In this case, Auto Pattern Analysis and Manual Pattern Analysis on Launch finish will skip previously analyzed items by Immediate Pattern Analysis. | ||
::: | ||
|
||
:::important | ||
It would be better to use STRING rule instead of REGEX rule in all possible cases to speed up the Pattern Analysis processing in the database. As a result, you can get your analysis completed faster using the STRING patterns rather than REGEX and reduce the database workload. | ||
::: | ||
|
||
Apart from the timing of execution, Immediate PA differs from PA on Launch finish in that Immediate PA works for any issue type, whereas PA on Launch finish works for "To Investigate" items only. This means that you can report certain items, such as Automation Bug or System Issue, and specify parameters for launching Immediate PA. | ||
|
||
<MediaViewer src={require('./img/ImmediatePA3.png')} alt="Item reported as Automation Bug with immediatePatternAnalysis attribute" /> | ||
|
||
Overall, Immediate PA helps to catch issues early and improves testing quality. | ||
|
||
<MediaViewer src="https://youtu.be/i9LYeiRXSxA" alt="Immediate Pattern Analysis: how it works" type="video" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
sidebar_position: 20 | ||
sidebar_label: Flaky test cases table (TOP-50) | ||
--- | ||
|
||
# Flaky test cases table (TOP-50) | ||
|
||
Shows the TOP-50 the most flaky test cases within the specified previous launches. | ||
|
||
The test case is displayed in the table if test case status has changed at least once from Passed to Failed or from Failed to Passed in the specified previous launches. | ||
|
||
**Widget's parameters:** | ||
|
||
- Launches count: 2-100. The default meaning is 30. | ||
|
||
- Launch name: required filed. | ||
|
||
- Include Before and After methods: optional. | ||
|
||
**Widget view** | ||
|
||
The widget has a table view with the following data displayed: | ||
|
||
- Test Case - link to the Step level of the last launch. | ||
- Switches - count of found results with often switches. | ||
- % of Switches - the percent of the fact switches and the possible. | ||
- Last switch - date and time of the last run, when the test item switches the status, displayed in “time ago” format (i.e. “10 minutes ago”). | ||
|
||
On mouse hover, the system will display accurate start times. | ||
|
||
:::note | ||
In “Switches” column only Passed and Failed statuses are displayed (Passed - green, Failed - red). | ||
::: | ||
|
||
:::important | ||
The number of switches from one state to another of the test case with the same uniqueID is displayed in the format **N from M** where: | ||
|
||
**N** is the number of changes of statuses. | ||
|
||
**M** is the number of all possible changes of the item in selection (number of item runs=number of test executions minus number of executions with status Skipped minus 1). | ||
|
||
On mouse hover, tooltip appears “N status changes from M possible times”. | ||
::: | ||
|
||
<MediaViewer src={require('./img/widget-types/FlakyTestCasesTableWidget.png')} alt="Data visualization in test automation: Flaky Test Cases Table Widget" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.