Hi Pravesh, You can use Response Assertion to store the information into a variable and use that variable in the next request without beanshell.
If you really want to use bean shell, look at ctx.getPreviousResult().getResponseDataAsString() (this is for Groovy so the syntax might be different) to get the results. You can then store it in a variable with vars.put. Regards, Lisa JM Waugh Test Engineer CIO Software & Development Experience 1 704 907 7008 Mobile 1 720 342 5373 Office wa...@us.ibm.com IBM From: Pravesh <prajapati.prav...@gmail.com> Date: Friday, July 21, 2023 at 1:09 AM To: JMeter Users List <user@jmeter.apache.org> Subject: [EXTERNAL] Handling dynamic value with help of Bean shell in jmeter Hi Team, Any sample where we can extract value from 1st response and put into another request with beanshell. I dont want to use regex. I want to take session value from response store as variable and send to 2nd variable with help of beanshell-- ZjQcmQRYFpfptBannerStart This Message Is From an Untrusted Sender You have not previously corresponded with this sender. Report Suspicious <https://us-phishalarm-ewt.proofpoint.com/EWT/v1/PjiDSg!12-vrJCWRHr52i67-Oosztym4kKWn2oeBg0_f0kEFJdR0Ui440bv8zqmDoggOy3mlglyHZqDZa207SNmHf7hxRLON9Wpga4OCHd8PTVf5HLJ36BxEIJLZ187QQ$> ZjQcmQRYFpfptBannerEnd Hi Team, Any sample where we can extract value from 1st response and put into another request with beanshell. I dont want to use regex. I want to take session value from response [cid:ii_lkc4dvqq0] store as variable and send to 2nd variable with help of beanshell -- Regards, Pravesh prajapati. Mob:-9702600170