Narendra Sai
Narendra Sai

Reputation: 67

Execute javascript developed in node.js from jmeter jsr223 post processor

i have a javascript code written in node.js (VS Code), how to place it in jsr223 post processer.

Upvotes: 2

Views: 2016

Answers (1)

Dmitri T
Dmitri T

Reputation: 168072

Java and Node.js are different beasts and cannot be easily integrated.

The options are in:

  1. Execute your Node.js scripts using OS Process Sampler like you would do from a terminal/command prompt
  2. Re-write your Node.js code in Groovy as it's the only recommended scripting language for JMeter as of now
  3. Consider using J2V8 for your code invocation if it's complex and either cannot be easily converted to Groovy or suitable for command-line execution.

Upvotes: 2

Related Questions