You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Jorg Heymans <jh...@domek.be> on 2004/01/27 10:49:28 UTC

nested user parameter config

Hi,

I have two datafiles, one with the dynamic request parameter that should 
go in the request and one with the variable part in the request url

ie 
http://localhost/request-uri/from/first/file?parameter=paramfromsecondfile

Now foreach dynamic request parameter i want to loop through the dynamic 
request URI's and trigger the request.

Adding both as user parameter to the threadgroup doesn't work because it 
takes the first line from both files, then the second line from both 
files etc.

Now i guess i could "massage" my input files to get around this, but 
just wondering if i could do it easier in jmeter.


Regards
Jorg Heymans


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: nested user parameter config

Posted by Jorg Heymans <jh...@domek.be>.
gmane is soooooo slow showing my replies. I found a way around it by 
making a loop controller with iterations set to the number of dynamic 
request parameters (so in the inner loop). I guess i was looking for a 
way to have this automatically determined but for now it will do.

Thanks for the pointer Craig.


Jorg

Craig Palmer wrote:

> You could read the parameters at different points in your loop according 
> to the scope you have defined, something like:.
> 
>   Outer loop:
>     * read URI parameter
>     Inner Loop:
>       * read dynamic parameter
>       * execute HTTP request
> 
> Craig.
> 
> Jorg Heymans wrote:
> 
>> Hi,
>>
>> I have two datafiles, one with the dynamic request parameter that 
>> should go in the request and one with the variable part in the request 
>> url
>>
>> ie 
>> http://localhost/request-uri/from/first/file?parameter=paramfromsecondfile 
>>
>>
>> Now foreach dynamic request parameter i want to loop through the 
>> dynamic request URI's and trigger the request.
>>
>> Adding both as user parameter to the threadgroup doesn't work because 
>> it takes the first line from both files, then the second line from 
>> both files etc.
>>
>> Now i guess i could "massage" my input files to get around this, but 
>> just wondering if i could do it easier in jmeter.
>>
>>
>> Regards
>> Jorg Heymans
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: nested user parameter config

Posted by Jorg Heymans <jh...@domek.be>.
What do you mean by "loop" ? Should i add a loop controller ?
I have now
Thread group
	- user parameters with uri parameter
	- loop controller (count forever)
		- http request
		- user parameter with dynamic request parameter

but that doesn't provide the desired effect.

Being able to define scope is also new to me, can you explain this a bit 
more? I'll keep digging the wiki and list but nothing has come up yet

Thanks
Jorg

Craig Palmer wrote:

> You could read the parameters at different points in your loop according 
> to the scope you have defined, something like:.
> 
>   Outer loop:
>     * read URI parameter
>     Inner Loop:
>       * read dynamic parameter
>       * execute HTTP request
> 
> Craig.
> 
> Jorg Heymans wrote:
> 
>> Hi,
>>
>> I have two datafiles, one with the dynamic request parameter that 
>> should go in the request and one with the variable part in the request 
>> url
>>
>> ie 
>> http://localhost/request-uri/from/first/file?parameter=paramfromsecondfile 
>>
>>
>> Now foreach dynamic request parameter i want to loop through the 
>> dynamic request URI's and trigger the request.
>>
>> Adding both as user parameter to the threadgroup doesn't work because 
>> it takes the first line from both files, then the second line from 
>> both files etc.
>>
>> Now i guess i could "massage" my input files to get around this, but 
>> just wondering if i could do it easier in jmeter.
>>
>>
>> Regards
>> Jorg Heymans
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: nested user parameter config

Posted by Craig Palmer <cr...@peace.com>.
You could read the parameters at different points in your loop 
according to the scope you have defined, something like:.

   Outer loop:
     * read URI parameter
     Inner Loop:
       * read dynamic parameter
       * execute HTTP request

Craig.

Jorg Heymans wrote:
> Hi,
> 
> I have two datafiles, one with the dynamic request parameter that should 
> go in the request and one with the variable part in the request url
> 
> ie 
> http://localhost/request-uri/from/first/file?parameter=paramfromsecondfile
> 
> Now foreach dynamic request parameter i want to loop through the dynamic 
> request URI's and trigger the request.
> 
> Adding both as user parameter to the threadgroup doesn't work because it 
> takes the first line from both files, then the second line from both 
> files etc.
> 
> Now i guess i could "massage" my input files to get around this, but 
> just wondering if i could do it easier in jmeter.
> 
> 
> Regards
> Jorg Heymans
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 


-- 
Craig Palmer                    Mobile NZ: +64 21 755 254
Peace Software                  URL: http://www.peace.com
                                 Email: craig.palmer@peace.com


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org