You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Jen Lee <jl...@nc.rr.com> on 2005/07/20 05:54:58 UTC
Can I use dynamic parameters with SOAP/XML-RPC Request?
Hi - I am new to jmeter, and have been trying to setup a test script where I use some of the output of an XML-RPC request sampler as input to a future xml-rpc sampler. For example, I have a XML-RPC request that returns;
<?xml version="1.0" encoding="iso-8859-1"?>
......
<value>
<int>47692482</int>
</value>
<value>
<int>56795</int>
......
I
I would like to be able to use the regular expression post-processor to extract out that last variable value, eg. userid=<int>\d+</int>.*<int>(\d+)</int> but what I cannot figure out is how to use it later in a future XML-RPC request. Here is my later request;
<?xml version="1.0" encoding="iso-8859-1" ?>
<methodCall>
<methodName>Class1.sqlstruct</methodName>
<params>
<param>
<value>
<string>SELECT name, type_id FROM namelist WHERE user_id= ${userid}</string>
</value>
</param>
</params>
</methodCall>
I read the FAQ entitled ' How do I make parameters dynamic, reacting to the unique server responses of each test run?' and it uses a sample of adding a parameter, but this does not seem to be an option for the XML-RPC request, only the http samplers. Does anyone know if this should work for XML-RPC, and if so, how? Thank You!
Re: Can I use dynamic parameters with SOAP/XML-RPC Request?
Posted by Michael Stover <ms...@apache.org>.
I see no reason why that shouldn't work just as you expect. Do you
provide your regex with a default value? Do you set the variable name
in the regex extractor component to "userid" (ie not "${userid}")?
-Mike
On Tue, 2005-07-19 at 23:54 -0400, Jen Lee wrote:
> Hi - I am new to jmeter, and have been trying to setup a test script where I use some of the output of an XML-RPC request sampler as input to a future xml-rpc sampler. For example, I have a XML-RPC request that returns;
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> ......
> <value>
> <int>47692482</int>
> </value>
> <value>
> <int>56795</int>
> ......
> I
> I would like to be able to use the regular expression post-processor to extract out that last variable value, eg. userid=<int>\d+</int>.*<int>(\d+)</int> but what I cannot figure out is how to use it later in a future XML-RPC request. Here is my later request;
>
> <?xml version="1.0" encoding="iso-8859-1" ?>
> <methodCall>
> <methodName>Class1.sqlstruct</methodName>
> <params>
> <param>
> <value>
> <string>SELECT name, type_id FROM namelist WHERE user_id= ${userid}</string>
> </value>
> </param>
> </params>
> </methodCall>
>
>
> I read the FAQ entitled ' How do I make parameters dynamic, reacting to the unique server responses of each test run?' and it uses a sample of adding a parameter, but this does not seem to be an option for the XML-RPC request, only the http samplers. Does anyone know if this should work for XML-RPC, and if so, how? Thank You!
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Can I use dynamic parameters with SOAP/XML-RPC Request?
Posted by Bronagh McElduff <Br...@mobilecohesion.com>.
Hi Jen,
I haven't tried this for an XML-RPC request, however, it sounds similar
to something that I wanted to do with a SOAP request. Variable
substitution is currently not supported for XML elements in JMeter.
I have added an enhancement report:
http://issues.apache.org/bugzilla/show_bug.cgi?id=35792
Cheers,
Bronagh
Jen Lee wrote:
>Hi - I am new to jmeter, and have been trying to setup a test script where I use some of the output of an XML-RPC request sampler as input to a future xml-rpc sampler. For example, I have a XML-RPC request that returns;
>
><?xml version="1.0" encoding="iso-8859-1"?>
>......
><value>
><int>47692482</int>
></value>
><value>
><int>56795</int>
>......
>I
> I would like to be able to use the regular expression post-processor to extract out that last variable value, eg. userid=<int>\d+</int>.*<int>(\d+)</int> but what I cannot figure out is how to use it later in a future XML-RPC request. Here is my later request;
>
><?xml version="1.0" encoding="iso-8859-1" ?>
><methodCall>
><methodName>Class1.sqlstruct</methodName>
><params>
> <param>
> <value>
> <string>SELECT name, type_id FROM namelist WHERE user_id= ${userid}</string>
> </value>
> </param>
></params>
></methodCall>
>
>
> I read the FAQ entitled ' How do I make parameters dynamic, reacting to the unique server responses of each test run?' and it uses a sample of adding a parameter, but this does not seem to be an option for the XML-RPC request, only the http samplers. Does anyone know if this should work for XML-RPC, and if so, how? Thank You!
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org