CN115422041A - Data interface performance test method and device applied to data integration system and computer storage medium - Google Patents

Data interface performance test method and device applied to data integration system and computer storage medium Download PDF

Info

Publication number
CN115422041A
CN115422041A CN202210941736.3A CN202210941736A CN115422041A CN 115422041 A CN115422041 A CN 115422041A CN 202210941736 A CN202210941736 A CN 202210941736A CN 115422041 A CN115422041 A CN 115422041A
Authority
CN
China
Prior art keywords
data interface
performance
data
interface
integration system
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
Application number
CN202210941736.3A
Other languages
Chinese (zh)
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.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau 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 Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN202210941736.3A priority Critical patent/CN115422041A/en
Publication of CN115422041A publication Critical patent/CN115422041A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a data interface performance testing method and device applied to a data integration system and a computer storage medium, wherein the method comprises the following steps: acquiring interface performance requirement information corresponding to a plurality of developed target data interfaces; determining a performance test case set corresponding to each target data interface according to all interface performance requirement information corresponding to each target data interface; performing performance test on each target data interface according to the performance test case set corresponding to each target data interface to obtain a performance test result corresponding to each target data interface; and determining the data interface performance of the data integration system based on the performance test results corresponding to all the target data interfaces and the weight coefficient corresponding to each target data interface. The invention can automatically test the performance of the data interface of the data integrated system according to the automatically determined performance test case set, and is beneficial to improving the test efficiency and the test accuracy of the performance of the data interface.

Description

