You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
matcher: (request, entry) => {
entry.request.postData.params; // This is null
entry.request.postData.text; // This is null
},
How to access entry's postData?
When recording the HAR, only certain requests are saved to _file without any information in text or params. The workaround for this is to use updateContent: 'embed' to avoid it.
The text was updated successfully, but these errors were encountered:
Thanks @TinoChen105 !
I made a test demonstrating the issue #21
And now we can do test-driven-development and fix it.
However, there's a performance tradeoff. If we'll read the content of all of the entries before calling the compare functions, it will hurt performance.
Maybe we should export the parseContent function instead? This way, the developer will have control over when they want the file content to be parsed
If a request is stored in HAR and only utilizes postData._file for storage, it cannot be accessed when using a customMatcher.
For example:
A HAR file:
80cfc9ca2ceb7ebb0da70500393558554ef433da.dat :
product=%22SEARCH%22&searchInfo=false
When using customMatcher:
How to access entry's postData?
When recording the HAR, only certain requests are saved to _file without any information in text or params. The workaround for this is to use updateContent: 'embed' to avoid it.
The text was updated successfully, but these errors were encountered: