Re: Cleaning content of response before assertions (was: Question about XPath)

2007-06-20 Thread sebb
lp me narrow my search? Thanks, Ron -Original Message- From: Knut Borchart [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 3:24 PM To: JMeter Users List Subject: Re: Cleaning content of response before assertions (was: Question about XPath) Hi, i was able to use a beanshell post-proc

RE: Cleaning content of response before assertions (was: Question about XPath)

2007-06-13 Thread Ron Miller
ng a bit overwhelmed. Would someone please help me narrow my search? Thanks, Ron -Original Message- From: Knut Borchart [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 3:24 PM To: JMeter Users List Subject: Re: Cleaning content of response before assertions (was: Question about XPa

Re: Cleaning content of response before assertions (was: Question about XPath)

2007-06-13 Thread sebb
For some reason, Post-Processors are run in reverse order. This has been fixed in the current code in SVN. Meanwhile, try swapping them round. On 13/06/07, Knut Borchart <[EMAIL PROTECTED]> wrote: Hi, i was able to use a beanshell post-processor to clean the response: String sampleResult = n

Re: Cleaning content of response before assertions (was: Question about XPath)

2007-06-13 Thread Knut Borchart
Hi, i was able to use a beanshell post-processor to clean the response: String sampleResult = new String(prev.getResponseData()); String temp = sampleResult.substring(0,sampleResult.length()-1); prev.setResponseData(temp.getBytes()); I have added two such beanshell post-processor parts to my te

Re: Cleaning content of response before assertions (was: Question about XPath)

2007-06-12 Thread sebb
Have you tried the tolerant check-box? Assertions are processed after Post-Processors: http://jakarta.apache.org/jmeter/usermanual/test_plan.html#executionorder so you can use a BeanShell Post-Processor to update the sampleData and strip off the garbage. But really, the server ought to be fixe

Cleaning content of response before assertions (was: Question about XPath)

2007-06-12 Thread Knut Borchart
Hi, it seems my problem with xpath (assertion/extraction) i mentioned in another posting was caused by the application server sending a strange character at the end of the response (displayed like a rectangle, cannot paste here) \something How can i clean the response content before a