Terminal equipment performance test method and system based on intelligent gateway, and medium
Through the intelligent gateway, the terminal equipment is tested for time synchronization and historical data verification, test cases are generated for hardware and software testing, and the results are integrated using the analytic hierarchy process to solve the problem of low detection efficiency in the existing technology and achieve efficient and accurate detection. Automated testing.
Patent Information
- Application Number
- CN202410929147.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-29
AI Technical Summary
Existing smart gateways are inefficient in terminal equipment performance testing and need to be improved to improve detection efficiency and accuracy.
Through the intelligent gateway, time synchronization testing and historical data verification are performed on terminal equipment, test cases are generated for hardware and software testing, and test results are integrated using the analytic hierarchy process to achieve automated testing.
It improves the efficiency and accuracy of terminal equipment testing, realizes automated testing processes, and ensures the reliability of testing results.
Smart Images

Figure CN118860874A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power distribution network, and in particular relates to a terminal equipment performance testing method, system and medium based on intelligent gateway. Background Art
[0002] The power distribution Internet of Things is a new type of power network formed by the deep integration of traditional industrial technology and Internet of Things technology. It realizes the lean management requirements of the distribution network through the comprehensive interconnection, intercommunication and interoperability between distribution network equipment. The system architecture of the power distribution Internet of Things is divided into four core levels: cloud, pipe, edge and end. The smart gateway belongs to the "edge" device, but it can also have some characteristics of the "end" device. The smart gateway is the access unit that connects the "things" to the "Internet" in the power distribution Internet of Things. It is responsible for providing the basic data such as the operating status, equipment status, environmental status and other auxiliary information of the distribution network to the upper side. It is a terminal that has the ability to connect to other terminals peer-to-peer and execute decision-making commands or local control. It is a key device that connects the upper and lower parts of the power distribution Internet of Things architecture.
[0003] During the use of existing intelligent gateways, the operating status of terminal devices is generally tested based on user-initiated triggering, resulting in low performance testing efficiency. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a terminal device performance testing method, system and medium based on an intelligent gateway, so as to solve the problem of low detection efficiency of distribution network terminal devices in the prior art.
[0005] To achieve the above-mentioned purpose and other related purposes, the present invention provides a terminal device performance testing method based on an intelligent gateway, comprising the following steps:
[0006] Sending a time synchronization test instruction to the terminal device to be tested to perform a time synchronization test;
[0007] After confirming that the time synchronization test is correct, obtaining the historical storage data of the terminal device, and performing data verification on the historical storage data to obtain a data storage test result;
[0008] After confirming that the data storage test result is normal, generating a first test case according to the device information of the terminal device, and performing a hardware test on the terminal device through the first test case to obtain a first test result;
[0009] Acquire program running information in the terminal device, match the program running information in a program test case library to obtain a second test case, and perform software testing on the terminal device using the second test case to obtain a second test result;
[0010] A target test result is obtained according to the first test result and the second test result.
[0011] In one embodiment of the present invention, performing a hardware test on the terminal device through the first test case to obtain a first test result includes:
[0012] Decomposing the first test case to obtain a zero drift test case and a dead zone test case, respectively, and testing the terminal device according to the zero drift test case and the dead zone test case to obtain a zero drift test result and a dead zone test result;
[0013] The intelligent gateway generates a corresponding first remote signaling test signal according to the first test case and the device information of the terminal device, the terminal device verifies the first remote signaling test signal and sends feedback information to the intelligent gateway, and the intelligent gateway generates a second remote signaling test signal according to the feedback information;
[0014] The timing data difference between the first telesignaling test signal and the second telesignaling test signal is calculated, and after determining that the timing data difference is lower than a preset threshold, the first telesignaling test signal and the second telesignaling test signal are respectively run through the terminal device to obtain a telesignaling test result.
[0015] In one embodiment of the present invention, when the timing data difference is greater than or equal to the preset threshold value, the first telesignaling test signal is invalidated, and the second telesignaling test signal is used as a new round of the first telesignaling test signal, and the new round of the first telesignaling test signal is verified by the terminal device and then feedback information is sent to the intelligent gateway, and a new round of the second telesignaling test signal is generated by the intelligent gateway to re-perform the telesignaling test.
[0016] In one embodiment of the present invention, the step of testing the terminal device according to the zero drift test case and the dead zone test case to obtain a zero drift test result and a dead zone test result includes:
[0017] Controlling the terminal device to operate according to the fault parameter value, and generating a zero drift test result according to the zero drift output state of the terminal device;
[0018] According to the initial parameter value, the dead zone parameter value and the non-dead zone parameter value, the terminal device is controlled to run for a preset time in order to solidify the dosage time;
[0019] Respectively collecting terminal telemetry values of the terminal device when the terminal device is in the dead zone parameter value state and the non-dead zone parameter value state to obtain a first telemetry value and a second telemetry value;
[0020] If the first telemetry value is a dead zone output value, and the second telemetry value is a previous state value of the terminal device, it is determined that the dead zone test of the terminal device is qualified.
[0021] In one embodiment of the present invention, the acquiring of historical storage data of the terminal device and performing data verification on the historical storage data to obtain a data storage test result includes:
[0022] Obtaining an MQTT message from the terminal device, and reading a read instruction of historical storage data according to the MQTT message;
[0023] Read the historical storage data according to the read instruction, and obtain the corresponding format storage standard according to the device information of the terminal device;
[0024] The historical storage data is verified according to the format storage standard to obtain a data storage test result.
[0025] In one embodiment of the present invention, the acquiring of program running information in the terminal device, matching in a program test case library according to the program running information to obtain a second test case, and performing software testing on the terminal device through the second test case to obtain a second test result includes:
[0026] Determine the target program to be detected by the terminal device in a preset program library according to the device information of the terminal device, and obtain program running information of the target program;
[0027] Obtaining the second test case by matching the program running information and the device information in the program test case library;
[0028] Testing the target program of the terminal device according to the second test case to obtain a target performance parameter;
[0029] The target performance parameter is compared with a standard performance parameter corresponding to the target program of the terminal device to obtain difference information, and the difference information is analyzed to obtain the second test result.
[0030] In one embodiment of the present invention, analyzing the difference information to obtain the second test result includes:
[0031] Splitting the difference information to obtain a plurality of difference groups, and sequentially obtaining a standard reference value for each difference group;
[0032] comparing the difference value between each of the reference groups and the standard reference value;
[0033] The number of the difference values of each group that are lower than the preset difference threshold is counted respectively to obtain the number of the difference groups that meet the requirements and the number of the difference groups that do not meet the requirements, and obtain the second test result.
[0034] In one embodiment of the present invention, obtaining a target test result according to the first test result and the second test result includes:
[0035] Calculate the first weight of the terminal device in hardware detection and the second weight of the terminal device in software detection respectively by using the hierarchical analysis method;
[0036] The first test result and the second test result are weightedly summed according to the first weight and the second weight to obtain the target test result.
[0037] The present invention also provides a terminal device performance testing system based on an intelligent gateway, comprising:
[0038] A timing test module is used to send a timing test instruction to the terminal device to be tested to perform a timing test;
[0039] A data verification module is used to obtain the historical storage data of the terminal device after confirming that the timing test is correct, and perform data verification on the historical storage data to obtain a data storage test result;
[0040] A first test module is used to generate a first test case according to the device information of the terminal device after confirming that the data storage test result is normal, and perform a hardware test on the terminal device through the first test case to obtain a first test result;
[0041] A second test module is used to obtain program running information in the terminal device, match the program running information in a program test case library to obtain a second test case, and perform software testing on the terminal device through the second test case to obtain a second test result;
[0042] A result generation module is used to obtain a target test result based on the first test result and the second test result.
[0043] The present invention also discloses a storage medium on which a computer program is stored. When the computer program is executed by a processor, the terminal device performance test method based on the intelligent gateway is implemented.
[0044] As described above, the terminal device performance testing method, system and medium based on the intelligent gateway of the present invention have the following beneficial effects:
[0045] The present invention first performs a time synchronization test on the terminal device and a data verification of historical storage data to ensure the accuracy of subsequent detection results, then generates a first test case through the device information of the terminal device, matches a second test case in a test case library according to the program running information of the terminal device, performs a hardware test on the terminal device through the first test case to obtain a first test result, and performs a software test on the terminal device through the second test case to obtain a second test result, then analyzes and integrates the first test result and the second test result to obtain a target test result, thereby completing the automated testing process for the terminal device, which not only improves the test efficiency but also improves the accuracy of the test results. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 Shown is a flow chart of the terminal device performance testing method based on the intelligent gateway of the present invention.
[0047] Figure 2 Shown is a structural block diagram of the terminal equipment performance testing system based on the intelligent gateway of the present invention. DETAILED DESCRIPTION
[0048] The following describes the embodiments of the present invention through specific embodiments, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0049] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention. The illustrations only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0050] like Figure 1 As shown, in one embodiment, the present invention provides a terminal device performance testing method based on an intelligent gateway, comprising the following steps:
[0051] S101. Send a time synchronization test instruction to a terminal device to be tested to perform a time synchronization test.
[0052] A timing source is set up and connected to the terminal device and the intelligent gateway respectively. The timing source sends time information to the intelligent gateway and the terminal device under test respectively according to the configuration information, and collects the first feedback information fed back by the intelligent gateway and the second feedback information fed back by the terminal device respectively. By calculating the time difference between the first feedback information and the second feedback information, when the time difference is less than the time difference threshold, it can be determined that the timing test is completed.
[0053] S102: After confirming that the timing test is correct, obtain the historical storage data of the terminal device, and perform data verification on the historical storage data to obtain a data storage test result.
[0054] In some embodiments, the acquiring of historical storage data of the terminal device and performing data verification on the historical storage data to obtain a data storage test result includes:
[0055] Obtaining an MQTT message from the terminal device, and reading a read instruction of historical storage data according to the MQTT message;
[0056] Read the historical storage data according to the read instruction, and obtain the corresponding format storage standard according to the device information of the terminal device;
[0057] The historical storage data is verified according to the format storage standard to obtain a data storage test result.
[0058] Specifically, the historical data is read through the instruction of reading historical storage data through the MQTT message, and then the historical storage data is judged whether it meets the specification according to the corresponding detection specification. Taking the SOE event record as an example, 256 SOE event records are stipulated; first read the smart gateway time record, if the event record is greater than 256, check whether the event record format is consistent with the specification requirements. If it is less than 256, trigger the remote signal to generate an event record to see if 256 can be stored. If it can, perform format verification. If it is less than 256, it is judged as unqualified.
[0059] S103: After confirming that the data storage test result is normal, generate a first test case according to the device information of the terminal device, and perform a hardware test on the terminal device through the first test case to obtain a first test result.
[0060] In this embodiment, since the device information obtained for each test case is different, taking the generation of a zero drift test case as an example, it is necessary to read the zero drift constant of the device and generate a state sequence based on the zero drift constant. If the zero drift constant is 1V, the initial state is that the three voltages are 0.5V (at this time, it is determined that 0V should be sent up), and the over-limit state is 1.5V (at this time, it is determined that 1.5V should be sent up).
[0061] In some embodiments, performing a hardware test on the terminal device through the first test case to obtain a first test result includes:
[0062] Decomposing the first test case to obtain a zero drift test case and a dead zone test case, respectively, and testing the terminal device according to the zero drift test case and the dead zone test case to obtain a zero drift test result and a dead zone test result;
[0063] The intelligent gateway generates a corresponding first remote signaling test signal according to the first test case and the device information of the terminal device, the terminal device verifies the first remote signaling test signal and sends feedback information to the intelligent gateway, and the intelligent gateway generates a second remote signaling test signal according to the feedback information;
[0064] The timing data difference between the first telesignaling test signal and the second telesignaling test signal is calculated, and after determining that the timing data difference is lower than a preset threshold, the first telesignaling test signal and the second telesignaling test signal are respectively run through the terminal device to obtain a telesignaling test result.
[0065] Specifically, after obtaining the first test case, the first test case is first decomposed into a zero drift test case and a dead zone test case, so as to test the terminal device according to the zero drift test case and the dead zone test case respectively to obtain a zero drift test result and a dead zone test result. Then, the intelligent gateway generates a first telesignaling test signal according to the first test case and the device information of the terminal device. The first telesignaling test signal includes timing data and telesignaling data, and after the intelligent gateway receives the feedback information of the terminal device, the second telesignaling test signal is sent to the terminal device again. Then, the timing data difference between the first telesignaling test signal and the second telesignaling test signal is calculated. When the timing data difference is lower than a preset threshold, the final telesignaling test result can be obtained according to the operation results of the terminal device on the first telesignaling test signal and the second telesignaling test signal, and the aforementioned zero drift test result, dead zone test result and telesignaling test result are used as the final first test result, which is convenient for subsequent statistical calculation results.
[0066] In some other embodiments, when the timing data difference is greater than or equal to the preset threshold, the first telesignaling test signal is invalidated, and the second telesignaling test signal is used as a new round of the first telesignaling test signal, and the new round of the first telesignaling test signal is verified by the terminal device and then feedback information is sent to the intelligent gateway, and a new round of the second telesignaling test signal is generated by the intelligent gateway to re-perform the telesignaling test.
[0067] In this embodiment, when the timing data difference between the first telesignaling test signal and the second telesignaling test signal is greater than or equal to the preset threshold, it can be determined that the current telesignaling test signal cannot meet the requirements. Therefore, the current first telesignaling test signal is used as the first telesignaling test signal of the new round, and the second telesignaling test signal is used as the first telesignaling test signal of the new round, and is sent to the terminal device according to the first telesignaling test signal of the new round. According to the feedback information of the terminal device, the intelligent gateway generates a new round of the second telesignaling test signal again, and then performs the telesignaling test according to the first telesignaling test signal and the second telesignaling test signal of the new round, which will not be repeated here.
[0068] Further, in some embodiments, the testing the terminal device according to the zero drift test case and the dead zone test case to obtain a zero drift test result and a dead zone test result respectively includes:
[0069] Controlling the terminal device to operate according to the fault parameter value, and generating a zero drift test result according to the zero drift output state of the terminal device;
[0070] According to the initial parameter value, the dead zone parameter value and the non-dead zone parameter value, the terminal device is controlled to run for a preset time in order to solidify the dosage time;
[0071] Respectively collecting terminal telemetry values of the terminal device when the terminal device is in the dead zone parameter value state and the non-dead zone parameter value state to obtain a first telemetry value and a second telemetry value;
[0072] If the first telemetry value is a dead zone output value, and the second telemetry value is a previous state value of the terminal device, it is determined that the dead zone test of the terminal device is qualified.
[0073] Among them, test whether the zero drift function of the terminal equipment meets the requirements. During the test, select a channel to output a state sequence containing three states. The zero drift constant can be modified according to the needs. In this step, the zero drift constant is 3V, and the voltage fault parameter value is 3.5V; and the dead zone test case can be set according to the needs.
[0074] S104: Obtain program running information in the terminal device, match the program running information in a program test case library to obtain a second test case, and perform software testing on the terminal device using the second test case to obtain a second test result.
[0075] In some embodiments, the acquiring of program running information in the terminal device, matching in a program test case library according to the program running information to obtain a second test case, and performing software testing on the terminal device through the second test case to obtain a second test result includes:
[0076] Determine the target program to be detected by the terminal device in a preset program library according to the device information of the terminal device, and obtain program running information of the target program;
[0077] Obtaining the second test case by matching the program running information and the device information in the program test case library;
[0078] Testing the target program of the terminal device according to the second test case to obtain a target performance parameter;
[0079] The target performance parameter is compared with a standard performance parameter corresponding to the target program of the terminal device to obtain difference information, and the difference information is analyzed to obtain the second test result.
[0080] In this embodiment, in order to further improve the accuracy of the test results, firstly, the target program to be detected by the terminal device is matched in the preset program library according to the device information of the terminal device, so as to obtain the program running information of the target program, and the target program can be determined without running through the terminal device, so as to avoid the determination of the target program and the selection of the second test case being affected by the performance failure of the terminal device. Then, according to the program running information and the device information, the corresponding second test case is selected in the program test case library, and the second test case is input into the target program of the terminal device for running detection to obtain the target performance parameters, and then the target performance parameters are compared with the standard performance parameters corresponding to the target program of the terminal device to obtain the difference information, and the second test result of the terminal device, that is, the result of the software test, can be obtained according to the difference information. It is convenient to integrate the test results together to obtain the final test result.
[0081] In some further embodiments, analyzing the difference information to obtain the second test result includes:
[0082] Splitting the difference information to obtain a plurality of difference groups, and sequentially obtaining a standard reference value for each difference group;
[0083] comparing the difference value between each of the reference groups and the standard reference value;
[0084] The number of the difference values of each group that are lower than the preset difference threshold is counted respectively to obtain the number of the difference groups that meet the requirements and the number of the difference groups that do not meet the requirements, and obtain the second test result.
[0085] In this embodiment, since the target performance parameters and the standard performance parameters corresponding to the target program of the terminal device include comparison of multiple parameters, the difference information is correspondingly split to obtain multiple difference groups, and the standard reference value of each difference group is obtained in turn, so as to facilitate comparison of each difference group with the standard reference value to obtain the difference value between each reference group and the standard reference value. Since parameters with difference values within a certain range can be judged as qualified, the number of difference values in each group that are lower than the preset difference threshold is counted separately to obtain the number of the difference groups that meet the requirements and the number of the difference groups that do not meet the requirements, and the second test result is obtained, which is convenient for subsequent statistics of accurate test results.
[0086] S105. Obtain a target test result according to the first test result and the second test result.
[0087] In some embodiments, obtaining a target test result according to the first test result and the second test result includes:
[0088] Calculate the first weight of the terminal device in hardware detection and the second weight of the terminal device in software detection respectively by using the hierarchical analysis method;
[0089] The first test result and the second test result are weightedly summed according to the first weight and the second weight to obtain the target test result.
[0090] Specifically, since the first test result and the second test result both include parameters that meet the test requirements and parameters that do not meet the test requirements, the first weight A of the terminal device hardware detection and the second weight B of the software detection are calculated by the hierarchical analysis method, and then the first test result and the second test result are weighted and summed according to the first weight A and the second weight B, wherein the first test result includes N parameters that pass the performance test and M parameters that fail the performance test, and the second test result includes P parameters that pass the performance test and Q parameters that fail the performance test, and then the parameters of the first test result and the parameters of the second test result are assigned values, and weighted summed to obtain the final result. On the other hand, the tester can also design a report template according to his own needs, and each test case has a unique identifier, and the tester can call the information as needed to generate a test report.
[0091] It should be noted that the protection scope of the terminal device performance testing method based on the intelligent gateway described in the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.
[0092] The present invention provides a terminal device performance test system based on an intelligent gateway, such as Figure 2 As shown, including:
[0093] The timing test module 201 is used to send a timing test instruction to the terminal device to be tested to perform a timing test;
[0094] The data verification module 202 is used to obtain the historical storage data of the terminal device after confirming that the timing test is correct, and perform data verification on the historical storage data to obtain a data storage test result;
[0095] The first test module 203 is used to generate a first test case according to the device information of the terminal device after confirming that the data storage test result is normal, and perform a hardware test on the terminal device through the first test case to obtain a first test result;
[0096] A second test module 204 is used to obtain program running information in the terminal device, match the program running information in a program test case library to obtain a second test case, and perform software testing on the terminal device through the second test case to obtain a second test result;
[0097] The result generation module 205 is used to obtain the target test result according to the first test result and the second test result.
[0098] It should be noted that the structure and principle of the terminal device performance testing system based on the intelligent gateway correspond one to one with the steps in the above-mentioned terminal device performance testing method based on the intelligent gateway, so they will not be repeated here.
[0099] It should be noted that it should be understood that the division of the various modules of the above system is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the x module can be a separately established processing element, or it can be integrated in a certain chip of the above system for implementation. In addition, it can also be stored in the memory of the above system in the form of program code, and called and executed by a certain processing element of the above system. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0100] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0101] It should be noted that the terminal device performance testing system based on the intelligent gateway of the present invention can implement the terminal device performance testing method based on the intelligent gateway of the present invention, but the implementation device of the terminal device performance testing method based on the intelligent gateway of the present invention includes but is not limited to the structure of the terminal device performance testing system based on the intelligent gateway listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.
[0102] The present invention provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the terminal device performance test method based on the intelligent gateway is implemented.
[0103] The storage medium includes: Read-Only Memory (ROM), Random Access Memory (RAM), a disk, a USB flash drive, a memory card or an optical disk, and other media that can store program codes.
[0104] Any combination of one or more storage media may be used. The storage medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0105] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0106] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0107] Computer program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, Smalltalk, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0108] The present invention will be described below with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, thereby producing a machine so that these computer program instructions, when executed by the processor of the computer or other programmable data processing device, produce a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0109] These computer program instructions may also be stored in a computer-readable medium, which enables a computer, other programmable data processing apparatus, or other device to operate in a specific manner, so that the instructions stored in the computer-readable medium produce an article of manufacture including instructions for implementing the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0110] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide a process for implementing the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0111] In summary, the terminal device performance testing method, system and medium based on the intelligent gateway of the present invention first perform a time synchronization test on the terminal device and a data verification of the historical storage data to ensure the accuracy of the subsequent detection results, and then generate a first test case through the device information of the terminal device, and match the second test case in the test case library according to the program running information of the terminal device, and perform a hardware test on the terminal device through the first test case to obtain a first test result, and perform a software test on the terminal device through the second test case to obtain a second test result, and then analyze and integrate the first test result and the second test result to obtain the target test result, thereby completing the automated testing process of the terminal device, which not only improves the test efficiency, but also improves the accuracy of the test results; therefore, the present invention effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.
[0112] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A terminal device performance testing method based on an intelligent gateway, characterized in that: The following steps are involved: Sending a time synchronization test instruction to the terminal device to be tested to perform a time synchronization test; After confirming that the time synchronization test is correct, obtaining the historical storage data of the terminal device, and performing data verification on the historical storage data to obtain a data storage test result; After confirming that the data storage test result is normal, generating a first test case according to the device information of the terminal device, and performing a hardware test on the terminal device through the first test case to obtain a first test result; Acquire program running information in the terminal device, match the program running information in a program test case library to obtain a second test case, and perform software testing on the terminal device using the second test case to obtain a second test result; A target test result is obtained according to the first test result and the second test result.
2. The intelligent gateway performance testing method according to claim 1, characterized in that: The performing a hardware test on the terminal device through the first test case to obtain a first test result includes: Decomposing the first test case to obtain a zero drift test case and a dead zone test case, respectively, and testing the terminal device according to the zero drift test case and the dead zone test case to obtain a zero drift test result and a dead zone test result; The intelligent gateway generates a corresponding first remote signaling test signal according to the first test case and the device information of the terminal device, the terminal device verifies the first remote signaling test signal and sends feedback information to the intelligent gateway, and the intelligent gateway generates a second remote signaling test signal according to the feedback information; The timing data difference between the first telesignaling test signal and the second telesignaling test signal is calculated, and after determining that the timing data difference is lower than a preset threshold, the first telesignaling test signal and the second telesignaling test signal are respectively run through the terminal device to obtain a telesignaling test result.
3. The intelligent gateway performance testing method according to claim 2 is characterized in that: When the timing data difference is greater than or equal to the preset threshold, the first telesignaling test signal is invalidated, and the second telesignaling test signal is used as a new round of the first telesignaling test signal. After the new round of the first telesignaling test signal is verified by the terminal device, feedback information is sent to the intelligent gateway, and a new round of the second telesignaling test signal is generated by the intelligent gateway to re-perform the telesignaling test.
4. The intelligent gateway performance testing method according to claim 2, characterized in that: The testing the terminal device according to the zero drift test case and the dead zone test case respectively to obtain a zero drift test result and a dead zone test result includes: Controlling the terminal device to operate according to the fault parameter value, and generating a zero drift test result according to the zero drift output state of the terminal device; According to the initial parameter value, the dead zone parameter value and the non-dead zone parameter value, the terminal device is controlled to run for a preset time in order to solidify the dosage time; Respectively collecting terminal telemetry values of the terminal device when the terminal device is in the dead zone parameter value state and the non-dead zone parameter value state to obtain a first telemetry value and a second telemetry value; If the first telemetry value is a dead zone output value, and the second telemetry value is a previous state value of the terminal device, it is determined that the dead zone test of the terminal device is qualified.
5. The intelligent gateway performance testing method according to claim 1, characterized in that: The acquiring of the historical storage data of the terminal device and performing data verification on the historical storage data to obtain a data storage test result includes: Obtaining an MQTT message from the terminal device, and reading a read instruction of historical storage data according to the MQTT message; Read the historical storage data according to the read instruction, and obtain the corresponding format storage standard according to the device information of the terminal device; The historical storage data is verified according to the format storage standard to obtain a data storage test result.
6. The intelligent gateway performance testing method according to claim 1, characterized in that: The program running information in the terminal device is obtained, and a second test case is obtained by matching the program running information in a program test case library. Performing software testing on the terminal device through the second test case to obtain a second test result includes: Determine the target program to be detected by the terminal device in a preset program library according to the device information of the terminal device, and obtain program running information of the target program; Obtaining the second test case by matching the program running information and the device information in the program test case library; Testing the target program of the terminal device according to the second test case to obtain a target performance parameter; The target performance parameter is compared with a standard performance parameter corresponding to the target program of the terminal device to obtain difference information, and the difference information is analyzed to obtain the second test result.
7. The intelligent gateway performance testing method according to claim 6, characterized in that: The analyzing the difference information to obtain the second test result includes: Splitting the difference information to obtain a plurality of difference groups, and sequentially obtaining a standard reference value for each difference group; comparing the difference value of each of the reference groups with the standard reference value; The number of the difference values of each group that are lower than the preset difference threshold is counted respectively to obtain the number of the difference groups that meet the requirements and the number of the difference groups that do not meet the requirements, and obtain the second test result.
8. The intelligent gateway performance testing method according to claim 1, characterized in that: The obtaining a target test result according to the first test result and the second test result includes: Calculate the first weight of the terminal device in hardware detection and the second weight of the terminal device in software detection respectively by using the hierarchical analysis method; The first test result and the second test result are weightedly summed according to the first weight and the second weight to obtain the target test result.
9. A terminal device performance test system based on an intelligent gateway, characterized in that: include: A timing test module is used to send a timing test instruction to the terminal device to be tested to perform a timing test; A data verification module is used to obtain the historical storage data of the terminal device after confirming that the timing test is correct, and perform data verification on the historical storage data to obtain a data storage test result; A first test module is used to generate a first test case according to the device information of the terminal device after confirming that the data storage test result is normal, and perform a hardware test on the terminal device through the first test case to obtain a first test result; A second test module is used to obtain program running information in the terminal device, match the program running information in a program test case library to obtain a second test case, and perform software testing on the terminal device through the second test case to obtain a second test result; A result generating module is used to obtain a target test result according to the first test result and the second test result.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the terminal device performance testing method based on the intelligent gateway described in any one of claims 1 to 8 is implemented.
