简体   繁体   English

如何使用JMeter执行具有WebHttpBinding的WCF服务的负载测试

[英]How to perform Load Test of WCF service having WebHttpBinding with JMeter

I am very new for JMeter. 我对JMeter非常陌生。 I want to test my WCF service which is using WebHttpBinding. 我想测试使用WebHttpBinding的WCF服务。 I have gone through the documentation but no help in my case. 我已经阅读了文档,但对我而言没有帮助。 Can you please suggest how to do that? 你能建议如何做到吗?

在此处输入图片说明

在此处输入图片说明

  1. Most likely you need to add at least HTTP Header Manager and configure it to send Content-Type header with the value of application/json . 您最有可能需要至少添加HTTP Header Manager并将其配置为发送具有application/json值的Content-Type头。

  2. You can use View Results Tree listener to inspect request and response details - this way you'll be able to get more troubleshooting information. 您可以使用“ 查看结果树”侦听器检查请求和响应的详细信息-这样,您将可以获得更多的故障排除信息。

  3. Be aware of JSON Path Extractor and JSON Path Assertion which are extremely handy when it comes to working with JSON data. 请注意, JSON Path ExtractorJSON Path Assertion在处理JSON数据时非常方便。

See Testing SOAP/REST Web Services Using JMeter article for more details on web services load testing with JMeter. 有关使用JMeter进行Web服务负载测试的更多详细信息,请参阅使用JMeter测试SOAP / REST Web服务

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

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