View | Details | Raw Unified | Return to bug 64821
Collapse All | Expand All

(-)a/src/core/src/main/java/org/apache/jmeter/samplers/SampleResult.java (-2 / +2 lines)
Lines 706-716 public class SampleResult implements Serializable, Cloneable, Searchable { Link Here
706
     *            the {@link SampleResult} to be added
706
     *            the {@link SampleResult} to be added
707
     * @param renameSubResults boolean do we rename subResults based on position
707
     * @param renameSubResults boolean do we rename subResults based on position
708
     */
708
     */
709
    private void storeSubResult(SampleResult subResult, boolean renameSubResults) {
709
    public void storeSubResult(SampleResult subResult, boolean renameSubResults) {
710
        if (subResults == null) {
710
        if (subResults == null) {
711
            subResults = new ArrayList<>();
711
            subResults = new ArrayList<>();
712
        }
712
        }
713
        if(renameSubResults) {
713
        if (renameSubResults) {
714
            subResult.setSampleLabel(getSampleLabel()+"-"+subResultIndex++);
714
            subResult.setSampleLabel(getSampleLabel()+"-"+subResultIndex++);
715
        }
715
        }
716
        subResults.add(subResult);
716
        subResults.add(subResult);
(-)a/src/core/src/main/java/org/apache/jmeter/save/converters/SampleResultConverter.java (-1 / +1 lines)
Lines 396-402 public class SampleResultConverter extends AbstractCollectionConverter { Link Here
396
        if (subItem instanceof AssertionResult) {
396
        if (subItem instanceof AssertionResult) {
397
            res.addAssertionResult((AssertionResult) subItem);
397
            res.addAssertionResult((AssertionResult) subItem);
398
        } else if (subItem instanceof SampleResult) {
398
        } else if (subItem instanceof SampleResult) {
399
            res.storeSubResult((SampleResult) subItem);
399
            res.storeSubResult((SampleResult) subItem, false);
400
        } else if (nodeName.equals(TAG_RESPONSE_HEADER)) {
400
        } else if (nodeName.equals(TAG_RESPONSE_HEADER)) {
401
            res.setResponseHeaders((String) subItem);
401
            res.setResponseHeaders((String) subItem);
402
        } else if (nodeName.equals(TAG_REQUEST_HEADER)) {
402
        } else if (nodeName.equals(TAG_REQUEST_HEADER)) {

Return to bug 64821