通过桌面应用程序加载测试 Web 服务器

Load test web server through desktop application

我正在使用 JMeter 对我的 Web 应用程序进行负载测试。我已经测试了通过网络界面执行的所有操作。但是,我还需要测试一种情况,即使用 Web 服务器向桌面应用程序提供数据。我的网络服务器连接到存储信息,我可以通过 IDE 或命令行获取该信息。基本上,代码依赖关系保留在那里,并且当通过命令行执行构建时,例如,收集这些依赖关系。我需要检查有多少用户可以同时收集这些依赖项(无法通过 Web 界面执行此操作)。是否可以使用 JMeter(或 Visual Studio)?

JMeter 提供了 OS Process Sampler which allows executing arbitrary programs. If you will have > 1 threads under Thread Group - the programs will be executed in multithreaded manner. JMeter will capture response times and you will able to see reports via Listeners or through Reporting Dashboard. See How to Run External Commands and Programs Locally and Remotely from JMeter 文章以获取更多详细信息。

Visual Studio - Visual Studio 支持的任何编程语言都提供了执行外部进程的可能性。然而,在那种情况下,您将不得不开发一些代码来启动依赖项检索,使用多个线程执行此操作,记录开始和结束时间,合并结果并以某种方式解析它们。