我正在JMeter中使用OS进程采样器来运行.NET中开发的exe。我遇到以下错误:
句柄无效。
在System.IO .__ Error.WinIOError(Int32 errorCode,字符串mayFullPath) 在System.Console.GetBufferInfo(布尔throwOnNoConsole,布尔&成功)在MyApplication.Program.Main(String [] args)在Sytem.Console.Clear()在System.Console.GetBufferInfo()
我该如何解决? 预先感谢!
答案 0 :(得分:0)
如果您可以使用cmd.exe或powershell解释程序来运行程序-您应该可以使用OS Process sampler来运行程序,请按以下方式进行配置:
如果您的.NET应用程序依赖于某些.dlls,则可能还需要为该过程设置Working Directory
。
如果需要,请查看How to Run External Commands and Programs Locally and Remotely from JMeter文章以获取更多信息。