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
Summary: XPath Extractor : When content on which assertion applies is not XML, in View...
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.6
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2017-02-08 10:27 UTC by UbikLoadPack support
Modified: 2017-02-08 12:08 UTC (History)
1 user (show)



Attachments
Patch fixing the problem with more test units (3.21 KB, patch)
2017-02-08 11:11 UTC, UbikLoadPack support
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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