ASF Bugzilla – Attachment 30288 Details for
Bug 54985
Make Transaction Controller set Response Code of Generated Parent Sampler to response code of first failing child in case of failure of one of its children
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ResponseCode of TransactionSampler
TransactionSampler-setResponseCode.patch (text/plain), 1005 bytes, created by
Mikhail Epikhin
on 2013-05-16 14:23:16 UTC
(
hide
)
Description:
ResponseCode of TransactionSampler
Filename:
MIME Type:
Creator:
Mikhail Epikhin
Created:
2013-05-16 14:23:16 UTC
Size:
1005 bytes
patch
obsolete
>diff -ruN /home/schizophrenia/workspace/jmeter/src/core/org/apache/jmeter/control/TransactionSampler.java /home/schizophrenia/workspace/jmeter-TransactionController/src/core/org/apache/jmeter/control/TransactionSampler.java >--- /home/schizophrenia/workspace/jmeter/src/core/org/apache/jmeter/control/TransactionSampler.java 2013-05-15 15:44:42.494060819 +0400 >+++ /home/schizophrenia/workspace/jmeter-TransactionController/src/core/org/apache/jmeter/control/TransactionSampler.java 2013-05-16 17:59:38.421521306 +0400 >@@ -105,6 +105,12 @@ > public void addSubSamplerResult(SampleResult res) { > // Another subsample for the transaction > calls++; >+ >+ // Set Response code of transaction >+ if (noFailingSamples == 0) { >+ transactionSampleResult.setResponseCode(res.getResponseCode()); >+ } >+ > // The transaction fails if any sub sample fails > if (!res.isSuccessful()) { > transactionSampleResult.setSuccessful(false);
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 54985
: 30288 |
30332
|
30333
|
30334
|
30335