CN109739743A - A kind of dubbo interface performance test method and device based on JMeter - Google Patents
A kind of dubbo interface performance test method and device based on JMeter Download PDFInfo
- Publication number
- CN109739743A CN109739743A CN201811438162.8A CN201811438162A CN109739743A CN 109739743 A CN109739743 A CN 109739743A CN 201811438162 A CN201811438162 A CN 201811438162A CN 109739743 A CN109739743 A CN 109739743A
- Authority
- CN
- China
- Prior art keywords
- interface
- dubbo
- jmeter
- performance test
- dubbo interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The dubbo interface performance test method based on JMeter that the invention discloses a kind of, it include: to configure registration center address, interface name and other performance parameters of dubbo interface, and the registration center address, the interface name and other performance parameters are saved into the variable of memory;The title of the variable, the method name of calling and method parameter are inputted, to call dubbo interface.Based on this method, configuration can be repeated calling, and parameter only needs to pass through the json structure of serializing, so as to free tester from complicated Java code calling, greatly improve the efficiency of tissue dubbo interface performance test.In addition, additionally providing a kind of dubbo interface performance test device based on JMeter according to the present invention.
Description
Technical field
The present invention relates to software testing technology fields, it particularly relates to a kind of dubbo interface based on JMeter
It can test method and device.
Background technique
The pressure test tool based on Java of Apache JMeter Apache organization development, for static state and dynamic
The performance of the resource (file, Servlet, perl script, Java object, database and inquiry, FTP server etc.) of state into
Row test;Intensity or the analysis that can be used for testing server, network or the heavy load of simulating them are different
Overall performance under pressure type.
In the interface testing supported currently based on JMeter, http agreement and web service can be directly supported, still
It for common Java interface, is carried out by the test code of manual compiling software interface.
Dubbo is a set of distributed type open service framework, which includes registration center, service consumer, service offer
Side, service operation container and calling monitoring center.The program run in said frame is dubbo service routine.
Present case is that JMeter can not support to call dubbo.
Summary of the invention
Aiming at the problem that JMeter in the related technology can not support to call dubbo, the present invention proposes a kind of based on JMeter
Dubbo interface performance test method, JMeter can be extended to support the performance test of dubbo interface to call, solved
The problem of JMeter can not support dubbo interface to call.
The technical scheme of the present invention is realized as follows:
According to an aspect of the invention, there is provided a kind of dubbo interface performance test method based on JMeter, packet
It includes:
Registration center address, interface name and other performance parameters of dubbo interface are configured, and by the registration center
Address, the interface name and other performance parameters are saved into the variable of memory;
The title of the variable, the method name of calling and method parameter are inputted, to call dubbo interface.
According to an embodiment of the invention, the value of the method parameter is json type, the method parameter and the dubbo
Method parameter matching in interface.
According to an embodiment of the invention, the method parameter is the json type by serializing.
According to another aspect of the present invention, a kind of dubbo interface performance test device based on JMeter is provided, is wrapped
It includes:
Configuration module, for configuring registration center address, interface name and other performance parameters of dubbo interface, and
The registration center address, the interface name and other performance parameters are saved into the variable of memory;
Sampler, for inputting the title, the method name of calling and method parameter of the variable, to call dubbo
Interface.
According to an embodiment of the invention, the value of the method parameter is json type, the method parameter and the dubbo
Method parameter matching in interface.
According to an embodiment of the invention, the method parameter is the json type by serializing.
The present invention can be repeated calling by the dubbo interface performance test method and device based on JMeter, configuration,
And parameter only needs to pass through the json structure of serializing, so as to the Java code by tester from complexity
It is freed in calling, greatly improves the efficiency of tissue dubbo interface performance test.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings
Obtain other attached drawings.
Fig. 1 is the flow chart of the dubbo interface performance test method according to an embodiment of the present invention based on JMeter;
Fig. 2 is the schematic diagram of the dubbo interface performance test device based on JMeter.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art's every other embodiment obtained belong to what the present invention protected
Range.
According to an embodiment of the invention, providing a kind of dubbo interface performance test method based on JMeter.
As shown in Figure 1, according to embodiments of the present invention, this method comprises:
S101: registration center address, interface name and other performance parameters of configuration dubbo interface, and will be in registration
Heart location, interface name and other performance parameters are saved into the variable of memory;
S102: the title of input variable, the method name of calling and method parameter, to call dubbo interface.
Specifically, user does configuration to corresponding dubbo interface and at runtime by the configuration first referring to Tables 1 and 2
It is saved in memory variable.Then the variable is loaded by sampler again to obtain with postponing, call corresponding method.
Table 1
Table 2
Preferably, the value of method parameter is json type, and method parameter is matched with the method parameter in dubbo interface.
Preferably, method parameter is the json type by serializing.
The dubbo interface performance test method based on JMeter provided through the embodiment of the present invention, configuration can be weighed
Polyphony is used, and parameter only needs to pass through the json structure of serializing, so as to by tester from complicated
Java code frees in calling, and greatly improves the efficiency of tissue dubbo interface performance test.
As shown in Fig. 2, according to an embodiment of the invention, additionally providing a kind of dubbo interface capability survey based on JMeter
Trial assembly is set, comprising:
Configuration module 201, for configuring registration center address, interface name and other performance parameters of dubbo interface, and
And registration center address, interface name and other performance parameters are saved into the variable of memory;
Sampler 202, for the title of input variable, the method name of calling and method parameter, so that dubbo be called to connect
Mouthful.
Preferably, the value of method parameter is json type, and method parameter is matched with the method parameter in dubbo interface.
Preferably, method parameter is the json type by serializing.
The dubbo interface performance test device based on JMeter provided through the embodiment of the present invention, configuration can be more
A sampler repeats to call, and the parameter in sampler only needs to pass through the json structure of serializing, so as to
It is enough to free tester from complicated Java code calling, greatly improve the effect of tissue dubbo interface performance test
Rate.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (6)
1. a kind of dubbo interface performance test method based on JMeter characterized by comprising
Registration center address, interface name and other performance parameters of dubbo interface are configured, and by the registration center
Location, the interface name and other performance parameters are saved into the variable of memory;
The title of the variable, the method name of calling and method parameter are inputted, to call dubbo interface.
2. the dubbo interface performance test method according to claim 1 based on JMeter, which is characterized in that the side
The value of method parameter is json type, and the method parameter is matched with the method parameter in the dubbo interface.
3. the dubbo interface performance test method according to claim 2 based on JMeter, which is characterized in that the side
Method parameter is the json type by serializing.
4. a kind of dubbo interface performance test device based on JMeter characterized by comprising
Configuration module, for configuring registration center address, interface name and other performance parameters of dubbo interface, and by institute
Registration center address, the interface name and other performance parameters are stated to save into the variable of memory;
Sampler, for inputting the title, the method name of calling and method parameter of the variable, to call dubbo interface.
5. the dubbo interface performance test device according to claim 4 based on JMeter, which is characterized in that the side
The value of method parameter is json type, and the method parameter is matched with the method parameter in the dubbo interface.
6. the dubbo interface performance test device according to claim 5 based on JMeter, which is characterized in that the side
Method parameter is the json type by serializing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811438162.8A CN109739743A (en) | 2018-11-27 | 2018-11-27 | A kind of dubbo interface performance test method and device based on JMeter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811438162.8A CN109739743A (en) | 2018-11-27 | 2018-11-27 | A kind of dubbo interface performance test method and device based on JMeter |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109739743A true CN109739743A (en) | 2019-05-10 |
Family
ID=66359090
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811438162.8A Pending CN109739743A (en) | 2018-11-27 | 2018-11-27 | A kind of dubbo interface performance test method and device based on JMeter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109739743A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026636A (en) * | 2019-09-27 | 2020-04-17 | 珠海随变科技有限公司 | Software project testing method, device, equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107171897A (en) * | 2017-07-14 | 2017-09-15 | 上海瀚银信息技术有限公司 | A kind of interface test method and data-interface test system |
-
2018
- 2018-11-27 CN CN201811438162.8A patent/CN109739743A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107171897A (en) * | 2017-07-14 | 2017-09-15 | 上海瀚银信息技术有限公司 | A kind of interface test method and data-interface test system |
Non-Patent Citations (1)
Title |
---|
老_张: "jmeter(二十四)dubbo", 《HTTPS://WWW.CNBLOGS.COM/IMYALOST/P/9545505.HTML》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026636A (en) * | 2019-09-27 | 2020-04-17 | 珠海随变科技有限公司 | Software project testing method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112929230B (en) | Test processing method and device, electronic equipment and computer readable storage medium | |
CN109714449A (en) | Service Dynamic Configuration, device, equipment and the storage medium of domain name | |
CN103154905B (en) | Apparatus and method for the automated analysis of combination application | |
CN109710511A (en) | AB test method, device, server and storage medium | |
Noghabi et al. | Steel: Simplified Development and Deployment of {Edge-Cloud} Applications | |
CN110275822A (en) | Performance test methods, device, equipment and the storage medium of application programming interfaces | |
US20170295217A1 (en) | Method and system of application development for multiple device client platforms | |
KR101175322B1 (en) | Apparatus and method for dynamic displaying value-added services recommended based on contexts in mobile terminals | |
CN103246606A (en) | Method and system for testing performances of ESB (enterprises service bus) platform | |
CN104978256A (en) | Log output method and equipment | |
CN109739743A (en) | A kind of dubbo interface performance test method and device based on JMeter | |
CN109815115A (en) | Method and device, the computer equipment, storage medium of debugging bridge joint mouth | |
US20030105814A1 (en) | Survey method | |
CN105516337B (en) | Web site based on dynamic load mechanism docks analytic method | |
CN111200523A (en) | Middle station system configuration method, device, equipment and storage medium | |
CN111061807A (en) | Distributed data acquisition and analysis system and method, server and medium | |
DE602005003845D1 (en) | DYNAMIC CONFIGURATION OF DISTRIBUTED ASSEMBLED AUTOMATES | |
CN106201852A (en) | A kind of distributed test method and test system | |
CN109064382B (en) | Image information processing method and server | |
CN107509215A (en) | A kind of wireless authentication automated testing method and system | |
CN109933515A (en) | A kind of optimization method and automatic optimizing equipment of regression test case collection | |
CN111988398A (en) | Data acquisition method, API gateway and medium | |
CN111737431A (en) | Equipment exception processing method and device, storage medium and electronic device | |
CN110515677A (en) | A method of based on the customized timed task of cloudy platform | |
CN113709177B (en) | Method for processing message and external call gateway |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190510 |