jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1850478 - in /jmeter/trunk: src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java xdocs/changes.xml
Date Sat, 05 Jan 2019 12:19:26 GMT
Author: fschumacher
Date: Sat Jan  5 12:19:26 2019
New Revision: 1850478

URL: http://svn.apache.org/viewvc?rev=1850478&view=rev
Log:
Enhance Search & Replace functionality for HTTP Request to include port and protocol field.

Bugzilla Id: 63025

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java?rev=1850478&r1=1850477&r2=1850478&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Sat Jan  5 12:19:26 2019
@@ -2100,6 +2100,9 @@ public abstract class HTTPSamplerBase ex
 
         totalReplaced += replaceValue(regex, replaceBy, caseSensitive, getPath(), this::setPath);
         totalReplaced += replaceValue(regex, replaceBy, caseSensitive, getDomain(), this::setDomain);
+        for (String key: Arrays.asList(PORT, PROTOCOL)) {
+            totalReplaced += replaceValue(regex, replaceBy, caseSensitive, getPropertyAsString(key),
s -> setProperty(key, s));
+        }
 
         return totalReplaced;
     }

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1850478&r1=1850477&r2=1850478&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml [utf-8] (original)
+++ jmeter/trunk/xdocs/changes.xml [utf-8] Sat Jan  5 12:19:26 2019
@@ -80,6 +80,7 @@ of previous time slot as a base. Startin
 <h3>HTTP Samplers and Test Script Recorder</h3>
 <ul>
     <li><bug>62840</bug>HTTP Request: Add option <code>httpclient4.gzip_relax_mode</code>
to avoid error when unzipping what seems to be invalid streams</li>
+    <li><bug>63025</bug>Enhance Search &amp; Replace functionality
for HTTP Request to include port and protocol field.</li>
 </ul>
 
 <h3>Other samplers</h3>



Mime
View raw message