Hi The "trick" as you said with the dialog windows in ADF, is that we must
save the values for "adf.ctrl-state", "javax.faces.ViewState" and probably
"adf.afrLoop"  when the window opens  and restore on close.

To extract this values i used the following Regular expression extractors

        <RegexExtractor guiclass="RegexExtractorGui"
testclass="RegexExtractor" testname="adf.ctrl-state Extractor"
enabled="true">
          <stringProp name="RegexExtractor.useHeaders">false</stringProp>
          <stringProp
name="RegexExtractor.refname">adf.ctrl-state</stringProp>
          <stringProp
name="RegexExtractor.regex">_adf.ctrl-state=([-_0-9A-Za-z!]{10,20})</stringProp>
          <stringProp name="RegexExtractor.template">$1$</stringProp>
          <stringProp name="RegexExtractor.default"></stringProp>
          <stringProp name="RegexExtractor.match_number">1</stringProp>
        </RegexExtractor>
        <hashTree/>
        <RegexExtractor guiclass="RegexExtractorGui"
testclass="RegexExtractor" testname="afrLoop Extractor" enabled="true">
          <stringProp name="RegexExtractor.useHeaders">false</stringProp>
          <stringProp name="RegexExtractor.refname">afrLoop</stringProp>
          <stringProp
name="RegexExtractor.regex">_afrLoop=([-_0-9A-Za-z]{13,20})</stringProp>
          <stringProp name="RegexExtractor.template">$1$</stringProp>
          <stringProp name="RegexExtractor.default"></stringProp>
          <stringProp name="RegexExtractor.match_number">1</stringProp>
        </RegexExtractor>
        <hashTree/>
        <RegexExtractor guiclass="RegexExtractorGui"
testclass="RegexExtractor" testname="afrWindowId Extractor" enabled="true">
          <stringProp name="RegexExtractor.useHeaders">false</stringProp>
          <stringProp name="RegexExtractor.refname">afrWindowId</stringProp>
          <stringProp name="RegexExtractor.regex">window.name
=&apos;([-_0-9A-Za-z!]{10,20})&apos;</stringProp>
          <stringProp name="RegexExtractor.template">$1$</stringProp>
          <stringProp name="RegexExtractor.default"></stringProp>
          <stringProp name="RegexExtractor.match_number">1</stringProp>
        </RegexExtractor>
        <hashTree/>
        <RegexExtractor guiclass="RegexExtractorGui"
testclass="RegexExtractor" testname="javax.faces.ViewState Extractor"
enabled="true">
          <stringProp name="RegexExtractor.useHeaders">false</stringProp>
          <stringProp
name="RegexExtractor.refname">javax.faces.ViewState</stringProp>
          <stringProp name="RegexExtractor.regex">&lt;input
type=&quot;hidden&quot; name=&quot;javax\.faces\.ViewState&quot;
value=&quot;(.+?)&quot;&gt;</stringProp>
          <stringProp name="RegexExtractor.template">$1$</stringProp>
          <stringProp name="RegexExtractor.default"></stringProp>
          <stringProp name="RegexExtractor.match_number">1</stringProp>
        </RegexExtractor>

--
Bruno Antunes
Software Engineer


On Mon, Feb 27, 2012 at 6:32 AM, ankitR <[email protected]> wrote:

> Hi All,
>
> I am using Jmeter to test an ADF web App. I have configured Jmeter to
> capture all the parameters like - adf.ctrl-state etc. correctly. This works
> fine in all the normal use cases but starts failing when you try to open a
> Run Time Prompt Window. Basically each for each RTP window the value of
> these parameters (adf.ctrl-state, javax.faces.ViewState,afrLoop) changes.
> The regular expression extractors I am using to capture these parameter
> values in variables do not work now. I tweaked the expressions a little bit
> and now it works for afrLoop but I am still facing the same issue with the
> other parameters.
> I also tried placing reg ex extractors before the HTTP request that calls
> the RTP window but this also did not work for me.
> Any help would be really appreciated.
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Using-Jemeter-with-ADF-to-record-Run-Time-Prompts-tp5518051p5518051.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]
>
>

Reply via email to