NoamGaash / playwright-advanced-har

MIT License
23 stars 0 forks source link

add a round-robin scoring function #2

Open NoamGaash opened 8 months ago

NoamGaash commented 8 months ago

Goal

when the user makes several requests to the same resource, replay those request in the same order as it was recorded. for example: GET api/count returns {"count": 1} GET api/count returns {"count": 2} GET api/count returns {"count": 3}

when recording and when replaying, we want to achieve the same behaviour.

usage:

    await advancedRouteFromHAR(/api/, {
        matcher: baseMatcher({
            scoring: roundRobin
        })
    });
yuriteixeira commented 2 weeks ago

This is the missing piece for my project. Would be awesome to have this feature (and thanks for this lib, btw... it saved us).