Import requests from HAR

Уou can import data from a HAR file into a test or into a specific use case.

Import into a test

  1. In the Import data pane, click HAR file. The dialog opens:

    ../_images/um_har_dialog.en.png
  2. Click to upload the file. The file size shouldn’t exceed 100 MB.

  3. Click Upload. The dialog opens:

    ../_images/um_har_filtering.en.png
  4. Optional: Filter the list of hosts and static resources whose requests should be included in the test.

  5. Click Upload. Use cases, transactions, and requests will be added into the test.

Import into a use case

  1. Go to the use case or click edit_button. The editor opens:

  2. In the Import data pane, click HAR file. The dialog opens:

    ../_images/um_har_dialog.en.png
  3. Click to upload the file. The file size shouldn’t exceed 100 MB.

  4. Click Upload. The dialog opens:

    ../_images/um_har_filtering.en.png
  5. Optional: Filter the list of hosts and static resources whose requests should be included in the use case.

  6. Click Upload. Transactions and requests will be added into the use case.

Filter HAR

  1. Use a variety of filtering methods:

    • Select the checkboxes for the required hostnames.

    • Specify the regular expression.

      Examples of the regular expressions

      Regular expressions

      Descriptions

      .*\.(js|jpg|jpeg|png|gif|svg|ico)$
      

      It includes requests to static resources for specified file types

      .*\.css$
      

      It includes requests to CSS files

      .*fonts.*
      

      It includes requests to font files

      .*static.*
      

      It includes requests to hosts whose URL contains static

      ^(?!.*analytics).*
      

      It excludes requests to Google Analytics

    • Click the Include static resources toggle. The requests to static resources import into the test or script.

  2. To view the filter results, click Preview:

    ../_images/um_har_filtering_preview.en.png
  3. To apply the filter and import requests to the selected hosts and static resources, click Upload.