Forum Discussion
Pawel_1
13 years agoOccasional Contributor
Hi Alexei,
Thanks for the quick reply. Looking above at your response, how would this fit into a load test of lets say 10 users? It is my understanding that when a load test is set up through script that the virtual users are run concurrently. Below I will provide a more defined example:
I wish to load test a manufacturing system. My load tests that I created visually are four separate tasks, Logging In, Creating Product Name, Adding Components to Product, and Logging Out. The tasks must be done in order, so a user must Login, Create a Product, Add Components, and Logout. The amount of components a user may add can vary (they can add at times one component or many components). I need to script these tests because the data in the requests must be unique each time and the amount of times I wish to run the Add Components script will vary. So, what I need is a Virtual User that will perform these four tasks in order. And then expand that into 10, 20, 30 users with each user performing their four tasks in order.
It is my understanding that I simply cannot assign a virtual user one task in my scenario since:
1) The tasks need to be completed in order
2) Calling the .Run method for a usergroup would execute all the users concurrently, thus the requests would not follow the flow of Login, Create Product, Add Component, Logout
3) The tasks need to share information such as viewstates, data selectors, etc.
From your example you assign a Task to a VU, (then I assume run the VU?), then assign another task to the VU, (then run the VU again?), How could this me expanded to 20 users and each starting concurrently while running your process in sequence?
Thanks for the quick reply. Looking above at your response, how would this fit into a load test of lets say 10 users? It is my understanding that when a load test is set up through script that the virtual users are run concurrently. Below I will provide a more defined example:
I wish to load test a manufacturing system. My load tests that I created visually are four separate tasks, Logging In, Creating Product Name, Adding Components to Product, and Logging Out. The tasks must be done in order, so a user must Login, Create a Product, Add Components, and Logout. The amount of components a user may add can vary (they can add at times one component or many components). I need to script these tests because the data in the requests must be unique each time and the amount of times I wish to run the Add Components script will vary. So, what I need is a Virtual User that will perform these four tasks in order. And then expand that into 10, 20, 30 users with each user performing their four tasks in order.
It is my understanding that I simply cannot assign a virtual user one task in my scenario since:
1) The tasks need to be completed in order
2) Calling the .Run method for a usergroup would execute all the users concurrently, thus the requests would not follow the flow of Login, Create Product, Add Component, Logout
3) The tasks need to share information such as viewstates, data selectors, etc.
From your example you assign a Task to a VU, (then I assume run the VU?), then assign another task to the VU, (then run the VU again?), How could this me expanded to 20 users and each starting concurrently while running your process in sequence?