Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use Jmeter to test the Dubbo interface

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

The Dubbo interface needs to download the dubbo plug-in to use this version of jmeter-plugins-dubbo-1.3.6. See the download method at the end of the article. Recently, due to the need of work, we need to test the dubbo interface, query a lot of information, and finally debug it. Record that the dubbo interface has been tested with Jmeter before, and you need to use Java language to write methods to call the dubbo interface, and then create a Maven project to generate a dependent jar package. After putting the jar package in the lib directory of Jmeter, and then in the java type request, you can see the custom java request, which is tedious and time-consuming. Add thread group, add thread group and other components such as thread group. Jmeter execution is driven by thread group. The test plan must have at least one thread group. Select Test Plan, right-click, and add "Threads" thread group.

2. Add the following request in turn

Add create connection request-select the thread group, right-click to add "Sampler" Dubbo Sample

Json format parameters

Non-json format parameter

Non-json format parameters, no parameters

Add an assertion to determine whether the response contains "real name" return information, select the Dubbo request, right-click, add "assertion" response assertion, and enter the expected result

Add the view result tree to view the response data of each response result, select the thread group, right-click, and add a "listener" to view the result tree script to complete the development, which can be used for performance testing or for interface automation testing.

    if the article is helpful to you, you can click on the follow function in the lower right corner. Welcome to forward and clap the brick. I will continue to launch articles related to the test and share the testing technology with you. Every original article is written attentively to put an end to plagiarism and copying. The official Wechat account is synchronized with the articles on this platform for easy reference.

QQ technology exchange group: please enter the verification information 51CTO to add the group.

Wechat QR code follow official account:

After following, reply to the resource download, and you can get the download address of all kinds of resources shared by yourself.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report