You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Hoffman, Matthew" <ho...@ctc.com> on 2006/04/17 22:47:03 UTC

CSV Random values?

Is it possible to randomize the csv controller so it reads a random
value for each thread as it runs?  Is there a better way to do this?

 

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com]
Sent: Monday, April 17, 2006 3:51 PM
To: JMeter Users List
Subject: Re: XML Schema validation

On 17/04/06, amelaao <am...@gmail.com> wrote:
> I can't use option 1, because I'm using industry specific schemas 
> which I can't change.

Aren't schemas just text files?
Can't you just copy the file and add the appropriate information?

> I extracted embedded message using RE extractor into a new variable, 
> but I'm not sure in Java Request Sampler which parameter to pass the 
> value of this variable to, so that XML Schema Assertion  checks
against it.

The XML Schema Assertion checks the Response Data, so just set that to
the variable in the Java Request JavaTest sampler.

> My flow is currently:
>
>    - SOAP/XML-RPC Request
>       - Response Assertion
>       - RE Extractor
>    - Java Request
>       - XML Schema Assertion
>
> I will submit a bugzilla entry, but would love to have  temp solution 
> in the meantime.
> Thanks,
> Amela
>
> On 4/17/06, sebb <se...@gmail.com> wrote:
>
> > I don't think this is possible currently, but there are some things 
> > you could try:
> >
> > * update the XSD to include the Soap wrapper
> >
> > * extract the content using the RE extractor, and generate a dummy 
> > sample using Java Request sampler, then add the XML Schema Assertion

> > to that.
> >
> > Both are a bit messy.
> >
> > You could create a Bugzilla enhancement request - e.g. to add a 
> > facility to XML Schema Assertion to use part of the response or a 
> > variable.
> >
> > On 17/04/06, amela abadzic <am...@gmail.com> wrote:
> > > I'm using JMeter for automated  Web Services testing. I'm using
> > Soap/XML-RPC
> > > Request Sampler. I need to validate the embedded response message
> > against
> > > the schema. I can't simply use XML Schema Assertion, because it 
> > > tries to validate the whole Soap Response, where I need to 
> > > validate just the
> > payload
> > > which is embedded  in Soap Body.
> > >
> > >
> > >
> > > <SOAP-ENV:Envelope >
> > >
> > > <SOAP-ENV:Header >...</SOAP-ENV:Header >
> > >
> > > <SOAP-ENV:Body >
> > >
> > >             <MessageToValidate>
> > >
> > >                         ...
> > >
> > >             </ MessageToValidate>
> > >
> > > </SOAP-ENV:Body >
> > >
> > > </SOAP-ENV:Envelope>
> > >
> > >
> > >
> > > I can use Regular expression extractor to extract this
> > <MessageToValidate>
> > > ...</MessageToValidate>, and I would like a way to use XML Schema
> > Assertion on
> > > this extracted message. Any ideas will be very much appreciated.
> > >
> > >
> > >
> > > Thanks,
> > >
> > > Amela
> > >
> > >
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
>
> --
> Regards,
> Amela
>
>

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




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


Re: CSV Random values?

Posted by sebb <se...@gmail.com>.
On 17/04/06, Hoffman, Matthew <ho...@ctc.com> wrote:
> Is it possible to randomize the csv controller so it reads a random
> value for each thread as it runs?  Is there a better way to do this?

Yes.

Please use an appropriate subject line, start a new thread, and please
don't post twice in quick succession ...

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