i have a javascript code written in node.js (VS Code), how to place it in jsr223 post processer.
2
votes
1 Answers
2
votes
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.