jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

'Replace in Selected Element' button does not work

Open Sufi07 opened this issue 2 years ago • 1 comments

Expected behavior

I've been using JMeter's search and replace feature to tweak a bunch of test data, but the problem I'm dealing with now is that the Replace in selected item thing isn't doing what it's supposed to. I thought it should only mess with the selected item, like the button says, leaving the rest alone, but that's not happening.

Actual behavior

You can spot that the text I'm looking for is in both HTTP requests. But when I hit Replace in selected item, the text doesn't change, and it just says Replaced 0 occurred.

SI-1

SI-2

Steps to reproduce the problem

Steps:

  1. Hit Ctrl + F or Open Search from the toolbar
  2. type in "lang": "en" in the Search field.
  3. Type in "lang": "ar" in the Replace by field
  4. Select any HTTP request under the thread group.
  5. Click on Replace in selected element

JMeter Version

5.6.2

Java Version

java version "20.0.2" 2023-07-18

OS Version

Microsoft Windows 10.0.19045

Sufi07 avatar Nov 17 '23 10:11 Sufi07

Need enhancement as well in case multiple items are selected to Replace the text.

Sufi07 avatar Nov 18 '23 12:11 Sufi07