AutomatedQA: Award-winning tools for software development and quality assurance

Home  »  Support  »  Message Boards

AutomatedQA Message Boards

Newsgroups become obsolete, our new Forums are available here.

Board:automatedqa.public.testcomplete
Subject:Re: Load testing for website
Date:8 Dec 2009 12:14:44 -0800
From:"sumedha"
From:"sumedha" <sumedha.arya@redwood.com>


Hi David,

I have tried to create different load test scripts for different scenarios
but none of them seem to pass with no errors.There are always some errors
for connections and reuqests and trying to have all the connections working
during the playback is fully handled by test complete.This is not something
I can control.Initially I am trying to simulate this test:
Start load test recording.
Go to server webpage needed.
Login by passing username/password info.
Logout
Close the browser.

My script takes the request body variables and tweaks it to simulate 10 virtual
users with different usernames and passwords.I am successful in bringing
10 different users with different sessions but I see some errors in some
of the connections and requests that they simulated partially.I am not able
to solve it as why the response header in the logs say as Connection:Close.
My script is like this:
function 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++)

{
// Obtains the task

TaskVar = LoadTesting.HTTPTask("Task7");

// Creates a virtual user and specifies the task and test for it

VirtualUsers[i] = LoadTesting.CreateVirtualUser("VirtualUser" + aqConvert.VarToStr(i));

VirtualUsers[i].Task = TaskVar;

VirtualUsers[i].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[i].Task.Connection(3).Request(3).BodyVariables.Item("username")
);

}

// Runs the task

TestInst.Run("LoginCatalog2'");

}

I am attaching the log for the failures.The test passes for 5 users but creates
10-15 connections-requests errors if I use more than 5 users.
I have the 250 users license on my machine.
You can find the project and the log in the attachment.Logs shows one failed
test for 7 users and one passed test for 5 users.
ALso one more question :When i start recording should I make the tested webpage
as the default page or should i open some other default page and then enter
the URL of the website to be tested.
Do I need to close the browser or keep it open after recording the test.

Thanks,
Sumedha


AutomatedQA Support <support@automatedqa.com> wrote:
>Hi sumedha,
>
>During the investigation, we found out that information you had provided
us with is
>not enough. 
>
>To help us investigate the issue, please zip your entire project suite folder
along
>with the log of the failed test execution and send me the archive. 
>
>Please make sure that the latest log of the failed test execution corresponds
to the
>latest version of your test (there have been no modifications in the test
since the
>last test log was generated).
>
>Thanks in advance.
>
>--
>Best regards,
>David - AQA Support
>~~~~~~~~~~~~~~~~~~~~~
>
>sumedha wrote:
>> Hey Alex,
>> 
>> My scenario is I have 250 users named Load1 to Load250 and each one of
them
>> has to login to the website with a unique username password creating separate
>> login sessions.I have this script below that I tried for 6 users from
Load1-Load6
>> to see if it works fine.I see that the results are fine when users are
equal
>> to 5 but when I increase the user count more than 5,some requests for
the
>> last connection does not go through.The contents in the header is like
this:
>> 
>> GET /r2w/themes/default/images/signon/topleft.gif HTTP/1.1
>> Accept: */*
>> Referer: http://vmsa:8080/r2w/
>> Accept-Language: en-us
>> User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64;
Trident/4.0;
>> SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2)
>> Accept-Encoding: gzip, deflate
>> Host: VMSA:8080
>> Connection: Keep-Alive
>> Cookie: JSESSIONID=8578405440B7CC665A7E51F188474F41; r2wctg=1
>> 
>> 
>> 
>> HTTP/1.1 200 OK
>> Server: Apache-Coyote/1.1
>> ETag: W/"117-1258479338000"
>> Last-Modified: Tue, 17 Nov 2009 17:35:38 GMT
>> Content-Type: image/gif
>> Content-Length: 117
>> Date: Wed, 18 Nov 2009 20:05:15 GMT
>> Connection: close
>> 
>> 
>> I cannot verify why this shows as connection close.How to verify what
is
>> going wrong with the reuqests and connections and correct them.
>> 
>> Thanks,
>> Sumedha
>> 
>> function Test2()
>> {
>> 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<=6; i++)
>> 
>> {
>> // Obtains the task
>> 
>> TaskVar = LoadTesting.HTTPTask("LoginCatalog2");
>> 
>> // Creates a virtual user and specifies the task and test for it
>> 
>> VirtualUsers[i] = LoadTesting.CreateVirtualUser("VirtualUser" + aqConvert.VarToStr(i));
>> 
>> VirtualUsers[i].Task = TaskVar;
>> 
>> VirtualUsers[i].TestInstance = TestInst;
>> 
>> // Modifies the request variable
>> 
>> request = TaskVar.Connection(0).Request(0);
>> Logins = aqString.Concat("Load",i);
>> request.BodyVariables.Item("username") = Logins;
>> 
>> request.BodyVariables.Item("password") = "password";
>> 
>> Log.Message( VirtualUsers[i].Task.Connection(0).Request(0).BodyVariables.Item("username")
>> );
>> 
>> }
>> 
>> // Runs the task
>> 
>> TestInst.Run("LoginCatalog2");
>> 
>> }"Alexei Karas [TeamAQA]" <NoSpam_AlexKaras_WithoutThisAsWell@hotmail.com>
>> wrote:
>>> Hi Sumedha,
>>>
>>> Sorry, but your test scenario is still not clear for me.
>>> My current understanding is: you need to have 100 virtual users but only
>> 3 
>>> logins available. And all these logins must be somehow used by the users.
>> Is 
>>> that correct?
>>>
>>> If my understanding is correct, then, for example, you may consider random
>> 
>>> logins assignment to users.
>>> Something like this (of top of my head, untested, rnd() function returns
>> a 
>>> float value between 0 (inclusive) and 1 (exclusive)):
>>> ...
>>> randomize; // initialize random seed generator
>>> ...
>>> UserVar = new Array(100);
>>> ...
>>> (for (i = 0; i < UserVar.length; i++)
>>> {
>>> ...............
>>>  UserVar[i].Task.Connection(2).Request(3).BodyVariables.Item("username")
>> = 
>>> Logins[int(rnd() * Logins.length)];
>>> ...........
>>> }
>>>
>>> -- 
>>>
>>> Regards,
>>>      Alex
>>>      [TeamAQA]
>>> ____
>>> [TeamAQA] members are not employed by AutomatedQA Corp. but are just
>>> volunteers who have some experience with the tools by AutomatedQA Corp.
>>> and a desire to help others. Postings made by [TeamAQA] members may
>>> differ from the official policies of AutomatedQA Corp. and should be
>>> treated as the own private opinion of their authors and under no
>>> circumstances as an official answer from AutomatedQA Corp.
>>> [TeamAQA] signature is used with permission by AutomatedQA Corp.
>>> More information about [TeamAQA] and its members is available at
>>> http://www2.automatedqa.com/Articles/TeamAQA/
>>> http://www.automatedqa.com/community/TeamAQA/tabid/50/Default.aspx
>>> ================================
>>>
>>>
>>>
>>>
>>> "sumedha" <sumedha.arya@redwood.com> wrote in message 
>>> news:4b042a8a$1@news.automatedqa.com...
>>>> Hey Alex,
>>>>
>>>> My doubt is in the script I am using three users.So if I have to pass
>> 100
>>>> users,I cannot mention each one of them by name.How can I mention them
>> as
>>>> qa[i] so that it only increments the i and brings up the logins as 
>>>> qa1,qa2,qa3...qa100
>>>> etc...inside the for loop in the script below.
>>>> Logins = new Array("qa1","qa2","qa3");
>>>> (for (i = 0; i < Logins.length; i++)
>>>> {
>>>> ...............
>>>> UserVar[i].Task.Connection(2).Request(3).BodyVariables.Item("username")
>> =
>>>> Logins[i];
>>>> ...........
>>>> }
>>>> Thanks,
>>>> Sumedha
>>>>
>>>>
>>>> "Alexei Karas [TeamAQA]" <NoSpam_AlexKaras_WithoutThisAsWell@hotmail.com>
>>>> wrote:
>>>>> Hi Sumedha,
>>>>>
>>>>> If I understood your question correctly and assuming that you need
one
>> 
>>>>> task
>>>>> per user:
>>>>> function Test()
>>>>> {
>>>>>  var TaskVar, UserVar, TestInstance, i;
>>>>>
>>>>>  Logins = new Array("qa1","qa2","qa3");
>>>>>
>>>>>  UserVar = new Array(Logins.length);
>>>>>  // Obtains the task by its name
>>>>>  TaskVar = LoadTesting.HTTPTask("LoadTask1");
>>>>>  // Creates a new load test
>>>>>  TestInstance = LoadTesting.CreateTestInstance("TestInstanceName");
>>>>>  // To create a test from a test that was created visually,
>>>>>  // call LoadTesting.Tests("TestName").CreateTestInstance();
>>>>>  for (i = 0; i < Logins.length; i++)
>>>>>  {
>>>>>     // Creates a new virtual user
>>>>>    UserVar[i] = LoadTesting.CreateVirtualUser("VirtualUserName_" +
>>>>> aqConvert.VarToStr(i));
>>>>>    UserVar[i].Task = TaskVar; // Assigns a task to the user
>>>>>    UserVar[i].TestInstance = TestInstance; // Specifies the load test
>> 
>>>>> that
>>>>> the user will belong to
>>>>>
>>>>> UserVar[i].Task.Connection(2).Request(3).BodyVariables.Item("username")
>>>>> = Logins[i];
>>>>>
>>>>> UserVar[i].Task.Connection(2).Request(3).BodyVariables.Item("password")
>>>>> = "password";
>>>>>  }
>>>>>  TestInstance.Run("Name of the result group"); // Executes the task
>>>>> }
>>>>>
>>>>> Is this what you needed?
>>>>> -- 
>>>>>
>>>>> Regards,
>>>>>      Alex
>>>>>      [TeamAQA]
>>>>> ____
>>>>> [TeamAQA] members are not employed by AutomatedQA Corp. but are just
>>>>> volunteers who have some experience with the tools by AutomatedQA Corp.
>>>>> and a desire to help others. Postings made by [TeamAQA] members may
>>>>> differ from the official policies of AutomatedQA Corp. and should be
>>>>> treated as the own private opinion of their authors and under no
>>>>> circumstances as an official answer from AutomatedQA Corp.
>>>>> [TeamAQA] signature is used with permission by AutomatedQA Corp.
>>>>> More information about [TeamAQA] and its members is available at
>>>>> http://www2.automatedqa.com/Articles/TeamAQA/
>>>>> http://www.automatedqa.com/community/TeamAQA/tabid/50/Default.aspx
>>>>> ================================
>>>>>
>>>>>
>>>>> "sumedha" <sumedha.arya@redwood.com> wrote in message
>>>>> news:4b02e475$1@news.automatedqa.com...
>>>>>> Hey Alex,
>>>>>>
>>>>>> In the below code:The username and password item are to be of the
same
>>>> as
>>>>>> the body variables.I changed them to be excatly same as in the already
>>>>>> existing
>>>>>> task and it created three different logins.
>>>>>>
>>>>>> request.BodyVariables.Item("username") = Logins[i];
>>>>>> request.BodyVariables.Item("password") = Passwords[i];
>>>>>>
>>>>>> My code resembles the following code from the help files and used
the
>>>> same
>>>>>> approach as this.
>>>>>>
>>>>>> function Test()
>>>>>> {
>>>>>>  var TaskVar, UserVar, TestInstance, i;
>>>>>>
>>>>>>  UserVar = new Array(10);
>>>>>>  // Obtains the task by its name
>>>>>>  TaskVar = LoadTesting.HTTPTask("LoadTask1");
>>>>>>  // Creates a new load test
>>>>>>  TestInstance = LoadTesting.CreateTestInstance("TestInstanceName");
>>>>>>  // To create a test from a test that was created visually,
>>>>>>  // call LoadTesting.Tests("TestName").CreateTestInstance();
>>>>>>  for (i = 0; i < 10; i++)
>>>>>>  {
>>>>>>     // Creates a new virtual user
>>>>>>    UserVar[i] = LoadTesting.CreateVirtualUser("VirtualUserName_" +
>>>>>> aqConvert.VarToStr(i));
>>>>>>    UserVar[i].Task = TaskVar; // Assigns a task to the user
>>>>>>    UserVar[i].TestInstance = TestInstance; // Specifies the load test
>>>> that
>>>>>> the user will belong to
>>>>>>  }
>>>>>>  TestInstance.Run("Name of the result group"); // Executes the task
>>>>>> }
>>>>>>
>>>>>> Also if there are five different usernames as :Load1.Load2,Load3.....
>>>> and
>>>>>> password as "password" for each one of them then how can I call an
array
>>>>>> to use theses usernames one by one instead of passing each username
>> 
>>>>>> value
>>>>>> separately.
>>>>>>
>>>>>> For example - In the below piece of code,How can I pass values in
the
>>>>>> Logins
>>>>>> array as an array so that it just increments the value of qa[i] instead
>>>> of
>>>>>> passing each value of username separately.
>>>>>>
>>>>>> Logins = new Array("qa1","qa2","qa3");
>>>>>> request.BodyVariables.Item("username") = Logins[i];
>>>>>>
>>>>>> Thanks,
>>>>>> Sumedha
>>>>>>
>>>>>> "Alexei Karas [TeamAQA]" 
>>>>>> <NoSpam_AlexKaras_WithoutThisAsWell@hotmail.com>
>>>>>> wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> Unfortunately, I'm not a guru with load testing (and hope that
somebody
>>>>>>> correct me if I make an error somewhere), but according to my
>>>>>>> understanding,
>>>>>>> the following is the source of problem in your script:
>>>>>>>
>>>>>>>> HTTPTask = LoadTesting.HTTPTask("Task1");
>>>>>>> this line creates a copy of the recorded task and assigns this
copy
>> to
>>>> the
>>>>>>> HTTPTask variable.
>>>>>>>
>>>>>>>> VirtualUsers[i].Task = HTTPTask;
>>>>>>> this line creates another copy of the original recorded task (i.e.
copy
>>>>>> of
>>>>>>> the copy) and assigns the copy of the HTTPTask variable to the
Task
>> 
>>>>>>> field
>>>>>> of
>>>>>>> the VirtualUsers object.
>>>>>>>
>>>>>>>> request = HTTPTask.Connection(2).Request(3);
>>>>>>> this line gets a reference to the Request field of the task object,
>> but
>>>>>>> note, that this task object is *Not* the one that was assigned
to
the
>>>>>>> VirtualUsers object.
>>>>>>>
>>>>>>>> request.BodyVariables.Item("login") = Logins[i];
>>>>>>>> request.BodyVariables.Item("passwd") = Passwords[i];
>>>>>>> These two lines modify the Login and Password fields of the object
that
>>>>>> is a
>>>>>>> copy of the original recorded task but *Not* of the object that
was
>>>>>>> assigned
>>>>>>> to the VirtualUsers object.
>>>>>>> Note, that the task object assigned to the VirtualUsers object
is
a
>> copy
>>>>>>> that originates from the recorded task (and thus uses qa5/qa5 login
>>>>>>> credentials) and is not modified in the code. This explains why
you
>> see
>>>>>> qa5
>>>>>>> logins/logoffs in the log instead of expected values.
>>>>>>>
>>>>>>>
>>>>>>> So the code lines sequence should be like this:
>>>>>>> VirtualUsers[i].Task = LoadTesting.HTTPTask("Task1"); // assign
a
copy
>>>> of
>>>>>>> the task to the user
>>>>>>> VirtualUsers[i].Task.Connection(2).Request(3).BodyVariables.Item("login")
>>>>>> =
>>>>>>> Logins[i]; // change the login for the given user
>>>>>>> ...
>>>>>>>
>>>>>>> Does it make sense?
>>>>>>> -- 
>>>>>>>
>>>>>>> Regards,
>>>>>>>      Alex
>>>>>>>      [TeamAQA]
>>>>>>> ____
>>>>>>> [TeamAQA] members are not employed by AutomatedQA Corp. but are
just
>>>>>>> volunteers who have some experience with the tools by AutomatedQA
Corp.
>>>>>>> and a desire to help others. Postings made by [TeamAQA] members
may
>>>>>>> differ from the official policies of AutomatedQA Corp. and should
be
>>>>>>> treated as the own private opinion of their authors and under no
>>>>>>> circumstances as an official answer from AutomatedQA Corp.
>>>>>>> [TeamAQA] signature is used with permission by AutomatedQA Corp.
>>>>>>> More information about [TeamAQA] and its members is available at
>>>>>>> http://www2.automatedqa.com/Articles/TeamAQA/
>>>>>>> http://www.automatedqa.com/community/TeamAQA/tabid/50/Default.aspx
>>>>>>> ================================
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> "sumedha" <sumedha.arya@redwood.com> wrote in message
>>>>>>> news:4b017c91$1@news.automatedqa.com...
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I recorded a script to login with username as "qa5" and password
as
>>>>>>>> "qa5".
>>>>>>>> The scenario is I have to login now with username,password
as (
>>>>>>>> "qa4","qa4"),("qa7","qa7")
>>>>>>>> and ("qa1","qa1").
>>>>>>>> I have this script:
>>>>>>>>
>>>>>>>> function Test4()
>>>>>>>>
>>>>>>>> {
>>>>>>>>
>>>>>>>> var VirtualUsers, TestInstance, i, HTTPTask, request;
>>>>>>>>
>>>>>>>>
>>>>>>>> VirtualUsers = new Array(3);
>>>>>>>>
>>>>>>>> Logins = new Array("qa4","qa7","qa1");
>>>>>>>>
>>>>>>>> Passwords = new Array("qa4","qa7","qa1");
>>>>>>>>
>>>>>>>> // Creates a new load test
>>>>>>>>
>>>>>>>> TestInstance = LoadTesting.CreateTestInstance("TestInstance1");
>>>>>>>>
>>>>>>>> for(i = 0; i < 3; i++)
>>>>>>>>
>>>>>>>> {
>>>>>>>>
>>>>>>>> // Obtains the task
>>>>>>>>
>>>>>>>> HTTPTask = LoadTesting.HTTPTask("Task1");
>>>>>>>>
>>>>>>>> // Creates a virtual user and specifies the task and test for
it
>>>>>>>>
>>>>>>>> VirtualUsers[i] = LoadTesting.CreateVirtualUser("VirtualUser"
+
>>>>>>>> aqConvert.VarToStr(i
>>>>>>>> + 1));
>>>>>>>>
>>>>>>>> VirtualUsers[i].Task = HTTPTask;
>>>>>>>>
>>>>>>>> VirtualUsers[i].TestInstance = TestInstance;
>>>>>>>>
>>>>>>>> // Modifies the request variable
>>>>>>>>
>>>>>>>> request = HTTPTask.Connection(2).Request(3);
>>>>>>>>
>>>>>>>> request.BodyVariables.Item("login") = Logins[i];
>>>>>>>>
>>>>>>>> request.BodyVariables.Item("passwd") = Passwords[i];
>>>>>>>>
>>>>>>>> Log.Message(
>>>>>>>> VirtualUsers[i].Task.Connection(2).Request(3).BodyVariables.Item("login")
>>>>>>>> );
>>>>>>>>
>>>>>>>> }
>>>>>>>>
>>>>>>>> // Runs the task
>>>>>>>>
>>>>>>>> TestInstance.Run("Task1");
>>>>>>>>
>>>>>>>> }
>>>>>>>>
>>>>>>>> The scripts results comes as successful.The only way I can
verify
>> the
>>>>>>>> results
>>>>>>>> is that I can create a system report as who logged in.The results
>> show
>>>>>> as
>>>>>>>> one login and three logoffs each with username ,password as
>>>>>>>> "qa5","qa5".However
>>>>>>>> htere should be three logins with usernames asa qa4,qa7 and
qa1
and
>>>>>>>> three
>>>>>>>> logoffs for these usernames.This means my script is not creating
three
>>>>>>>> different
>>>>>>>> logins with different usernames and passwords.Indeed it is
doing
one
>>>>>>>> login
>>>>>>>> and three logoffs all with same id "qa5".Please tell me what
else
>> is
>>>>>>>> going
>>>>>>>> on wrong with the script.My guess is the request information
is
not
>>>>>>>> being
>>>>>>>> changed according to the usernames and passwords.Also the connection
>>>> 2
>>>>>> and
>>>>>>>> request 21 shows the POST information.But when I try to use
request
>>>> as
>>>>>> 21
>>>>>>>> ,it shows array out of bound exception.I used request no as
4.
>>>>>>>>
>>>>>>>> Thanks.
>>>>>>>>
>>>>>>>> "sumedha" <sumedha.arya@redwood.com> wrote:
>>>>>>>>> Hey Alexei,
>>>>>>>>>
>>>>>>>>> I have this scenario.I have to first login with username
,password
>> as
>>>>>>>>> "qa5"
>>>>>>>>> ,then using the same test to login with username,password
as "qa6".
>>>>>>>>> I want a script to run thsi load test.In the requests I
see a lot
>> of
>>>>>>>>> requests
>>>>>>>>> that use the value as "qa5" for the variables.Also a particualr

>>>>>>>>> request
>>>>>>>> "signIn.do"
>>>>>>>>> shows the text as
>>>>>>>>> "id=&language=en&urll=null&languageOpts=en&username=qa5&password=qa5&catalog=1&signOn=Sign+in"
>>>>>>>>>
>>>>>>>>> How can we create a script in which the login information
changes
>> for
>>>>>> each
>>>>>>>>> user after every login -logout and how to find out which
all requests
>>>>>> will
>>>>>>>>> need a change in the information.
>>>>>>>>> I saw the postings on the forum but nothing shows similar
issue.
>>>>>>>>> Please help me out with this.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Sumedha
>>>>>>>>>
>>>>>>>>> "Alexei Karas [TeamAQA]"
>>>>>>>>> <NoSpam_AlexKaras_WithoutThisAsWell@hotmail.com>
>>>>>>>>> wrote:
>>>>>>>>>> Hi Sumedha,
>>>>>>>>>>
>>>>>>>>>> In this case you should record one task, assign it
to 20 users
and
>>>>>>>>>> modify
>>>>>>>>>> user name/password information during playback. See
the "Modifying
>>>>>>>>>> Recorded
>>>>>>>>>> Traffic" help topic for more details.
>>>>>>>>>> Also try to search this newsgroup -- there were a lot
of relevant
>> 
>>>>>>>>>> code
>>>>>>>>>> examples here from Automated's Support and other users.
>>>>>>>>>> -- 
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>>      Alex
>>>>>>>>>>      [TeamAQA]
>>>>>>>>>> ____
>>>>>>>>>> [TeamAQA] members are not employed by AutomatedQA Corp.
but are
just
>>>>>>>>>> volunteers who have some experience with the tools
by AutomatedQA
>> 
>>>>>>>>>> Corp.
>>>>>>>>>> and a desire to help others. Postings made by [TeamAQA]
members
may
>>>>>>>>>> differ from the official policies of AutomatedQA Corp.
and should
>> be
>>>>>>>>>> treated as the own private opinion of their authors
and under
no
>>>>>>>>>> circumstances as an official answer from AutomatedQA
Corp.
>>>>>>>>>> [TeamAQA] signature is used with permission by AutomatedQA
Corp.
>>>>>>>>>> More information about [TeamAQA] and its members is
available
at
>>>>>>>>>> http://www2.automatedqa.com/Articles/TeamAQA/
>>>>>>>>>> http://www.automatedqa.com/community/TeamAQA/tabid/50/Default.aspx
>>>>>>>>>> ================================
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> "sumedha" <sumedha.arya@redwood.com> wrote in
message
>>>>>>>>>> news:4afdc891$1@news.automatedqa.com...
>>>>>>>>>>> I have a load test scenario where I have to test
20 different
users
>>>>>>>>>>> each
>>>>>>>>>>> having
>>>>>>>>>>> their own user session .
>>>>>>>>>>> The task will be to login to the website and then
do some action
>>>> and
>>>>>>>>>>> logoff.
>>>>>>>>>>> EAch user will login with different username,password.
>>>>>>>>>>>
>>>>>>>>>>> How can I achieve this scenario?As one task is
for a particular
>> 
>>>>>>>>>>> user
>>>>>>>> who
>>>>>>>>>>> logins with a particular username and password,I
cannot assign
>> the
>>>>>> same
>>>>>>>>>>> task
>>>>>>>>>>> for the other user.
>>>>>>>>>>>
>>>>>>>>>>> As an example,I recorded three different tasks
for three different
>>>>>>>>>>> users
>>>>>>>>>>> who logged in-logged off with different usernames
and passwords.So
>>>>>> for
>>>>>>>>> 20
>>>>>>>>>>> users,do I need to create 20 different asks with
different login
>>>>>>>>>>> information.I
>>>>>>>>>>> there a way we can achieve this with script.
>>>>>>>>>>> The script in help files creates a number of users
and assigns
>> them
>>>>>> to
>>>>>>>>>>> same
>>>>>>>>>>> task .But I want o create separte task for each
users with 
>>>>>>>>>>> different
>>>>>>>> login
>>>>>>>>>>> information.
>>>>>>>>>>> How can I do that?
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Sumedha
>>>>>>>>>>> AutomatedQA Support <support@automatedqa.com>
wrote:
>>>>>>>>>>>> Hi Sumedha,
>>>>>>>>>>>>
>>>>>>>>>>>> I'd like you to start with our partner's screencast:
>>>>>>>>>>>> http://tv.falafel.com/testcomplete/09-09-01/Getting_Started_with_HTTP_Load_Testing.aspx
>>>>>>>>>>>>
>>>>>>>>>>>> It will provide you with basic information
about Load Testing.
>>>>>>>>>>>>
>>>>>>>>>>>> Also, please go through the "Load Testing Basics
Tutorial" tutorial
>>>>>> of
>>>>>>>>>>>> TestComplete's
>>>>>>>>>>>> Help system. I suppose, you'll find it very
useful.
>>>>>>>>>>>>
>>>>>>>>>>>> BTW, to help you get started with TestComplete
easier, I recommend
>>>>>> that
>>>>>>>>>>> you visit our
>>>>>>>>>>>> free TestComplete webinar: http://www.automatedqa.com/webinars/
>>>>>>>>>>>>
>>>>>>>>>>>> Also, we offer an online TestComplete training
course for an
>>>>>>>>>>>> affordable
>>>>>>>>>>> price - please
>>>>>>>>>>>> check the training options on our web site:
>>>>>>>>>>>> http://www.automatedqa.com/support/training/
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>>> 1. Recording a login-logout operation
one time and making
it
>> run
>>>>>> for
>>>>>>>>>>> 10 users.
>>>>>>>>>>>> You need to record a new Load Testing task
(see the "Recording
>>>>>>>>>>>> Traffic
>>>>>>>>> for
>>>>>>>>>>> Load Tests"
>>>>>>>>>>>> help topic), give it to 10 virtual users and
run the task.
>>>>>>>>>>>>
>>>>>>>>>>>>>> 2. Can we write a script for this login
-logout operation
and
>>>> make
>>>>>>>>> it
>>>>>>>>>>> work for 10
>>>>>>>>>>>> users.
>>>>>>>>>>>> This can be done via the GUI. However, if you
need to control
Load
>>>>>>>>>>>> Testing
>>>>>>>>>>> from scripts,
>>>>>>>>>>>> see the "Creating Load Tests in Scripts" help
topic to learn
how
>>>> to
>>>>>> do
>>>>>>>>>>>> this.
>>>>>>>>>>>>
>>>>>>>>>>>>>> it shows alot of warnings for the requets.
What can be the

>>>>>>>>>>>>>> reason
>>>>>>>> for
>>>>>>>>>>> this? Also
>>>>>>>>>>>> is this the only thing that I need to create
in a load test.
>>>>>>>>>>>> Something is not OK. To try to find more specific
reasons for
>>>>>>>>>>>> warnings,
>>>>>>>>>>> we need to know
>>>>>>>>>>>> warnings' texts. Please zip your entire project
suite folder
along
>>>>>> with
>>>>>>>>>>> the log of
>>>>>>>>>>>> the failed test execution and send us the archive
via our Contact
>>>>>>>>>>>> Support
>>>>>>>>>>> form:
>>>>>>>>>>>> http://www.automatedqa.com/support/message/
>>>>>>>>>>>>
>>>>>>>>>>>> Make sure that the latest log of the failed
test execution
>>>>>>>>>>>> corresponds
>>>>>>>>> to
>>>>>>>>>>> the latest
>>>>>>>>>>>> version of your test (there have been no modifications
in the
test
>>>>>>>>>>>> since
>>>>>>>>>>> the last test
>>>>>>>>>>>> log was generated).
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Best regards,
>>>>>>>>>>>> David - AQA Support
>>>>>>>>>>>> ~~~~~~~~~~~~~~~~~~~~~
>>>>>>>>>>>>
>>>>>>>>>>>> sumedha wrote:
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I have to create a load test for 5-10 users
first to create
a
>>>>>>>>>>>>> simple
>>>>>>>>>>>>> login-logout
>>>>>>>>>>>>> operation by entering username,password
information.It needs
>> to
>>>> be
>>>>>>>>>>>>> emulated
>>>>>>>>>>>>> for 5-10 users provides username,password
being the same.My
>>>>>>>>>>>>> question
>>>>>>>>> is
>>>>>>>>>>> how
>>>>>>>>>>>>> to approach this scenario.
>>>>>>>>>>>>> 1. Recording a login-logout operation one
time and making it
>> run
>>>>>> for
>>>>>>>>> 10
>>>>>>>>>>> users.
>>>>>>>>>>>>> 2. Can we write a script for this login
-logout operation and
>> 
>>>>>>>>>>>>> make
>>>>>>>> it
>>>>>>>>>>> work
>>>>>>>>>>>>> for 10 users.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I tried to record a script and use it for
10 users but when
I
>> 
>>>>>>>>>>>>> play
>>>>>>>> it
>>>>>>>>>>> back
>>>>>>>>>>>>> it shows alot of warnings for the requets.What
can be the reason
>>>>>> for
>>>>>>>>>>>>> this?
>>>>>>>>>>>>> Also is this the only thing that I need
to create in a load
test.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> Sumedha
>>>>>>>>>>
>>>>>>>
>>>>>
>>>
>> 

loadtest2.zip




Copyright © 1999-2008, AutomatedQA, Corp. All Rights Reserved.
Legal | About | Contact