ASF Bugzilla – Attachment 36036 Details for
Bug 62550
Modify SubResult Naming Policy
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch implementing enhancement
BUG_62550.patch (text/plain), 2.60 KB, created by
Philippe Mouawad
on 2018-07-17 20:23:22 UTC
(
hide
)
Description:
Patch implementing enhancement
Filename:
MIME Type:
Creator:
Philippe Mouawad
Created:
2018-07-17 20:23:22 UTC
Size:
2.60 KB
patch
obsolete
>Index: bin/jmeter.properties >=================================================================== >--- bin/jmeter.properties (revision 1835010) >+++ bin/jmeter.properties (working copy) >@@ -507,7 +507,7 @@ > #jmeter.save.saveservice.bytes=true > # Only available with HttpClient4 > #jmeter.save.saveservice.sent_bytes=true >-#jmeter.save.saveservice.url=false >+jmeter.save.saveservice.url=true > #jmeter.save.saveservice.filename=false > #jmeter.save.saveservice.hostname=false > #jmeter.save.saveservice.thread_counts=true >Index: src/core/org/apache/jmeter/samplers/SampleResult.java >=================================================================== >--- src/core/org/apache/jmeter/samplers/SampleResult.java (revision 1835968) >+++ src/core/org/apache/jmeter/samplers/SampleResult.java (working copy) >@@ -267,6 +267,8 @@ > private URL location; > > private transient boolean ignore; >+ >+ private transient int subResultIndex; > > /** > * Cache for responseData as string to avoid multiple computations >@@ -657,6 +659,7 @@ > if (subResults == null) { > subResults = new ArrayList<>(); > } >+ subResult.setSampleLabel(getSampleLabel()+"-"+subResultIndex++); > subResults.add(subResult); > subResult.setParent(this); > } >Index: src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java >=================================================================== >--- src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java (revision 1835968) >+++ src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java (working copy) >@@ -332,7 +332,7 @@ > > SENT_BYTES = TRUE.equalsIgnoreCase(props.getProperty(SAVE_SENT_BYTES_PROP, TRUE)); > >- URL = TRUE.equalsIgnoreCase(props.getProperty(SAVE_URL_PROP, FALSE)); >+ URL = TRUE.equalsIgnoreCase(props.getProperty(SAVE_URL_PROP, TRUE)); > > FILE_NAME = TRUE.equalsIgnoreCase(props.getProperty(SAVE_FILENAME_PROP, FALSE)); > >Index: src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java >=================================================================== >--- src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java (revision 1835010) >+++ src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java (working copy) >@@ -803,7 +803,7 @@ > protected HTTPSampleResult createSampleResult(URL url, String method) { > HTTPSampleResult res = new HTTPSampleResult(); > >- res.setSampleLabel(url.toString()); // May be replaced later >+ res.setSampleLabel(this.testElement.getName()); > res.setHTTPMethod(method); > res.setURL(url); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 62550
: 36036