简体   繁体   English

JMeter WebDriver Sampler 没有用于脚本语言的 javascript

[英]JMeter WebDriver Sampler don't have javascript for script language

Anyone know why my JMeter "jc@gc-WebDriver Sampler" don't have the javascript for default Script Language?任何人都知道为什么我的 JMeter "jc@gc-WebDriver Sampler" 没有默认脚本语言的 javascript 吗? I am using JMeter-5.4.1 and the available languages is beanshell, java, groovy, jexl2 & jexl.我正在使用 JMeter-5.4.1,可用的语言是 beanshell、java、groovy、jexl2 和 jexl。 Please kindly provide the solution.请提供解决方案。 Thanks.谢谢。

enter image description here在此处输入图像描述

The Nashorn engine which provided JavaScript execution capabilities has been removed from Java so the options are in:提供 JavaScript 执行功能的 Nashorn 引擎已从 Java中删除,因此选项位于:

  1. Downgrade to the Java version where the feature is there (the lowest Java version which can run JMeter is Java 8 ) Downgrade to the Java version where the feature is there (the lowest Java version which can run JMeter is Java 8 )
  2. Use GraalVM which has this JavaScript engine使用具有此JavaScript引擎的 GraalVM
  3. Consider using a different language for scripting,since JMeter 3.1 you should be using Groovy as it provides maximum performance comparing to other options .考虑使用不同的语言编写脚本,因为 JMeter 3.1 您应该使用 Groovy ,因为与其他选项相比,它提供了最大的性能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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