Re: Need to execute javascript using JMeter

2025-04-03 Thread Abhitosh Patil
gt;> On Thu, 3 Apr, 2025, 5:12 pm Christof,< > c.schmalenb...@perfomatics.com> > > > >> wrote: > > > >> > > > >>> Hi Abhitosh, > > > >>> is the javascript script small in size? > > > >>> If so you could remove or replace with dum

Re: Need to execute javascript using JMeter

2025-04-03 Thread schmalenb...@acm.org
s 100 lines or more I will not have the time to do that. > > >>> Otherwise > > >>> I will give it a chance. > > >>> > > >>> Christof > > >>> > > >>> > > >>> > > >>> Am 3. April 2025 09:02:3

Re: Need to execute javascript using JMeter

2025-04-03 Thread Abhitosh Patil
Wed, 2 Apr, 2025, 9:03 pm > >>>>> Christof, > >>>>> wrote: > >>>>> > >>>>>> Hi Abhitosh, > >>>>>> groovy is one of the supported languages in jsr223 sampler. If your > >>>>>> javascr

Re: Need to execute javascript using JMeter

2025-04-03 Thread Christof Schmalenbach
#x27;t be able able to choose JavaScript in JSR223 test elements because it has been removed from JDK< https://openjdk.org/jeps/372>    2. There could be inconsistencies between Postman JavaScript API and JMeter so you won't have access to pm. namespace in JMeter So you either need to res

Re: Need to execute javascript using JMeter

2025-04-03 Thread Christof Schmalenbach
pective as Groovy scripts can be compiled and cached and it matters especially for "heavy" tasks like cryptography. More information: Apache Groovy: What Is Groovy Used For?< https://www.blazemeter.com/blog/apache-groovy> From: Abhitosh Patil S

Re: Need to execute javascript using JMeter

2025-04-03 Thread Abhitosh Patil
k.org/jeps/372> > >>> >> 2. > >>> >> There could be inconsistencies between Postman JavaScript API and > >>> JMeter > >>> >> so you won't have access to pm. namespace in JMeter > >>> >> > >>>

Re: Need to execute javascript using JMeter

2025-04-03 Thread Abhitosh Patil
latter >> >> option is better from performance perspective as Groovy scripts can be >> >> compiled and cached and it matters especially for "heavy" tasks like >> >> cryptography. More information: Apache Groovy: What Is Groovy Used >> For?< >> >&

Re: Need to execute javascript using JMeter

2025-04-02 Thread Abhitosh Patil
ective as Groovy scripts can be > >> compiled and cached and it matters especially for "heavy" tasks like > >> cryptography. More information: Apache Groovy: What Is Groovy Used For?< > >> https://www.blazemeter.com/blog/apache-groovy> > >> >

Re: Need to execute javascript using JMeter

2025-04-02 Thread Abhitosh Patil
hy. More information: Apache Groovy: What Is Groovy Used For?< > https://www.blazemeter.com/blog/apache-groovy> > > > > ________________ > From: Abhitosh Patil > Sent: Wednesday, April 2, 2025 5:14 PM > To: JMeter Users List > Subject: Need to execute ja

Re: Need to execute javascript using JMeter

2025-04-02 Thread Dmitri T
oovy> From: Abhitosh Patil Sent: Wednesday, April 2, 2025 5:14 PM To: JMeter Users List Subject: Need to execute javascript using JMeter We have a requirement to generate unique authentication signature to pass as a header in API request. We have a pre-request java

Need to execute javascript using JMeter

2025-04-02 Thread Abhitosh Patil
We have a requirement to generate unique authentication signature to pass as a header in API request. We have a pre-request javascript for same in postman tool. Same javascript we tried in JMeter using jsr223 and beanshell elements. But it's not working. Any solution for this?