On 13/02/06, R R <[EMAIL PROTECTED]> wrote: > Hi, > > The application that I am testing takes information in the body of a POST > request and responds back to the client with a data stream which is then > processed via Java scripts. I have two questions; > > 1) In order to emulate this I have used the "SOAP/XML-RPC Request" > sampler > as I could not see an obvious way of sending data within the body of the > HTML sampler. Is there a way of doing this with the HTML sampler?
The HTTP Request POST command http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Request allows parameters to be sent as part of the request - does this not work? > 2) One of the data streams returns an array of data which I am loading > into > the Jmeter variable. I would like to carry out string manipulation on this > data and load separate pieces of it into other variables. What would be the > best way to achieve this? Or if at all possible does anyone have any sample > code where they have done something similer? There is a split() function that may be suitable: http://jakarta.apache.org/jmeter/usermanual/functions.html#__split Or you could perhaps use BeanShell: http://jakarta.apache.org/jmeter/usermanual/functions.html#__BeanShell This can create variables if required. Or Javascript: http://jakarta.apache.org/jmeter/usermanual/functions.html#__javaScript This can only return one string/variable, but you might be able to write a function to extract the parts one at a time. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

