Lots of errors on load test run - Connections and requests simulated partially
I am doing a load test on the server .I am doing it through the script.As of now,trying it for 20 users but eventually will increase it to 250 users.Here is the script. : The results show a lot of connections and requests that are simulated partially . I came across a script on falafel blog regarding "Changing viewstate " through script and passing it in response. So can that be a problem if it is not being updated for all the users ? Do I need to bring up the viewstate change script in my load test. I did not really get it like how to change the viewstate ,my code is in javascript.Can somebody tel me how to change the viewstate through script for the code below?
function SignInSignOut()
SignInSignOut()
{
var VirtualUsers, TestInst, i, TaskVar, request,Load;
VirtualUsers = new Array();
Logins = new Array();
// Creates a new load test
TestInst = LoadTesting.CreateTestInstance("TestInstance2");
for(i = 1; i<=7; i++)
(i = 1; i<=7; i++)
{
// Obtains the task
TaskVar = LoadTesting.HTTPTask("Task7");
// Creates a virtual user and specifies the task and test for it
VirtualUsers = LoadTesting.CreateVirtualUser("VirtualUser" + aqConvert.VarToStr(i));
VirtualUsers.Task = TaskVar;
VirtualUsers.TestInstance = TestInst;
// Modifies the request variable
request = TaskVar.Connection(3).Request(3);
Logins = aqString.Concat("Load",i);
request.BodyVariables.Item("username") = Logins;
request.BodyVariables.Item("password") = "password";
Log.Message( VirtualUsers.Task.Connection(3).Request(3).BodyVariables.Item("username") );
.Message( VirtualUsers.Task.Connection(3).Request(3).BodyVariables.Item("username") );
}
// Runs the task
TestInst.Run("Task7");
}
Thanks,
Sumedha