Forum Discussion
Hi,
I coded the set TestInstance statement like this. Now it went through.
1. Please let me know what i am doing is right.
2. How do i know it executed the test with the parameters i specified.
3. it is simple login script. But it is failing and giving errors in one particular request for all users
In the log it says that
-620424866 Connection 9 of the task assigned to the virtual user Sri (6) was simulated partially. Only 1 of 3 requests were completed. 6/11/2010 10:02:20 AM 0 Error
Request for one is this
POST /CallowayQA_P1/Homepage/Homepage.aspx HTTP/1.1
Response is
Request for another one is this;
GET /CALLOWAYQA_P1/WebResource.axd?d=FBCtxQYQJPsBcPB1nFRyBI-Ee-yTQDHumCZTrzdHUfikxBeaEIGfnqJ_Shmqgg3R101ueqz-LyKekgGf8qi-aw2&t=633989817480000000 HTTP/1.1
Response is
These two metioned above are not executed. and is giving error in the result. i have 6 VU's in the test, so it is giving 6 errors.
Please suggest that if these are sever errors i have to look into.
Sub Param_LogInId
set TestInstance = LoadTesting.Tests.TestByName("QA_Login").CreateTestInstance
For i = 0 To 5
Set HTTPTask = LoadTesting.HTTPTask("QAFA_Login")
Set request = HTTPTask.Connection(5).Request(2)
if (i = 0) Or (i = 1) Or (i = 2) Then
request.BodyVariables.Item("txtUserName") = "aprilg"r
request.BodyVariables.Item("txtUsrPassword") = "aprilg"
else
if (i = 3) Or (i = 4) Or (i = 5) Then
request.BodyVariables.Item("txtUserName") = "gailc"
request.BodyVariables.Item("txtUsrPassword") = "regina01"
end If
end if
next
call TestInstance.Run("QAFA_Login")
End Sub
Thanks in advance.
TestInstance.Run("QAFA_Login")
Also when i change the connection or request to some other number it is not failing which i thought it would b'se it can't find those parameters in other connections and requests.
TestInstance.Run("QAFA_Login") Also when i change the connection or request to some other number it is not failing which i thought it would b'se it can't find those parameters in other connections and requests.
TestInstance.Run("QAFA_Login") Also when i change the connection or request to some other number it is not failing which i thought it would b'se it can't find those parameters in other connections and requests.
TestInstance.Run("QAFA_Login") Also when i change the connection or request to some other number it is not failing which i thought it would b'se it can't find those parameters in other connections and requests.
So i doubt and please let me know if i am doing right.