On 18/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi:
> I have implemented a Preprocessor to alter the value of some fields in
> my Sampler before it is executed. For example, I am sending xml over
> Tibco, and
> I want to update one of the elements in my xml with dynamic content
> returned from the previous sample.
>
> I am able to get the dynamic field from the previous sample, but when I
> try to update the example in the current sample I notice that the field is
> null. It seems that these fields are intialized when the test starts up,
> since they are static content. I noticed this process in the log file. Any
> idea about what I am doing wrong?
>
>
> Here is the code in my Preprocessor implementation, the xmlData is null at
> line marked 1>
>
> TibcoSampler currentSampler = (TibcoSampler) getThreadContext()
> .getCurrentSampler();
>
> 1> LOG.debug("XML DATA = "+currentSampler.getXmlData());
>
> currentSampler.setXmlData(currentSampler.getXmlData().replaceAll(
> "REPLACE", value));
Perhaps the TibcoSampler does not call setXmlData() ?
In the current JMeter, this is only set by the WebServiceSampler in the Gui.
S.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]