myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Sevilla" <Bryan.Sevi...@headstrong.com>
Subject RE: JSF perf test with JMeter, possible?
Date Wed, 26 Sep 2007 11:10:39 GMT
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:

<tr class="standardTable_Row1">
	<td width="15%">123456789</td>
	<td width="15%">abc@a.com </td>
	<td width="15%">abc@a.org</td>
	<td width="15%">OK : goodFiles\file04.TIF</td>
	<td width="15%">
        <a id="list:aList:0:_id52" name="list:aList:0:_id52"
href="a.html?id=4" target="newWindow">4</a>            // HREF ONE
      </td>
	<td class="date" width="20%">25 Sep 2007</td>
	<td class="symbol" width="15%"><img src="/images/check.png"
alt="Yes"/></td>
	<td class="symbol" width="10%">
		<a
href="/pages/a/list.html?aList:_idcl=list:aList:0:_id70&amp;aList
_SUBMIT=1&amp;a_id=5103&amp;" id="list:aList:0:_id70" class="rollover
view">View</a> // HREF TWO
	</td>
</tr>

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:

      <RegexExtractor guiclass="RegexExtractorGui"
testclass="RegexExtractor" testname="ViewState jsf_tree Extractor"
enabled="true">
        <stringProp name="RegexExtractor.useHeaders">false</stringProp>
        <stringProp name="RegexExtractor.refname">jsf_tree</stringProp>
        <stringProp name="RegexExtractor.regex">&lt;input
type=\\?&quot;hidden\\?&quot; name=\\?&quot;jsf_tree\\?&quot;
id=\\?&quot;jsf_tree\\?&quot;
value=\\?&quot;(.+?)\\?&quot;</stringProp>
        <stringProp name="RegexExtractor.template">$1$</stringProp>
        <stringProp name="RegexExtractor.default"></stringProp>
        <stringProp name="RegexExtractor.match_number"></stringProp>
      </RegexExtractor>

      <RegexExtractor guiclass="RegexExtractorGui"
testclass="RegexExtractor" testname="ViewState jsf_viewid Extractor"
enabled="true">
        <stringProp name="RegexExtractor.useHeaders">false</stringProp>
        <stringProp
name="RegexExtractor.refname">jsf_viewid</stringProp>
        <stringProp name="RegexExtractor.regex">&lt;input
type=&quot;hidden&quot; name=&quot;jsf_viewid&quot;
id=&quot;jsf_viewid&quot; value=&quot;(.+?)&quot;</stringProp>
        <stringProp name="RegexExtractor.template">$1$</stringProp>
        <stringProp name="RegexExtractor.default"></stringProp>
        <stringProp name="RegexExtractor.match_number"></stringProp>
      </RegexExtractor>


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 <Bryan.Sevilla@headstrong.com>:
>
>
>
>
> 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

Mime
View raw message