Open poponuts opened 5 months ago
Hello @poponuts 👋
processor
should not be under engines
, otherwise Artillery will try to use an engine with that name. It should be under the root of config
(i.e. config.processor
).
Thanks for swift response. Sorry for the ignorance but I’m a bit confused on this as I just installed artillery globally as per instructions. Then on my project’s root directory, I run artillery via the yaml file.
Thanks for swift response. Sorry for the ignorance but I’m a bit confused on this as I just installed artillery globally as per instructions. Then on my project’s root directory, I run artillery via the yaml file.
No problem @poponuts ! Just to confirm, this is what your YAML file should look like:
config:
target: https://www.artillery.io
processor: './tests/load/helloWorld.spec.ts'
engines:
playwright: {}
scenarios:
- engine: playwright
testFunction: 'helloFlow'
And the .ts processor file you point to:
import { type Page } from '@playwright/test';
export async function helloFlow(page: Page) {
await page.goto('https://www.artillery.io/');
}
Let me know if that works for you!
Version info:
I have multiple node versions but currently points to
v19.9.0
Installed artillery globally too.
Running this command:
artillery run hello-world.yml
I expected to see this happen: There shouldn't be any errors
Instead, this happened: I get the error:
Files being used: