Hi,
I tried with replacing user parameter element, but it doesn't work,
because, this element is executed once.

So, I tried the second suggestion, which was adding a simple controller
between ForEach and user Parameter preprocessor...

And It works fine !!

Didn't try loop or java test.

Thanks very much for your answers.
Jerome

 
-------------------------------------------------------------------------------------------------------------------------------------------------
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
            Message de sebb le 01/04/2005 17:53                                 
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                           Veuillez r�pondre � "JMeter Users 
List" <[email protected]>                       
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                        Pour                                                    
                                                              
                                                                                
                                                              
                                 JMeter Users List, mstover1                    
                                                              
                                                                                
                                                              
                        Objet                                                   
                                                              
                                                                                
                                                              
                                 Re: processing returnvar before httprequest in 
foreach controller                                            
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              
                                                                                
                                                              




Perhaps try adding a Simple Controller between ForEach and its
children? Or maybe loop with count=1? Might work...

Otherwise, you could use a dummy JavaTest sampler instead of the
UserParameter test element. Not ideal, as it would add extra samples
to the output.

S.
On Apr 1, 2005 3:47 PM, Michael Stover <[EMAIL PROTECTED]> wrote:
> I could be wrong, but I think what's happening is that UserParameter is
> a Pre-Processor - it's going to run first.  You might try using the
> other user parameters config element instead of the pre-processor.
>
> -Mike
>
> On Fri, 2005-04-01 at 12:01 +0200, [EMAIL PROTECTED] wrote:
> > Hi all,
> >
> > I'm using jmeter 2.0.3 for testing a webapplication.
> >
> > I have a testplan with this request:
> >
> > Foreach Controller (returnVar, inputVar)
> >       |
> >       |_UserParameter: ${__split(${returnVar},aValue)}
> >       |
> >       |_HttpRequest(aValue_1, with parameter aValue_2)
> >
> >
> > My problem is that returnVar is interpreted before httpRequest, but
after
> > UserParameter:
> >
> > For example, if I have inputvar_1=url1,parameter1, and
> > input_var2=ur2,parameter2
> > this sequence will be executed
> > 1/
> > httpRequest( ${returnVar}, with parameter ${aValue_2} )
> >       meaning that variables returnVar had no value when the split was
> > executed, so split function assigns to aValue_1="${return_var}" and
that's
> > all.
> > 2/
> > httpRequest( url1, parameter1)
> >
> > I traced jmeter in debug mode. The method which updates returnVar
> > (jmeter.control.ForeachController.isDone) is called between
UserParameter
> > execution and HttpRequest.
> > Is there a way to make it execute before User Parameter ?
> >
> > Thanking you in advance
> >
> > Thanks and Regards
> > Jerome
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>

---------------------------------------------------------------------
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