Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Feature to Export HAR File After Test Run #426

Open
dkuznetsov21 opened this issue Jun 14, 2024 · 0 comments
Open

Add Feature to Export HAR File After Test Run #426

dkuznetsov21 opened this issue Jun 14, 2024 · 0 comments
Milestone

Comments

@dkuznetsov21
Copy link

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

  1. The test is started.
  2. The HAR file is populated with information.
  3. Before closing the browser, the HAR file is exported to the Moon machine.
  4. 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.

@vania-pooh vania-pooh added this to the 2.7.1 milestone Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants