You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Vijay <vi...@flatworldindia.com> on 2009/09/23 12:19:18 UTC
how do i test for concurrent 100 users traversing dynamic pages
Good day,
I have a scenario to test the load of the application for various users
performing their activities. Just logging in and clicking on some activities
in their home page (not all the users will have activities).
I've used Jmeter proxy to record this scenario for one user where the second
thread (Call#1 has some id's (dynamic ids)) and used the same thread without
modifying the test script.
I found all the users are forward to the same page using the same link even
when the link is not available for other users.
Test Plan
- Thread group
- HTTP Request defaults
- HTTP Cookie Manager
- Http Request 1 - Login page
- CSV Data set config (To parameterize Usernames/pwds)
- Http Request 2 - Clicking on a link on user homepage
(moreover the user homepage has some activity like, Email/Call/Direct Mail
links which forward user to a different page.
Kindly can any one help out, how do I proceed to make the test successful.
Thanks
Vijay
Re: how do i test for concurrent 100 users traversing dynamic pages
Posted by Deepak Shetty <sh...@gmail.com>.
Use a debug sampler that prints out the values of the variables. and check
that task has value Call#1. Also check case sensitivity (task or Task)
On Wed, Sep 23, 2009 at 10:12 PM, Vijay <vi...@flatworldindia.com> wrote:
> Username,password,task
>
> chris@spaceclaim.com,jesubi,Call#1
> reena@spaceclaim.com,jesubi,Call#1
> karen@spaceclaim.com,jesubi,Call#1
>
> Task is related to Call#1/Email#1
>
> Thanks
> Vijay
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> Sent: Thursday, September 24, 2009 10:39 AM
> To: JMeter Users List
> Subject: Re: how do i test for concurrent 100 users traversing dynamic
> pages
>
> Hi
> what have you specified in the CSV file ?
> regards
> deepak
>
> On Wed, Sep 23, 2009 at 9:41 PM, Vijay <vi...@flatworldindia.com> wrote:
>
> > Hi Deepak
> >
> > Ignore my previous email
> >
> > I've followed option - b on your email
> > Drive it through the CSV file and use the IF controller to control the
> > requests e.g. CSV file would be username, password, Task (with 1/0 for
> the
> > values of the flags)
> > Thread Group
> > CSV data set Config
> > Http request login
> > Http request home
> > if Controller ("${task}" == "Email#1")
> > HttpRequestEmail
> > if Controller ("${task}" == "Call#1")
> > HttpRequestCall
> >
> > User home page appears as a table
> > Section name - List Tasks
> > Column Headers - Task, Campaign, List name, List count, Task Status,
> > Duration
> >
> > When I ran the test, my test is passed, but the http request under If
> > controller is not executed. I am stuck here.
> >
> > Kindly assist me how do I proceed..
> >
> >
> >
> > -----Original Message-----
> > From: Deepak Shetty [mailto:shettyd@gmail.com]
> > Sent: Wednesday, September 23, 2009 10:01 PM
> > To: JMeter Users List
> > Subject: Re: how do i test for concurrent 100 users traversing dynamic
> > pages
> >
> > Hi
> > Im not sure I understand you correctly.I think you are trying to say that
> > different users have different links available to them once they login
> and
> > the test should only access links available to the user. If so, read on.
> > otherwise please explain preferably with clearer examples.
> >
> > Jmeter is not a browser. If you have a HTTP request sampler, Jmeter will
> > make the request . it will not check whether or not the link was present
> on
> > the previous page (The closest equivalent is if the user directly typed
> the
> > links into the browser address bar (whether or not these links are there
> in
> > the content of the first page)
> >
> > If you need different users to have different journeys, then you have
> > (Atleast) the following approaches
> > a. Create Different Journeys in your test plan itself and use the various
> > controllers that Jmeter provides to perform those journeys
> > e.g.
> > Thread Group email related
> > CSV Data set config (To parameterize Usernames/pwds for say your
> email
> > link only )
> > Http request 1 login
> > Http request Home
> > Http request email
> > Thread Group call related
> > CSV Data set config (To parameterize Usernames/pwds for say your
> call
> > link only )
> > Http request 1 login
> > Http request Home
> > Http request call
> > OR
> > b. Drive it through the CSV file and use the IF controller to control the
> > requests
> > e.g. CSV file would be username, password,
> canEmail,canCall,canDirectEmail
> > (with 1/0 for the values of the flags)
> > Thread Group
> > CSV data set Config
> > Http request login
> > Http request home
> > if Controller ("${canEmail}" == "1")
> > HttpRequestEmail
> > if Controller ("${canCall}" == "1")
> > HttpRequestCall
> > ....
> >
> > OR
> > c. Make the test links dynamic using Post Processors like Regex
> extractors
> > Thread Group
> > CSV data set Config
> > Http request login
> > Http request home
> > Regex post processor , extract links that you are interested in
> > For each Controller (over extracted link from regex )
> > request the link
> > Maybe more post processors to extract further dynamic links
> > Maybe If conditions based on what the link should do
> >
> >
> > regards
> > deepak
> >
> >
> >
> >
> >
> > On Wed, Sep 23, 2009 at 3:19 AM, Vijay <vi...@flatworldindia.com> wrote:
> >
> > > Good day,
> > >
> > >
> > >
> > > I have a scenario to test the load of the application for various users
> > > performing their activities. Just logging in and clicking on some
> > > activities
> > > in their home page (not all the users will have activities).
> > >
> > > I've used Jmeter proxy to record this scenario for one user where the
> > > second
> > > thread (Call#1 has some id's (dynamic ids)) and used the same thread
> > > without
> > > modifying the test script.
> > >
> > > I found all the users are forward to the same page using the same link
> > even
> > > when the link is not available for other users.
> > >
> > >
> > >
> > >
> > >
> > > Test Plan
> > >
> > > - Thread group
> > >
> > > - HTTP Request defaults
> > >
> > > - HTTP Cookie Manager
> > >
> > > - Http Request 1 - Login page
> > >
> > > - CSV Data set config (To parameterize Usernames/pwds)
> > >
> > > - Http Request 2 - Clicking on a link on user homepage
> > > (moreover the user homepage has some activity like, Email/Call/Direct
> > Mail
> > > links which forward user to a different page.
> > >
> > >
> > >
> > > Kindly can any one help out, how do I proceed to make the test
> > successful.
> > >
> > >
> > >
> > > Thanks
> > >
> > > Vijay
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
Re: how do i test for concurrent 100 users traversing dynamic pages
Posted by Deepak Shetty <sh...@gmail.com>.
you cant send attachments to the list. Mail it to my email address
regards
deepak
On Wed, Sep 23, 2009 at 10:13 PM, Vijay <vi...@flatworldindia.com> wrote:
> I've attached my sample.jmx file
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> Sent: Thursday, September 24, 2009 10:39 AM
> To: JMeter Users List
> Subject: Re: how do i test for concurrent 100 users traversing dynamic
> pages
>
> Hi
> what have you specified in the CSV file ?
> regards
> deepak
>
> On Wed, Sep 23, 2009 at 9:41 PM, Vijay <vi...@flatworldindia.com> wrote:
>
> > Hi Deepak
> >
> > Ignore my previous email
> >
> > I've followed option - b on your email
> > Drive it through the CSV file and use the IF controller to control the
> > requests e.g. CSV file would be username, password, Task (with 1/0 for
> the
> > values of the flags)
> > Thread Group
> > CSV data set Config
> > Http request login
> > Http request home
> > if Controller ("${task}" == "Email#1")
> > HttpRequestEmail
> > if Controller ("${task}" == "Call#1")
> > HttpRequestCall
> >
> > User home page appears as a table
> > Section name - List Tasks
> > Column Headers - Task, Campaign, List name, List count, Task Status,
> > Duration
> >
> > When I ran the test, my test is passed, but the http request under If
> > controller is not executed. I am stuck here.
> >
> > Kindly assist me how do I proceed..
> >
> >
> >
> > -----Original Message-----
> > From: Deepak Shetty [mailto:shettyd@gmail.com]
> > Sent: Wednesday, September 23, 2009 10:01 PM
> > To: JMeter Users List
> > Subject: Re: how do i test for concurrent 100 users traversing dynamic
> > pages
> >
> > Hi
> > Im not sure I understand you correctly.I think you are trying to say that
> > different users have different links available to them once they login
> and
> > the test should only access links available to the user. If so, read on.
> > otherwise please explain preferably with clearer examples.
> >
> > Jmeter is not a browser. If you have a HTTP request sampler, Jmeter will
> > make the request . it will not check whether or not the link was present
> on
> > the previous page (The closest equivalent is if the user directly typed
> the
> > links into the browser address bar (whether or not these links are there
> in
> > the content of the first page)
> >
> > If you need different users to have different journeys, then you have
> > (Atleast) the following approaches
> > a. Create Different Journeys in your test plan itself and use the various
> > controllers that Jmeter provides to perform those journeys
> > e.g.
> > Thread Group email related
> > CSV Data set config (To parameterize Usernames/pwds for say your
> email
> > link only )
> > Http request 1 login
> > Http request Home
> > Http request email
> > Thread Group call related
> > CSV Data set config (To parameterize Usernames/pwds for say your
> call
> > link only )
> > Http request 1 login
> > Http request Home
> > Http request call
> > OR
> > b. Drive it through the CSV file and use the IF controller to control the
> > requests
> > e.g. CSV file would be username, password,
> canEmail,canCall,canDirectEmail
> > (with 1/0 for the values of the flags)
> > Thread Group
> > CSV data set Config
> > Http request login
> > Http request home
> > if Controller ("${canEmail}" == "1")
> > HttpRequestEmail
> > if Controller ("${canCall}" == "1")
> > HttpRequestCall
> > ....
> >
> > OR
> > c. Make the test links dynamic using Post Processors like Regex
> extractors
> > Thread Group
> > CSV data set Config
> > Http request login
> > Http request home
> > Regex post processor , extract links that you are interested in
> > For each Controller (over extracted link from regex )
> > request the link
> > Maybe more post processors to extract further dynamic links
> > Maybe If conditions based on what the link should do
> >
> >
> > regards
> > deepak
> >
> >
> >
> >
> >
> > On Wed, Sep 23, 2009 at 3:19 AM, Vijay <vi...@flatworldindia.com> wrote:
> >
> > > Good day,
> > >
> > >
> > >
> > > I have a scenario to test the load of the application for various users
> > > performing their activities. Just logging in and clicking on some
> > > activities
> > > in their home page (not all the users will have activities).
> > >
> > > I've used Jmeter proxy to record this scenario for one user where the
> > > second
> > > thread (Call#1 has some id's (dynamic ids)) and used the same thread
> > > without
> > > modifying the test script.
> > >
> > > I found all the users are forward to the same page using the same link
> > even
> > > when the link is not available for other users.
> > >
> > >
> > >
> > >
> > >
> > > Test Plan
> > >
> > > - Thread group
> > >
> > > - HTTP Request defaults
> > >
> > > - HTTP Cookie Manager
> > >
> > > - Http Request 1 - Login page
> > >
> > > - CSV Data set config (To parameterize Usernames/pwds)
> > >
> > > - Http Request 2 - Clicking on a link on user homepage
> > > (moreover the user homepage has some activity like, Email/Call/Direct
> > Mail
> > > links which forward user to a different page.
> > >
> > >
> > >
> > > Kindly can any one help out, how do I proceed to make the test
> > successful.
> > >
> > >
> > >
> > > Thanks
> > >
> > > Vijay
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
RE: how do i test for concurrent 100 users traversing dynamic pages
Posted by Vijay <vi...@flatworldindia.com>.
I've attached my sample.jmx file
-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com]
Sent: Thursday, September 24, 2009 10:39 AM
To: JMeter Users List
Subject: Re: how do i test for concurrent 100 users traversing dynamic pages
Hi
what have you specified in the CSV file ?
regards
deepak
On Wed, Sep 23, 2009 at 9:41 PM, Vijay <vi...@flatworldindia.com> wrote:
> Hi Deepak
>
> Ignore my previous email
>
> I've followed option - b on your email
> Drive it through the CSV file and use the IF controller to control the
> requests e.g. CSV file would be username, password, Task (with 1/0 for the
> values of the flags)
> Thread Group
> CSV data set Config
> Http request login
> Http request home
> if Controller ("${task}" == "Email#1")
> HttpRequestEmail
> if Controller ("${task}" == "Call#1")
> HttpRequestCall
>
> User home page appears as a table
> Section name - List Tasks
> Column Headers - Task, Campaign, List name, List count, Task Status,
> Duration
>
> When I ran the test, my test is passed, but the http request under If
> controller is not executed. I am stuck here.
>
> Kindly assist me how do I proceed..
>
>
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> Sent: Wednesday, September 23, 2009 10:01 PM
> To: JMeter Users List
> Subject: Re: how do i test for concurrent 100 users traversing dynamic
> pages
>
> Hi
> Im not sure I understand you correctly.I think you are trying to say that
> different users have different links available to them once they login and
> the test should only access links available to the user. If so, read on.
> otherwise please explain preferably with clearer examples.
>
> Jmeter is not a browser. If you have a HTTP request sampler, Jmeter will
> make the request . it will not check whether or not the link was present
on
> the previous page (The closest equivalent is if the user directly typed
the
> links into the browser address bar (whether or not these links are there
in
> the content of the first page)
>
> If you need different users to have different journeys, then you have
> (Atleast) the following approaches
> a. Create Different Journeys in your test plan itself and use the various
> controllers that Jmeter provides to perform those journeys
> e.g.
> Thread Group email related
> CSV Data set config (To parameterize Usernames/pwds for say your
email
> link only )
> Http request 1 login
> Http request Home
> Http request email
> Thread Group call related
> CSV Data set config (To parameterize Usernames/pwds for say your call
> link only )
> Http request 1 login
> Http request Home
> Http request call
> OR
> b. Drive it through the CSV file and use the IF controller to control the
> requests
> e.g. CSV file would be username, password, canEmail,canCall,canDirectEmail
> (with 1/0 for the values of the flags)
> Thread Group
> CSV data set Config
> Http request login
> Http request home
> if Controller ("${canEmail}" == "1")
> HttpRequestEmail
> if Controller ("${canCall}" == "1")
> HttpRequestCall
> ....
>
> OR
> c. Make the test links dynamic using Post Processors like Regex extractors
> Thread Group
> CSV data set Config
> Http request login
> Http request home
> Regex post processor , extract links that you are interested in
> For each Controller (over extracted link from regex )
> request the link
> Maybe more post processors to extract further dynamic links
> Maybe If conditions based on what the link should do
>
>
> regards
> deepak
>
>
>
>
>
> On Wed, Sep 23, 2009 at 3:19 AM, Vijay <vi...@flatworldindia.com> wrote:
>
> > Good day,
> >
> >
> >
> > I have a scenario to test the load of the application for various users
> > performing their activities. Just logging in and clicking on some
> > activities
> > in their home page (not all the users will have activities).
> >
> > I've used Jmeter proxy to record this scenario for one user where the
> > second
> > thread (Call#1 has some id's (dynamic ids)) and used the same thread
> > without
> > modifying the test script.
> >
> > I found all the users are forward to the same page using the same link
> even
> > when the link is not available for other users.
> >
> >
> >
> >
> >
> > Test Plan
> >
> > - Thread group
> >
> > - HTTP Request defaults
> >
> > - HTTP Cookie Manager
> >
> > - Http Request 1 - Login page
> >
> > - CSV Data set config (To parameterize Usernames/pwds)
> >
> > - Http Request 2 - Clicking on a link on user homepage
> > (moreover the user homepage has some activity like, Email/Call/Direct
> Mail
> > links which forward user to a different page.
> >
> >
> >
> > Kindly can any one help out, how do I proceed to make the test
> successful.
> >
> >
> >
> > Thanks
> >
> > Vijay
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
RE: how do i test for concurrent 100 users traversing dynamic pages
Posted by Vijay <vi...@flatworldindia.com>.
Username,password,task
chris@spaceclaim.com,jesubi,Call#1
reena@spaceclaim.com,jesubi,Call#1
karen@spaceclaim.com,jesubi,Call#1
Task is related to Call#1/Email#1
Thanks
Vijay
-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com]
Sent: Thursday, September 24, 2009 10:39 AM
To: JMeter Users List
Subject: Re: how do i test for concurrent 100 users traversing dynamic pages
Hi
what have you specified in the CSV file ?
regards
deepak
On Wed, Sep 23, 2009 at 9:41 PM, Vijay <vi...@flatworldindia.com> wrote:
> Hi Deepak
>
> Ignore my previous email
>
> I've followed option - b on your email
> Drive it through the CSV file and use the IF controller to control the
> requests e.g. CSV file would be username, password, Task (with 1/0 for the
> values of the flags)
> Thread Group
> CSV data set Config
> Http request login
> Http request home
> if Controller ("${task}" == "Email#1")
> HttpRequestEmail
> if Controller ("${task}" == "Call#1")
> HttpRequestCall
>
> User home page appears as a table
> Section name - List Tasks
> Column Headers - Task, Campaign, List name, List count, Task Status,
> Duration
>
> When I ran the test, my test is passed, but the http request under If
> controller is not executed. I am stuck here.
>
> Kindly assist me how do I proceed..
>
>
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> Sent: Wednesday, September 23, 2009 10:01 PM
> To: JMeter Users List
> Subject: Re: how do i test for concurrent 100 users traversing dynamic
> pages
>
> Hi
> Im not sure I understand you correctly.I think you are trying to say that
> different users have different links available to them once they login and
> the test should only access links available to the user. If so, read on.
> otherwise please explain preferably with clearer examples.
>
> Jmeter is not a browser. If you have a HTTP request sampler, Jmeter will
> make the request . it will not check whether or not the link was present
on
> the previous page (The closest equivalent is if the user directly typed
the
> links into the browser address bar (whether or not these links are there
in
> the content of the first page)
>
> If you need different users to have different journeys, then you have
> (Atleast) the following approaches
> a. Create Different Journeys in your test plan itself and use the various
> controllers that Jmeter provides to perform those journeys
> e.g.
> Thread Group email related
> CSV Data set config (To parameterize Usernames/pwds for say your
email
> link only )
> Http request 1 login
> Http request Home
> Http request email
> Thread Group call related
> CSV Data set config (To parameterize Usernames/pwds for say your call
> link only )
> Http request 1 login
> Http request Home
> Http request call
> OR
> b. Drive it through the CSV file and use the IF controller to control the
> requests
> e.g. CSV file would be username, password, canEmail,canCall,canDirectEmail
> (with 1/0 for the values of the flags)
> Thread Group
> CSV data set Config
> Http request login
> Http request home
> if Controller ("${canEmail}" == "1")
> HttpRequestEmail
> if Controller ("${canCall}" == "1")
> HttpRequestCall
> ....
>
> OR
> c. Make the test links dynamic using Post Processors like Regex extractors
> Thread Group
> CSV data set Config
> Http request login
> Http request home
> Regex post processor , extract links that you are interested in
> For each Controller (over extracted link from regex )
> request the link
> Maybe more post processors to extract further dynamic links
> Maybe If conditions based on what the link should do
>
>
> regards
> deepak
>
>
>
>
>
> On Wed, Sep 23, 2009 at 3:19 AM, Vijay <vi...@flatworldindia.com> wrote:
>
> > Good day,
> >
> >
> >
> > I have a scenario to test the load of the application for various users
> > performing their activities. Just logging in and clicking on some
> > activities
> > in their home page (not all the users will have activities).
> >
> > I've used Jmeter proxy to record this scenario for one user where the
> > second
> > thread (Call#1 has some id's (dynamic ids)) and used the same thread
> > without
> > modifying the test script.
> >
> > I found all the users are forward to the same page using the same link
> even
> > when the link is not available for other users.
> >
> >
> >
> >
> >
> > Test Plan
> >
> > - Thread group
> >
> > - HTTP Request defaults
> >
> > - HTTP Cookie Manager
> >
> > - Http Request 1 - Login page
> >
> > - CSV Data set config (To parameterize Usernames/pwds)
> >
> > - Http Request 2 - Clicking on a link on user homepage
> > (moreover the user homepage has some activity like, Email/Call/Direct
> Mail
> > links which forward user to a different page.
> >
> >
> >
> > Kindly can any one help out, how do I proceed to make the test
> successful.
> >
> >
> >
> > Thanks
> >
> > Vijay
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: how do i test for concurrent 100 users traversing dynamic pages
Posted by Deepak Shetty <sh...@gmail.com>.
Hi
what have you specified in the CSV file ?
regards
deepak
On Wed, Sep 23, 2009 at 9:41 PM, Vijay <vi...@flatworldindia.com> wrote:
> Hi Deepak
>
> Ignore my previous email
>
> I've followed option - b on your email
> Drive it through the CSV file and use the IF controller to control the
> requests e.g. CSV file would be username, password, Task (with 1/0 for the
> values of the flags)
> Thread Group
> CSV data set Config
> Http request login
> Http request home
> if Controller ("${task}" == "Email#1")
> HttpRequestEmail
> if Controller ("${task}" == "Call#1")
> HttpRequestCall
>
> User home page appears as a table
> Section name - List Tasks
> Column Headers - Task, Campaign, List name, List count, Task Status,
> Duration
>
> When I ran the test, my test is passed, but the http request under If
> controller is not executed. I am stuck here.
>
> Kindly assist me how do I proceed..
>
>
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> Sent: Wednesday, September 23, 2009 10:01 PM
> To: JMeter Users List
> Subject: Re: how do i test for concurrent 100 users traversing dynamic
> pages
>
> Hi
> Im not sure I understand you correctly.I think you are trying to say that
> different users have different links available to them once they login and
> the test should only access links available to the user. If so, read on.
> otherwise please explain preferably with clearer examples.
>
> Jmeter is not a browser. If you have a HTTP request sampler, Jmeter will
> make the request . it will not check whether or not the link was present on
> the previous page (The closest equivalent is if the user directly typed the
> links into the browser address bar (whether or not these links are there in
> the content of the first page)
>
> If you need different users to have different journeys, then you have
> (Atleast) the following approaches
> a. Create Different Journeys in your test plan itself and use the various
> controllers that Jmeter provides to perform those journeys
> e.g.
> Thread Group email related
> CSV Data set config (To parameterize Usernames/pwds for say your email
> link only )
> Http request 1 login
> Http request Home
> Http request email
> Thread Group call related
> CSV Data set config (To parameterize Usernames/pwds for say your call
> link only )
> Http request 1 login
> Http request Home
> Http request call
> OR
> b. Drive it through the CSV file and use the IF controller to control the
> requests
> e.g. CSV file would be username, password, canEmail,canCall,canDirectEmail
> (with 1/0 for the values of the flags)
> Thread Group
> CSV data set Config
> Http request login
> Http request home
> if Controller ("${canEmail}" == "1")
> HttpRequestEmail
> if Controller ("${canCall}" == "1")
> HttpRequestCall
> ....
>
> OR
> c. Make the test links dynamic using Post Processors like Regex extractors
> Thread Group
> CSV data set Config
> Http request login
> Http request home
> Regex post processor , extract links that you are interested in
> For each Controller (over extracted link from regex )
> request the link
> Maybe more post processors to extract further dynamic links
> Maybe If conditions based on what the link should do
>
>
> regards
> deepak
>
>
>
>
>
> On Wed, Sep 23, 2009 at 3:19 AM, Vijay <vi...@flatworldindia.com> wrote:
>
> > Good day,
> >
> >
> >
> > I have a scenario to test the load of the application for various users
> > performing their activities. Just logging in and clicking on some
> > activities
> > in their home page (not all the users will have activities).
> >
> > I've used Jmeter proxy to record this scenario for one user where the
> > second
> > thread (Call#1 has some id's (dynamic ids)) and used the same thread
> > without
> > modifying the test script.
> >
> > I found all the users are forward to the same page using the same link
> even
> > when the link is not available for other users.
> >
> >
> >
> >
> >
> > Test Plan
> >
> > - Thread group
> >
> > - HTTP Request defaults
> >
> > - HTTP Cookie Manager
> >
> > - Http Request 1 - Login page
> >
> > - CSV Data set config (To parameterize Usernames/pwds)
> >
> > - Http Request 2 - Clicking on a link on user homepage
> > (moreover the user homepage has some activity like, Email/Call/Direct
> Mail
> > links which forward user to a different page.
> >
> >
> >
> > Kindly can any one help out, how do I proceed to make the test
> successful.
> >
> >
> >
> > Thanks
> >
> > Vijay
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
RE: how do i test for concurrent 100 users traversing dynamic pages
Posted by Vijay <vi...@flatworldindia.com>.
Hi Deepak
I've opted option - b
csv data set config (username, password, email, call)
http requestd defaults
http cookie manager
http request 1 - Logincheck - two parameters (loginid, password) are sent
thru Post method
http request 2 - UserTaskAction - Several parameters (Listid, activityid,
task, count, method, emailalert, fromhome, clickcount and etc..) are sent
thru Post method
if controller ("${task}" == "email")
httprequest email
if controller ("${task}" == "call")
httprequest call
http request home page.
View Results Tree
I've executed and observed the error in View Results Tree listener.
The error message on
Sampler request tab
Thread Name: Thread Group 1-3
Sample Start: 1970-01-01 05:30:00 IST
Load time: 0
Latency: 0
Size in bytes: 622
Sample Count: 1
Error Count: 1
Response code: Non HTTP response code: java.net.MalformedURLException
Response message: Non HTTP response message: unknown protocol: httphttp
Response headers:
HTTPSampleResult fields:
ContentType:
DataEncoding: ISO-8859-1
Request tab
null
Request Headers:
Response data tab
java.net.MalformedURLException: unknown protocol: httphttp at java.net.URL.
(Unknown Source) at java.net.URL. (Unknown Source) at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.getUrl(HTTPSamplerBa
se.java:869) at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa
se.java:1037) at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa
se.java:1023) at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346
) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243) at
java.lang.Thread.run(Unknown Source)
I am not able to figure out the problem, kindly can you assist me
Thanks in advance
Vijay
-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com]
Sent: Wednesday, September 23, 2009 10:01 PM
To: JMeter Users List
Subject: Re: how do i test for concurrent 100 users traversing dynamic pages
Hi
Im not sure I understand you correctly.I think you are trying to say that
different users have different links available to them once they login and
the test should only access links available to the user. If so, read on.
otherwise please explain preferably with clearer examples.
Jmeter is not a browser. If you have a HTTP request sampler, Jmeter will
make the request . it will not check whether or not the link was present on
the previous page (The closest equivalent is if the user directly typed the
links into the browser address bar (whether or not these links are there in
the content of the first page)
If you need different users to have different journeys, then you have
(Atleast) the following approaches
a. Create Different Journeys in your test plan itself and use the various
controllers that Jmeter provides to perform those journeys
e.g.
Thread Group email related
CSV Data set config (To parameterize Usernames/pwds for say your email
link only )
Http request 1 login
Http request Home
Http request email
Thread Group call related
CSV Data set config (To parameterize Usernames/pwds for say your call
link only )
Http request 1 login
Http request Home
Http request call
OR
b. Drive it through the CSV file and use the IF controller to control the
requests
e.g. CSV file would be username, password, canEmail,canCall,canDirectEmail
(with 1/0 for the values of the flags)
Thread Group
CSV data set Config
Http request login
Http request home
if Controller ("${canEmail}" == "1")
HttpRequestEmail
if Controller ("${canCall}" == "1")
HttpRequestCall
....
OR
c. Make the test links dynamic using Post Processors like Regex extractors
Thread Group
CSV data set Config
Http request login
Http request home
Regex post processor , extract links that you are interested in
For each Controller (over extracted link from regex )
request the link
Maybe more post processors to extract further dynamic links
Maybe If conditions based on what the link should do
regards
deepak
On Wed, Sep 23, 2009 at 3:19 AM, Vijay <vi...@flatworldindia.com> wrote:
> Good day,
>
>
>
> I have a scenario to test the load of the application for various users
> performing their activities. Just logging in and clicking on some
> activities
> in their home page (not all the users will have activities).
>
> I've used Jmeter proxy to record this scenario for one user where the
> second
> thread (Call#1 has some id's (dynamic ids)) and used the same thread
> without
> modifying the test script.
>
> I found all the users are forward to the same page using the same link
even
> when the link is not available for other users.
>
>
>
>
>
> Test Plan
>
> - Thread group
>
> - HTTP Request defaults
>
> - HTTP Cookie Manager
>
> - Http Request 1 - Login page
>
> - CSV Data set config (To parameterize Usernames/pwds)
>
> - Http Request 2 - Clicking on a link on user homepage
> (moreover the user homepage has some activity like, Email/Call/Direct Mail
> links which forward user to a different page.
>
>
>
> Kindly can any one help out, how do I proceed to make the test successful.
>
>
>
> Thanks
>
> Vijay
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
RE: how do i test for concurrent 100 users traversing dynamic pages
Posted by Vijay <vi...@flatworldindia.com>.
Hi Deepak
Ignore my previous email
I've followed option - b on your email
Drive it through the CSV file and use the IF controller to control the
requests e.g. CSV file would be username, password, Task (with 1/0 for the
values of the flags)
Thread Group
CSV data set Config
Http request login
Http request home
if Controller ("${task}" == "Email#1")
HttpRequestEmail
if Controller ("${task}" == "Call#1")
HttpRequestCall
User home page appears as a table
Section name - List Tasks
Column Headers - Task, Campaign, List name, List count, Task Status,
Duration
When I ran the test, my test is passed, but the http request under If
controller is not executed. I am stuck here.
Kindly assist me how do I proceed..
-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com]
Sent: Wednesday, September 23, 2009 10:01 PM
To: JMeter Users List
Subject: Re: how do i test for concurrent 100 users traversing dynamic pages
Hi
Im not sure I understand you correctly.I think you are trying to say that
different users have different links available to them once they login and
the test should only access links available to the user. If so, read on.
otherwise please explain preferably with clearer examples.
Jmeter is not a browser. If you have a HTTP request sampler, Jmeter will
make the request . it will not check whether or not the link was present on
the previous page (The closest equivalent is if the user directly typed the
links into the browser address bar (whether or not these links are there in
the content of the first page)
If you need different users to have different journeys, then you have
(Atleast) the following approaches
a. Create Different Journeys in your test plan itself and use the various
controllers that Jmeter provides to perform those journeys
e.g.
Thread Group email related
CSV Data set config (To parameterize Usernames/pwds for say your email
link only )
Http request 1 login
Http request Home
Http request email
Thread Group call related
CSV Data set config (To parameterize Usernames/pwds for say your call
link only )
Http request 1 login
Http request Home
Http request call
OR
b. Drive it through the CSV file and use the IF controller to control the
requests
e.g. CSV file would be username, password, canEmail,canCall,canDirectEmail
(with 1/0 for the values of the flags)
Thread Group
CSV data set Config
Http request login
Http request home
if Controller ("${canEmail}" == "1")
HttpRequestEmail
if Controller ("${canCall}" == "1")
HttpRequestCall
....
OR
c. Make the test links dynamic using Post Processors like Regex extractors
Thread Group
CSV data set Config
Http request login
Http request home
Regex post processor , extract links that you are interested in
For each Controller (over extracted link from regex )
request the link
Maybe more post processors to extract further dynamic links
Maybe If conditions based on what the link should do
regards
deepak
On Wed, Sep 23, 2009 at 3:19 AM, Vijay <vi...@flatworldindia.com> wrote:
> Good day,
>
>
>
> I have a scenario to test the load of the application for various users
> performing their activities. Just logging in and clicking on some
> activities
> in their home page (not all the users will have activities).
>
> I've used Jmeter proxy to record this scenario for one user where the
> second
> thread (Call#1 has some id's (dynamic ids)) and used the same thread
> without
> modifying the test script.
>
> I found all the users are forward to the same page using the same link
even
> when the link is not available for other users.
>
>
>
>
>
> Test Plan
>
> - Thread group
>
> - HTTP Request defaults
>
> - HTTP Cookie Manager
>
> - Http Request 1 - Login page
>
> - CSV Data set config (To parameterize Usernames/pwds)
>
> - Http Request 2 - Clicking on a link on user homepage
> (moreover the user homepage has some activity like, Email/Call/Direct Mail
> links which forward user to a different page.
>
>
>
> Kindly can any one help out, how do I proceed to make the test successful.
>
>
>
> Thanks
>
> Vijay
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: how do i test for concurrent 100 users traversing dynamic pages
Posted by Deepak Shetty <sh...@gmail.com>.
Hi
Im not sure I understand you correctly.I think you are trying to say that
different users have different links available to them once they login and
the test should only access links available to the user. If so, read on.
otherwise please explain preferably with clearer examples.
Jmeter is not a browser. If you have a HTTP request sampler, Jmeter will
make the request . it will not check whether or not the link was present on
the previous page (The closest equivalent is if the user directly typed the
links into the browser address bar (whether or not these links are there in
the content of the first page)
If you need different users to have different journeys, then you have
(Atleast) the following approaches
a. Create Different Journeys in your test plan itself and use the various
controllers that Jmeter provides to perform those journeys
e.g.
Thread Group email related
CSV Data set config (To parameterize Usernames/pwds for say your email
link only )
Http request 1 login
Http request Home
Http request email
Thread Group call related
CSV Data set config (To parameterize Usernames/pwds for say your call
link only )
Http request 1 login
Http request Home
Http request call
OR
b. Drive it through the CSV file and use the IF controller to control the
requests
e.g. CSV file would be username, password, canEmail,canCall,canDirectEmail
(with 1/0 for the values of the flags)
Thread Group
CSV data set Config
Http request login
Http request home
if Controller ("${canEmail}" == "1")
HttpRequestEmail
if Controller ("${canCall}" == "1")
HttpRequestCall
....
OR
c. Make the test links dynamic using Post Processors like Regex extractors
Thread Group
CSV data set Config
Http request login
Http request home
Regex post processor , extract links that you are interested in
For each Controller (over extracted link from regex )
request the link
Maybe more post processors to extract further dynamic links
Maybe If conditions based on what the link should do
regards
deepak
On Wed, Sep 23, 2009 at 3:19 AM, Vijay <vi...@flatworldindia.com> wrote:
> Good day,
>
>
>
> I have a scenario to test the load of the application for various users
> performing their activities. Just logging in and clicking on some
> activities
> in their home page (not all the users will have activities).
>
> I've used Jmeter proxy to record this scenario for one user where the
> second
> thread (Call#1 has some id's (dynamic ids)) and used the same thread
> without
> modifying the test script.
>
> I found all the users are forward to the same page using the same link even
> when the link is not available for other users.
>
>
>
>
>
> Test Plan
>
> - Thread group
>
> - HTTP Request defaults
>
> - HTTP Cookie Manager
>
> - Http Request 1 - Login page
>
> - CSV Data set config (To parameterize Usernames/pwds)
>
> - Http Request 2 - Clicking on a link on user homepage
> (moreover the user homepage has some activity like, Email/Call/Direct Mail
> links which forward user to a different page.
>
>
>
> Kindly can any one help out, how do I proceed to make the test successful.
>
>
>
> Thanks
>
> Vijay
>
>