简体   繁体   中英

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.

  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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM