#bin/sh
filelist=`ls jtl`   # 将jtl目录的所有文件列表读取并存入变量
for file in $filelist  #遍历处理各个文件
do
     #文件名形如 test2ad.jtl,获取.字符的位置
   index=`expr index $file .`     #.字符向前一位为有效字符
   index=$index-      #截取test2ad.jtl中的test2ad 存入csv变量
   csv=${:$index}     #指定JMeterPluginsCMD.sh和jtl文件的绝对路径
   java_jmeter/lib/ext/JMeterPluginsCMD. --plugin-type TransactionsPerSecond
    java_jmeter/lib/ext/JMeterPluginsCMD. --plugin-type ResponseTimesOverTime
   java_jmeter/lib/ext/JMeterPluginsCMD. --plugin-type TransactionsPerSecond
     java_jmeter/lib/ext/JMeterPluginsCMD. --plugin-type ResponseTimesOverTime
done

 

相关文章:

  • 2021-08-23
  • 2022-03-05
  • 2021-09-13
  • 2021-12-13
  • 2022-02-17
  • 2021-11-18
猜你喜欢
  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2021-11-18
  • 2021-11-18
相关资源
相似解决方案