CN116257456A - Multi-interface test method - Google Patents

Multi-interface test method Download PDF

Info

Publication number
CN116257456A
CN116257456A CN202310533440.2A CN202310533440A CN116257456A CN 116257456 A CN116257456 A CN 116257456A CN 202310533440 A CN202310533440 A CN 202310533440A CN 116257456 A CN116257456 A CN 116257456A
Authority
CN
China
Prior art keywords
test
interface
interfaces
data transmission
parameters
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.)
Granted
Application number
CN202310533440.2A
Other languages
Chinese (zh)
Other versions
CN116257456B (en
Inventor
王文龙
刘晨
董大江
叶小虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Shengxin Technology Co ltd
Original Assignee
Xi'an Shengxin Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xi'an Shengxin Technology Co ltd filed Critical Xi'an Shengxin Technology Co ltd
Priority to CN202310533440.2A priority Critical patent/CN116257456B/en
Publication of CN116257456A publication Critical patent/CN116257456A/en
Application granted granted Critical
Publication of CN116257456B publication Critical patent/CN116257456B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a multi-interface testing method, which relates to the technical field of interface testing, and comprises the following steps: obtaining M task quantity information; acquiring a plurality of task processing interface enabling data; analyzing and calculating J application importance parameters and J data transmission quantity parameters of J interfaces; respectively carrying out data transmission test on J interfaces to obtain J test result sets; respectively inputting J test result sets into corresponding J test analysis units in a transmission test analysis model to obtain J test scores; and according to the J application importance parameters and the J data transmission quantity parameters, weighting calculation is carried out on J test scores to obtain a multi-interface test result of the target equipment, the problems of incomplete multi-interface test and inaccurate multi-interface test and low visualization degree in the prior art are solved, and the technical effects of improving the comprehensive, accurate and visualization degree technical effects of the multi-interface test are achieved.

Description

Multi-interface test method
Technical Field
The invention relates to the technical field of interface testing, in particular to a multi-interface testing method.
Background
With the development of society and science and technology, the use of computer equipment is more and more widespread, and the interface data transmission quality of computer equipment is concerned by a plurality of fields, and various users have an unsatisfactory transmission result when carrying out data transmission processing because the knowledge of the interface data transmission quality is not clear enough, so that the research of a multi-interface test method has important practical significance.
At present, the detection of interface data transmission is limited to the detection of transmission speed, transmission quality and the like at a physical level, but for multi-interface equipment, the data transmission quality of multiple interfaces cannot be comprehensively and accurately detected, and the problems of incomplete and inaccurate multi-interface test and low visualization degree exist.
Disclosure of Invention
The invention provides a multi-interface test method which is used for solving the problems of incomplete and inaccurate multi-interface test and low visualization degree in the prior art.
According to a first aspect of the present invention, there is provided a multi-interface test method, comprising: acquiring the number of M types of processing tasks processed by target equipment in the historical time of a preset time range, and acquiring M task number information, wherein the target equipment comprises J interfaces, the equipment is to be subjected to multi-interface test, and M and J are integers larger than 1; obtaining a plurality of task processing interface enabling data according to historical data of the J interface enabling times when task processing is carried out each time in the preset time range; according to the M task quantity information and the task processing interface enabling data, J application importance parameters of the J interfaces are obtained through analysis and calculation, and J data transmission quantity parameters of the J interfaces in the preset time range are obtained; respectively carrying out data transmission test on the J interfaces of the target equipment to obtain J test result sets, wherein each test result set comprises a transmission speed and a transmission error rate; respectively inputting the J test result sets into corresponding J test analysis units in a transmission test analysis model to obtain J test scores; and carrying out weighted calculation on the J test scores according to the J application importance parameters and the J data transmission quantity parameters to obtain a multi-interface test result of the target equipment.
According to a second aspect of the present invention, there is provided a multi-interface test system comprising: the task number information acquisition module is used for acquiring the number of M types of processing tasks processed by target equipment in the historical time of a preset time range and acquiring M task number information, wherein the target equipment comprises J interfaces, the equipment is to be subjected to multi-interface test, and M and J are integers larger than 1;
the interface enabling data acquisition module is used for acquiring a plurality of task processing interface enabling data according to historical data of the J interface enabling times when task processing is performed each time in the preset time range; the parameter calculation module is used for analyzing and calculating J application importance parameters of the J interfaces according to the M task quantity information and the task processing interface enabling data, and acquiring J data transmission quantity parameters of the J interfaces in the preset time range; the data transmission testing module is used for respectively carrying out data transmission testing on the J interfaces of the target equipment to obtain J test result sets, wherein each test result set comprises a transmission speed and a transmission error rate; the transmission test analysis module is used for respectively inputting the J test result sets into the J test analysis units corresponding to the transmission test analysis model to obtain J test scores; and the test score weighting module is used for carrying out weighted calculation on the J test scores according to the J application importance parameters and the J data transmission quantity parameters to obtain a multi-interface test result of the target equipment.
According to the multi-interface testing method adopted by the invention, J application importance parameters and J data transmission quantity parameters of J interfaces are obtained by analyzing and calculating according to M task quantity information and J interface starting times historical data. And further performing data transmission test on J interfaces of the target equipment to obtain J test result sets, wherein each test result set comprises a transmission speed and a transmission error rate, the J test result sets are respectively input into J test analysis units corresponding to a transmission test analysis model to obtain J test scores, and finally, the J test scores are weighted and calculated comprehensively according to application importance parameters and data transmission quantity parameters to obtain a multi-interface test result, so that the technical effects of improving the comprehensiveness, accuracy and visualization degree of multi-interface test are achieved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following brief description will be given of the drawings used in the description of the embodiments or the prior art, it being obvious that the drawings in the description below are only exemplary and that other drawings can be obtained from the drawings provided without the inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a multi-interface testing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of obtaining J application importance parameters according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of obtaining J test scores according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a multi-interface testing system according to an embodiment of the present invention.
Reference numerals illustrate: the system comprises a task number information acquisition module 11, an interface enabling data acquisition module 12, a parameter calculation module 13, a data transmission test module 14, a transmission test analysis module 15 and a test scoring weighting module 16.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In order to solve the problems of incomplete and inaccurate multi-interface test and low visualization degree in the prior art, the inventor of the invention obtains the multi-interface test method through creative labor.
Example 1
Fig. 1 is a diagram of a multi-interface testing method according to an embodiment of the present invention, as shown in fig. 1, where the method includes:
step S100: acquiring the number of M types of processing tasks processed by target equipment in the historical time of a preset time range, and acquiring M task number information, wherein the target equipment comprises J interfaces, the equipment is to be subjected to multi-interface test, and M and J are integers larger than 1;
specifically, the interface refers to a connection mode when the computer communicates with other devices, and is specifically divided into a hardware interface and a software interface, wherein the hardware interface is also called a hardware device interface, and mainly refers to a cable interface, a Bluetooth interface, an infrared interface and the like when the computer is connected with the other devices; the software interface realizes data communication connection between two devices through a computer language, and realizes information exchange. That is, any computer device having two or more interfaces may be referred to as a multi-interface device, i.e., a device to be subjected to multi-interface testing, where the device to be subjected to multi-interface testing and J interfaces together form a target device, J being an integer greater than 1, and colloquially, two or more interfaces.
The M-class processing task refers to a task that needs to exchange information through a device to be subjected to multi-interface test and J interfaces, for example, running or executing different programs, different software and different instructions, based on which, the number of times of processing the M-class processing task respectively in a history time (such as a past week and a past month and set by itself according to actual conditions) of a preset time range of the target device is obtained, so as to obtain M task number information, where the M-class processing task corresponds to the M task number information.
Step S200: obtaining a plurality of task processing interface enabling data according to historical data of the J interface enabling times when task processing is carried out each time in the preset time range;
specifically, when processing the M-class processing task, one or more interfaces of the J interfaces may be started, and the number of times of starting each interface may be different, based on this, according to the historical data of the number of times of starting J interfaces when performing task processing each time within a preset time range, a plurality of task processing interface starting data are obtained, where the plurality of task processing interface starting data includes the starting interface and the starting number of times of each interface, the preset time range is the same as the preset time range in step S100, and the number of the plurality of task processing interface starting data is the sum of the number of M tasks, that is, the plurality of tasks are included under each class of processing task of the M-class processing task, and each task corresponds to one task processing interface starting data.
Step S300: according to the M task quantity information and the task processing interface enabling data, J application importance parameters of the J interfaces are obtained through analysis and calculation, and J data transmission quantity parameters of the J interfaces in the preset time range are obtained;
as shown in fig. 2, step S300 of the embodiment of the present invention further includes:
step S310: dividing the plurality of task processing interface enabling data according to the M types of processing tasks to obtain M task processing interface enabling data sets;
step S320: respectively acquiring the total times of the J interfaces which are started in the M task processing interface starting data sets, and acquiring M pieces of total times information;
step S330: acquiring the number of times that the J interfaces are started in the M task processing interface starting data sets respectively, and acquiring J starting number of times sets;
step S340: and according to the M pieces of total frequency information and the J pieces of starting frequency sets, analyzing and calculating to obtain the J pieces of application importance parameters.
The step S340 of the embodiment of the present invention further includes:
step S341: calculating the ratio of the number of times that a first interface in J interfaces is started in M-type task processing to M pieces of total number information according to the J starting number of times sets and the M pieces of total number of times information, and obtaining a first starting proportion parameter set;
Step S342: according to the size of the M task quantity information, carrying out weighted calculation on M first enabling proportion parameters in the first enabling proportion parameter set to obtain first application importance parameters;
step S343: and continuing to analyze and calculate to obtain J-1 application importance parameters of other J-1 interfaces, and obtaining the J application importance parameters.
After step S340, step S300 of the embodiment of the present invention further includes step S350, where step S350 includes:
step S351: acquiring J data transmission amounts of the J interfaces in the preset time range and total data transmission amounts;
step S352: and calculating the ratio of the J data transmission amount to the total data transmission amount to obtain the J data transmission amount parameters.
Specifically, according to the number of M tasks and the enabling data of the task processing interfaces, analyzing and calculating to obtain the relation between the number of times the J interfaces are respectively enabled and the total number of times the J interfaces are enabled, and obtaining J application importance parameters. And further calculating and acquiring J data transmission quantity parameters of J interfaces in a preset time range according to the data transmission quantity.
Specifically, the procedure for obtaining J application importance parameters is as follows: dividing the enabling data of a plurality of task processing interfaces according to M types of processing tasks, dividing the enabling data of the task processing interfaces belonging to the same type of processing tasks together to obtain M sets of enabling data of the task processing interfaces, respectively obtaining the total number of times that each interface is enabled in the M sets of enabling data of the task processing interfaces, obtaining M pieces of total number of times information, respectively obtaining the number of times that each interface is enabled in the M sets of enabling data of the task processing interfaces, and obtaining J sets of enabling times.
For example, assuming that there are 3 interfaces in total, when one type of task is processed, the first interface is enabled 2 times, the second interface is enabled 6 times, the third interface is enabled 10 times, 18 times are one of M total times information, based on this calculation, the total times information when other M types of tasks are processed, the number of times the first interface is enabled when each type of task is obtained constitutes a first interface enabling times set, the number of times the second interface is enabled when each type of task is obtained constitutes a second interface enabling times set, the number of times the third interface is enabled when each type of task is obtained constitutes a third interface enabling times set, the first interface enabling times set and the first interface enabling times set are J enabling times sets described above, and the specific times sets and the number of total times information (J and M) need to be determined according to practical situations, where J and M are integers greater than 1.
Further, according to M pieces of total frequency information and J pieces of starting frequency sets, J pieces of application importance parameters are obtained through analysis and calculation, the M pieces of total frequency information comprise the total number of times J interfaces are started when M types of tasks are processed respectively, the first interface is any one of the J interfaces, the number of times that the first interface of the J interfaces is started in the M types of task processing is extracted from the J pieces of starting frequency sets, the ratio of the first interface to the M pieces of total frequency information is calculated, namely the ratio of the starting frequency of each interface in the M types of task processing accounts for the total number of times of starting of all interfaces, and therefore the ratio of the starting frequency of a single interface in a single type of task is obtained, a first starting ratio parameter set is built, and the first starting ratio parameter set comprises M ratios which correspond to the M types of tasks respectively. And further, according to the size of the M pieces of task quantity information, carrying out weight setting on M pieces of first enabling proportion parameters in the first enabling proportion parameter set, setting a larger weight coefficient of the first enabling proportion parameters corresponding to the M kinds of tasks with larger task quantity information, carrying out weighted calculation on the M pieces of first enabling proportion parameters according to the set weight coefficient, taking a weighted calculation result as a first application importance parameter, wherein the first application importance parameter refers to an application importance parameter of a single interface. And (3) continuing to analyze and calculate J-1 application importance parameters of other J-1 interfaces by adopting the same method to obtain J application importance parameters. The more times an interface is enabled in the processing of a certain type of task, and the more times the task is processed, the larger the application importance parameter of the interface.
Illustratively, the ratio of the task number information of the single-class task to the sum of the M task number information is calculated as a weight, and the weighted calculation summation of the M first enabling proportion parameters in the first enabling proportion parameter set is performed.
The process of further obtaining J data transmission quantity parameters of J interfaces in a preset time range is as follows: firstly, obtaining J data transmission amounts of each interface in J interfaces within a preset time range, wherein the data transmission amounts are the amount of data byte information transmitted through the interfaces, the common units are bits, the addition result of the J data transmission amounts is the total data transmission amount, and further calculating the ratio of the J data transmission amounts to the total data transmission amount respectively.
And by calculating J application importance parameters and J data transmission quantity parameters corresponding to the J interfaces, data support is provided for the subsequent acquisition of the multi-interface test result, the comprehensiveness of the multi-interface test is ensured, and the accuracy of the multi-interface test result is further improved.
Step S400: respectively carrying out data transmission test on the J interfaces of the target equipment to obtain J test result sets, wherein each test result set comprises a transmission speed and a transmission error rate;
Specifically, the target device performs test running on different programs, different software, different instructions and the like, and performs data transmission test on J interfaces of the target device respectively, wherein the transmission process of digital information generally converts information into binary codes for transmission, and the transmission rate refers to the bit number of the binary codes transmitted per second. Further acquiring an original binary code of data transmitted in a data transmission test process, then acquiring a binary code of which data transmission is completed, comparing the binary code with the original binary code, calculating the total number of code elements of the original binary code, and calculating the number of code elements which are different from the original binary code in the binary code of which the data transmission is completed, namely the number of code elements which are transmitted in error, wherein the error rate is an index for measuring the transmission reliability in the data transmission process and is the probability of the binary code elements which are transmitted in error, and particularly, the error rate can be calculated by dividing the number of the code elements which are transmitted in error by the total number of code elements of the original binary code. The transmission speed and the transmission error rate form a test result set of one interface, in order to ensure the accuracy of data, multiple tests can be carried out on any one interface, the average value of the transmission speed and the transmission error rate of the multiple tests is calculated, the average transmission speed and the average transmission error rate form a test result set corresponding to one interface, and J interfaces correspond to J test result sets.
Step S500: respectively inputting the J test result sets into corresponding J test analysis units in a transmission test analysis model to obtain J test scores;
as shown in fig. 3, step S500 of the embodiment of the present invention further includes:
step S510: acquiring a first test result set of a plurality of samples according to transmission test data in the historical time of a first interface in the J interfaces, and performing data transmission scoring evaluation according to the data transmission standard of the first interface to acquire a first test score of the plurality of samples;
step S520: constructing first test units in the J test analysis units by adopting the first test result sets of the plurality of samples and the first test scores of the plurality of samples, wherein the first test units comprise a first test coordinate system and a first coordinate point of the plurality of samples;
step S530: continuously constructing other J-1 test analysis units according to the transmission test data in the history time of other J-1 interfaces to obtain the transmission test analysis model;
step S540: inputting a first test result set in the J test result sets into the first test unit to obtain a first coordinate point, and obtaining K sample first coordinate points nearest to the first coordinate point and corresponding K sample first test scores, wherein K is an odd number greater than or equal to 5;
Step S550: selecting a sample first test score with highest occurrence frequency in the K sample first test scores as a first test score;
step S560: inputting other J-1 test result sets into J-1 test analysis units to obtain J test scores.
The step S520 of the embodiment of the present invention further includes:
step S521: constructing an abscissa axis and an ordinate axis in the first test coordinate system based on the transmission speed and the transmission error rate;
step S522: inputting a first test result set of the plurality of samples into the first test coordinate system to form a first coordinate point of the plurality of samples;
step S523: and marking the first coordinate points of the plurality of samples by adopting the first test scores of the plurality of samples as a plurality of markers to obtain the first test unit.
Specifically, the transmission test analysis model is composed of J test analysis units, the J test analysis units are constructed based on a KNN algorithm in machine learning, the transmission speed and the transmission error rate in J test result sets are analyzed, the data transmission quality of each interface is evaluated, J test scores corresponding to the J test result sets are obtained, the higher the test scores are, the higher the data transmission quality is, the higher the transmission speed is, and the lower the transmission error rate is, the higher the corresponding test scores are.
Specifically, according to transmission test data in the history time of the first interface in the J interfaces, a plurality of sample first test result sets are obtained, and each sample first test result set comprises a sample transmission speed and a sample error rate. The data transmission standard is a standard requirement of transmission speed and error rate, and is specifically determined according to the type of the first interface, the maximum transmission speed which can be achieved by the first interface and the range of the error rate are determined according to the type of the first interface, a transmission quality scoring standard is formulated based on the range of the maximum transmission speed and the range of the error rate, the test scoring corresponding to different combinations of a plurality of transmission speeds and the error rate is specifically included, the data transmission scoring evaluation is further carried out on a plurality of sample first test result sets according to the data transmission standard of the first interface, a plurality of sample first test scores are obtained, and the plurality of sample first test result sets correspond to the plurality of sample first test scores one by one.
The method comprises the steps of adopting a plurality of sample first test result sets and a plurality of sample first test scores, constructing first test units in J test analysis units based on a KNN algorithm in machine learning, wherein the first test units are any one of the J test analysis units, the first test units comprise a first test coordinate system and a plurality of sample first coordinate points, the first test coordinate system takes a transmission speed as an abscissa axis, a transmission error rate as an ordinate axis, and based on the transmission speed and the sample error rate in the sample first test result sets, determining the position coordinates of the sample first test result sets in the rectangular coordinate system, taking the position coordinates as a plurality of sample first coordinate points, and constructing the first test unit. And adopting the same construction method as the first test unit to continuously construct other J-1 test analysis units according to the transmission test data in the history time of other J-1 interfaces to obtain a transmission test analysis model.
And inputting a first test result set in the J test result sets into a first test unit to obtain position coordinates corresponding to the first test result set as a first coordinate point, and calculating distances between the first coordinate points of a plurality of samples to obtain a plurality of distance values. And arranging the plurality of distance values in order from small to large, acquiring K sample first coordinate points with the nearest neighbor first coordinate points and corresponding K sample first test scores according to the arrangement result, selecting the sample first test score with the highest occurrence frequency in the K sample first test scores as the first test score, if the K value is selected to be too small, causing inaccurate final result, setting K as an odd number greater than or equal to 5 based on historical experience, and ensuring that only one sample first test score with the highest occurrence frequency exists to a certain extent for K as an odd number, thereby reducing the operand, such as the condition that only two classification results exist in the K sample first test scores, only one sample first test score with the highest occurrence frequency can be ensured, and if two or more sample first test scores with the highest occurrence frequency exist in the K sample first test scores, acquiring more sample first test scores with the nearest neighbor by increasing the K value, so that only one sample first test score with the highest occurrence frequency exists in the K sample first test scores. By adopting the same method, other J-1 test result sets are input into J-1 test analysis units to obtain J test scores, and the technical effects of improving the accuracy of the test scores and reducing the operand are achieved.
Specifically, the procedure for constructing the first test unit of the J test analysis units is as follows: based on the transmission speed and the transmission error rate, the transmission speed and the transmission error rate are taken as an abscissa axis and an ordinate axis, respectively, and the abscissa (or ordinate) may be one of the transmission speed or the transmission error rate, and the first test coordinate system is constructed without specific limitation. Inputting a plurality of sample first test result sets into a first test coordinate system, acquiring corresponding position coordinates, forming a plurality of sample first coordinate points, marking the plurality of sample first coordinate points by adopting the plurality of sample first test scores as a plurality of markers, facilitating clear acquisition of sample first test scores corresponding to each sample first coordinate point, facilitating quick acquisition of corresponding sample first test scores when the plurality of sample first coordinate points are subsequently called, acquiring the first test scores, completing construction of a first test unit, and acquiring K sample first coordinate points nearest to the first coordinate points by calculating the distance between the input test result sets and the plurality of sample first coordinate points. In this embodiment, the transmission speed or the transmission error rate is used as the judgment index of the test score, so that a two-dimensional coordinate system is constructed, according to the actual situation, other judgment indexes of the test score can be added, a three-dimensional or multi-dimensional coordinate system can be constructed, and a first test unit is constructed by the three-dimensional or multi-dimensional coordinate system, and the principle is the same.
Step S600: and carrying out weighted calculation on the J test scores according to the J application importance parameters and the J data transmission quantity parameters to obtain a multi-interface test result of the target equipment.
The step S600 of the embodiment of the present invention further includes:
step S610: according to the magnitude of the J application importance parameters, weight distribution is carried out, and a first weight distribution result is obtained, wherein the first weight distribution result comprises J first weight values;
step S620: according to the size of the J data transmission quantity parameters, weight distribution is carried out, and a second weight distribution result is obtained, wherein the second weight distribution result comprises J second weight values;
step S630: the J first weight values and the J second weight values are adopted to carry out product calculation and weight distribution, J weight values are obtained, and the sum of the J weight values is 1;
step S640: and weighting and calculating the J test scores by adopting the J weight values to obtain the multi-interface test result.
Specifically, the J test scores are weighted according to the J application importance parameters and the J data transmission quantity parameters, and the J test scores are weighted according to the weight setting result, so that the weighted calculation result is used as a multi-interface test result of the target device.
Specifically, firstly, weight distribution is performed according to the magnitude of the J application importance parameters, a first weight distribution result is obtained, the first weight distribution result includes J first weight values, the larger the application importance parameters are, the larger the corresponding first weight values are, specifically, the J application importance parameters can be added, and the ratio of the application importance parameters corresponding to the J interfaces to the addition result is used as the corresponding first weight value. And adding J data transmission quantity parameters by adopting the same method, and respectively using the ratio of the data transmission quantity parameters corresponding to the J interfaces to the addition result as a corresponding second weight value, wherein the J second weight values form a second weight distribution result.
The first weight value and the second weight value are respectively obtained according to the size of J application importance parameters and the size distribution of J data transmission quantity parameters, J first weight values and J second weight values are adopted to carry out product calculation to obtain J product calculation results, the J product calculation results are added to obtain a sum of products, the ratio of the J product calculation results to the sum of products is respectively used as the final J weight values, and the sum of the J weight values is 1. Illustratively, the first interface has a first weight of 0.3 and the second weight of 0.2; the first weight value of the second interface is 0.5, and the second weight value is 0.3; the first weight value of the third interface is 0.2, the second weight value is 0.5, the calculated product is obtained, the first interface product is 0.06, the second interface product is 0.15, the third interface product is 0.10, 0.06+0.15+0.10=0.31, and the ratio of 0.06, 0.15, 0.10 and 0.31 is further calculated as the final weight values of the first interface, the second interface and the third interface respectively.
And (3) weighting calculation is carried out on J test scores by adopting J weight values, the weighted calculation result is used as a multi-interface test result, the comprehensive analysis of multiple interfaces is realized, the user can know the performance of multiple interfaces of the used equipment conveniently, and the technical effects of improving the comprehensiveness, the accuracy and the visualization degree of the multi-interface test are achieved.
Based on the above analysis, the present invention provides a multi-interface testing method, in this embodiment, first, J application importance parameters and J data transmission parameters of J interfaces are obtained according to M task number information and J historical data analysis and calculation of interface activation times. And further performing data transmission test on J interfaces of the target equipment to obtain J test result sets, wherein each test result set comprises a transmission speed and a transmission error rate, the J test result sets are respectively input into J test analysis units corresponding to a transmission test analysis model to obtain J test scores, and finally, the J test scores are weighted and calculated comprehensively according to application importance parameters and data transmission quantity parameters to obtain a multi-interface test result, so that the technical effects of improving the comprehensiveness, accuracy and visualization degree of multi-interface test are achieved.
Example two
Based on the same inventive concept as the multi-interface test method in the foregoing embodiment, as shown in fig. 4, the present invention further provides a multi-interface test system, where the system includes:
the task number information acquisition module 11 is configured to acquire the number of processing M types of processing tasks of a target device within a history time of a preset time range, and obtain M task number information, where the target device includes J interfaces, and the device to be subjected to multi-interface test, and M and J are integers greater than 1;
the interface enabling data obtaining module 12, where the interface enabling data obtaining module 12 is configured to obtain a plurality of task processing interface enabling data according to historical data of the J interface enabling times when task processing is performed each time in the preset time range;
the parameter calculation module 13 is configured to analyze, calculate and obtain J application importance parameters of the J interfaces according to the M task number information and the task processing interface enabling data, and obtain J data transmission quantity parameters of the J interfaces within the preset time range;
The data transmission testing module 14 is configured to perform data transmission testing on the J interfaces of the target device, to obtain J test result sets, where each test result set includes a transmission speed and a transmission error rate;
the transmission test analysis module 15 is used for respectively inputting the J test result sets into corresponding J test analysis units in the transmission test analysis model to obtain J test scores;
and the test score weighting module 16 is used for carrying out weighted calculation on the J test scores according to the J application importance parameters and the J data transmission quantity parameters to obtain a multi-interface test result of the target equipment.
Further, the system further comprises:
the data dividing module is used for dividing the plurality of task processing interface enabling data according to the M types of processing tasks to obtain M task processing interface enabling data sets;
the total frequency information acquisition module is used for respectively acquiring the total frequency of the enabled J interfaces in the M task processing interface enabling data sets to acquire M pieces of total frequency information;
The starting times set acquisition module is used for respectively acquiring the starting times of the J interfaces in the M task processing interface starting data sets and acquiring J starting times sets;
and the application importance parameter calculation module is used for analyzing and calculating the J application importance parameters according to the M total frequency information and the J starting frequency sets.
Further, the system further comprises:
the first starting proportion parameter set acquisition module is used for calculating the ratio of the number of times that a first interface in J interfaces is started in M-type task processing to M pieces of total number information according to the J starting number of times sets and the M pieces of total number of times information to obtain a first starting proportion parameter set;
the first application importance parameter acquisition module is used for carrying out weighted calculation on M first enabling proportion parameters in the first enabling proportion parameter set according to the number of the M tasks to obtain first application importance parameters;
And the J application importance parameter acquisition modules are used for continuously analyzing and calculating J-1 application importance parameters of other J-1 interfaces to obtain the J application importance parameters.
Further, the system further comprises:
the data transmission quantity acquisition module is used for acquiring J data transmission quantities of the J interfaces in the preset time range and total data transmission quantities;
and the data transmission quantity parameter calculation module is used for calculating the ratio of the J data transmission quantities to the total data transmission quantity to obtain the J data transmission quantity parameters.
Further, the system further comprises:
the sample acquisition module is used for acquiring a plurality of sample first test result sets according to transmission test data in the historical time of the first interfaces in the J interfaces, and carrying out data transmission scoring evaluation according to the data transmission standard of the first interfaces to acquire a plurality of sample first test scores;
the first test unit construction module is used for constructing first test units in the J test analysis units by adopting the first test result sets of the samples and the first test scores of the samples, and the first test units comprise a first test coordinate system and a first coordinate point of the samples;
The transmission test analysis model acquisition module is used for continuously constructing other J-1 test analysis units according to the transmission test data in the historical time of other J-1 interfaces to acquire the transmission test analysis model;
the sample first test score acquisition module is used for inputting a first test result set in the J test result sets into the first test unit to obtain a first coordinate point, and obtaining K sample first coordinate points nearest to the first coordinate point and K corresponding sample first test scores, wherein K is an odd number greater than or equal to 5;
the first test score acquisition module is used for selecting a sample first test score with highest occurrence frequency in the K sample first test scores as a first test score;
and the J test score acquisition modules are used for inputting other J-1 test result sets into the J-1 test analysis units to obtain the J test scores.
Further, the system further comprises:
the first test coordinate system construction module is used for constructing an abscissa axis and an ordinate axis in the first test coordinate system based on the transmission speed and the transmission error rate;
The sample first coordinate point forming module is used for inputting the plurality of sample first test result sets into the first test coordinate system to form the plurality of sample first coordinate points;
and the coordinate point marking module is used for marking the first coordinate points of the plurality of samples by adopting the first test scores of the plurality of samples as a plurality of markers to obtain the first test unit.
Further, the system further comprises:
the first weight distribution module is used for carrying out weight distribution according to the magnitudes of the J application importance parameters to obtain a first weight distribution result, wherein the first weight distribution result comprises J first weight values;
the second weight distribution module is used for carrying out weight distribution according to the size of the J data transmission quantity parameters to obtain a second weight distribution result, wherein the second weight distribution result comprises J second weight values;
the weight value weight distribution module is used for carrying out product calculation by adopting the J first weight values and the J second weight values and carrying out weight distribution to obtain J weight values, and the sum of the J weight values is 1;
And the weighting calculation module is used for carrying out weighting calculation on the J test scores by adopting the J weight values to obtain the multi-interface test result.
The specific example of a multi-interface test method in the first embodiment is also applicable to a multi-interface test system in the present embodiment, and those skilled in the art will clearly know about a multi-interface test system in the present embodiment through the foregoing detailed description of a multi-interface test method, so that details thereof will not be described herein for brevity.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (8)

1. A multi-interface test method, the method comprising:
acquiring the number of M types of processing tasks processed by target equipment in the historical time of a preset time range, and acquiring M task number information, wherein the target equipment comprises J interfaces, the equipment is to be subjected to multi-interface test, and M and J are integers larger than 1;
obtaining a plurality of task processing interface enabling data according to historical data of the J interface enabling times when task processing is carried out each time in the preset time range;
according to the M task quantity information and the task processing interface enabling data, J application importance parameters of the J interfaces are obtained through analysis and calculation, and J data transmission quantity parameters of the J interfaces in the preset time range are obtained;
respectively carrying out data transmission test on the J interfaces of the target equipment to obtain J test result sets, wherein each test result set comprises a transmission speed and a transmission error rate;
respectively inputting the J test result sets into corresponding J test analysis units in a transmission test analysis model to obtain J test scores;
and carrying out weighted calculation on the J test scores according to the J application importance parameters and the J data transmission quantity parameters to obtain a multi-interface test result of the target equipment.
2. The method of claim 1, wherein analyzing and computing J application importance parameters for the J interfaces based on the M number of tasks information and the plurality of task processing interface enablement data, comprises:
dividing the plurality of task processing interface enabling data according to the M types of processing tasks to obtain M task processing interface enabling data sets;
respectively acquiring the total times of the J interfaces which are started in the M task processing interface starting data sets, and acquiring M pieces of total times information;
acquiring the number of times that the J interfaces are started in the M task processing interface starting data sets respectively, and acquiring J starting number of times sets;
and according to the M pieces of total frequency information and the J pieces of starting frequency sets, analyzing and calculating to obtain the J pieces of application importance parameters.
3. The method of claim 2, wherein the analyzing and calculating to obtain the J application importance parameters according to the M total number of times information and the J activation number of times sets includes:
calculating the ratio of the number of times that a first interface in J interfaces is started in M-type task processing to M pieces of total number information according to the J starting number of times sets and the M pieces of total number of times information, and obtaining a first starting proportion parameter set;
According to the size of the M task quantity information, carrying out weighted calculation on M first enabling proportion parameters in the first enabling proportion parameter set to obtain first application importance parameters;
and continuing to analyze and calculate to obtain J-1 application importance parameters of other J-1 interfaces, and obtaining the J application importance parameters.
4. The method of claim 1, wherein obtaining J data transmission parameters for the J interfaces within the preset time range comprises:
acquiring J data transmission amounts of the J interfaces in the preset time range and total data transmission amounts;
and calculating the ratio of the J data transmission amount to the total data transmission amount to obtain the J data transmission amount parameters.
5. The method of claim 1, wherein inputting the J test result sets into corresponding J test analysis units in a transmission test analysis model, respectively, to obtain J test scores, comprises:
acquiring a first test result set of a plurality of samples according to transmission test data in the historical time of a first interface in the J interfaces, and performing data transmission scoring evaluation according to the data transmission standard of the first interface to acquire a first test score of the plurality of samples;
Constructing first test units in the J test analysis units by adopting the first test result sets of the plurality of samples and the first test scores of the plurality of samples, wherein the first test units comprise a first test coordinate system and a first coordinate point of the plurality of samples;
continuously constructing other J-1 test analysis units according to the transmission test data in the history time of other J-1 interfaces to obtain the transmission test analysis model;
inputting a first test result set in the J test result sets into the first test unit to obtain a first coordinate point, and obtaining K sample first coordinate points nearest to the first coordinate point and corresponding K sample first test scores, wherein K is an odd number greater than or equal to 5;
selecting a sample first test score with highest occurrence frequency in the K sample first test scores as a first test score;
inputting other J-1 test result sets into J-1 test analysis units to obtain J test scores.
6. The method of claim 5, wherein constructing a first test unit of the J test analysis units using the plurality of sample first test result sets and the plurality of sample first test scores comprises:
Constructing an abscissa axis and an ordinate axis in the first test coordinate system based on the transmission speed and the transmission error rate;
inputting a first test result set of the plurality of samples into the first test coordinate system to form a first coordinate point of the plurality of samples;
and marking the first coordinate points of the plurality of samples by adopting the first test scores of the plurality of samples as a plurality of markers to obtain the first test unit.
7. The method of claim 1, wherein weighting the J test scores according to the J application importance parameters and J data transmission amount parameters to obtain a multi-interface test result of the target device comprises:
according to the magnitude of the J application importance parameters, weight distribution is carried out, and a first weight distribution result is obtained, wherein the first weight distribution result comprises J first weight values;
according to the size of the J data transmission quantity parameters, weight distribution is carried out, and a second weight distribution result is obtained, wherein the second weight distribution result comprises J second weight values;
the J first weight values and the J second weight values are adopted to carry out product calculation and weight distribution, J weight values are obtained, and the sum of the J weight values is 1;
And weighting and calculating the J test scores by adopting the J weight values to obtain the multi-interface test result.
8. A multi-interface test system, the system comprising:
the task number information acquisition module is used for acquiring the number of M types of processing tasks processed by target equipment in the historical time of a preset time range and acquiring M task number information, wherein the target equipment comprises J interfaces, the equipment is to be subjected to multi-interface test, and M and J are integers larger than 1;
the interface enabling data acquisition module is used for acquiring a plurality of task processing interface enabling data according to historical data of the J interface enabling times when task processing is performed each time in the preset time range;
the parameter calculation module is used for analyzing and calculating J application importance parameters of the J interfaces according to the M task quantity information and the task processing interface enabling data, and acquiring J data transmission quantity parameters of the J interfaces in the preset time range;
the data transmission testing module is used for respectively carrying out data transmission testing on the J interfaces of the target equipment to obtain J test result sets, wherein each test result set comprises a transmission speed and a transmission error rate;
The transmission test analysis module is used for respectively inputting the J test result sets into the J test analysis units corresponding to the transmission test analysis model to obtain J test scores;
and the test score weighting module is used for carrying out weighted calculation on the J test scores according to the J application importance parameters and the J data transmission quantity parameters to obtain a multi-interface test result of the target equipment.
CN202310533440.2A 2023-05-12 2023-05-12 Multi-interface test method Active CN116257456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310533440.2A CN116257456B (en) 2023-05-12 2023-05-12 Multi-interface test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310533440.2A CN116257456B (en) 2023-05-12 2023-05-12 Multi-interface test method

Publications (2)

Publication Number Publication Date
CN116257456A true CN116257456A (en) 2023-06-13
CN116257456B CN116257456B (en) 2023-07-18

Family

ID=86688325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310533440.2A Active CN116257456B (en) 2023-05-12 2023-05-12 Multi-interface test method

Country Status (1)

Country Link
CN (1) CN116257456B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116505972A (en) * 2023-06-27 2023-07-28 北京易桓科技有限公司 Intelligent detection method and system for cable signal transmission

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7529890B1 (en) * 2004-08-25 2009-05-05 Unisys Corporation System, apparatus and method for facilitating on-chip testing
CN103178998A (en) * 2013-03-20 2013-06-26 中国人民解放军91404部队 Test and control data transmission method and device
WO2017027546A1 (en) * 2015-08-10 2017-02-16 The Rocket Science Group Llc Optimizing evaluation of effectiveness for multiple versions of electronic messages
WO2020155759A1 (en) * 2019-01-31 2020-08-06 平安科技(深圳)有限公司 Interface test method and apparatus, computer device and storage medium
CN113535582A (en) * 2021-07-30 2021-10-22 平安普惠企业管理有限公司 Interface testing method, device, equipment and computer readable storage medium
CN113868139A (en) * 2021-09-29 2021-12-31 未鲲(上海)科技服务有限公司 Method and device for analyzing number making accuracy, electronic equipment and storage medium
CN114371966A (en) * 2021-12-17 2022-04-19 武汉天喻信息产业股份有限公司 Multi-interface testing method and system
CN114817055A (en) * 2022-05-10 2022-07-29 中国平安财产保险股份有限公司 Regression testing method and device based on interface, computer equipment and storage medium
CN115481941A (en) * 2022-10-31 2022-12-16 南京戴尔塔智能制造研究院有限公司 Multifunctional area combined intelligent security management method and system
CN116069002A (en) * 2023-03-22 2023-05-05 常州市诺七微电子科技有限公司 Motor controller rotation speed balance test method and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7529890B1 (en) * 2004-08-25 2009-05-05 Unisys Corporation System, apparatus and method for facilitating on-chip testing
CN103178998A (en) * 2013-03-20 2013-06-26 中国人民解放军91404部队 Test and control data transmission method and device
WO2017027546A1 (en) * 2015-08-10 2017-02-16 The Rocket Science Group Llc Optimizing evaluation of effectiveness for multiple versions of electronic messages
WO2020155759A1 (en) * 2019-01-31 2020-08-06 平安科技(深圳)有限公司 Interface test method and apparatus, computer device and storage medium
CN113535582A (en) * 2021-07-30 2021-10-22 平安普惠企业管理有限公司 Interface testing method, device, equipment and computer readable storage medium
CN113868139A (en) * 2021-09-29 2021-12-31 未鲲(上海)科技服务有限公司 Method and device for analyzing number making accuracy, electronic equipment and storage medium
CN114371966A (en) * 2021-12-17 2022-04-19 武汉天喻信息产业股份有限公司 Multi-interface testing method and system
CN114817055A (en) * 2022-05-10 2022-07-29 中国平安财产保险股份有限公司 Regression testing method and device based on interface, computer equipment and storage medium
CN115481941A (en) * 2022-10-31 2022-12-16 南京戴尔塔智能制造研究院有限公司 Multifunctional area combined intelligent security management method and system
CN116069002A (en) * 2023-03-22 2023-05-05 常州市诺七微电子科技有限公司 Motor controller rotation speed balance test method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
WEIKUN XIE: "Research on High-speed SerDes Interface Testing Technology", 《IEEE XPLORE》 *
张凌飞: "一种低成本多用途的802.11MAC测试平台", 《软件工程》, vol. 22, no. 7 *
祝恩国;窦健;韩霄汉;王朝亮;: "用电信息采集接口测试数据传输请求量动态调整策略", 济南大学学报(自然科学版), no. 04 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116505972A (en) * 2023-06-27 2023-07-28 北京易桓科技有限公司 Intelligent detection method and system for cable signal transmission
CN116505972B (en) * 2023-06-27 2023-09-01 北京易桓科技有限公司 Intelligent detection method and system for cable signal transmission

Also Published As

Publication number Publication date
CN116257456B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN116257456B (en) Multi-interface test method
CN108182433A (en) A kind of meter reading recognition methods and system
CN110352389B (en) Information processing apparatus and information processing method
CN102541736B (en) Acceleration test method in software reliability execution process
CN108960434A (en) The method and device of data is analyzed based on machine learning model explanation
CN109587008A (en) Detect the method, apparatus and storage medium of abnormal flow data
CN111984544B (en) Device performance test method and device, electronic device and storage medium
CN111178537A (en) Feature extraction model training method and device
CN112396211A (en) Data prediction method, device, equipment and computer storage medium
CN113465734A (en) Real-time estimation method for structural vibration
US7797136B2 (en) Metrics to evaluate process objects
JP5167596B2 (en) Data set selection device and experimental design system
CN108763289B (en) Massive heterogeneous sensor format data analysis method
CN111797686A (en) Method for evaluating running state stability of froth flotation production process based on time series similarity analysis
CN115932144A (en) Chromatograph performance detection method, device, equipment and computer medium
CN116719714A (en) Training method and corresponding device for screening model of test case
CN115373982A (en) Test report analysis method, device, equipment and medium based on artificial intelligence
CN111639621A (en) Method for diagnosing fault by sensor signal
CN110232517A (en) A kind of mobile intelligent perception user income choosing method
CN109583590A (en) Data processing method and data processing equipment
CN113038596B (en) Indoor positioning method, device, equipment and computer readable storage medium
CN113806452B (en) Information processing method, information processing device, electronic equipment and storage medium
CN111507639B (en) Financing risk analysis method and device
CN116955182A (en) Abnormality index analysis method, abnormality index analysis device, abnormality index analysis storage medium, abnormality index analysis device, abnormality index analysis program, and
CN115909745A (en) Method, device, equipment and medium for comparing significance difference of drive test data

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
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 810, Building C, 8th Floor, Chuangye Building, No. 16 Gaoxin 1st Road, Xi'an City, Shaanxi Province, 710065

Patentee after: Xi'an Shengxin Technology Co.,Ltd.

Address before: 710065 Floor 5, Block B, Productivity Building, No. 3, Dianzi West Street, Electronic Industrial Park, Yanta District, Xi'an, Shaanxi

Patentee before: Xi'an Shengxin Technology Co.,Ltd.