You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2016/07/08 18:51:08 UTC
[Bug 59831] New: Copy request, response and assertion to transaction
sampler upon failure
https://bz.apache.org/bugzilla/show_bug.cgi?id=59831
Bug ID: 59831
Summary: Copy request, response and assertion to transaction
sampler upon failure
Product: JMeter
Version: 3.0
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
Assignee: issues@jmeter.apache.org
Reporter: bluezero000@yahoo.com
To make BackendListenerClient's handle failures more easily, TransactionSampler
should include the response and assertion from latest failed sub-sampler. This
can be done by adding the following code to the end of
addSubSamplerResult(SampleResult res) in
org.apache.jmeter.control.TransactionSampler:
if (res.getErrorCount()>0) {
// Copy response and assertion for failure
transactionSampleResult.setRequestHeaders(res.getRequestHeaders());
transactionSampleResult.setResponseCode(res.getResponseCode());
transactionSampleResult.setResponseHeaders(res.getResponseHeaders());
transactionSampleResult.setResponseData(res.getResponseData());
for (AssertionResult a : res.getAssertionResults()) {
transactionSampleResult.addAssertionResult(a);
}
}
Currently, TransactionSampler's SampleResult doesn't use those fields right
now, so there's minimum impact.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 59831] Copy request, response and assertion to transaction
sampler upon failure
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59831
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
CC| |p.mouawad@ubik-ingenierie.c
| |om
--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hello,
Could you provide a patch after reading this:
- https://jmeter.apache.org/building.html
Thanks
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 59831] Copy request, response and assertion to transaction
sampler upon failure
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59831
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Hardware|PC |All
--
You are receiving this mail because:
You are the assignee for the bug.