Report test method of new energy operation and maintenance system and related device

By using the OpenCV library to identify and click on the report filter icon, combined with filter box type identification, filter conditions are automatically generated and the returned data is compared, which solves the problem of low efficiency in testing the report header filtering function and realizes efficient and accurate automated testing.

CN120610894APending Publication Date: 2025-09-09YANCHI ZHONGYING CHUANGNENG NEW ENERGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510723001.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-09-09

AI Technical Summary

Technical Problem

Existing test methods for report header filtering functions are inefficient, difficult to ensure the comprehensiveness and accuracy of the test, and cannot adapt to frequently changing report interfaces and filtering rules.

Method used

The OpenCV library is used to identify and click on the filter icons in the report. Combined with the filter box type recognition, the test configuration file is used to automatically generate filter conditions and compare the returned data to achieve automated testing.

Benefits of technology

It improves test efficiency and accuracy, can fully cover various screening situations, reduces test costs and cycles, and adapts to frequent changes in report interfaces and screening rules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120610894A_ABST
    Figure CN120610894A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of new energy operation and maintenance system testing, and particularly relates to a report testing method of a new energy operation and maintenance system and a related device. The test configuration file comprises a header screening type and a plurality of test cases, and each test case comprises a to-be-tested column name, a test type, a test input value and expected return data; using an OpenCV library to identify a screening icon in the report to be tested, and performing a click operation on the identified screening icon; using an OpenCV library to identify the type of the screening box to obtain a screening box type identification result; based on the screening box type identification result, inputting a screening condition for screening to obtain screening return data; comparing the screened return data with expected return data in the test case, and generating a test result of the to-be-tested report; according to the invention, the test efficiency is improved, various screening conditions can be comprehensively covered, and the accuracy and integrity of the test are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of new energy operation and maintenance system testing, and in particular relates to a report testing method and related devices for a new energy operation and maintenance system. Background Art

[0002] With the development of industrial digitalization, various business systems used in the field of industrial production, such as new energy operation and maintenance systems, continue to generate massive amounts of data. Reports, as important tools for data display and analysis, play an indispensable role in industrial production decision-making, process monitoring, and fault prediction. Their accuracy and efficiency are directly related to the overall efficiency and quality of industrial production.

[0003] As one of the core functions of report usage, the report header filtering function enables users to quickly filter report data based on specific conditions, thereby focusing on the data subset that the user is concerned about. This greatly improves the pertinence and efficiency of data processing and provides strong support for the refined management of industrial production.

[0004] However, the existing report header filtering function testing methods are mostly based on manual testing. Testers need to manually enter various filtering conditions and check the filtering results one by one. The testing efficiency is extremely low, which not only consumes a lot of manpower and time resources, but also easily leads to omissions or errors in the test due to human negligence, making it difficult to ensure the comprehensiveness and accuracy of the test. In addition, since the report interface and filtering rules may change frequently, each change requires a lot of manual testing work to be carried out again, which not only greatly increases the testing cost, but also prolongs the testing cycle, seriously affecting the overall progress and efficiency of industrial production. Summary of the Invention

[0005] In response to the technical problems existing in the prior art, the present invention provides a report testing method and related devices for a new energy operation and maintenance system to solve the technical problems that the existing report header screening function testing method is inefficient and difficult to ensure the comprehensiveness and accuracy of the test.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is: The present invention provides a report testing method for a new energy operation and maintenance system, comprising: Create a test configuration file; the test configuration file contains the table header filter type and several test cases. Each test case contains the column name to be tested, the test type, the test input value, and the expected return data. Use the OpenCV library to identify the filter icons in the test report and click on the identified filter icons. After clicking on the identified filter icons, a filter box will be expanded under the corresponding filter icon. Use the OpenCV library to identify the type of the filter box and obtain the filter box type identification result; Based on the filter box type identification result, enter the filter conditions to filter and obtain the filtered return data; the filter conditions are generated based on the header filter type and the test column name, test type, and test input value in the test case; Compare the filtered return data with the expected return data in the test case and generate the test results for the report to be tested.

[0007] Furthermore, the file format of the test configuration file is YAML format; the header filtering types include fuzzy search filtering, enumeration selection filtering, and numeric range filtering.

