You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by "LeeBaul (via GitHub)" <gi...@apache.org> on 2023/06/25 01:54:30 UTC

[GitHub] [jmeter] LeeBaul opened a new issue, #6004: After disabling the Java Request sampler, it cannot be enabled again.

LeeBaul opened a new issue, #6004:
URL: https://github.com/apache/jmeter/issues/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
   
   ![image](https://github.com/apache/jmeter/assets/37665392/f862233d-82cb-4627-a039-35f18a681a24)
   
   enable again  Java Request1 , GUI display enabled successfully.
   
   ![image](https://github.com/apache/jmeter/assets/37665392/6664a2cf-b10d-4968-99e3-2b030006f645)
   
   When I click on other requests, it automatically switches to a disabled state.
   
   ![image](https://github.com/apache/jmeter/assets/37665392/49ddae2f-839d-4a34-9450-c23b0719a4bb)
   
   
   
   ### JMeter Version
   
   5.6
   
   ### Java Version
   
   sun jdk version 1.8.0_201
   
   ### OS Version
   
   Microsoft Windows [版本 10.0.22621.1848]


-- 
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] vlsi commented on issue #6004: After disabling the Java Request sampler, it cannot be enabled again.

Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi commented on issue #6004:
URL: https://github.com/apache/jmeter/issues/6004#issuecomment-1608829536

   The reason is that `JavaTestSamplerGui` re-creates the sampler instead of configuring the existing element: https://github.com/apache/jmeter/blob/b47c658bbd7f32a2cf843f41af0526e5b458e5ac/src/protocol/java/src/main/java/org/apache/jmeter/protocol/java/control/gui/JavaTestSamplerGui.java#L80-L82


-- 
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] vlsi closed issue #6004: After disabling the Java Request sampler, it cannot be enabled again.

Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi closed issue #6004: After disabling the Java Request sampler, it cannot be enabled again. 
URL: https://github.com/apache/jmeter/issues/6004


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