Reputation: 813
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,
Any suggestions, or experience will be helpful.
Upvotes: 1
Views: 777
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
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