[英]Java jar file (JWT token generator) need to import in jmeter and have to generator token by running method and use it in one test step
I have to pass a token in header generated by jwt generator which is a jar . 我必须在jwt generator是jar生成的标头中传递令牌。 How to import and call the method to use token. 如何导入和调用使用令牌的方法。 I am using Beanshell sampler and importing the package and class and then in next line calling the method. 我正在使用Beanshell采样器并导入包和类,然后在下一行调用该方法。 But this is not working. 但这是行不通的。
groovy
as the language and put the code into the "Script" area 将JSR223 Sampler添加到您的测试计划中,确保选择groovy
作为语言并将代码放入“脚本”区域
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.