-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.6: After disabling the Java Request sampler, it cannot be enabled again #6004
Comments
The reason is that Lines 80 to 82 in b47c658
The thing can be fixed in several ways: |
…gain Java sampler was inheriting "enabled" status from its config element as internally, Java Sampler UI always creates a config element and merges it to the java sampler. The solution is to move "configureTestElement(sampler);" to the very end of modifyTestElement so all the base properties are populated based on the element properties rather than "config element" properties. Ideally we should somehow limit "mergeIn", and we should refrain from merging unexpected properties. Fixes apache#6004
…gain Java sampler was inheriting "enabled" status from its config element as internally, Java Sampler UI always creates a config element and merges it to the java sampler. The solution is to move "configureTestElement(sampler);" to the very end of modifyTestElement so all the base properties are populated based on the element properties rather than "config element" properties. Ideally we should somehow limit "mergeIn", and we should refrain from merging unexpected properties. Fixes #6004
Expected behavior
In version 5.6 of jmeter, I used a java request sampler in my script. When I disable a Java request sampler and enable it again, the GUI page displays successful activation. When I click on other components, it automatically sets it to disabled status.
In jmeter version 5.5, this phenomenon was not replicated.
Actual behavior
I am using org. apache. jmeter. protocol. java. test. JavaTest, and this issue also exists when I switch to my own customized Java sample request.
Steps to reproduce the problem
in Thread Group disable Java Request1
enable again Java Request1 , GUI display enabled successfully.
When I click on other requests, it automatically switches to a disabled state.
JMeter Version
5.6
Java Version
sun jdk version 1.8.0_201
OS Version
Microsoft Windows [版本 10.0.22621.1848]
The text was updated successfully, but these errors were encountered: