We need to add a feature to export a HAR file at the end of the test run before closing the browser. This file will contain useful information about network requests, which will help in debugging issues. The HAR file name should include the session ID to simplify test identification.
Why It's Needed
This feature will be especially helpful in investigating flaky tests. When a test fails, something doesn't load, or something takes too long to load, having the HAR file will quickly help identify and fix the problem.
Full Workflow
The test is started.
The HAR file is populated with information.
Before closing the browser, the HAR file is exported to the Moon machine.
I can access this file via the Moon API and upload it to the necessary location (e.g., ReportPortal to include it with other test logs).
Acceptance Criteria
The HAR file should be automatically exported at the end of each test run.
The HAR file should include all network requests made during the test.
The HAR file name should include the session ID.
The HAR file should be saved to a specified location for further analysis.
Additional Information
This feature will significantly simplify the debugging process and make it more efficient and faster.
New Feature: Export HAR File After Test Run
Description
We need to add a feature to export a HAR file at the end of the test run before closing the browser. This file will contain useful information about network requests, which will help in debugging issues. The HAR file name should include the session ID to simplify test identification.
Why It's Needed
This feature will be especially helpful in investigating flaky tests. When a test fails, something doesn't load, or something takes too long to load, having the HAR file will quickly help identify and fix the problem.
Full Workflow
Acceptance Criteria
Additional Information
This feature will significantly simplify the debugging process and make it more efficient and faster.