multiple playwright scenarios in single artillery scenario #2769
zoe-jobson-IL
started this conversation in
Artillery
Replies: 3 comments 7 replies
-
the artillery file is like this
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Did you see my responses ?, you peeps are usually faster with things than this. |
Beta Was this translation helpful? Give feedback.
4 replies
-
Ahhhhh I think that is the bug, when I put what should have been there before: it works a lot better and I have two scenarios running correctly in parallel 👯♀️ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to get an artillery scenario that utilises several playwright scenarios. The playwright scenarios are in separate files, we are working with compiled TS right now.
I have tried simply copying the test code into a shared file and I have tried exporting imports of the test functions, but both give this result
`
npx artillery run --dotenv ./artillery/.env ./artillery/scenarios/performance-test.yml
Test run id: tz8c5_ctzfkdnkxfjb3wdhbzk7zh664z67k_zyqq
⠋ 09:48:35 [INFO] [framework] Running tests on environment: https://us.staging.immersivelabs.com
09:48:36 [INFO] [framework] Using Mailhog at: https://mailhog.us.staging.immersivelabs.com:443
⠹ TypeError: fn is not a function
at scenario (/home/zoeunix/CODE/hognob/node_modules/artillery-engine-playwright/index.js:340:17)
at runNextTicks (node:internal/process/task_queues:60:5)
at process.processImmediate (node:internal/timers:447:9)
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
TypeError: fn is not a function
at scenario (/home/zoeunix/CODE/hognob/node_modules/artillery-engine-playwright/index.js:340:17)
at runNextTicks (node:internal/process/task_queues:60:5)
at process.processImmediate (node:internal/timers:447:9)
Node.js v18.19.0
`
Beta Was this translation helpful? Give feedback.
All reactions