https://issues.apache.org/bugzilla/show_bug.cgi?id=45831

           Summary: WS Sampler reports incorrect throughput if SOAP packet
                    creation fails
           Product: JMeter
           Version: 2.3.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=22600)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22600)
WebServiceSampler Patch

WebService sampler reports incorrect throughput in Aggregate Report if a
creation of any SOAP packets fails (i.e. if the SOAP data contains unencoded
invalid characters such as &, <, >). This issue might be related to bug #33940.

This issue is caused due to the fact that the SampleResult startTime and
endTime are not getting set if an error occurs and exception is thrown in
WebServiceSampler::sample() method. Leaving the SampleResult's startTime equal
to 0 causes the SamplingStatCalculator to set the test start time to 0 which
causes incorrect overall throughput calculation.

Steps to recreate:
1) Set up a Test Plan with a WS Request Sampler (preferably reading the SOAP
XML data from a file) and Aggregate Report
2) Set up the SOAP data so that one packet would include unencoded invalid XML
character 
3) Run the test and notice that the throughput in the Aggregate Report is
reported as 0.0/hr for the entire the test after incorrect SOAP packet has been
processed.

Attached patch adds code to WebServiceSampler::sample() which ensures that
result startTime and endTime are always set.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to