2014-09-24 55 views

回答

0
  1. 在正則表達式提取器後添加Beanshell PostProcessor
  2. 將下面的代碼放到PostProcessor中的 「腳本」 區域

    import org.apache.commons.io.FileUtils; 
    
    String sampleName = prev.getSampleLabel(); 
    String var = vars.get("myVar"); 
    FileUtils.writeStringToFile(new File(sampleName + ".txt"), vars.get("myVar")); 
    

其中:

How to use BeanShell: JMeter's favorite built-in component指南上的Apache JMeter的BeanShell的腳本的詳細信息。

+0

它有幫助,謝謝! – 2014-09-25 13:23:17

相關問題