Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 6982 invoked from network); 26 Sep 2007 11:09:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Sep 2007 11:09:28 -0000 Received: (qmail 56343 invoked by uid 500); 26 Sep 2007 11:09:14 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 56298 invoked by uid 500); 26 Sep 2007 11:09:14 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 56287 invoked by uid 99); 26 Sep 2007 11:09:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2007 04:09:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [202.164.190.52] (HELO MNGDCEXCH01.headstrong.com) (202.164.190.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2007 11:11:32 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: JSF perf test with JMeter, possible? Date: Wed, 26 Sep 2007 19:10:39 +0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: JSF perf test with JMeter, possible? Thread-Index: AcgAG3Nyl0bWo0i/RMW2EPT9DZxPMAAEGmkw From: "Bryan Sevilla" To: "MyFaces Discussion" X-Virus-Checked: Checked by ClamAV on apache.org Hi Volker, I'm quite new to jmeter, where should I attach the RegexExtractor? Under threadGroup? I've tried putting the extractor on the threadgroup where my samplers reside, and set the javax.faces.ViewState params with ${jsf_viewid} but it doesn't work? Did I miss something? I wanna know the details of attaching the extractor in my samplers, can you pls. explain it more. How does the extractor address the dynamic html IDS (not the viewState) being generated by the JSF? For instance, I have the following response html from a datatable: 123456789 abc@a.com abc@a.org OK : goodFiles\file04.TIF 4 // HREF ONE 25 Sep 2007 3D"Yes"/ View // HREF TWO How would JMETER which to execute HREF ONE or HREF TWO, given on a multi-user setup for threadGroup? Thanks for your help... -----Original Message----- From: weber.volker@googlemail.com [mailto:weber.volker@googlemail.com] On Behalf Of Volker Weber Sent: Wednesday, September 26, 2007 4:56 PM To: MyFaces Discussion Subject: Re: JSF perf test with JMeter, possible? Hi Bryan, yes it is possible, i'm currently doing this with a tobago app. My app uses server-side state saving, i think this ViewState Extractor from the wiki is for client-side state saving, so i have two different extractors: false jsf_tree <input type=3D\\?"hidden\\?" name=3D\\?"jsf_tree\\?" id=3D\\?"jsf_tree\\?" value=3D\\?"(.+?)\\?" $1$ false jsf_viewid <input type=3D"hidden" name=3D"jsf_viewid" id=3D"jsf_viewid" value=3D"(.+?)" $1$ If you don't change the relevant parts of your views dynamically you should be able to use the jmeter proxy to record the request and than edit the parameters to replace the jsf_tree and jsf_viewid values with the extracted. Regards, Volker 2007/9/26, Bryan Sevilla : > > > > > I would like to know if it's possible to do performance test using JMeter > with the JSF, specifically, myfaces? Does anybody had already successfully > implemented performance test for those two? > > > > I was thinking that I will not be able to execute jmeter concurrently > because of the nature of the jsf, that it dynamically generates the form > element id's, specially those of datatable elements. > > > > Could I possibly capture the dynamic IDs jsf generated on the fly, just like > the what wiki mentioned for the ViewState? > > > > If Jmeter and jsf performance testing is not possible, is there any > alternative solution for doing performance test with JSF? > ViewState Extractor > > To simulate the ViewState parameter create a JMeter RegEx Extractor. The > best approach is to apply the extractor to the Thread Group so it applies > across the whole test script. Use the following parameters: > > Would appreciate any help. > > > > Regards, > > Bryan