简体   繁体   English

JMeter与Java Swing应用程序

[英]JMeter with Java Swing Application

When intergrating with web application, we need to provide the URL and Port number, so that JMeter can start recording. 与Web应用程序集成时,我们需要提供URL和端口号,以便JMeter可以开始记录。

But if you have a Java Swing Application, is it possible to intergrate with JMeter? 但是,如果您有Java Swing应用程序,是否可以与JMeter集成?

From their web site : 从他们的网站:

Can load and performance test many different server types:

    Web - HTTP, HTTPS
    SOAP
    Database via JDBC
    LDAP
    JMS
    Mail - SMTP(S), POP3(S) and IMAP(S)
    Native commands or shell scripts

So I'm going to have to say no... 所以我不得不说不...

With a bit of effort this should be entirely possible given that JMeter is written in Java. 只需付出一点努力,鉴于JMeter用Java编写,这应该完全有可能。 You can download the source code from here , and once you have that it will be a case of finding the right classes in the source code which run tests using JMeter & report the results, and you should then be able to call these from your own application. 您可以从此处下载源代码 ,一旦有了它,就可以在源代码中找到合适的类,这些类使用JMeter运行测试并报告结果,然后您应该可以从自己的库中调用这些类了。应用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM