Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JMeter Javascript language not available for JSR223 Sampler and WebDriver Sampler

I'm trying to use Selenium Webdriver Sampler in J-Meter.

Started following tutorials but in the script language dropdown in sampler screen, there is no option for javascript and i can't even run the default/example code.

Am I missing something? All tutorials seem very simple and don't have any step regarding javascript.

I'm using J-meter 5.3

Thank you.

like image 757
user2215327 Avatar asked Nov 29 '25 06:11

user2215327


1 Answers

  1. All tutorials seem to be kind of outdated as the latest Java doesn't come with JavaScript engine
  2. Since JMeter 3.1 you're supposed to be using JSR223 Test Elements and Groovy language for scripting

So you have 2 options:

  1. Downgrade your Java to the version which still has this Nashorn engine (minimum Java version required to run JMeter 5.3 is Java 8)
  2. Consider using JSR223 Test Elements and Groovy language for scripting
like image 175
Dmitri T Avatar answered Dec 01 '25 19:12

Dmitri T