jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1842279 - in /jmeter/trunk: src/components/org/apache/jmeter/extractor/XPath2Extractor.java xdocs/changes.xml
Date Fri, 28 Sep 2018 19:41:03 GMT
Author: pmouawad
Date: Fri Sep 28 19:41:02 2018
New Revision: 1842279

URL: http://svn.apache.org/viewvc?rev=1842279&view=rev
Log:
Bug 62774 - XPath2Extractor : Scope variable is broken
Contributed by UbikLoadPack
Bugzilla Id: 62774

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/extractor/XPath2Extractor.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/components/org/apache/jmeter/extractor/XPath2Extractor.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/extractor/XPath2Extractor.java?rev=1842279&r1=1842278&r2=1842279&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/extractor/XPath2Extractor.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/extractor/XPath2Extractor.java Fri Sep 28
19:41:02 2018
@@ -116,7 +116,7 @@ PostProcessor, Serializable {
                 String inputString=vars.get(getVariableName());
                 if(inputString != null) {
                     if(inputString.length()>0) {
-                        getValuesForXPath(getXPathQuery(), matches, matchNumber,previousResult.getResponseDataAsString());
+                        getValuesForXPath(getXPathQuery(), matches, matchNumber, inputString);
                     }
                 } else {
                     if (log.isWarnEnabled()) {
@@ -152,7 +152,7 @@ PostProcessor, Serializable {
             }
         }catch (Exception e) {// Saxon exception
             if (log.isWarnEnabled()) {
-                log.warn("Exception while processing '{})', message:{}", getXPathQuery(),
e.getMessage());
+                log.warn("Exception while processing '{}', message:{}", getXPathQuery(),
e.getMessage());
             }
             addAssertionFailure(previousResult, e, false);
         }

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1842279&r1=1842278&r2=1842279&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml [utf-8] (original)
+++ jmeter/trunk/xdocs/changes.xml [utf-8] Fri Sep 28 19:41:02 2018
@@ -138,6 +138,7 @@ Summary
 
 <h3>Timers, Assertions, Config, Pre- &amp; Post-Processors</h3>
 <ul>
+    <li><bug>62774</bug>XPath2Extractor : Scope variable is broken. Contributed
by Ubik Load Pack (support at ubikloadpack.com)</li>
 </ul>
 
 <h3>Functions</h3>



Mime
View raw message