Skip to content

Sugestions for additional / improved heuristics #6

@pes10k

Description

@pes10k

I'm using the tool to do record-replay browser sessions. Its great (thanks!)

A couple of ideas for suggestions for better heuristics for which request to return (that would at least be useful in my case, and maybe generally to users of the library):

  • Keep track of which responses have already been returned from the HAR, and either remove them from further consideration, or de-prioritize them in the heuristic scoring system
  • Keep track of the order that responses have been returned, and prioritize / favor responses that come as-soon after the last returned response as possible (since on replay, responses likely should be returned in the same order)
  • Add further debugging information, describing which response is being suggested, and for which reasons.

Are any of the above appealing? If so, I'd be happy to submit PR's for them. Just wanted to get a heads up in if they seem appealing before getting the code ready

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions