2017-06-06 199 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

相关问题