jmeter
jmeter copied to clipboard
'Replace in Selected Element' button does not work
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.
Steps to reproduce the problem
Steps:
- Hit Ctrl + F or Open Search from the toolbar
- type in "lang": "en" in the Search field.
- Type in "lang": "ar" in the Replace by field
- Select any HTTP request under the thread group.
- 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
Need enhancement as well in case multiple items are selected to Replace the text.