Unlock instant, AI-driven research and patent intelligence for your innovation.

Interface test method, interface test device and electronic equipment

An interface test and interface technology, applied in the field of testing, can solve the problems of limiting the upper limit of server interface performance evaluation, the inability of a single test machine to meet the performance requirements, and the inability to meet a small number of requests, etc.

Active Publication Date: 2017-06-30
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the above test tools are too dependent on the performance of the test machines equipped with these test tools. If hundreds of millions of requests per second need to be simulated, a single test machine cannot meet the performance requirements, which limits the upper limit of the performance evaluation of the server interface.
[0004] Moreover, since the test tool can only generate a large number of requests from a single IP, it cannot achieve a small number of requests from different IPs, and the server generally limits the number of requests for a single IP in order to prevent network attacks, so the current test tools are difficult to be effective Complete the test of the device interface

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interface test method, interface test device and electronic equipment
  • Interface test method, interface test device and electronic equipment
  • Interface test method, interface test device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060]Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0061] figure 1 It is a schematic flowchart of an interface testing method shown according to an exemplary embodiment, and the method can be applied to computers, for example, to one or more computers in a Hadoop platform composed of N computers. Such as figure 1 As shown, the method includes the following steps.

[0062] In step S11, a mapreduce job is created on a Hadoop platform c...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to an interface test method which comprises the following steps: establishing mapreduce work on a Hadoop platform consisting of N computers, wherein N is greater than 1; in the map stage of the work, processing request data, so as to enable the processed request data to conform to attribute parameters of an interface; setting n computers in the N computers to execute the reduce stage of the work, wherein n is greater than 1 and less than or equal to N; in the reduce stage of the work, establishing communication connection with the interface, transmitting the processed request data to the interface, and receiving feedback information of the interface; determining whether the interface meets the requirement or not according to the feedback information. According to the interface test method disclosed by the invention, a scene where the multiple computers ask the interface for data can be simulated more vividly, and a more accurate test result can be obtained; meanwhile, the limitation to the number of requesting times from the interface to an independent IP in order to prevent a network attack can be avoided, and a test on the interface can be successfully completed.

Description

technical field [0001] The present disclosure relates to the technical field of testing, in particular to an interface testing method, an interface testing device and electronic equipment. Background technique [0002] At present, the industry's performance testing of device interfaces (such as server interfaces) is mainly carried out through some stress testing tools, such as loadrunner, jmeter, etc. The main process of the test is to start a multi-threaded task on a single test machine to simulate multiple users on the server. request [0003] However, the above test tools are too dependent on the performance of the test machines equipped with these test tools. If hundreds of millions of requests per second need to be simulated, a single test machine cannot meet the performance requirements, which limits the upper limit of the performance evaluation of the server interface. [0004] Moreover, because the test tool can only generate a large number of requests from a single...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/22
CPCG06F11/221G06F11/2273
Inventor 邢旺熊斯衍刘任
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD