Bug 61011

Summary: Replace occurrences count is not correct (Path and Host replacement are counted twice)
Product: JMeter Reporter: NaveenKumar Namachivayam <catchnaveen.psgtech>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2    
Version: 3.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Search Tree - Replace Count Error

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