How to modify script to enter a value by one VUser
Actually I tried to solve my problem by reading old posts (last 10 pages), But didnt get specific or near enough answer. Currently Im going through the help files. But if someone provides me the quick help, I'll be grateful.
-I want to test the performance of a web application.
-In one of the scenarios, I have to add a department through a web form available in the application.
-Duplicate department name is NOT allowed.
-So when I run the script for even 10 users, only 1 department gets added in the application.
-So what changes I will have to do in my scripts, so that 10 VUsers add 10 diff departments in the application?
I guess this is something related to corelation (though Im not sure), as I am not familiar with the OpenSTA.
So could anyone plz help me out?
Thanks in advance.
Re: How to modify script to enter a value by one V
You will have to use the Mutex,
Define one variable in Definition section of the script,
e.g. CHARACTER*100 DeptName ("Dept1", "Dept2", "Dept3" ), SCRIPT
After that add following lines just before the request where the department is added. You can see the department name that we had given while recording the script. Just replace that name with a variable CurrentDept. But append + sign on both the sides of that variable in the request.
ACQUIRE TEST-WIDE MUTEX "AddDept"
SET CurrentDept = DeptName
RELEASE TEST-WIDE MUTEX "CreateDebate"