In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Call an external java file
Source ("D:\\ lr\\ jmeter\ MD5.java")
/ / source ("MD5.java"); relative path. Files are located in the jmeter bin directory.
String strMd5 = MD5.GetMD5Code ("123456")
Log.info ("1111 =" + strMd5)
Vars.put ("ddd", strMd5)
String eee = vars.get ("ddd")
Log.info ("eee=" + eee)
Use this variable:
two。 Call an external class file
AddClassPath ("directory where the class file is located")
Import class name
AddClassPath ("D:\\ lr\\ jmeter")
Import MD5
String strMd5 = MD5.GetMD5Code ("123456")
Log.info (strMd5)
Vars.put ("aaa", strMd5)
String bbb = vars.get ("aaa")
Log.info (bbb)
Use this variable:
3. Call an external jar package
Import the jar package in the test plan, or place the jar package in the jmeter lib directory ahead of time and restart
Import class name
Import com.util.MD5
String ccc = MD5.GetMD5Code ("123456")
Log.info (ccc)
Vars.put ("ddd", ccc)
String eee = vars.get ("ddd")
Log.info (eee)
Use this variable:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.