[0008] Furthermore, the OpenCV library is used to identify the filter icons in the test report and click on the identified filter icons, including: Load the report to be tested on the browser page; Scroll the page of the report to be tested to the preset position so that the filter icon is in the visible area of ​​the browser current screen; Take a screenshot of the page of the report to be tested displayed on the current browser screen to obtain a screenshot image; Matching the screenshot image with the preloaded filter icon template image to obtain a filter icon matching result; Based on the filter icon matching results, calculate the center position coordinates of the filter icon; Perform a click operation based on the center coordinates of the filter icon.

[0009] Furthermore, the format of the screenshot image is a BGR array.

[0010] Furthermore, based on the center coordinates of the filter icon, the process of clicking is as follows: Based on the center coordinates of the filter icon, use pyautogui.click() to click on the center of the filter icon.

[0011] Furthermore, the OpenCV library is used to identify the type of the filter frame. The process of obtaining the filter frame type identification result includes: Take a screenshot of the filter box area to obtain a screenshot image of the filter box; Perform text recognition on the screenshot of the filter box to obtain the text recognition result in the filter box; The text recognition result in the filter box is matched with the preloaded filter box template to obtain the filter box type recognition result.

[0012] The present invention also provides a report testing system for a new energy operation and maintenance system, comprising: The file configuration module is used to create a test configuration file. The test configuration file includes a table header filter type and several test cases. Each test case includes the name of the column to be tested, the test type, the test input value, and the expected return data. The icon recognition and click module is used to use the OpenCV library to identify the filter icons in the test report and click on the identified filter icons. After clicking on the identified filter icon, a filter box will be expanded under the corresponding filter icon. The filter box recognition module is used to use the OpenCV library to identify the type of the filter box and obtain the filter box type recognition result; The filter test module is used to identify the results based on the filter box type, enter the filter conditions for filtering, and obtain the filter return data; the filter conditions are generated based on the header filter type and the test column name, test type, and test input value in the test case; The test result verification module is used to compare the filtered return data with the expected return data in the test case and generate the test results of the report to be tested.

[0013] The present invention also provides an electronic device, comprising: a processor suitable for executing a computer program; A computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the report testing method of the new energy operation and maintenance system is executed.

[0014] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the report testing method of the new energy operation and maintenance system.

[0015] The present invention also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the report testing method of the new energy operation and maintenance system.

[0016] Compared with the prior art, the present invention has the following beneficial effects: The report testing method for the new energy operation and maintenance system provided by the present invention realizes the normalization and standardization of the test by establishing a test configuration file including the header filtering type and test cases, which is convenient for managing and maintaining the test data; utilizes the OpenCV library to identify and click the filtering icon, and to identify the filter box type, automatically simulates the manual operation process, and avoids the inefficiency and error-prone problems of manual testing; based on the filter box type recognition result, the filtering conditions are generated in combination with the test configuration file for filtering, and the filter return data is compared with the expected return data to generate the test result, which not only improves the test efficiency, but also comprehensively covers various filtering situations, ensures the accuracy and completeness of the test, and is especially adaptable to frequently changing report interfaces and filtering rules, effectively reduces the test cost and cycle, and improves the quality and efficiency of the report testing of the new energy operation and maintenance system.

[0017] The report testing system, electronic equipment, computer-readable storage medium and computer program product of the new energy operation and maintenance system provided by the present invention have all the advantages of the report testing method of the new energy operation and maintenance system described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0019] Figure 1 Flowchart of the report testing method for the new energy operation and maintenance system provided in Example 1; Figure 2 A structural block diagram of the report testing system for the new energy operation and maintenance system provided in Example 2; Figure 3 This is a structural block diagram of the electronic device provided in Example 3. DETAILED DESCRIPTION

[0020] In order to make the technical problems, technical solutions, and beneficial effects solved by this application more clearly understood, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application; it is obvious that the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of this application.

[0021] The present invention provides a report testing method for a new energy operation and maintenance system, comprising the following steps: Step 100: Create a test configuration file; wherein the test configuration file includes a table header screening type and several test cases, each test case including a column name to be tested, a test type, a test input value, and expected return data.

