BIG UPDATE! LOAD TESTING WITH PLAYWRIGHT TYPESCRIPT IS EVEN EASIER!! - ARTILLERY LOAD TESTING

preview_player
Показать описание
Watch my previous video on the process of converting typescript to javascript to run load tests.

Рекомендации по теме
Комментарии
Автор

A firm favourite series - well paced, the Welsh accent is attractive and clear, subjects very much of the moment

AndrewLayton-jpio
Автор

Thanks for making this series - I've just watched the whole set after having looked at Artillery with Playwright ages ago and given up on it. I'll definitely have another look now I have this step-by-step guide to see if we can remove our dependency on another team and their custom test scripts for load tests.

It's a shame there's no automatic way for Artillery to convert existing Playwright tests into Artillery-compatible tests on the fly. Ideally we wouldn't want to have all our tests in separate function files just for this (or maintain two versions either). Not a complete deal-breaker though... for our purposes we will only need to convert a small subset of existing regression tests into load tests.

SamPrince
Автор

In case it's of use to anyone following along with this I was getting the error:
"TypeError: fn is not a function
at Array.scenario
It turns out I had accidentally typed "testfunction" rather than "testFunction" in the artillery.yml file. No warnings in vscode and the error message was pretty obscure so took a good while to spot it!

SamPrince
Автор

Again, great series. I have a simple question, do you see a way that we could use Playwright to call an API? We have the Page object, but was wondering if you found a way to call an API? The scenario is that I might need to load some data via an API, then the user logs in and searches for the data object, then I would hit another API to have the data being changed by an external user, then in the UI the user sees the change. This is very simple flow, but we do trigger APIs to perform some interaction outside the user control. So, this might not be achievable yml, but thinking we could use playwright or axios to manage the API calls. I think what might need to happen is to have the browser passed in just like the page and test in artillery, that would require a patch to artillery, but wondering if you had any other suggestions?

feralgoose
Автор

Wow Thank you really looking
Forward to find website to learn and execute this load testing

MaheshJoshi_wellington
Автор

Love this series, it's bene helpful in getting this setup. I'm completely new to load testing. how would you implement a end to end test with playwright and artillery? All examples i've found are pretty surface level

stevenchandler
Автор

Suppose i am running test for 3 urls and these urls i am iterating using for loop. i wan't seperate report for each url performance . how to do that? as of now i am getting consolidated metrics for all urls. is there any command which i can use in for loop so that report is ready after one iteration.

Brijendra
Автор

Nice! Very helpful :D

Do you have a sample using TS + Artillery but not using Playwright (for just API)? How the setup will look like?

On the other hand, do you have samples using Artillery with custom plugins/engines?

TIA :D

cifuentes