Data interface performance test method and device applied to data integration system and computer storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to a data interface performance testing method and device applied to a data integration system and a computer storage medium.
Background
With the rapid development of the internet, based on the global requirement of data acquisition, a data integration system needs to be developed to complete the acquisition of required data, and in the development process of the data integration system, one of the most important development focuses is the development of a data interface for acquiring the required data. After the development of the data interface of the data integration system, the performance of the developed data interface needs to be manually tested to test whether the developed data interface meets the preset requirements. However, practice finds that the current data interface performance test mainly depends on manual test of a tester, which causes technical problems of low test efficiency and low test accuracy.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and an apparatus for testing performance of a data interface applied to a data integration system, and a computer storage medium, so as to improve the testing efficiency and the testing accuracy of the data interface.
In order to solve the above technical problem, the present invention provides a method for testing the performance of a data interface applied to a data integration system, comprising:
acquiring interface performance requirement information corresponding to a plurality of developed target data interfaces;
determining a performance test case set corresponding to each target data interface according to all interface performance requirement information corresponding to each target data interface;
performing performance test on each target data interface according to the performance test case set corresponding to each target data interface to obtain a performance test result corresponding to each target data interface;
and determining the performance of the data interface of the data integration system based on the performance test results corresponding to all the target data interfaces and the weight coefficient corresponding to each target data interface.
Further, the determining, according to the performance requirement information of all interfaces corresponding to each target data interface, a performance test case set corresponding to each target data interface includes:
dividing all the target data interfaces into a plurality of data interface groups according to the interface information of each target data interface and all the interface performance requirement information corresponding to each target data interface, wherein the similarity between the interface information of the target data interfaces and the corresponding interface performance requirement information packaged in the same data interface group is higher than or equal to a preset similarity threshold;
and determining a performance test case set corresponding to each data interface group.
Further, after determining the data interface performance of the data integration system based on the performance test results corresponding to all the target data interfaces and the weight coefficient corresponding to each target data interface, the method further includes:
judging whether the performance of a data interface of the data integration system meets the performance requirement corresponding to the data integration system or not;
and when the data interface performance of the data integration system is judged not to meet the performance requirement corresponding to the data integration system, determining a data interface to be optimized from all the target interface data, determining an optimization mode corresponding to the data interface to be optimized, and executing optimization operation on the data interface to be optimized based on the optimization mode corresponding to the data interface to be optimized.
Further, the performing, according to the performance test case set corresponding to each target data interface, a performance test on each target data interface to obtain a performance test result corresponding to each target data interface includes:
and determining a test time period corresponding to each target data interface, and performing performance test on each target data interface in the test time period corresponding to each target data interface according to a performance test case set corresponding to each target data interface to obtain a performance test result corresponding to each target data interface.
Further, before determining the test time period corresponding to each target data interface, the method further includes:
judging whether all the target data interfaces comprise data interfaces authorized to be on-line or not, and determining the proportion of all the data interfaces authorized to be on-line in all the target data interfaces when the judgment result is yes;
judging whether the ratio exceeds a preset ratio threshold value or not, and triggering and executing the operation of determining the test time period corresponding to each target data interface when the ratio is judged not to exceed the preset ratio threshold value;
wherein the determining the test time period corresponding to each target data interface includes:
for each data interface which is authorized to be on line, determining a customary data transceiving time period of the data interface according to historical data transceiving records of the data interface, and determining a time period which does not have time overlap with the customary data transceiving time period as a test time period corresponding to the data interface; and for each data interface which is not authorized to be online, determining a test time period matched with the online urgency degree of the data interface from a predetermined test time period set according to the online urgency degree of the data interface.
Further, the method further comprises:
when the proportion is judged to exceed a preset proportion threshold, a virtual data integration system corresponding to the data integration system is constructed; respectively configuring a virtual data interface matched with each target data interface for the virtual data integration system;
performing performance test on each virtual data interface based on a performance test case set corresponding to each virtual data interface to obtain a performance test result corresponding to each virtual data interface;
calculating the performance of the data interface corresponding to the virtual data integration system according to the performance test results corresponding to all the virtual data interfaces;
and determining the performance of the data interface corresponding to the data integration system according to the performance of the data interface corresponding to the virtual data integration system.
Further, the determining the data interface performance corresponding to the data integration system according to the data interface performance corresponding to the virtual data integration system includes:
determining the difference degree of the data integration system and the virtual data integration system;
and adjusting the performance of the data interface corresponding to the virtual data integration system according to the difference degree to obtain the adjusted performance of the data interface, and determining the performance of the data interface as the performance of the data interface corresponding to the data integration system.
The invention also provides a data interface performance testing device applied to the data integration system, which comprises:
the acquisition module is used for acquiring interface performance requirement information corresponding to a plurality of developed target data interfaces;
the first determining module is used for determining a performance test case set corresponding to each target data interface according to all interface performance requirement information corresponding to each target data interface;
the test module is used for carrying out performance test on each target data interface according to the performance test case set corresponding to each target data interface to obtain a performance test result corresponding to each target data interface;
and the second determining module is used for determining the data interface performance of the data integration system based on the performance test results corresponding to all the target data interfaces and the weight coefficient corresponding to each target data interface.
The invention also provides a data interface performance testing device applied to the data integration system, which comprises:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program codes stored in the memory to execute the data interface performance test method applied to the data integration system.
The invention also provides a computer storage medium, which stores computer instructions for executing the data interface performance test method applied to the data integration system when the computer instructions are called.
The implementation of the invention has the following beneficial effects: the invention can automatically test the performance of the data interface of the data integrated system according to the automatically determined performance test case set, and is beneficial to improving the test efficiency and the test accuracy of the performance of the data interface; all the data interfaces to be tested can be grouped according to the interface information of the data interfaces to be tested and the corresponding interface performance requirement information, and a matched performance test case set is determined for each data interface group, so that the operation of determining the performance test case sets is simplified, the determination convenience and the determination efficiency of the performance test case sets are improved, and the required performance test case sets can be reduced; the data interface performance of the data integration system can be automatically judged after the data interface performance of the data integration system is tested, and if the data interface performance is judged not to meet the requirements, matched optimization operation is performed on the data interface to be optimized based on the determined optimization mode, so that the reliability of the data integration system is improved, and the optimization efficiency and the optimization accuracy are improved; in addition, the performance test of the data interface can be completed within the determined test time period, which is beneficial to reducing unnecessary influence of the performance of the test interface on the normal work of the data integration system; the corresponding test time period can be determined for the data interface which is authorized to be online and the corresponding test time period can be determined for the data interface which is not authorized to be online, so that the reliability of the determined test time period can be improved, and the accuracy of the performance test of the data interface can be improved; in addition, if the data interface to be tested comprises more authorized online data interfaces, the data interface performance of the data integration system is determined by constructing the virtual data integration system and testing the interface performance of the virtual data integration system, so that the data interface performance can be tested by using the virtual data integration system while the normal work of the data integration system is ensured; in addition, the data interface performance of the virtual data integration system can be adjusted based on the difference between the virtual data integration system and the data integration system to obtain the data interface performance corresponding to the data integration system, and the accuracy of the data interface performance corresponding to the data integration system determined based on the virtual data integration system is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a data interface performance testing method applied to a data integration system according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart of a data interface performance testing method applied to a data integration system according to another embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a data interface performance testing apparatus applied to a data integration system according to a third embodiment of the present invention.
Fig. 4 is another schematic structural diagram of a data interface performance testing apparatus applied to a data integration system according to a third embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a data interface performance testing apparatus applied to a data integration system according to a fourth embodiment of the present invention.
Detailed Description
The following description of the embodiments refers to the accompanying drawings, which are included to illustrate specific embodiments in which the invention may be practiced.
The invention discloses a data interface performance testing method and device applied to a data integration system, which can automatically test the performance of a data interface of the data integration system according to an automatically determined performance test case set, and are favorable for improving the testing efficiency and the testing accuracy of the performance of the data interface, and further improving the reliability of the data integration system. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for testing performance of a data interface applied to a data integration system according to an embodiment of the present invention. The method described in fig. 1 may be applied to a data interface testing apparatus, and the data interface testing apparatus may be further integrated in a data integration system or a development platform of a data interface, and may also exist independently of the development platform of the data integration system or the data interface, which is not limited in the embodiment of the present invention. As shown in fig. 1, the method for testing the performance of the data interface applied to the data integration system may include the following steps:
step 101, acquiring interface performance requirement information corresponding to a plurality of developed target data interfaces.
Optionally, the interface performance requirement information corresponding to the target data interface may include one or a combination of multiple types of data receiving speed requirement, data sending speed requirement, data receiving amount requirement, response speed requirement, and the like.
And 102, determining a performance test case set corresponding to each target data interface according to all interface performance requirement information corresponding to each target data interface.
The performance test case set corresponding to each target data interface is matched with all interface performance requirement information corresponding to each target data interface, one type of interface performance requirement information can correspond to one or more performance test cases, and the more the corresponding performance test cases are, the more accurate the test result is.
And 103, performing performance test on each target data interface according to the performance test case set corresponding to each target data interface to obtain a performance test result corresponding to each target data interface.
Optionally, the performance test result corresponding to each target data interface may be a specific score value.
And 104, determining the data interface performance of the data integration system based on the performance test results corresponding to all the target data interfaces and the weight coefficient corresponding to each target data interface.
The more important the target data interface is and the higher the performance requirement is, the larger the corresponding weight coefficient is, and the data interface performance of the data integration system may be a result obtained by performing weighted summation on a performance test result corresponding to each target data interface.
Therefore, the embodiment of the invention can automatically test the performance of the data interface of the data integrated system according to the automatically determined performance test case set, and is beneficial to improving the test efficiency and the test accuracy of the performance of the data interface.
In an optional embodiment, the determining, according to the performance requirement information of all interfaces corresponding to each target data interface, a performance test case set corresponding to each target data interface may include:
dividing all target data interfaces into a plurality of data interface groups according to the interface information of each target data interface and all interface performance requirement information corresponding to each target data interface, wherein the similarity between the interface information of the target data interfaces and the corresponding interface performance requirement information packaged in the same data interface group is higher than or equal to a preset similarity threshold value;
and determining a performance test case set corresponding to each data interface group.
Therefore, in the optional embodiment, all the data interfaces to be tested can be grouped according to the interface information of the data interfaces to be tested and the corresponding interface performance requirement information, and the matched performance test case sets are determined for each data interface group, so that the operation of determining the performance test case sets is facilitated, the determination convenience and the determination efficiency of the performance test case sets are improved, and the required performance test case sets can be reduced.
In another optional embodiment, performing the performance test on each target data interface according to the performance test case set corresponding to each target data interface to obtain the performance test result corresponding to each target data interface may include:
and determining a test time period corresponding to each target data interface, and performing performance test on each target data interface in the test time period corresponding to each target data interface according to the performance test case set corresponding to each target data interface to obtain a performance test result corresponding to each target data interface.
Therefore, the optional embodiment can also complete the test of the performance of the data interface within the determined test time period, which is beneficial to reducing unnecessary influence of the performance of the test interface on the normal work of the data integration system.
In this optional embodiment, further optionally, before determining the test time period corresponding to each target data interface, the method may further include the following operations:
judging whether all target data interfaces comprise data interfaces authorized to be on-line or not, and determining the proportion of all data interfaces authorized to be on-line in all target data interfaces when the judgment result is yes;
judging whether the occupation ratio exceeds a preset occupation ratio threshold value or not, and triggering and executing the operation of determining the test time period corresponding to each target data interface when the occupation ratio is judged not to exceed the preset occupation ratio threshold value;
the determining the test time period corresponding to each target data interface may include:
for each data interface which is authorized to be on line, determining a customary data transceiving time period of the data interface according to historical data transceiving records of the data interface, and determining a time period which does not have time overlap with the customary data transceiving time period as a test time period corresponding to the data interface; and for each data interface which is not authorized to be online, determining a test time period matched with the online urgency degree of the data interface from a predetermined test time period set according to the online urgency degree of the data interface.
Therefore, the optional embodiment can also determine the corresponding test time period for the data interface which is authorized to be online and determine the corresponding test time period for the data interface which is not authorized to be online respectively, which is favorable for improving the reliability of the determined test time period and further is favorable for improving the accuracy of the performance test of the data interface.
In yet another alternative embodiment, the method may further include the operations of:
when the occupation ratio is judged to exceed a preset occupation ratio threshold value, a virtual data integration system corresponding to the data integration system is constructed; respectively configuring a virtual data interface matched with each target data interface for the virtual data integration system;
performing performance test on each virtual data interface based on the performance test case set corresponding to each virtual data interface to obtain a performance test result corresponding to each virtual data interface;
calculating the performance of the data interface corresponding to the virtual data integration system according to the performance test results corresponding to all the virtual data interfaces;
and determining the performance of the data interface corresponding to the data integration system according to the performance of the data interface corresponding to the virtual data integration system.
Therefore, in the optional embodiment, when the number of authorized online data interfaces included in the data interface to be tested is large, the data interface performance of the data integration system is determined by constructing the virtual data integration system and performing the interface performance test on the virtual data integration system, and the data interface performance test can be completed by using the virtual data integration system while the normal work of the data integration system is ensured.
In this optional embodiment, further optionally, the determining, according to the data interface performance corresponding to the virtual data integration system, the data interface performance corresponding to the data integration system may include:
determining the difference degree of the data integration system and the virtual data integration system;
and adjusting the performance of the data interface corresponding to the virtual data integration system according to the difference degree to obtain the adjusted performance of the data interface, and determining the performance of the data interface as the performance of the data interface corresponding to the data integration system. Therefore, the optional embodiment can also adjust the performance of the data interface of the virtual data integration system based on the difference between the virtual data integration system and the data integration system to obtain the performance of the data interface corresponding to the data integration system, which is beneficial to improving the accuracy of the performance of the data interface corresponding to the data integration system determined based on the virtual data integration system.
Example two
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another data interface performance testing method applied to a data integration system according to an embodiment of the present invention. The method described in fig. 2 may be applied to a data interface testing apparatus, and the data interface testing apparatus may be further integrated in a data integration system or a development platform of a data interface, or may exist independently of the development platform of the data integration system or the data interface, which is not limited in the embodiment of the present invention. As shown in fig. 2, the method for testing the performance of the data interface applied to the data integration system may include the following steps:
step 201, acquiring interface performance requirement information corresponding to a plurality of developed target data interfaces.
Optionally, the interface performance requirement information corresponding to the target data interface may include one or a combination of multiple types of requirements, such as a data receiving speed requirement, a data sending speed requirement, a data receiving amount requirement, and a response speed requirement.
Step 202, determining a performance test case set corresponding to each target data interface according to all interface performance requirement information corresponding to each target data interface.
The performance test case set corresponding to each target data interface is matched with all interface performance requirement information corresponding to each target data interface, one type of interface performance requirement information can correspond to one or more performance test cases, and the more the corresponding performance test cases are, the more accurate the test result is.
And 203, performing performance test on each target data interface according to the performance test case set corresponding to each target data interface to obtain a performance test result corresponding to each target data interface.
Optionally, the performance test result corresponding to each target data interface may be a specific score value.
And step 204, determining the data interface performance of the data integration system based on the performance test results corresponding to all the target data interfaces and the weight coefficient corresponding to each target data interface.
Step 205, determine whether the performance of the data interface of the data integration system meets the performance requirement corresponding to the data integration system.
And step 206, when the data interface performance of the data integration system is judged not to meet the performance requirement corresponding to the data integration system, determining a data interface to be optimized from all target interface data.
And step 207, determining an optimization mode corresponding to the data interface to be optimized, and executing optimization operation on the data interface to be optimized based on the optimization mode corresponding to the data interface to be optimized.
Therefore, the embodiment of the invention can automatically test the performance of the data interface of the data integration system according to the automatically determined performance test case set, is favorable for improving the test efficiency and the test accuracy of the performance of the data interface, and is further favorable for improving the reliability of the data integration system. In addition, the data interface performance of the data integration system can be automatically judged after the data interface performance is tested, and if the data interface performance is judged not to meet the requirements, matched optimization operation is performed on the data interface to be optimized based on the determined optimization mode, so that the reliability of the data integration system is improved, and the optimization efficiency and the optimization accuracy are favorably improved.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a data interface performance testing apparatus applied to a data integration system according to an embodiment of the present disclosure. The device may be integrated in a development platform of a data integration system or a data interface, or may exist independently of a development platform of a data integration system or a data interface, which is not limited in the embodiment of the present invention. As shown in fig. 3, the apparatus may include:
an obtaining module 301, configured to obtain interface performance requirement information corresponding to a plurality of developed target data interfaces;
a first determining module 302, configured to determine, according to all interface performance requirement information corresponding to each target data interface, a performance test case set corresponding to each target data interface;
the test module 303 is configured to perform a performance test on each target data interface according to the performance test case set corresponding to each target data interface, so as to obtain a performance test result corresponding to each target data interface;
the second determining module 304 is configured to determine the data interface performance of the data integration system based on the performance test results corresponding to all the target data interfaces and the weight coefficient corresponding to each target data interface.
Therefore, the device described in fig. 3 can perform automatic performance testing on the data interface of the data integration system according to the automatically determined performance test case set, which is beneficial to improving the test efficiency and test accuracy of the performance of the data interface, and is further beneficial to improving the reliability of the data integration system.
In an optional embodiment, the specific manner in which the first determining module 302 determines the performance test case set corresponding to each target data interface according to all the interface performance requirement information corresponding to each target data interface includes:
dividing all target data interfaces into a plurality of data interface groups according to the interface information of each target data interface and all interface performance requirement information corresponding to each target data interface, wherein the similarity between the interface information of the target data interface and the corresponding interface performance requirement information packaged in the same data interface group is higher than or equal to a preset similarity threshold;
and determining a performance test case set corresponding to each data interface group.
Therefore, the optional embodiment can also group all the data interfaces to be tested according to the interface information of the data interfaces to be tested and the corresponding interface performance requirement information, and respectively determine the matched performance test case sets for each data interface group, thereby being beneficial to simplifying the operation of determining the performance test case sets, improving the determination convenience and the determination efficiency of the performance test case sets, and reducing the required performance test case sets.
In an alternative embodiment, as shown in fig. 4, the apparatus may further include:
a determining module 305, configured to determine whether the data interface performance of the data integration system meets the performance requirement corresponding to the data integration system after the second determining module 304 determines the data interface performance of the data integration system based on the performance test results corresponding to all the target data interfaces and the weight coefficient corresponding to each target data interface;
and an optimizing module 306, configured to determine a data interface to be optimized from all the target interface data and determine an optimizing mode corresponding to the data interface to be optimized when the judging module 305 judges that the performance of the data interface of the data integration system does not meet the performance requirement corresponding to the data integration system, and perform an optimizing operation on the data interface to be optimized based on the optimizing mode corresponding to the data to be optimized.
Therefore, the optional embodiment can also automatically judge the performance of the data interface of the data integration system after testing the performance of the data interface, and if the performance of the data interface is judged not to meet the requirement, the data interface to be optimized is subjected to matched optimization operation based on the determined optimization mode, so that the reliability of the data integration system is improved, and the optimization efficiency and the optimization accuracy are improved.
In another optional embodiment, the specific manner of performing, by the testing module 303, the performance test on each target data interface according to the performance test case set corresponding to each target data interface to obtain the performance test result corresponding to each target data interface includes:
and determining a test time period corresponding to each target data interface, and performing performance test on each target data interface in the test time period corresponding to each target data interface according to the performance test case set corresponding to each target data interface to obtain a performance test result corresponding to each target data interface.
Therefore, the optional embodiment can also complete the test of the performance of the data interface within the determined test time period, which is beneficial to reducing unnecessary influence of the performance of the test interface on the normal work of the data integrated system.
In another optional embodiment, the testing module 303 is further configured to determine, before determining the testing time period corresponding to each target data interface, whether all target data interfaces include a data interface authorized to go online, and when a determination result is yes, determine the proportion of all data interfaces authorized to go online in all target data interfaces; and judging whether the ratio exceeds a preset ratio threshold, and triggering and executing the operation of determining the test time period corresponding to each target data interface when the ratio does not exceed the preset ratio threshold.
And the specific way for determining the test time period corresponding to each target data interface by the test module 303 includes:
for each data interface which is authorized to be on line, determining a customary data transceiving time period of the data interface according to historical data transceiving records of the data interface, and determining a time period which does not have time overlap with the customary data transceiving time period as a test time period corresponding to the data interface; and for each data interface which is not authorized to be online, determining a test time period matched with the online urgency degree of the data interface from a predetermined test time period set according to the online urgency degree of the data interface.
Therefore, the optional embodiment can also determine the corresponding test time period for the data interface which is authorized to be online and the corresponding test time period for the data interface which is not authorized to be online respectively, which is favorable for improving the reliability of the determined test time period and further is favorable for improving the accuracy of the performance test of the data interface.
In yet another optional embodiment, the testing module 303 is further configured to, when it is determined that the duty ratio exceeds the preset duty ratio threshold, construct a virtual data integration system corresponding to the data integration system; respectively configuring a virtual data interface matched with each target data interface for the virtual data integration system; performing performance test on each virtual data interface based on the performance test case set corresponding to each virtual data interface to obtain a performance test result corresponding to each virtual data interface;
the second determining module 304 is further configured to calculate, according to the performance test results corresponding to all the virtual data interfaces, the performance of the data interface corresponding to the virtual data integration system; and determining the performance of the data interface corresponding to the data integration system according to the performance of the data interface corresponding to the virtual data integration system.
Therefore, in the optional embodiment, when the number of authorized online data interfaces included in the data interface to be tested is large, the data interface performance of the data integration system is determined by constructing the virtual data integration system and performing the interface performance test on the virtual data integration system, and the data interface performance test can be completed by using the virtual data integration system while the normal work of the data integration system is ensured.
In this optional embodiment, further optionally, the specific manner in which the second determining module 304 determines the performance of the data interface corresponding to the data integration system according to the performance of the data interface corresponding to the virtual data integration system may include:
determining the difference degree of the data integration system and the virtual data integration system;
and adjusting the performance of the data interface corresponding to the virtual data integration system according to the difference degree to obtain the adjusted performance of the data interface, and determining the performance of the data interface as the performance of the data interface corresponding to the data integration system. Therefore, the optional embodiment can also adjust the performance of the data interface of the virtual data integration system based on the difference between the virtual data integration system and the data integration system to obtain the performance of the data interface corresponding to the data integration system, which is beneficial to improving the accuracy of the performance of the data interface corresponding to the data integration system determined based on the virtual data integration system.
Example four
Referring to fig. 5, fig. 5 is a schematic structural diagram of a data interface performance testing apparatus applied to a data integration system according to an embodiment of the present invention. The device may be integrated in a development platform of a data integration system or a data interface, or may exist independently of a development platform of a data integration system or a data interface, which is not limited in the embodiment of the present invention. As shown in fig. 5, the apparatus may include:
a memory 401 storing executable program code;
a processor 402 coupled to a memory 401;
the processor 402 calls the executable program code stored in the memory 401 to execute part or all of the steps of the data interface performance testing method applied to the data integration system disclosed in the first embodiment or the second embodiment of the present invention.
EXAMPLE five
The embodiment of the invention discloses a computer storage medium, wherein a computer instruction is stored in the computer storage medium, and when the computer instruction is called, the computer instruction is used for executing part or all of the steps of the data interface performance testing method applied to the data integration system and disclosed in the first embodiment or the second embodiment of the invention.
The above-described embodiments of the apparatus are only illustrative, and the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. With this understanding in mind, the above technical solutions may essentially or in part contribute to the prior art, be embodied in the form of a software product, which may be stored in a computer-readable storage medium, including a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable Programmable Read-Only Memory (EEPROM), an optical Disc-Read (CD-ROM) or other storage medium capable of storing data, a magnetic tape, or any other computer-readable medium capable of storing data.
As can be seen from the above description, compared with the prior art, the beneficial effects of the present invention are as follows: the invention can automatically test the performance of the data interface of the data integration system according to the automatically determined performance test case set, thereby being beneficial to improving the test efficiency and the test accuracy of the performance of the data interface; all the data interfaces to be tested can be grouped according to the interface information of the data interfaces to be tested and the corresponding interface performance requirement information, and a matched performance test case set is determined for each data interface group, so that the operation of determining the performance test case set is simplified, the determination convenience and the determination efficiency of the performance test case set are improved, and the required performance test case set can be reduced; the data interface performance of the data integration system can be automatically judged after the data interface performance of the data integration system is tested, and if the data interface performance is judged not to meet the requirements, matched optimization operation is performed on the data interface to be optimized based on the determined optimization mode, so that the reliability of the data integration system is improved, and the optimization efficiency and the optimization accuracy are improved; in addition, the performance test of the data interface can be completed within the determined test time period, which is beneficial to reducing unnecessary influence of the performance of the test interface on the normal work of the data integration system; the corresponding test time period can be determined for the data interface which is authorized to be online and the corresponding test time period can be determined for the data interface which is not authorized to be online, so that the reliability of the determined test time period can be improved, and the accuracy of the performance test of the data interface can be improved; in addition, if the data interface to be tested comprises more authorized online data interfaces, the data interface performance of the data integration system is determined by constructing the virtual data integration system and testing the interface performance of the virtual data integration system, so that the data interface performance can be tested by using the virtual data integration system while the normal work of the data integration system is ensured; in addition, the data interface performance of the virtual data integration system can be adjusted based on the difference between the virtual data integration system and the data integration system to obtain the data interface performance corresponding to the data integration system, and the accuracy of the data interface performance corresponding to the data integration system determined based on the virtual data integration system is improved.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. A data interface performance test method applied to a data integration system is characterized by comprising the following steps:
acquiring interface performance requirement information corresponding to a plurality of developed target data interfaces;
determining a performance test case set corresponding to each target data interface according to all interface performance requirement information corresponding to each target data interface;
performing performance test on each target data interface according to the performance test case set corresponding to each target data interface to obtain a performance test result corresponding to each target data interface;
and determining the data interface performance of the data integration system based on the performance test results corresponding to all the target data interfaces and the weight coefficient corresponding to each target data interface.
2. The method according to claim 1, wherein the determining, according to the performance requirement information of all interfaces corresponding to each target data interface, a performance test case set corresponding to each target data interface includes:
dividing all the target data interfaces into a plurality of data interface groups according to the interface information of each target data interface and all the interface performance requirement information corresponding to each target data interface, wherein the similarity between the interface information of the target data interface and the corresponding interface performance requirement information packaged in the same data interface group is higher than or equal to a preset similarity threshold;
and determining a performance test case set corresponding to each data interface group.
3. The method for testing the performance of the data interface according to claim 2, wherein after determining the performance of the data interface of the data integration system based on the performance test results corresponding to all the target data interfaces and the weighting coefficients corresponding to each of the target data interfaces, the method further comprises:
judging whether the performance of a data interface of the data integration system meets the performance requirement corresponding to the data integration system or not;
and when the data interface performance of the data integration system is judged not to meet the performance requirement corresponding to the data integration system, determining a data interface to be optimized from all the target interface data, determining an optimization mode corresponding to the data interface to be optimized, and executing optimization operation on the data interface to be optimized based on the optimization mode corresponding to the data interface to be optimized.
4. The method for testing the performance of the data interface according to any one of claims 1 to 3, wherein the performing the performance test on each target data interface according to the set of performance test cases corresponding to each target data interface to obtain the performance test result corresponding to each target data interface includes:
and determining a test time period corresponding to each target data interface, and performing performance test on each target data interface in the test time period corresponding to each target data interface according to a performance test case set corresponding to each target data interface to obtain a performance test result corresponding to each target data interface.
5. The method according to claim 4, wherein before determining the test time period corresponding to each target data interface, the method further comprises:
judging whether all the target data interfaces comprise data interfaces authorized to be on-line or not, and determining the proportion of all the data interfaces authorized to be on-line in all the target data interfaces when the judgment result is yes;
judging whether the ratio exceeds a preset ratio threshold value or not, and triggering and executing the operation of determining the test time period corresponding to each target data interface when the ratio is judged not to exceed the preset ratio threshold value;
wherein, the determining the test time period corresponding to each target data interface includes:
for each data interface which is authorized to be on line, determining a customary data transceiving time period of the data interface according to historical data transceiving records of the data interface, and determining a time period which does not have time overlap with the customary data transceiving time period as a test time period corresponding to the data interface; and for each data interface which is not authorized to be online, determining a test time period matched with the online urgency degree of the data interface from a predetermined test time period set according to the online urgency degree of the data interface.
6. The method of claim 5, further comprising:
when the occupation ratio is judged to exceed a preset occupation ratio threshold value, constructing a virtual data integration system corresponding to the data integration system; respectively configuring a virtual data interface matched with each target data interface for the virtual data integration system;
performing performance test on each virtual data interface based on a performance test case set corresponding to each virtual data interface to obtain a performance test result corresponding to each virtual data interface;
calculating the performance of the data interface corresponding to the virtual data integration system according to the performance test results corresponding to all the virtual data interfaces;
and determining the performance of the data interface corresponding to the data integration system according to the performance of the data interface corresponding to the virtual data integration system.
7. The method for testing the performance of the data interface according to claim 6, wherein the determining the performance of the data interface corresponding to the data integration system according to the performance of the data interface corresponding to the virtual data integration system includes:
determining the difference degree of the data integration system and the virtual data integration system;
and adjusting the performance of the data interface corresponding to the virtual data integration system according to the difference degree to obtain the adjusted performance of the data interface, and determining the performance of the data interface as the performance of the data interface corresponding to the data integration system.
8. A data interface performance testing device applied to a data integration system is characterized by comprising:
the acquisition module is used for acquiring interface performance requirement information corresponding to a plurality of developed target data interfaces;
the first determining module is used for determining a performance test case set corresponding to each target data interface according to all interface performance requirement information corresponding to each target data interface;
the test module is used for carrying out performance test on each target data interface according to the performance test case set corresponding to each target data interface to obtain a performance test result corresponding to each target data interface;
and the second determining module is used for determining the data interface performance of the data integration system based on the performance test results corresponding to all the target data interfaces and the weight coefficient corresponding to each target data interface.
9. A data interface performance testing device applied to a data integration system is characterized by comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the data interface performance test method applied to the data integration system according to any one of claims 1 to 7.
10. A computer storage medium storing computer instructions which, when invoked, perform the method of any of claims 1 to 7 when applied to a data interface performance test of a data integration system.
CN202210941736.3A 2022-08-08 2022-08-08 Data interface performance test method and device applied to data integration system and computer storage medium Pending CN115422041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210941736.3A CN115422041A (en) 2022-08-08 2022-08-08 Data interface performance test method and device applied to data integration system and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210941736.3A CN115422041A (en) 2022-08-08 2022-08-08 Data interface performance test method and device applied to data integration system and computer storage medium

