2017-06-06 200 views

回答

0

可以在至少2種方式做到這一點:

  1. 使用OS Process Sampler配置爲:

    JMeter OS Process Sampler Copy File

  2. 的更快(跨平臺)的方式將使用JSR223 Sampler和喜歡的代碼:

    def sourceFile = new File('c:/somefolder/source_file.txt') 
    def destinationFile = new File('c:/someotherfolder/destination_file.txt') 
    destinationFile << sourceFile.text 
    

    對在測試中的JMeter使用Groovy腳本的更多信息,請參閱Groovy is the New Black

相關問題