[0022] Step 200: Use the OpenCV library to identify the filter icon in the test report, and click the identified filter icon; after clicking the identified filter icon, a filter box is expanded under the corresponding filter icon.

[0023] Step 300: Use the OpenCV library to identify the type of the filter box and obtain a filter box type identification result.

[0024] Step 400: Based on the result of the filter box type identification, input the filter conditions to perform filtering and obtain the filtered return data; wherein the filter conditions are generated according to the header filter type and the column name to be tested, the test type and the test input value in the test case.

[0025] Step 500: Compare the filtered return data with the expected return data in the test case, and generate a test result for the report to be tested.

[0026] The report testing method for the new energy operation and maintenance system described in the present invention realizes the normalization and standardization of test cases by establishing a test configuration file including header filtering types and test cases, which facilitates the unified execution and maintenance of tests; utilizes the OpenCV library to identify and click on the filtering icon, and to identify the filter box type, thereby automatically completing the interactive operation of the filtering interface and avoiding the tediousness and errors of manual operation; automatically generates filtering conditions according to the configuration file for filtering, and compares the filtered return data with the expected return data to generate test results, which greatly improves the test efficiency and accuracy, can comprehensively cover various screening scenarios, and effectively solves the problems of low efficiency, easy errors and difficulty in adapting to frequent changes in the report interface and filtering rules of traditional manual testing, reduces the testing cost and cycle, and provides a strong guarantee for the stability and reliability of the new energy operation and maintenance system report.

[0027] The following further explains the report test of the new energy operation and maintenance system provided by the present invention with some specific examples: Example 1 As attached Figure 1 As shown, this embodiment 1 provides a report testing method for a new energy operation and maintenance system, including the following steps: Step 1: Create a test configuration file. The test configuration file includes a table header filter type and several test cases. Each test case includes a column name to be tested, a test type, a test input value, and expected return data. Preferably, the test configuration file is in YAML format.

[0028] Header filter types include fuzzy search, enumeration selection, and numeric range. When enumeration selection is selected, an additional options list is configured in the configuration file. Expected return data includes the expected number of rows or a list of specific values.

[0029] An example of a test configuration file is shown in Table 1 below.

[0030] Table 1 Example of a test configuration file

[0031] Step 2: Use the OpenCV library to identify the filter icons in the test report and click the identified filter icons. After clicking the identified filter icons, a filter box is expanded under the corresponding filter icon.

[0032] Specifically, the process is as follows: Step 21. Load the report to be tested on the browser page. Specifically, use the Selenium tool to initialize the browser driver, then open the report to be tested, and use time.sleep() to wait for the page of the report to be tested to load.

[0033] Step 22: Use driver.execute_script() to scroll the page of the report to be tested to a preset position so that the filter icon is in the visible area of ​​the current browser screen.

[0034] Step 23. Take a screenshot of the page of the report to be tested displayed on the current screen of the browser to obtain a screenshot image; specifically, use pyautogui.screenshot() to capture the page of the report to be tested displayed on the current screen of the browser to generate a PIL.Image object; convert the format of the PIL.Image object to a BGR array that can be processed by the OpenCV library to obtain a screenshot image; that is, the format of the screenshot image is a BGR array.

[0035] Step 24: Use cv2.imread() to load the template image of the filter icon to obtain the preloaded template image of the filter icon, where the template image of the filter icon is, for example, filter_icon.png.

[0036] Step 25. Match the screenshot image with the preloaded filter icon template image to obtain a filter icon matching result. Specifically, use cv2.matchTemplate() to match the screenshot image with the preloaded filter icon template image, obtain the position where the matching degree is higher than the threshold, and obtain the filter icon matching result. When matching the screenshot image with the preloaded filter icon template image, the normalized correlation coefficient is used for matching.

[0037] Step 26. Based on the filter icon matching results, calculate the center position coordinates of the filter icon; based on the center position coordinates of the filter icon, perform a click operation; specifically, traverse the filter icon matching results and calculate the center position coordinates of the filter icon; then, based on the center position coordinates of the filter icon, use pyautogui.click() to perform a click operation on the center position of the filter icon.

[0038] Step 3: Use the OpenCV library to identify the type of the filter box and obtain the filter box type identification result.