Publications (1)

Publication Number Publication Date
CN115422041A true CN115422041A (en) 2022-12-02

Family

ID=84195648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210941736.3A Pending CN115422041A (en) 2022-08-08 2022-08-08 Data interface performance test method and device applied to data integration system and computer storage medium

Country Status (1)

Country Link
CN (1) CN115422041A (en)

Similar Documents

Publication Publication Date Title
US8700398B2 (en) Interface for setting confidence thresholds for automatic speech recognition and call steering applications
CN109102797B (en) Speech recognition test method, device, computer equipment and storage medium
CN109473093A (en) Audio recognition method, device, computer equipment and storage medium
CN110969528A (en) Transaction channel routing method, device, server and computer storage medium
CN111860568B (en) Method and device for balanced distribution of data samples and storage medium
EP4020200A1 (en) Resource management platform-based task allocation method and system
CN109542395A (en) Lottery information determines method, apparatus, equipment and storage medium
CN112699046B (en) Application program testing method and device, electronic equipment and storage medium
CN112100085B (en) Android application program stability testing method, device and equipment
CN115422041A (en) Data interface performance test method and device applied to data integration system and computer storage medium
CN113032258A (en) Electronic map testing method and device, electronic equipment and storage medium
US6202190B1 (en) Process for determining the start- up time of a data processing system
CN114580170A (en) Data processing method and device for multitask parallel construction
CN111882347A (en) Model performance detection method, device, computer equipment and storage medium
CN116233311B (en) Automatic outbound testing method, device, computer equipment and storage medium
CN113946466B (en) QT-based software error tracing method and device
CN115422040A (en) Data integration system, optimization control method of data interface of data integration system and computer storage medium
CN115373975A (en) Test data set generation method, device, equipment and storage medium
CN116630021A (en) Method and device for determining operation index, storage medium and electronic equipment
CN116360799A (en) Detection method, device, equipment and medium for automatically executing task sheet
CN117435474A (en) Test method and device and computing equipment
CN116862433A (en) Intelligent management method and system for software project
CN114154108A (en) Nested formula calculation method based on calculation hierarchy
CN114780416A (en) Function testing method and device for bank software system
CN113920369A (en) Model training method and device and electronic equipment

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