NoamGaash / playwright-advanced-har

MIT License
27 stars 0 forks source link

add a round-robin scoring function #2

Open NoamGaash opened 1 year ago

NoamGaash commented 1 year 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 4 months 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).