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"><input
type=\\?"hidden\\?" name=\\?"jsf_tree\\?"
id=\\?"jsf_tree\\?"
value=\\?"(.+?)\\?"</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"><input
type="hidden" name="jsf_viewid"
id="jsf_viewid" value="(.+?)"</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 <[EMAIL PROTECTED]>:
>
>
>
>
> 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