[0039] Specifically, they include the following: Step 31: Take a screenshot of the filter box area to obtain a screenshot image of the filter box. It should be noted that the process of taking a screenshot of the filter box area to obtain the screenshot image of the filter box is basically the same as the operation of step 23, and will not be repeated here.

[0040] Step 32: After obtaining the screenshot of the filter box, use the pytesseract tool to perform text recognition on the screenshot of the filter box to obtain the text recognition results in the filter box; the text recognition results in the filter box, such as "Please select", the prompt indicates a drop-down box, and the starting number and ending number indicate numerical judgment.

[0041] Step 33: Match the text recognition result in the filter box with the preloaded filter box template, determine the type with the highest matching degree, and obtain the filter box type recognition result; wherein the preloaded filter box template is, for example: drop-down box dropdown.png or input box input.png.

[0042] Step 4: Based on the filter box type identification result, enter the filter conditions to filter and obtain the filtered return data; wherein, the filter conditions are generated according to the header filter type and the column name to be tested, test type and test input value in the test case.

[0043] Specifically, the PyAutoGUI library is used to simulate mouse clicks or keyboard input operations, and filter conditions are entered for filtering. Filter conditions include: (1) fuzzy search to check whether the column data contains the input keyword; (2) enumeration selection to check whether all data are in the preset options; (3) numeric range to check whether the data is between the minimum or maximum value.

[0044] Step 5: Compare the filtered return data with the expected return data in the test case and generate the test results for the report under test. Specifically, use the pandas library to compare the filtered return data with the expected return data in the test case and generate the test results for the report under test. The filtered return data is stored in a pandas.DataFrame. The test results for the report under test are output in a hypertext format using HTMLTestRunner. The test results for the report under test include the name of the test case, execution status, failure reason, and screenshot information. The screenshot information includes screenshots and filter box screenshots.

[0045] It should be noted that, in this embodiment 1, the unittest framework is used to organize and execute test cases and record test results; wherein, the organization of the test cases is shown in Table 2 below.

[0046] Table 2 Test case organization

[0047] The report testing method for the new energy operation and maintenance system described in Example 1 realizes the standardized management of test cases by establishing a YAML format test configuration file containing header filtering types and detailed test cases, which is convenient for maintenance and expansion; uses Selenium to initialize the browser driver and load the report page, and combines the OpenCV library to accurately identify and click the filter icon to ensure the accuracy of the interface interaction; further uses the OpenCV library to identify the filter box type to provide a basis for the subsequent input of filtering conditions; automatically generates and inputs filtering conditions based on the filter box type, and then uses the pandas library to compare the filtered return data with the expected return data, and outputs the test results containing detailed execution status, failure reasons and screenshot information in HTML format, which greatly improves the test efficiency and accuracy, comprehensively covers multiple filtering types, effectively responds to changes in the report interface and filtering rules, reduces the testing cost and cycle, and provides a reliable guarantee for the quality of the new energy operation and maintenance system reports.

[0048] In this embodiment 1, a test configuration file in YAML format is used to clearly organize the header filter type and several test cases; the header filter type covers common and practical types such as fuzzy search filtering, enumeration selection filtering, and numeric range filtering, which fully meet the needs of different report filtering scenarios; when the header filter type is enumeration selection filtering, an options list is additionally configured to make the configuration of the enumeration options clearer and easier to manage, ensuring that testers can easily add, modify, and delete test cases, greatly improving the maintainability and scalability of the test, and also reducing the risk of test omissions or errors due to poor test case management.

[0049] Secondly, with the help of OpenCV library and Selenium tools, efficient and accurate automated operations are achieved for the recognition and click operations of the filter icon; the page is scrolled through driver.execute_script() to make the filter icon visible, effectively avoiding the recognition failure problem caused by invisible elements; the report page displayed on the current screen is captured and converted into a BGR array format that can be processed by the OpenCV library, and then the template image of the filter icon is loaded, and cv2.matchTemplate() is used for matching. The normalized correlation coefficient is used for matching calculation, which can accurately find the position of the filter icon; based on the matching results, the center position coordinates of the filter icon are calculated and the click operation is performed. The whole process is highly automated, which reduces manual intervention and avoids test errors caused by human operational errors, while also greatly improving test efficiency.

