Rayrun
← Back to Discord Forum

Mocking using HAR

We are trying to mock using HAR file for our tests. The issue is that the each POST request is made using a unique request id and HAR file has some other requestId (at the time it was recorded). Because of this mismatch, the POST requests are immediately aborted. Is there some mechanism by which everytime a request with a unique requestID is made, we are able to match it with the response already in HAR? Basically somehow be able to map new requestId to a requestId already present in HAR. Thank you

This thread is trying to answer question "Is there a mechanism to map new request IDs to a request ID already present in a HAR file when mocking for tests?"

0 replies

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.