Bug 60710

Summary: XPath Extractor : When content on which assertion applies is not XML, in View Results Tree the extractor is marked in Red and named SAXParseException
Product: JMeter - Now in Github Reporter: UbikLoadPack support <support>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement CC: p.mouawad
Priority: P2 Keywords: PatchAvailable
Version: 2.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Patch fixing the problem with more test units

Description UbikLoadPack support 2017-02-08 10:27:05 UTC
Name of Extractor is lost which does not make it easy to find which extractor is concerned.
Comment 1 UbikLoadPack support 2017-02-08 10:28:35 UTC
Line 191 of class XPathExtractor, replace:
AssertionResult ass = new AssertionResult(thrown.getClass().getSimpleName()); // $NON-NLS-1$
by
AssertionResult ass = new AssertionResult(getName()); // $NON-NLS-1$

It seems it's the only Extractor which names assertions this way on failure.
Comment 2 UbikLoadPack support 2017-02-08 11:11:52 UTC
Created attachment 34735 [details]
Patch fixing the problem with more test units
Comment 3 Philippe Mouawad 2017-02-08 12:08:49 UTC
Author: pmouawad
Date: Wed Feb  8 12:08:17 2017
New Revision: 1782147

Contributed by Ubik Load Pack
URL: http://svn.apache.org/viewvc?rev=1782147&view=rev
Log:
Bug 60710 - XPath Extractor : When content on which assertion applies is not XML, in View Results Tree the extractor is marked in Red and named SAXParseException
Bugzilla Id: 60710

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/extractor/XPathExtractor.java
    jmeter/trunk/test/src/org/apache/jmeter/extractor/TestXPathExtractor.java
    jmeter/trunk/xdocs/changes.xml
Comment 4 The ASF infrastructure team 2022-09-24 20:38:07 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4271