Hello, I’m pretty new to k6 and was wondering how to structure the following scenario !
I have a script as below :
export default function () {
login();
deposit_100_Euros_Cash();
withdraw_5_Euros_Cash();
function login () { //some code here }
function deposit_100_Euros_Cash () { //some code here }
function withdraw_5_Euros_Cash () { //some code here }
}
What I want to achieve is for a VU to login, execute login() and deposit_100_Euros_Cash(); once but execute withdraw_5_Euros_Cash(); 20 times. How do I go about this ? Should I be using scenarios ?