-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ashish
authored and
Ashish
committed
Aug 19, 2024
1 parent
7ededbd
commit 5a05ef7
Showing
33 changed files
with
293 additions
and
569 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
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
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 |
---|---|---|
@@ -1,59 +1,55 @@ | ||
# **Playwright | Report Analysis** | ||
------------------------------------------- | ||
|
||
<span style="color:Green">The following are the **built-in capabilities** within the framework to perform report analysis for Playwright-Java tests, in addition to the already available reporting in INGenious</span> | ||
!!! info "Additional Reporting and Debugging Capabilities" | ||
|
||
The following are the **built-in capabilities** within the framework to perform report analysis for Playwright-Java tests, in addition to the already available reporting in INGenious | ||
|
||
-------------------------------------------- | ||
|
||
## Tracing | ||
??? example "Tracing" | ||
|
||
## Tracing | ||
|
||
<summary>How it works</summary> | ||
|
||
From INGenious you can generate traces for all playwright tests that are being executed. You can do this from the **Run Settings** : | ||
From INGenious you can generate traces for all playwright tests that are being executed. You can do this from the **Run Settings** | ||
|
||
![trace1](../img/reports/trace1.JPG "trace1") | ||
![trace1](../img/reports/trace.png "trace1") | ||
|
||
When you do this, the traces are saved in the `Results` location of the corresponding tests. | ||
When you do this, the traces are saved in the `Results` location of the corresponding tests. | ||
|
||
Traces are a great way for debugging your tests. You can open the saved trace using the following options : | ||
Traces are a great way for debugging your tests. You can open the saved trace using the following options : | ||
|
||
* On your browser on `trace.playwright.dev` [**This is not recommended in ING as your tests contain details about you ING applications**] | ||
* Using Playwright CLI . Make sure to add the full path to where your `trace.zip` file is located. This should include the full path to your `trace.zip` file. | ||
* On your browser on `trace.playwright.dev` [**This is not recommended in ING as your tests contain details about you ING applications**] | ||
* Using Playwright CLI . Make sure to add the full path to where your `trace.zip` file is located. This should include the full path to your `trace.zip` file. | ||
|
||
```shell | ||
mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="show-trace <full/path/to/trace.zip>" | ||
``` | ||
```{.shell .copy} | ||
mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="show-trace <full/path/to/trace.zip>" | ||
``` | ||
|
||
|
||
|
||
??? example "Videos" | ||
|
||
## Videos | ||
|
||
## Videos | ||
|
||
|
||
<summary>How it works</summary> | ||
|
||
From INGenious you can generate videos for all playwright tests that are being executed. You can do this from the **Run Settings** : | ||
|
||
![videos](../img/reports/videos.JPG "videos") | ||
|
||
When you do this, the videos are saved in the `Results` location of the corresponding tests. | ||
|
||
From INGenious you can generate videos for all playwright tests that are being executed. You can do this from the **Run Settings** | ||
|
||
![videos](../img/reports/video.png "videos") | ||
|
||
When you do this, the videos are saved in the `Results` location of the corresponding tests. | ||
|
||
|
||
## HAR files | ||
|
||
|
||
<summary>How it works</summary> | ||
??? example "HAR files" | ||
## HAR files | ||
|
||
From INGenious you can generate **HAR (Http Archive)** files for all playwright tests that are being executed. You can do this from the **Run Settings** : | ||
From INGenious you can generate **HAR (Http Archive)** files for all playwright tests that are being executed. You can do this from the **Run Settings** | ||
|
||
![har](../img/reports/har.JPG "har") | ||
![har](../img/reports/har.png "har") | ||
|
||
When you do this, the HAR files are saved in the `Results` location of the corresponding tests. | ||
When you do this, the HAR files are saved in the `Results` location of the corresponding tests. | ||
|
||
|
||
|
Oops, something went wrong.