apache / apache/jmeter

'Replace in Selected Element' button does not work

Open
#6,105 1 comment 0 reactions 0 assignees View on GitHub
defect to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### 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](https://github.com/apache/jmeter/assets/52503864/502257b4-ddb7-44b6-80bf-5a199de5f46d)

![SI-2](https://github.com/apache/jmeter/assets/52503864/62bc1761-f254-473a-b41a-7f6b2a887621)

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.