Bug 43382 - configure Tidy output (warnings, errors) for XPath Assertion and Post-Processor
configure Tidy output (warnings, errors) for XPath Assertion and Post-Processor
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.3
Other other
: P2 enhancement (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2007-09-13 05:05 UTC by Christoph
Modified: 2007-11-27 18:21 UTC (History)
0 users



Attachments
patch for xpath ectractor and xpath assertion (6.45 KB, patch)
2007-09-13 05:06 UTC, Christoph
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph 2007-09-13 05:05:25 UTC
for xpathextractor and xpathassertion, in release 2.3 following options are set 
for tidy:
-tidy.setQuiet(true)
-tidy.setShowWarnings(false)

we created a patch where we can set these options in a property file, as we 
want to see if a xml-document is invalid.

moreover, this patch provides a new property to be used in 
jmeter.properties, "tidy.tolerate_errors".
if this property is set to false and there exists errors when applying tidy to 
a xml-document, following behaviour shows up:

- xpathextractor: a failed assertion for the sampler (where xpathextractor 
failed) is created with name = "TidyException" and failuremessage = "tidy: 3 
errors, 12 warnings"

- xpathassertion: this assertions fails with following failuremessage "tidy: 3 
errors, 12 warnings"

i hope you can use these patch.
greets,
  chris
Comment 1 Christoph 2007-09-13 05:06:08 UTC
Created attachment 20814 [details]
patch for xpath ectractor and xpath assertion
Comment 2 Sebb 2007-11-27 18:21:18 UTC
Thanks for the patch.

The code has been implemented in SVN r598853.

Note that the options are set using the GUI rather than properties.