apic docs
  • About APIC
  • Installing APIC
  • Getting started with APIC
  • Designer
    • Getting Started With APIC designer
    • Working with API project
    • Creating a Folder
    • Creating a Model or Definitions
    • Creating a Trait
    • Creating an Endpoint
    • Write API Tests starting from Design Phase
    • API Security Definitions
    • Export and view Docs
  • Tester
    • Make an API call
    • Sending Forbidden request headers with APIC
    • Viewing API Response
    • Managing Environments
    • Using Environments
    • Using the Test Builder
    • Writing Test Cases
    • Response Schema validation
    • Creating Test Suites
    • Test Websocket
  • Test Real User Sessions
  • APIC Command line interface (apic-cli)
  • APIC Web Agent (apic-cli)
  • APIC CI/CD Integration (with Jenkins)
  • API Documentation
  • Simulator
  • Dashboard
    • Team Management
    • Published Docs
  • Sharing
Powered by GitBook
On this page
  • Capturing API calls from real user session
  • 1. Capturing Network requests with APIC Session Recorder
  • 2. Importing a HAR file

Was this helpful?

Test Real User Sessions

PreviousTest WebsocketNextAPIC Command line interface (apic-cli)

Last updated 4 years ago

Was this helpful?

Want to test APIs from real user session? You got it. With APIC, capturing requests from real user sessions and importing them is just buttons away.

You have multiple options to test real user sessions. You can and then importing it into your Test Suite or if you are using APIC chrome extension you can use APIC's network request capturing tab in devtools.

Capturing API calls from real user session

1. Capturing Network requests with APIC Session Recorder

If you are using APIC's Chrome extension then you can record the user session with APIC's Session Recorder and import it to your suite with click of a button.

Not using the Chrome extension? No worries. We have . Keep reading.

  • Open the target web page from which you want to capture requests.

  • Open chrome Devtools.

  • Select the tab APIC.

  • You should a network panel that looks something like this.

  • From the Test Suites drop-down select the test suite where you want to import the requests and make sure recording is enabled.

  • Now as you start interacting with the web page APIC will start capturing network requests.

  • Use the filter options to filter out unwanted requests.

  • Once you are satisfied with the captured requests click on Add to suite. This will automatically open the selected suite and import the requests to it as shown below.

  • Once done editing, click on Add requests to suite to import the requests to the selected suite.

  • Now all you have to do is hit Run and let APIC replay your real User Session.

2. Importing a HAR file

If you are not using APIC's chrome extension then you can to import requests from a real user session you can export the network requests as a HAR file and then import it to APIC Test Suit.

  • Open the Test Suite in APIC where you want to import your APIs.

  • Click on Add recorded requests under Requests panel.

  • Now in the Import recorded requests panel brows and select the HAR file and click Process.

  • APIC will now process the HAR file and list down all the API calls

  • You can get rid of the ones that you don't want as part of your test.

  • Once done editing, click on Add requests to suite to import the requests to the selected suite.

  • Now all you have to do is hit Run and let APIC replay your real User Session.

Here you can modify the , , and other details of the request.

You also have access to the response here so you can use the to add tests from the .

Follow the to export your network requests as an HAR file.

Here you can modify the , , and other details of the request.

You also have access to the response here so you can use the to add tests from the .

instructions specified here
Test Suites
export your network requests as HAR file
another way to capture APIs from user session
Test Builder
Test Builder
saved Response
saved Response
parameters
headers
body
parameters
headers
body
Requests imported from APIC Session Recorder