playwrightartilleryplaywright-typescript

Run Playwright scripts written in TypeScript with Artillery


We are trying to execute Playwright test scripts written in TypeScript in Artillery. I want suggestions as I could find examples only with Playwright - JavaScript with Artillery. I understand that TypeScript can be transpiled to JavaScript. However, we are facing issues in that as well. So,

  1. How do we run Playwright TS with Artillery?
  2. Are there other options/tools/node modules to run Load Testing with TypeScript?

Any suggestions, or experience will be helpful.


Solution

  • Recent versions of Artillery (starting with v2.0.22) have built-in support for TypeScript, without the need for a manual build step - https://github.com/artilleryio/artillery/releases/tag/artillery-2.0.22