Hey!
What’s the recommended approach for multi step forms?
I want to stress test a checkout flow, which consists of loading the product page, adding to cart, loading the checkout, filling out another form and submitting it.
Much appreciated!
Hey!
What’s the recommended approach for multi step forms?
I want to stress test a checkout flow, which consists of loading the product page, adding to cart, loading the checkout, filling out another form and submitting it.
Much appreciated!
Hi @till
Welcome to the forum.
We don’t have a “recommended approach” per se but there are multiple examples in k6 documentation at k6 Documentation that can be used as a basis and then expanded upon. For instance, if you need to submit a form specifically, you can use this snippet:
Response.submitForm( [params] )
Since you mentioned writing a flow for user’s journey on a website, you might find this repo useful:
It’s written for test e-shop hosted by k6 team but this code can be relatively quickly adapted for any other e-shop.
Hope that helps