Method, device, and equipment for automated testing of a support electro-hydraulic control monitoring system
By generating the original gallery of bracket items and details, and automatically comparing them in the bracket electro-hydraulic monitoring system, the problem of manual input of bracket status data is solved, ensuring the correctness and real-time data, reducing costs and improving testing efficiency.
Patent Information
- Application Number
- CN202210462023.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2042-04-28
AI Technical Summary
In the prior art, the input and inspection of the bracket status data in the bracket electro-hydraulic monitoring system relies on manual methods, which makes it difficult to ensure the correctness and real-timeness of the data, and consumes a lot of labor and time costs.
By pre-forming the original image gallery of bracket projects and details, and in the operation of the bracket electro-hydraulic monitoring system, the pictures generated by the test are compared with the pictures in the original image gallery, the test results are generated, and the data verification is automatically completed.
实现了支架电液控监测界面数据的正确性和实时性,节约了成本,提高了测试效率。
Smart Images

Figure CN114893248B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of support electro-hydraulic control monitoring, and particularly to a method, device, and equipment for automatic testing of a support electro-hydraulic control monitoring system. Background Art
[0002] The hydraulic support is one of the main equipment in the fully mechanized coal mining face. At the same time, ensuring the normal operation of the hydraulic support is an important basis for realizing high-yield, high-efficiency, and safe production in coal mining. The support electro-hydraulic control monitoring system is one of the fully mechanized coal mining automatic monitoring systems, which is a system for monitoring the operating state of the hydraulic support, mainly monitoring the working states such as the position or attitude of the hydraulic support. During the monitoring process of the operating state of the hydraulic support, in order to save costs, it is generally necessary to simulate the support, and then send the simulated support state data to the fully mechanized coal mining automatic monitoring system, and the monitoring interface then displays the state diagrams of all supports, and finally the staff checks whether each state diagram is correct.
[0003] Currently, due to the increasing number of supports to be monitored and the increasing amount of support state data to be monitored, if the simulated support state data is input manually and the states of each support are checked, it will be very difficult. It is not only difficult to ensure the correctness and timeliness of the support state data, but also the human and time costs consumed are huge. Therefore, it is urgent to solve the above technical problems. Summary of the Invention
[0004] In view of the above problems, the present application provides a method, device, and equipment for automatic testing of a support electro-hydraulic control monitoring system that overcomes the above problems or at least partially solves the above problems. The technical solutions are as follows:
[0005] In a first aspect, the present application provides a method for automatic testing of a support electro-hydraulic control monitoring system, including:
[0006] Pre-generate the original picture library of the support project;
[0007] Pre-generate the original picture library of the support details;
[0008] During the operation of the support electro-hydraulic control monitoring system, sequentially compare the support project pictures generated by the test with the pictures in the original picture library of the support project corresponding to the support project, and generate a test result;
[0009] During the operation of the support electro-hydraulic control monitoring system, sequentially compare the support detail pictures generated by the test with the pictures in the original picture library of the support details corresponding to the support, and generate a test result.
[0010] In a possible implementation, the pre-generated original gallery of support item includes: importing the data of each support item of all supports into the main program for generating the gallery in sequence, where the main program for generating the gallery is used to pre-generate the original gallery of support item.
[0011] In a possible implementation, the pre-generated original gallery of support details includes: importing the data of all support items of each support into the main program for generating the gallery in sequence, where the main program for generating the gallery is used to pre-generate the original gallery of support details.
[0012] In a possible implementation, comparing the pictures of the support items generated by the test with the pictures in the original gallery of the support items corresponding to the support items, and generating a test result, includes:
[0013] Starting the electro-hydraulic control monitoring system of the support;
[0014] Reading the data of each support item of all supports in sequence;
[0015] Outputting the picture of the current support item in sequence and saving the picture of the current support item;
[0016] Comparing the picture of the current support item with the pictures in the original gallery of the support items corresponding to the support item in sequence;
[0017] If the comparison is the same, displaying and recording the result as passed; otherwise, displaying and recording the result as failed.
[0018] In a possible implementation, comparing the pictures of the support details generated by the test with the pictures in the original gallery of the support details corresponding to the support, and generating a test result, includes:
[0019] Starting the electro-hydraulic control monitoring system of the support;
[0020] Reading the data of all support items of each support in sequence;
[0021] Outputting the picture of the current support details in sequence and saving the picture of the current support details;
[0022] Comparing the picture of the current support details with the pictures in the original gallery of the support details corresponding to the support in sequence;
[0023] If the comparison is the same, displaying and recording the result as passed; otherwise, displaying and recording the result as failed.
[0024] In another possible implementation, after the comparison is completed, according to the test result, a test report is automatically generated
[0025] Second aspect, the present application provides a device for automated testing of a support electro-hydraulic control monitoring system, including:
[0026] A generation module: used to pre-generate an original picture library of support projects and an original picture library of support details
[0027] A comparison module: used to compare, during the operation of the support electro-hydraulic control monitoring system, the pictures of the support projects generated by the test with the pictures in the corresponding original picture library of the support projects one by one, and generate a test result; compare the pictures of the support details generated by the test with the pictures in the corresponding original picture library of the support one by one, and generate a test result.
[0028] In a possible implementation manner, the device further includes:
[0029] A report module: used to automatically generate a test report according to the test result after the comparison is completed.
[0030] Third aspect, the present application provides an electronic device for automated testing of a support electro-hydraulic control monitoring system, including a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the method described in the first aspect.
[0031] This automated testing method pre-generates an original picture library of support projects and an original picture library of support details, and during the operation of the support electro-hydraulic control monitoring system, compares the pictures generated by the test with the pictures in the original picture library one by one to generate a test result, further ensuring the correctness and real-time nature of the data on the support electro-hydraulic control monitoring interface, saving costs, and improving the testing efficiency. Description of the Drawings
[0032] To more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for describing the embodiments of the present application will be briefly introduced below.
[0033] Figure 1 Shows a flowchart of a method for automated testing of a support electro-hydraulic control monitoring system provided by an embodiment of the present application;
[0034] Figure 2 Shows a flowchart of pre-generating an original picture library of support projects or pre-generating an original picture library of support details provided by an embodiment of the present application;
[0035] Figure 3 Shows a flowchart of automated comparison of the support project interface diagram provided by an embodiment of the present application;
[0036] Figure 4 Shows a flowchart of automated comparison of the support details interface diagram provided by an embodiment of the present application;
[0037] Figure 5 shows a device for automated testing of a support electro - hydraulic control monitoring system according to an embodiment of the present application;
[0038] Figure 6 shows another device for automated testing of a support electro - hydraulic control monitoring system according to an embodiment of the present application. Detailed implementation manners
[0039] Hereinafter, exemplary embodiments of the present application will be described in more detail with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present application can be more thoroughly understood and the scope of the present application can be fully communicated to those skilled in the art.
[0040] It should be noted that the terms "first", "second", etc. in the description and claims of the present application and the above - mentioned drawings are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that such use can be interchanged under appropriate circumstances so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the term "including" and its variants should be interpreted as open - ended terms meaning "including but not limited to".
[0041] Before introducing the present application, the following technical terms are explained first:
[0042] Original gallery of support projects: A gallery used to store all pictures of support projects. Among them, pictures of support projects will display data of a certain support project for all supports. For example, pictures of support height will display the support height data of all supports, pictures of support pressure will display the support pressure data of all supports, etc.
[0043] Original gallery of support details: A gallery used to store all pictures of support details. Among them, pictures of support details will display all support project data of a certain support. For example, the first picture of support details will display all support project data such as the support height, pressure, action, stroke, and angle of this support.
[0044] Support electro - hydraulic control monitoring system: A system used to monitor the state of supports in real - time.
[0045] Before explaining the embodiments of the present application in detail, the application scenarios involved in the embodiments of the present application are introduced first.
[0046] The fully-mechanized mining automation monitoring system is mainly applied to monitor the operation of fully-mechanized mining faces in underground coal mines. The monitoring contents include: the operation status of shearers, the operation status of supports, the operation status of pump stations, the operation status of scraper conveyors, the operation status of crushers, etc.
[0047] During the process of monitoring the operation status of supports, it is very difficult to use a large number of real support devices for testing. Therefore, it is necessary to send support status data to the fully-mechanized mining automation monitoring system by simulating supports, and the monitoring interface displays the status diagrams of all supports. The support status data includes: support actions, the current height of the support, support pressure, support stroke, and the infrared status of the support, etc. Among them, each support has 28 support actions, inclination values at 5 positions, pressure values at 7 positions, 1 support height, 1 pushing distance, 1 infrared positioning, and 6 fault messages. Therefore, the status data value of one support in the above situation is 49. If we need to monitor the operation status of 100 supports, then the monitored data values are 4900.
[0048] Currently, the support electro-hydraulic control and the fully-mechanized mining automation monitoring system mainly communicate with each other through customized communication protocols by enterprises. During the communication process, each data needs to manually send TCP data packets according to the format of the customized communication protocol using tools, and then the staff observes whether the content of the data packets can be correctly displayed on the support monitoring interface. Among them, the support monitoring interface includes two types of interface diagrams. One is the detailed interface diagram of a single support, which shows all the support item data of a certain support; the other is the monitoring interface diagram of all supports, which consists of many bar charts, and the bar charts represent the data of a certain support item of all supports. The above-mentioned 4900 data regarding the support status that need to be monitored are displayed through the support monitoring interface. Therefore, it is extremely difficult for the staff to check whether the status diagrams of each support are correct by the naked eye. The technical solution proposed in this application is based on the above scenario.
[0049] Embodiment 1
[0050] The embodiment of this application provides a method for automated testing of a support electro-hydraulic control monitoring system, as Figure 1 shown, this method may include the following steps:
[0051] S101: Pre-generate the original picture library of support items;
[0052] S102: Pre-generate the original picture library of support details;
[0053] S103: During the operation of the support electro-hydraulic control monitoring system, sequentially compare the support item pictures generated by the test with the pictures in the original picture library of the corresponding support items, and generate test results;
[0054] S104: During the operation of the support electro-hydraulic control monitoring system, compare the pictures of the support details generated by the test with the pictures in the original picture library of the support details corresponding to the support in sequence, and generate a test result.
[0055] On the one hand, pre-generate the original picture library of the support project. As Figure 2 shown, it includes the following steps:
[0056] Start the main program for generating the picture library;
[0057] Read the measured data value;
[0058] Send the data of each support project of all supports in sequence;
[0059] Generate the pictures of the support project in sequence;
[0060] After all the data is sent, generate the original picture library of the support project.
[0061] On the one hand, pre-generate the original picture library of the support details. As Figure 2 shown, it includes the following steps:
[0062] Start the main program for generating the picture library;
[0063] Read the measured data value;
[0064] Send the data of all support projects of each support in sequence;
[0065] Generate the pictures of the support details in sequence;
[0066] After all the data is sent, generate the original picture library of the support details.
[0067] In actual operation, all the measured values can be put into an excel table, including the support project name, corresponding support, and value. For example, support height, support number, value. It should be noted that the project names in the embodiments of this application may include support pressure, action, height, stroke, angle, or infrared status. However, the types of support status data monitored by each enterprise are different, and this application does not make any restrictions. Then, simulate 100 supports through the program, and send data packets of the front and rear column pressures, push stroke, infrared data, and 16 support actions for each support. Each time a data packet is sent, the monitoring interface of all supports is captured Figure 1Next, the screenshot naming method is "bracket number + bracket project name + value". After all the data is sent, generate the original picture library of the bracket project and check whether the final picture is correct. When the final picture is correct, it can be ensured that all the screenshots corresponding to the bracket projects during the process are correct. Then, follow the similar operation steps above to generate the original picture library of the bracket details, and make preparations in advance to verify whether the status data of each bracket is correctly displayed on the monitoring interface.
[0068] On the one hand, during the operation of the bracket electro-hydraulic control monitoring system, successively compare the pictures of the bracket projects generated by the test with the pictures in the original picture library of the corresponding bracket projects, as Figure 3 shown, including the following steps:
[0069] Start the bracket electro-hydraulic control monitoring system;
[0070] Read the measured data value;
[0071] Successively send the bracket project data packets of all brackets;
[0072] Capture the picture of the current bracket project and save the picture;
[0073] Compare the picture of the current bracket project with the picture in the original picture library of the corresponding bracket project;
[0074] If the comparison is the same, display and record the result as pass; otherwise, display and record the result as fail.
[0075] On the other hand, during the operation of the bracket electro-hydraulic control monitoring system, successively compare the pictures of the bracket details generated by the test with the pictures in the original picture library of the corresponding brackets, as Figure 4 shown, including the following steps:
[0076] Start the bracket electro-hydraulic control monitoring system;
[0077] Read the measured data value;
[0078] Successively send all the bracket project data packets of each bracket;
[0079] Capture the picture of the current bracket details and save the picture;
[0080] Compare the picture of the current bracket details with the picture in the original picture library of the corresponding bracket;
[0081] If the comparison is the same, display and record the result as pass; otherwise, display and record the result as fail.
[0082] In actual operation, first, start the support electro-hydraulic control monitoring system and simulate 100 supports. Sequentially send data packets of the front and rear column pressure values, pushing stroke, infrared data, and 16 support actions of all supports. For each data packet sent, take a screenshot of the current monitoring page and compare it with the original image of the corresponding support project in the image library. If the two images are the same, record the result as pass. If the two images are different, save the two images in the error result folder, record the test result as fail, and record the error reason as the paths of the original image and the current screenshot. Then, simulate a single support sequentially. Send data packets of 28 support actions, inclination values at 5 positions, pressure values at 7 positions, 1 support height, 1 pushing distance, 1 infrared positioning, and 6 fault messages. For each data packet sent, take a screenshot of the single support details interface Figure 1 times and compare it with the original image of the corresponding support in the image library. If the two images are the same, record the result as pass. If the two images are different, store the two images in the error result folder, record the test result as fail, and record the error reason as the paths of the original image and the current screenshot.
[0083] In a possible implementation, after the above comparison, according to the test result, an automatic test report is generated.
[0084] In the above process, the present application pre-generates the original image library of the support project and the original image library of the support details, and during the operation of the support electro-hydraulic control monitoring system, sequentially compares the images generated by the test with the images in the original image library to generate the test result. The technical solution of the present application realizes the unmanned monitoring of the support operation state, further ensures the correctness and real-time nature of the data on the support electro-hydraulic control monitoring interface, saves costs, and improves the test efficiency.
[0085] It should be noted that in practical applications, all the above possible implementation manners can be combined arbitrarily in combination to form possible embodiments of the present application, which will not be elaborated one by one here.
[0086] Embodiment 2
[0087] Based on the method for automatic testing of the support electro-hydraulic control monitoring system provided in the above embodiment, based on the same inventive concept, the embodiment of the present application also provides a device for automatic testing of the support electro-hydraulic control monitoring system, as Figure 5 shown, including a generation module and a comparison module.
[0088] The generation module is used to pre-generate the original image library of the support project and the original image library of the support details;
[0089] The comparison module is used to compare the pictures of the support items generated by the test with the pictures in the original picture library of the support items corresponding to the support items in sequence during the operation of the support electro-hydraulic control monitoring system, and generate a test result; and compare the pictures of the support details generated by the test with the pictures in the original picture library of the support details corresponding to the support in sequence, and generate a test result.
[0090] In a possible implementation manner, the above device further includes a reporting module, as Figure 6 shown, which is used to automatically generate a test report according to the test result after the comparison is completed.
[0091] In a possible implementation manner, Figure 5 the generation module shown is further used for:
[0092] When pre-generating the original picture library of the support items, import the data of each support item of all supports into the main program for generating the picture library in sequence, where the main program for generating the picture library is used to pre-generate the original picture library of the support items;
[0093] When pre-generating the original picture library of the support details, import the data of all support items of each support into the main program for generating the picture library in sequence, where the main program for generating the picture library is used to pre-generate the original picture library of the support details.
[0094] In another possible implementation manner, Figure 5 the comparison module shown is further used for:
[0095] When comparing the pictures of the support items generated by the test with the pictures in the original picture library of the support items corresponding to the support items and generating a test result, it includes:
[0096] Start the support electro-hydraulic control monitoring system;
[0097] Read the data of each support item of all supports in sequence;
[0098] Output the current support item picture in sequence and save the current support item picture;
[0099] Compare the current support item picture with the pictures in the original picture library of the support items corresponding to the support items in sequence;
[0100] If the comparison is the same, display and record the result as passed; otherwise, display and record the result as failed.
[0101] When comparing the pictures of the support details generated by the test with the pictures in the original picture library of the support details corresponding to the support and generating a test result, it includes:
[0102] Start the support electro-hydraulic control monitoring system;
[0103] Read all the stent item data of each stent in sequence;
[0104] Output the current stent detail picture in sequence and save the current stent detail picture;
[0105] Compare the current stent detail picture with the picture in the original picture library of the stent details corresponding to the stent in sequence;
[0106] If the comparison is the same, display and record the result as passed; otherwise, display and record the result as failed.
[0107] Those skilled in the art can clearly understand the specific working processes of the systems, devices, and modules described above. They can refer to the corresponding processes in the foregoing method embodiments. For the sake of brevity, they will not be described in detail here.
[0108] Those of ordinary skill in the art can understand that the technical solution of this application can essentially or in whole or in part be embodied in the form of a software product. This computer software product is stored in a storage medium, which includes several program instructions for causing an electronic device (such as a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of this application when the program instructions are run. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0109] Alternatively, all or part of the steps of implementing the foregoing method embodiments can be completed by hardware related to program instructions (such as an electronic device such as a personal computer, a server, or a network device, etc.). The program instructions can be stored in a computer-readable storage medium. When the program instructions are executed by the processor of the electronic device, the electronic device executes all or part of the steps of the methods described in the embodiments of this application.
[0110] The above embodiments are only used to illustrate the technical solutions of this application, rather than to limit them; although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that within the spirit and principles of this application, they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the corresponding technical solutions to deviate from the protection scope of this application.
Claims
1. A method for automated testing of a support electro-hydraulic control monitoring system, characterized in that, Including: Pre-generate the original picture library of the support project; Pre-generate the original picture library of the support details; During the operation of the support electro-hydraulic control monitoring system, successively compare the support project pictures generated by the test with the pictures in the original picture library of the support project corresponding to the support project, and generate a test result; During the operation of the support electro-hydraulic control monitoring system, successively compare the support detail pictures generated by the test with the pictures in the original picture library of the support details corresponding to the support, and generate a test result; The comparison of the support project pictures generated by the test with the pictures in the original picture library of the support project corresponding to the support project and generating a test result includes: Start the support electro-hydraulic control monitoring system; Successively read the data of each support project of all supports; Successively output the current support project picture and save the current support project picture; Successively compare the current support project picture with the pictures in the original picture library of the support project corresponding to the support project; If the comparison is the same, display and record the result as passed; otherwise, display and record the result as failed; The comparison of the support detail pictures generated by the test with the pictures in the original picture library of the support details corresponding to the support and generating a test result includes: Start the support electro-hydraulic control monitoring system; Successively read the data of all support projects of each support; Successively output the current support detail picture and save the current support detail picture; Successively compare the current support detail picture with the pictures in the original picture library of the support details corresponding to the support; If the comparison is the same, display and record the result as passed; otherwise, display and record the result as failed.
2. The method according to claim 1, wherein The support project includes: support pressure, action, height, stroke, angle or infrared status.
3. The method according to claim 1, wherein The pre-generation of the original picture library of the support project includes: successively import the data of each support project of all supports into the main picture library generation program, where the main picture library generation program is used to pre-generate the original picture library of the support project.
4. The method according to claim 1, wherein The pre-generation of the original picture library of the support details includes: successively import the data of all support projects of each support into the main picture library generation program, where the main picture library generation program is used to pre-generate the original picture library of the support details.
5. The method according to any one of claims 1 to 4, characterized in that The method further includes: after the comparison is completed, automatically generate a test report according to the test result.
6. A device for the automated testing of a support electro-hydraulic control monitoring system, characterized in that Including: Generation module: used to pre-generate the original picture library of the support project and the original picture library of the support details; Comparison module: used to successively compare the support project pictures generated by the test with the pictures in the original picture library of the support project corresponding to the support project during the operation of the support electro-hydraulic control monitoring system, and generate a test result; Successively compare the support detail pictures generated by the test with the pictures in the original picture library of the support details corresponding to the support, and generate a test result; The comparison of the support project pictures generated by the test with the pictures in the original picture library of the support project corresponding to the support project and generating a test result includes: Start the support electro-hydraulic control monitoring system; Successively read the data of each support project of all supports; Output the pictures of the current support project in sequence and save the pictures of the current support project; Compare the pictures of the current support project with the pictures in the original picture library of the support project corresponding to the support project in sequence; If the comparison is the same, display and record the result as passed; otherwise, display and record the result as failed; The comparison of the detailed pictures of the support generated by the test with the pictures in the original detailed picture library of the support corresponding to the support, and generating a test result, includes: Start the electro-hydraulic control monitoring system of the support; Read all the support project data of each support in sequence; Output the pictures of the current support details in sequence and save the pictures of the current support details; Compare the pictures of the current support details with the pictures in the original detailed picture library of the support corresponding to the support in sequence; If the comparison is the same, display and record the result as passed; otherwise, display and record the result as failed.
7. The device according to claim 6, wherein The device further includes: Report module: used to automatically generate a test report according to the test result after the comparison is completed.
8. An electronic device for automated testing of a support electro-hydraulic control monitoring system, characterized in that, It includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
A GUI automate test method and system
CN109308250A