diff --git a/packages/artillery-engine-playwright/index.js b/packages/artillery-engine-playwright/index.js index 39d8242427..3f6af9ef43 100644 --- a/packages/artillery-engine-playwright/index.js +++ b/packages/artillery-engine-playwright/index.js @@ -8,6 +8,11 @@ class PlaywrightEngine { this.config = script.config?.engines?.playwright || {}; this.processor = script.config.processor || {}; + + if (script.$rewriteMetricName) { + this.processor.$rewriteMetricName = script.$rewriteMetricName; + } + this.launchOptions = this.config.launchOptions || {}; this.contextOptions = this.config.contextOptions || {};