SKR
SKR

Reputation: 813

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.

Upvotes: 1

Views: 777

Answers (2)

Hassy Veldstra
Hassy Veldstra

Reputation: 311

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

Upvotes: 2

Michael Johnson
Michael Johnson

Reputation: 1

Artillery only supports javascript files. It would be grea to be able to create the javascript playwright scripts from the VSCode playwright extensions but it only creates the test scripts in typescript. You have to run codegen outside of VSCode to make the right selection of using the Javascript library. I really like the automated way you can create assertions from the extension recording for the typescript functionality but oh well.

Upvotes: 0

Related Questions