On 23/02/2009, anthonymak <[email protected]> wrote:
>
>  Dear Sebb,
>
>  Thanks for your reply. :)
>
>  My program is just a jsf page with parameters passed into the browser URL
>  e.g. http://localhost:8080/webapp1/index.jsf?param1=a&param2=b.
>  It does not have a subsequent page (, however, inside the same index.jsf
>  page it makes various background request to query & download contents for
>  various parts of the page).
>  Since I don't have a "next page", what should I do with the ViewState?

Unless the background requests need the viewstate - nothing.

>  I want the load testing to simulate my real web application as much as
>  possible. A large part of the time in running my web app is in initializing
>  the webcontext and loading various javascript files. However, when I use
>  HTTP Proxy to record my query above, it only recorded a bunch of PNG files.

That does not make sense unless you have used include or exclude
restrictions; JMeter will record all the HTTP requests you make.

>  So do I just need to put extra stuffs in the include section?

Don't put anything in include or exclude.

>  At the moment, if I run a load test just base on those recorded PNG file
>  downloads, wouldn't it excludes the time it needs to initialize the JSF
>  context, downloading the js libraries files, and also the time latency due
>  to the necessary backend processing to produce the results (such as database
>  query)?
>  If I want to load test a complete run of my JSF web application (that
>  includes all the initializations and the backend query processing time), can
>  I use the HTTP Proxy to record that?

Yes.

>  Any insights will be greatly appreciated as this is my first time to play
>  around with JMeter :)

Perhaps you should try recording something simpler first.

>  Anthony
>
>
>
>
>  sebb-2-2 wrote:
>  >
>  > On 20/02/2009, anthonymak <[email protected]> wrote:
>  >>
>  >>  Help~
>  >>
>  >>  I am trying to test a JSF page by following:
>  >>  http://wiki.apache.org/myfaces/PerformanceTestingWithJMeter
>  >>
>  >>  However, when I tried to "record your request/response streams" as the
>  >> above
>  >>  page suggest, I used a HTTP Proxy to do that. However, JMeter only seems
>  >> to
>  >>  record a bunch of png files, it doesn't seem to record other files such
>  >> as
>  >>  javascript libraries files, which takes a long time to load in my web
>  >>  application, and without recording these the time will be far from real.
>  >> How
>  >>  can I properly record a JSF app using HTTP Proxy?
>  >
>  > Same as any other recording.
>  >
>  > Did you specify any includes/excludes?
>  >
>  >>  Secondly, the PerformanceTestingWithJMeter page mentions using First and
>  >>  Subsequent Request to simulate the ViewState. However, the test I want
>  >> to do
>  >>  is a single .jsf page with parameters. This page might make some other
>  >>  background request in the background, but there is no explict second
>  >> page I
>  >>  need to test. So how can I simulate the ViewState with only 1 page?
>  >
>  > ViewState is set in one page, and needs to be sent to the next page.
>  >
>  > There must be a page which sets the value; this needs to be extracted
>  > (e.g. with the Regex Extractor) and sent to the next page.
>  >
>  >>  Kind Regards,
>  >>  Anthony Mak
>  >>
>  >> --
>  >>  View this message in context:
>  >> 
> http://www.nabble.com/Problem-testing-JSF-page-following-PerformanceTestingWithJMeter-tutorial-tp22116100p22116100.html
>  >>  Sent from the JMeter - User mailing list archive at Nabble.com.
>  >>
>  >>
>  >>  ---------------------------------------------------------------------
>  >>  To unsubscribe, e-mail: [email protected]
>  >>  For additional commands, e-mail: [email protected]
>  >>
>  >>
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: [email protected]
>  > For additional commands, e-mail: [email protected]
>  >
>  >
>  >
>
>
> --
>  View this message in context: 
> http://www.nabble.com/Problem-testing-JSF-page-following-PerformanceTestingWithJMeter-tutorial-tp22116100p22154373.html
>
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [email protected]
>  For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to