Bug 61011 - Replace occurrences count is not correct (Path and Host replacement are counted twice)
Summary: Replace occurrences count is not correct (Path and Host replacement are count...
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 3.2
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-20 02:42 UTC by NaveenKumar Namachivayam
Modified: 2017-04-20 18:27 UTC (History)
1 user (show)



Attachments
Search Tree - Replace Count Error (12.68 KB, image/png)
2017-04-20 02:42 UTC, NaveenKumar Namachivayam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NaveenKumar Namachivayam 2017-04-20 02:42:19 UTC
Created attachment 34928 [details]
Search Tree - Replace Count Error

In Apache JMeter 3.2, in Search Tree, the replaced 'n' occurrences always showing 'n+1' count. Steps to reproduce.

1. Create a new test plan with one HTTP sampler for the server www.example.com
2. Click on the 'Search' icon.
3. In Search Tree dialog, enter 'www.example.com' in Search field and enter 'www.example1.com' in Replace by field.
4. Click on Search. It will display '1 node(s) match the search'.
5. Click on Replace All button. It will display 'Replaced 2 occurrences'

Expected text should be 'Replace 1 occurrence'
Comment 1 Philippe Mouawad 2017-04-20 18:27:50 UTC
Author: pmouawad
Date: Thu Apr 20 18:27:30 2017
New Revision: 1792106

URL: http://svn.apache.org/viewvc?rev=1792106&view=rev
Log:
Bug 61011 - Replace occurrences count is not correct (Path and Host replacement are counted twice)
Bugzilla Id: 61011

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
    jmeter/trunk/xdocs/changes.xml