You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by "elainehanssen (via GitHub)" <gi...@apache.org> on 2023/07/13 13:39:00 UTC
[GitHub] [jmeter] elainehanssen opened a new issue, #6048: Search Tree Replace al function does not work
elainehanssen opened a new issue, #6048:
URL: https://github.com/apache/jmeter/issues/6048
### Expected behavior
Open the search tree. When I push the Replace All button, I expect the forward slash will be replaced by a backslash.

### Actual behavior
JMeter did not replace anything. Nothing happend.
### Steps to reproduce the problem
1. Open the Search Tree using CTRL+F
2. Fill in Search with a /
3. Push the Search all & Expand button
4. Push the Replace all button.

### JMeter Version
5.4.3
### Java Version
_No response_
### OS Version
11
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] v-barros commented on issue #6048: JMeter- Search Tree Replace all function does not work
Posted by "v-barros (via GitHub)" <gi...@apache.org>.
v-barros commented on issue #6048:
URL: https://github.com/apache/jmeter/issues/6048#issuecomment-1635065042
Where in the script is the backslash that you're trying to replace? Which element are you using?
I tried reproducing the problem and it worked normally for values at HTTP Request elements, but it didn't work to replace values inside Test Plan element
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] v-barros commented on issue #6048: JMeter- Search Tree Replace all function does not work
Posted by "v-barros (via GitHub)" <gi...@apache.org>.
v-barros commented on issue #6048:
URL: https://github.com/apache/jmeter/issues/6048#issuecomment-1635075299
Well, looking at the source code I found that Replace All is implemented by the following method:

https://github.com/apache/jmeter/blob/master/src/core/src/main/java/org/apache/jmeter/gui/action/SearchTreeDialog.java#L425
As you can see, only Replaceable Test Elements are affected when performing this action
Currently only Header Manager and HTTP Sampler implement the Replaceable interface.

No other component will be affected by "Replace All".
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org