i have a javascript code written in node.js (VS Code), how to place it in jsr223 post processer.
Asked
Active
Viewed 1,674 times
2
-
can i add some node.js jar in lib/ext and run the script, please share links to jar files. @Blazemeter are you planning on some code convertors like beanshell to groovy or javascript to groovy – Narendra Sai Jul 30 '19 at 10:39
1 Answers
2
Java and Node.js are different beasts and cannot be easily integrated.
The options are in:
- Execute your Node.js scripts using OS Process Sampler like you would do from a terminal/command prompt
- Re-write your Node.js code in Groovy as it's the only recommended scripting language for JMeter as of now
- 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.

Dmitri T
- 159,985
- 5
- 83
- 133