[0050] Furthermore, for the identification of filter box types, image screenshots, text recognition and template matching technologies are combined to accurately identify the type of filter box. This can adapt to different types of filter boxes, improve the accuracy and reliability of filter box type identification, and provide a solid foundation for subsequent input of filter conditions based on the filter box type. The PyAutoGUI library is used to simulate mouse clicks or keyboard input operations, which can generate accurate filter conditions based on different header filter types and the test column names, test types and test input values ​​in the test cases. Through automated filtering operations, the filtering task can be completed quickly and accurately, avoiding the tediousness and error-proneness of manual filtering. At the same time, it can also cover more filter condition combinations, improving the comprehensiveness of the test.

[0051] In addition, the pandas library is used to compare the filtered return data with the expected return data in the test case, and the data is output in a hypertext language format through HTMLTestRunner. This makes it easier for testers to quickly locate problems and analyze the causes of test failures. It also provides a strong basis for subsequent test improvements and problem repairs.

[0052] Example 2 As attached Figure 2 As shown, a report testing system for a new energy operation and maintenance system includes a file configuration module, an icon recognition and clicking module, a filter box recognition module, a filter test module and a test result verification module.

[0053] A file configuration module is used to establish a test configuration file; wherein, the test configuration file includes a header filtering type and several test cases, and each test case includes the name of the column to be tested, the test type, the test input value and the expected return data; an icon recognition and click module is used to use the OpenCV library to identify the filtering icon in the report to be tested, and click the identified filtering icon; wherein, after clicking the identified filtering icon, a filter box is expanded under the corresponding filter icon; a filter box recognition module is used to use the OpenCV library to identify the type of the filter box and obtain the filter box type recognition result; a filtering test module is used to input the filtering conditions for filtering based on the filter box type recognition result, and obtain the filtered return data; wherein, the filtering conditions are generated according to the header filtering type and the name of the column to be tested, the test type and the test input value in the test case; a test result verification module is used to compare the filtered return data with the expected return data in the test case, and generate the test results of the report to be tested.

[0054] Example 3 As attached Figure 3 As shown, this embodiment 3 provides an electronic device, including: a memory for storing a computer program; and a processor for implementing the steps of the report testing method for a new energy operation and maintenance system when executing the computer program. Alternatively, the processor implements the functions of each module in the report testing system for the new energy operation and maintenance system when executing the computer program.

[0055] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing preset functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.

[0056] The electronic device may be a computing device such as a desktop computer, laptop, PDA, or cloud server. The electronic device may include, but is not limited to, a processor and memory. Those skilled in the art will appreciate that the above are examples of electronic devices and do not constitute a limitation on electronic devices. The electronic device may include more components than those described above, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0057] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor. The processor is the control center of the electronic device and connects various parts of the entire electronic device using various interfaces and lines.

[0058] The memory may be used to store the computer programs and / or modules, and the processor implements various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory.

[0059] The memory may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as sound playback or image playback); the data storage area may store data generated based on the use of the mobile phone (such as audio data and a phone book). Furthermore, the memory may include high-speed random access memory (RAM) and non-volatile memory, such as a hard disk, internal memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0060] Example 4 This embodiment 4 also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the report testing method of a new energy operation and maintenance system.

[0061] If the modules / units integrated in the report test system of the new energy operation and maintenance system are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.

[0062] Based on this understanding, the present invention implements all or part of the process in the above-mentioned report testing method for the new energy operation and maintenance system, and can also be completed by a computer program to instruct related hardware. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, it can implement the steps of the above-mentioned report testing method for the new energy operation and maintenance system. The computer program includes computer program code, which can be in source code form, object code form, executable file, or preset intermediate form.

[0063] The computer-readable storage medium may include: any entity or device that can carry the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0064] Example 5 This embodiment 5 provides a computer product, which includes a computer program product, and the computer program is stored in a computer-readable storage medium; the processor of the electronic device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the electronic device can execute the report testing method of the new energy operation and maintenance system described in embodiment 1, which will not be repeated here.

[0065] It should be noted that a person skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods.

