0
votes

I am using OS process sampler in JMeter to run a exe developed in.NET. I am getting below error:

The handle is invalid.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded) at System.Console.GetBufferInfo() at Sytem.Console.Clear() at MyApplication.Program.Main(String[] args)

How can I fix it? Thanks in advance!

1

1 Answers

0
votes

If you are able to run the program using cmd.exe or powershell interpreter - you should be able to run the program using the OS Process sampler, configure it like:

enter image description here

If your .NET application depends on some .dlls you might also need to set Working Directory for the process.

Check out How to Run External Commands and Programs Locally and Remotely from JMeter article for more information if needed.