[0066] The report testing method described in this invention flexibly configures header filter types and test cases through a configuration file. This allows for flexible configuration of different options and test values, covering more edge cases and exceptions, improving test accuracy and reliability. Specifically, using image recognition to filter columns in a page table reduces code maintenance costs and improves efficiency compared to methods like XPath and ID to locate elements.

[0067] The above embodiment is only one of the implementation methods that can realize the technical solution of the present invention. The scope of protection claimed by the present invention is not limited only to this embodiment, but also includes changes, replacements and other implementation methods that can be easily thought of by any technician familiar with this technical field within the technical scope disclosed by the present invention.

Claims

1. A report testing method for a new energy operation and maintenance system, characterized in that: include: Create a test configuration file; the test configuration file contains the table header filter type and several test cases. Each test case contains the column name to be tested, the test type, the test input value, and the expected return data. Use the OpenCV library to identify the filter icons in the test report and click on the identified filter icons. After clicking on the identified filter icons, a filter box will be expanded under the corresponding filter icon. Use the OpenCV library to identify the type of the filter box and obtain the filter box type identification result; Based on the filter box type identification result, enter the filter conditions to filter and obtain the filtered return data; the filter conditions are generated based on the header filter type and the test column name, test type, and test input value in the test case; Compare the filtered return data with the expected return data in the test case and generate the test results for the report to be tested.

2. A report testing method for a new energy operation and maintenance system according to claim 1, characterized in that: The test configuration file is in YAML format. Header filtering types include fuzzy search filtering, enumeration selection filtering, and numeric range filtering.

3. The report testing method of a new energy operation and maintenance system according to claim 1 is characterized in that: The process of using the OpenCV library to identify the filter icons in the test report and clicking on the identified filter icons includes: Load the report to be tested on the browser page; Scroll the page of the report to be tested to the preset position so that the filter icon is in the visible area of ​​the browser current screen; Take a screenshot of the page of the report to be tested displayed on the current browser screen to obtain a screenshot image; Matching the screenshot image with the preloaded filter icon template image to obtain a filter icon matching result; Based on the filter icon matching result, the center position coordinates of the filter icon are calculated; based on the center position coordinates of the filter icon, a click operation is performed.

4. A report testing method for a new energy operation and maintenance system according to claim 3, characterized in that: The format of the screenshot image is a BGR array.

5. The report testing method of a new energy operation and maintenance system according to claim 2 is characterized in that: The process of clicking based on the center coordinates of the filter icon is as follows: Based on the center coordinates of the filter icon, use pyautogui.click() to click on the center of the filter icon.

6. The report testing method of a new energy operation and maintenance system according to claim 1 is characterized in that: Use the OpenCV library to identify the type of the filter frame and obtain the filter frame type identification result, including: Take a screenshot of the filter box area to obtain a screenshot image of the filter box; Perform text recognition on the screenshot of the filter box to obtain the text recognition result in the filter box; The text recognition result in the filter box is matched with the preloaded filter box template to obtain the filter box type recognition result.

7. A report testing system for a new energy operation and maintenance system, characterized in that: include: The file configuration module is used to create a test configuration file. The test configuration file includes a table header filter type and several test cases. Each test case includes the name of the column to be tested, the test type, the test input value, and the expected return data. The icon recognition and click module is used to use the OpenCV library to identify the filter icons in the test report and click on the identified filter icons. After clicking on the identified filter icon, a filter box will be expanded under the corresponding filter icon. The filter box recognition module is used to use the OpenCV library to identify the type of the filter box and obtain the filter box type recognition result; The filter test module is used to identify the results based on the filter box type, enter the filter conditions for filtering, and obtain the filter return data; the filter conditions are generated based on the header filter type and the test column name, test type, and test input value in the test case; The test result verification module is used to compare the filtered return data with the expected return data in the test case and generate the test results of the report to be tested.

8. An electronic device, characterized in that: include: a processor suitable for executing a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the report testing method of the new energy operation and maintenance system according to any one of claims 1 to 6 is executed.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the report testing method for the new energy operation and maintenance system according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the report testing method of the new energy operation and maintenance system according to any one of claims 1 to 6 is implemented.