Automatic testing method and system, electronic equipment and storage medium

Through automated testing methods and systems, combined with project editing, equipment configuration, and program editing pages, comprehensive testing of photovoltaic energy storage equipment is achieved, solving the problems of single test equipment function and low automation level, and improving test efficiency and reliability.

CN120658209APending Publication Date: 2025-09-16DONGGUAN GUANJIA SOFTWARE TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510538173.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

Existing testing equipment for photovoltaic energy storage equipment has single functions, lacks comprehensive testing capabilities, and has a low degree of automation, resulting in low testing efficiency.

Method used

Combine test items through the preset project editing page, configure test equipment on the device configuration page, and program the test process on the program editing page to achieve automated testing.

Benefits of technology

It improves the flexibility and efficiency of photovoltaic energy storage equipment testing, reduces manual intervention, and improves test reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120658209A_ABST
    Figure CN120658209A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic test method and system, electronic equipment and a storage medium, and the method comprises the steps: obtaining the test information of photovoltaic energy storage equipment, and the test information comprises a to-be-tested item for detecting the photovoltaic energy storage equipment and test equipment; performing test item combination processing on the to-be-tested item based on a preset item editing page to obtain a test item; performing device configuration processing on the test device based on a preset device configuration page to obtain a configuration file; performing test process programming processing on the test item and the configuration file based on a preset program editing page to obtain a test program; and performing project debugging processing on the photovoltaic energy storage equipment according to the test program to obtain a test result. The embodiment of the invention can improve the testing efficiency and can be widely applied to the technical field of automatic testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automated testing technology, and in particular to an automated testing method, system, electronic device, and storage medium. Background Art

[0002] Before photovoltaic energy storage equipment is put into production or operation, it must be tested to check its condition and stability. Related technologies offer separate testing methods, such as temperature testing, light testing, and voltage output or voltage output stability testing. However, in practice, these testing devices may have limited functionality, lack comprehensive testing capabilities, and have a low degree of automation, relying on manual operation. This reduces the efficiency of photovoltaic energy storage equipment testing.

[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the Invention

[0004] The main purpose of the embodiments of the present application is to provide an automated testing method, system, electronic device and storage medium, which can improve the testing efficiency of photovoltaic energy storage equipment.

[0005] To achieve the above objectives, an embodiment of the present application provides an automated testing method, which includes:

[0006] Acquiring test information of a photovoltaic energy storage device, wherein the test information includes test items to be tested and test equipment for the photovoltaic energy storage device;

[0007] Performing test item combination processing on the items to be tested based on a preset item editing page to obtain test items;

[0008] Perform device configuration processing on the test device based on a preset device configuration page to obtain a configuration file;

[0009] Performing test flow programming processing on the test items and the configuration file based on a preset program editing page to obtain a test program;

[0010] The photovoltaic energy storage equipment is debugged according to the test procedure to obtain test results.

[0011] In some embodiments, performing test item combination processing on the to-be-tested items based on a preset item editing page to obtain test items includes the following steps:

[0012] In response to a first operation instruction on the project editing page, a corresponding project is selected from a project library according to the to-be-tested item for activation processing to obtain the test item;

[0013] Alternatively, in response to a second operation instruction on the item editing page, preset items are packaged and combined according to the items to be tested to obtain the test items.

[0014] In some embodiments, the project editing page includes a list area and an editing area, and the step of packaging and combining preset projects according to the to-be-tested items to obtain the test project in response to a second operation instruction on the project editing page includes the following steps:

[0015] In response to an operation instruction on the list area, selecting a plurality of the preset items from the list area and placing them in the editing area;

[0016] In response to an operation instruction on the editing area, performing parameter editing processing on the selected plurality of preset items to obtain a plurality of edited items;

[0017] The multiple edited items are merged to obtain the test items.

[0018] In some embodiments, performing device configuration processing on the test device based on a preset device configuration page to obtain a configuration file includes the following steps:

[0019] In response to an operation instruction on the device configuration page, performing an activation selection process on the device list according to the test device and entering an editing window;

[0020] In response to an operation instruction on the editing window, communication interface parameters and physical channel configuration processing are performed on the test device to obtain the configuration file.

[0021] In some embodiments, performing test flow programming processing on the test items and the configuration file based on a preset program editing page to obtain a test program includes the following steps:

[0022] In response to a first operation instruction on the program editing page, performing product parameter configuration processing on the photovoltaic energy storage device to obtain product parameters;

[0023] Associating the test items with the configuration files according to the product parameters to obtain associated items;

[0024] In response to a second operation instruction on the program editing page, adjusting the execution order of the associated items to obtain execution items;

[0025] In response to a third operation instruction on the program editing page, parameter editing is performed on the execution item to obtain the test program.

[0026] In some embodiments, in response to the third operation instruction on the program editing page, performing parameter editing on the execution item to obtain the test program includes the following steps:

[0027] In response to a third operation instruction on the program editing page, entering a parameter editing page, and displaying a list of the execution items based on the parameter editing page;

[0028] In response to the operation instruction on the parameter editing page, the execution item is processed by variable setting, and a calculation function is constructed according to the set variables to obtain the test program.

[0029] In some embodiments, performing project commissioning on the photovoltaic energy storage device according to the test procedure to obtain test results includes the following steps:

[0030] Performing barcode input processing on the photovoltaic energy storage device to obtain a device barcode;

[0031] Triggering the test program to call the test device according to the device barcode to perform program execution processing, obtain a test result, and bind the test result to the device barcode;

[0032] The test results are received by a manufacturing execution system.

[0033] To achieve the above objectives, another aspect of the present application provides an automated testing system, comprising:

[0034] The first module is used to obtain test information of the photovoltaic energy storage device, wherein the test information includes test items to be tested and test equipment for the photovoltaic energy storage device;

[0035] The second module is used to perform test item combination processing on the test items based on a preset item editing page to obtain test items;

[0036] The third module is used to perform device configuration processing on the test device based on a preset device configuration page to obtain a configuration file;

[0037] The fourth module is used to process the test items and the configuration files according to a test process based on a preset program editing page to obtain a test program;

[0038] The fifth module is used to perform project debugging on the photovoltaic energy storage equipment according to the test program to obtain test results.

[0039] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned method when executing the computer program.

[0040] To achieve the above objectives, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0041] The embodiments of the present application include at least the following beneficial effects: The present application provides an automated testing method, system, electronic device and storage medium. The solution performs test item combination processing on the test items based on the preset project editing page to obtain test items. It can combine different test items for different test scenarios to perform automated testing, thereby improving the flexibility of the test. In addition, the solution performs device configuration processing on the test equipment based on the preset device configuration page to obtain a configuration file, and performs test process programming processing on the test items and configuration files based on the preset program editing page to obtain a test program. It can flexibly configure the test equipment according to the test items, combine test programs based on actual needs, and adapt to different equipment scenarios and scale requirements. In addition, the solution performs project debugging processing on the photovoltaic energy storage equipment according to the test program to obtain test results. It can automatically execute the test process through the preset program, reduce manual intervention, and improve the efficiency and reliability of photovoltaic energy storage equipment testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is a flow chart of an automated testing method provided by an embodiment of the present application;

[0043] Figure 2 This is a schematic diagram of a project editing page provided in an embodiment of the present application;

[0044] Figure 3 This is a schematic diagram of a device configuration page provided in an embodiment of the present application;

[0045] Figure 4 This is a schematic diagram of a program editing page provided in an embodiment of the present application;

[0046] Figure 5 This is a schematic diagram of the structure of an automated testing system provided in an embodiment of the present application;

[0047] Figure 6 This is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are merely examples of systems and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.

[0049] It will be understood that the terms "first", "second", etc. used in this application may be used herein to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0050] The terms "at least one", "plurality", "each", "any", etc. used in this application include "at least one", "two" or more, "plurality" or "each", "any" or "any one", "each" or "any one" as used herein.

[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.

[0052] Related technologies offer separate testing methods, specifically temperature testing, light testing, and voltage output or voltage output stability testing for PV energy storage devices. However, in practice, these testing devices often lack comprehensive testing capabilities and have a low degree of automation, relying on manual operation. This reduces the efficiency of PV energy storage device testing.

[0053] For example, some testing equipment has a single testing function and lacks comprehensive testing capabilities. For example, some testing equipment is only designed to test the battery's waterproofness, lacking comprehensive testing of key indicators such as charge and discharge performance and thermal stability. In addition, related tests require switching between different devices (such as separating waterproof testing from seismic testing), resulting in long test cycles and poor data correlation. In addition, the operating procedures for photovoltaic energy storage equipment in related technologies cannot be standardized, and the degree of automation is low.

[0054] In view of this, an automated testing method, system, electronic device and storage medium are provided in the embodiments of the present application. The solution performs test item combination processing on the test items based on the preset project editing page to obtain test items. It can combine different test items for different test scenarios to perform automated testing, thereby improving the flexibility of the test. In addition, the solution performs device configuration processing on the test equipment based on the preset device configuration page to obtain a configuration file, and performs test process programming processing on the test items and configuration files based on the preset program editing page to obtain a test program. It can flexibly configure the test equipment according to the test items, combine test programs based on actual needs, and adapt to different equipment scenarios and scale requirements. In addition, the solution performs project debugging processing on the photovoltaic energy storage equipment according to the test program to obtain test results. It can automatically execute the test process through the preset program, reduce manual intervention, and improve the efficiency and reliability of photovoltaic energy storage equipment testing.

[0055] An automated testing method provided in an embodiment of the present application relates to the field of automated testing technology. An automated testing method provided in an embodiment of the present application can be applied to a test terminal for photovoltaic energy storage equipment, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a tablet computer, a laptop computer, a desktop computer, a control terminal, etc., but is not limited thereto; the server side can be configured as an independent physical server, or as a server cluster or distributed system consisting of multiple physical servers, or as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements an automated testing method, etc., but is not limited to the above forms.

[0056] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected via a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.

[0057] Figure 1 This is an optional flowchart of an automated testing method provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S105.

[0058] Step S101, obtaining test information of a photovoltaic energy storage device, wherein the test information includes test items to be tested on the photovoltaic energy storage device and test equipment;

[0059] Step S102, performing test item combination processing on the items to be tested based on a preset item editing page to obtain test items;

[0060] Step S103, performing device configuration processing on the test device based on a preset device configuration page to obtain a configuration file;

[0061] Step S104, performing test flow programming processing on the test items and the configuration file based on a preset program editing page to obtain a test program;

[0062] Step S105 , performing project debugging processing on the photovoltaic energy storage device according to the test program to obtain a test result.

[0063] In steps S101 to S105, as shown in the embodiment of the present application, test information of the photovoltaic energy storage device is obtained. The test information includes the test items and test equipment required to test the photovoltaic energy storage device. The test items may include temperature testing, charge and discharge performance, thermal stability testing, etc., and the test equipment may include a power meter, oscilloscope, digital multimeter, control panel, etc. The preset project editing page is displayed through the human-computer interaction interface. The user can operate the project editing page in the human-computer interaction interface to combine test items to be tested and build corresponding test projects according to different test needs. By switching pages in the human-computer interaction interface, the device configuration page can be entered to configure the test equipment, configure the corresponding device parameters for different devices, and obtain a configuration file. By entering the program editing page, the test flow is programmed for the test items and configuration files, and the test items and test equipment can be associated. By adjusting the test sequence and editing program parameters, a test program is constructed, and finally, the test program is used to perform automated testing to obtain test results. It should be noted that this solution can also adopt component-based development, which can improve the portability and reusability of functional modules.

[0064] One of the above technical solutions has the following advantages or beneficial effects: This embodiment of the present application can customize different test items based on different needs based on the device configuration page, thereby adapting to different devices and scenarios, and improving the flexibility of testing capabilities. Furthermore, by pre-setting programs and configuring devices, manual intervention is reduced, thereby improving testing efficiency.

[0065] In step S101 of some embodiments, test information for the photovoltaic energy storage device can be obtained from a preset database. Other methods are also possible, such as setting corresponding test items and test equipment based on the test scenario, but this is not limited to these methods. It should be noted that embodiments of the present application also allow for flexible configuration of adding or removing corresponding test items and test equipment when constructing the test program.

[0066] In some embodiments, performing test item combination processing on the to-be-tested items based on a preset item editing page to obtain test items includes the following steps:

[0067] In response to a first operation instruction on the project editing page, a corresponding project is selected from a project library according to the to-be-tested item for activation processing to obtain the test item;

[0068] Alternatively, in response to a second operation instruction on the item editing page, preset items are packaged and combined according to the items to be tested to obtain the test items.

[0069] In the embodiment of the present application, the test items can be determined through the preset item editing page. Specifically, by selecting or creating the corresponding test items, please refer to Figure 2 The project editing page includes two windows, one window is used to match and enable the corresponding test items from the pre-established project library, and the other window is used to customize the combination of preset items to obtain test items. Specifically, in response to the first operation instruction on the project editing page, the operation instruction is a mouse click operation, by clicking the corresponding project library to select and enable it, you can also double-click the project library to enter the detailed project list, and choose whether to enable the test items in the project library. When you click to check the corresponding project library, it means that the project library will be enabled, and the library file corresponding to the project library will be selected. When the program is tested, the corresponding library file will be called for reading. In response to the second operation instruction on the project editing page, the operation instruction includes mouse click operation, mouse drag operation, etc., and the specific preset project can be viewed by mouse click operation. The preset project is the project obtained by user input. Different preset projects can be packaged and combined into new test projects by mouse drag operation to reduce reuse costs.

[0070] In some embodiments, the project editing page includes a list area and an editing area, and the step of packaging and combining preset projects according to the to-be-tested items to obtain the test project in response to a second operation instruction on the project editing page includes the following steps:

[0071] In response to an operation instruction on the list area, selecting a plurality of the preset items from the list area and placing them in the editing area;

[0072] In response to an operation instruction on the editing area, performing parameter editing processing on the selected plurality of preset items to obtain a plurality of edited items;

[0073] The multiple edited items are merged to obtain the test items.

[0074] In an embodiment of the present application, new test items can be obtained by combining test items through custom process combinations, thereby merging them into independent test items and storing them in a project library for reuse. Specifically, custom test item combinations are performed through a project editing page, which includes a list area and an editing area. The list area displays preset items, wherein the items can be displayed in a list format, and the preset items can be collapsed or expanded by clicking on them, making it easier for users to view the test content. By selecting multiple preset items and placing them in the editing area, multiple preset items can be merged into a new test item. In an embodiment of the present application, parameter editing is also performed on the selected multiple preset items in response to an operation instruction in the editing area. Specifically, the new test item obtained by the combination can be named, and the multiple preset items can be treated as sub-items. Parameter editing can edit the name, specifications, etc. of each sub-item. For example, when editing the sub-item of the request modification message, the parameter values, index values, and data types of the object dictionary can be edited. During the editing process, different functions can be loaded by calling different files to customize the project. Finally, the test project is obtained by merging the multiple edited items.

[0075] In some embodiments, performing device configuration processing on the test device based on a preset device configuration page to obtain a configuration file includes the following steps:

[0076] In response to an operation instruction on the device configuration page, performing an activation selection process on the device list according to the test device and entering an editing window;

[0077] In response to an operation instruction on the editing window, communication interface parameters and physical channel configuration processing are performed on the test device to obtain the configuration file.

[0078] In the examples of this application, please refer to Figure 3, configure the test equipment through the device configuration page to obtain a configuration file. Specifically, add or delete instruments and equipment on the device configuration page, and confirm the module addition of the corresponding test equipment project. Among them, all devices are displayed modularly through the device list, and click the check box to determine whether to enable the device. By double-clicking the module name corresponding to the device, you can enter the editing window. By inputting the keyboard or clicking the mouse on the editing window, you can configure the communication interface parameters and physical channels of the test equipment. Among them, the interface parameters are the communication interface and address parameters used. The communication interface can be RS485 or TCP, etc. The address parameters include the server address and port address, etc., which can be set according to actual conditions. The physical channel is the channel for physical connection to the photovoltaic energy storage device, and a data cable can be used for physical connection. By configuring the parameters of the instrument module, you can get the configuration file of the corresponding test equipment.

[0079] In some embodiments, performing test flow programming processing on the test items and the configuration file based on a preset program editing page to obtain a test program includes the following steps:

[0080] In response to a first operation instruction on the program editing page, performing product parameter configuration processing on the photovoltaic energy storage device to obtain product parameters;

[0081] Associating the test items with the configuration files according to the product parameters to obtain associated items;

[0082] In response to a second operation instruction on the program editing page, adjusting the execution order of the associated items to obtain execution items;

[0083] In response to a third operation instruction on the program editing page, parameter editing is performed on the execution item to obtain the test program.

[0084] In the embodiment of the present application, the test process is programmed for the test items and configuration files through the program editing page. Figure 4The program editing page allows configuration of basic test program information, instrument configuration, and product parameters. Specifically, the Basic Information window allows editing of the model name, author, date, and notes. This basic information displays instructions for testing the PV energy storage device. The instrument configuration window allows selection of configuration files and test items. Finally, the Product Parameters window allows configuration of the PV energy storage device's product parameters. Product parameters may include the number of products to be tested, the number of output groups, and output mappings, such as the output channels used to output test results. In response to a second operation command on the program editing page, the execution order of associated items is adjusted to obtain an execution item. Specifically, by selecting a test item cell, dragging down the test item drop-down menu, and selecting the desired test item, operations such as insert, move up, move down, copy, cut, paste, delete, and undo can be performed on the test item. In response to a third operation command on the program editing page, parameters for the execution item can be edited. Double-clicking the corresponding test item row opens a window that pops up on the right to edit the corresponding test parameters. Multiple test specifications can be set using a multi-parameter list, and corresponding jump and retest functions can be configured. The embodiment of the present application also allows you to click "Execute Test" in the program editing interface to perform an offline debugging tool for the test program. Through offline testing, you can pre-test the program execution, execute from the selected item to the last item, set single-step debugging to test a specific step, and set breakpoints at any location in the project. When the test item executes to that location, the test program will stop at that location and wait for the user to confirm the next debugging action. In this mode, you can call the offline device debugging tool, which makes it easier for users to locate and analyze problems, effectively and significantly shortening the time it takes for users to import new test programs.

[0085] In some embodiments, in response to the third operation instruction on the program editing page, performing parameter editing on the execution item to obtain the test program includes the following steps:

[0086] In response to a third operation instruction on the program editing page, entering a parameter editing page, and displaying a list of the execution items based on the parameter editing page;

[0087] In response to the operation instruction on the parameter editing page, the execution item is processed by variable setting, and a calculation function is constructed according to the set variables to obtain the test program.

[0088] In an embodiment of the present application, in response to the third operation instruction on the program editing page, the parameter editing page is entered, which is used to list the execution items and set the parameters for the execution items. Specifically, by inputting variable parameters on the parameter editing page, the upper and lower limit specifications and corresponding variables in the corresponding test items can be quickly set. The embodiment of the present application can also set calculation functions according to the corresponding variables, such as fixed power variables and efficiency variables. By reading the device power value and then passing its value to these two variables, the output efficiency can be quickly calculated by setting the corresponding mathematical expression as the calculation function.

[0089] In some embodiments, performing project commissioning on the photovoltaic energy storage device according to the test procedure to obtain test results includes the following steps:

[0090] Performing barcode input processing on the photovoltaic energy storage device to obtain a device barcode;

[0091] Triggering the test program to call the test device according to the device barcode to perform program execution processing, obtain a test result, and bind the test result to the device barcode;

[0092] The test results are received by a manufacturing execution system.

[0093] In the embodiment of the present application, the device barcode is used to assign a unique barcode to each photovoltaic energy storage device to ensure that the test object corresponds to the data one by one. By inputting the barcode of the photovoltaic energy storage device, it can be obtained by manual input or automatic scanning. The device barcode can be a machine-readable symbol composed of a set of regularly arranged lines, graphics or QR codes, which usually contains key information such as the device model, production batch, and serial number. In the photovoltaic energy storage system integration test, the embodiment of the present application can trigger the test program according to the device barcode to call the test equipment for program operation processing, identify each component through the barcode, automatically match the system-level test logic for automated testing, obtain test results, and send the test results to the manufacturing execution system. The manufacturing execution system can receive the test results and display and analyze the results. It should be noted that the embodiment of the present application can perform report path storage, beat statistics, and save operation logs for the test results.

[0094] The following is a detailed description of the embodiments of the present application with reference to specific application examples:

[0095] The embodiments of the present application can be applied to automated testing scenarios for photovoltaic energy storage equipment. Test items can be customized according to different types of photovoltaic energy storage equipment, such as battery packs, inverters, etc. For example, special tests can be conducted on performance indicators such as waterproofness, shock resistance, and power output, and test parameters such as voltage range and temperature threshold can be flexibly configured to meet the diverse needs of laboratory research and development and industrial production lines. The embodiments of the present application can combine test steps based on actual needs, such as first performing a "hot spot effect test" and then performing a "charge and discharge efficiency test" to form a complete evaluation chain. By automatically executing the test process through preset programs, such as starting the equipment, collecting data, generating reports, etc., manual intervention can be reduced and test efficiency can be improved.

[0096] See also Figure 5 The present application also provides an automated testing system that can implement the above-mentioned automated testing method. The system includes:

[0097] The first module 501 is used to obtain test information of the photovoltaic energy storage device, where the test information includes test items to be tested and test equipment for the photovoltaic energy storage device;

[0098] The second module 502 is configured to perform test item combination processing on the test item based on a preset item editing page to obtain a test item;

[0099] The third module 503 is configured to perform device configuration processing on the test device based on a preset device configuration page to obtain a configuration file;

[0100] The fourth module 504 is configured to process the test items and the configuration files based on a preset program editing page to obtain a test program.

[0101] The fifth module 505 is used to perform project debugging processing on the photovoltaic energy storage equipment according to the test program to obtain test results.

[0102] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0103] The present application also provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned automated testing method when executing the computer program. The electronic device can be any smart terminal including a tablet computer, an in-vehicle computer, or the like.

[0104] It can be understood that the contents of the above method embodiments are applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0105] See also Figure 6 , Figure 6 The hardware structure of an electronic device according to another embodiment is shown. The electronic device includes:

[0106] The processor 601 may be implemented as a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is configured to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.

[0107] The memory 602 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 602 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 602 and is called by the processor 601 to execute the automated testing method of the embodiments of this application.

[0108] Input / output interface 603, used to implement information input and output;

[0109] Communication interface 604, used to implement communication interaction between this device and other devices, which can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WiFi, Bluetooth, etc.);

[0110] Bus 605 , which transmits information between various components of the device (e.g., processor 601 , memory 602 , input / output interface 603 , and communication interface 604 );

[0111] The processor 601 , the memory 602 , the input / output interface 603 and the communication interface 604 are connected to each other in communication within the device via a bus 605 .

[0112] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned automated testing method is implemented.

[0113] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiment, the functions specifically implemented by the present storage medium embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0114] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0115] The embodiments of the present application provide an automated testing method, system, electronic device, and storage medium. The solution performs test item combination processing on the test items based on a preset project editing page to obtain test items. It can combine different test items for different test scenarios to perform automated testing, thereby improving the flexibility of the test. In addition, the solution performs device configuration processing on the test equipment based on a preset device configuration page to obtain a configuration file, and performs test process programming processing on the test items and configuration files based on a preset program editing page to obtain a test program. It can flexibly configure the test equipment according to the test items, and combine test programs based on actual needs to adapt to different equipment scenarios and scale requirements. In addition, the solution performs project debugging processing on the photovoltaic energy storage equipment according to the test program to obtain test results. It can automatically execute the test process through the preset program, reduce manual intervention, and improve the efficiency and reliability of photovoltaic energy storage equipment testing.

[0116] The embodiments described in the embodiments of this application are intended to more clearly illustrate the technical solutions of the embodiments of this application and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0117] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0118] The system embodiment described above is merely illustrative. The units described as separate components may or may not be physically separate, i.e., they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of this embodiment.

[0119] Those skilled in the art will appreciate that all or some of the steps in the methods, systems, and functional modules / units in the devices disclosed above may be implemented as software, firmware, hardware, or appropriate combinations thereof.

[0120] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, 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 terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0121] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0122] In the several embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of the above units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0123] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0124] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0125] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes multiple instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: various media that can store programs, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0126] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and essence of the present invention should be within the scope of the present invention.

Claims

1. An automated testing method, characterized in that: The method comprises the following steps: Acquiring test information of a photovoltaic energy storage device, wherein the test information includes test items to be tested and test equipment for the photovoltaic energy storage device; Performing test item combination processing on the items to be tested based on a preset item editing page to obtain test items; Perform device configuration processing on the test device based on a preset device configuration page to obtain a configuration file; Performing test flow programming processing on the test items and the configuration file based on a preset program editing page to obtain a test program; The photovoltaic energy storage equipment is debugged according to the test procedure to obtain test results.

2. The method according to claim 1, characterized in that The step of performing test item combination processing on the test items based on a preset item editing page to obtain test items includes the following steps: In response to a first operation instruction on the project editing page, a corresponding project is selected from a project library according to the to-be-tested item for activation processing to obtain the test item; Alternatively, in response to a second operation instruction on the item editing page, preset items are packaged and combined according to the items to be tested to obtain the test items.

3. The method according to claim 2, characterized in that The project editing page includes a list area and an editing area. In response to a second operation instruction on the project editing page, the preset projects are packaged and combined according to the test items to obtain the test items, including the following steps: In response to an operation instruction on the list area, selecting a plurality of the preset items from the list area and placing them in the editing area; In response to an operation instruction on the editing area, performing parameter editing processing on the selected plurality of preset items to obtain a plurality of edited items; The multiple edited items are merged to obtain the test items.

4. The method according to claim 1, wherein The step of performing device configuration processing on the test device based on a preset device configuration page to obtain a configuration file includes the following steps: In response to an operation instruction on the device configuration page, performing an activation selection process on the device list according to the test device and entering an editing window; In response to an operation instruction on the editing window, communication interface parameters and physical channel configuration processing are performed on the test device to obtain the configuration file.

5. The method according to claim 1, characterized in that The test items and the configuration file are subjected to test flow programming based on a preset program editing page to obtain a test program, including the following steps: In response to a first operation instruction on the program editing page, performing product parameter configuration processing on the photovoltaic energy storage device to obtain product parameters; Associating the test items with the configuration files according to the product parameters to obtain associated items; In response to a second operation instruction on the program editing page, adjusting the execution order of the associated items to obtain execution items; In response to a third operation instruction on the program editing page, parameter editing is performed on the execution item to obtain the test program.

6. The method according to claim 5, characterized in that The step of performing parameter editing on the execution item in response to the third operation instruction on the program editing page to obtain the test program includes the following steps: In response to a third operation instruction on the program editing page, entering a parameter editing page, and displaying a list of the execution items based on the parameter editing page; In response to the operation instruction on the parameter editing page, the execution item is processed by variable setting, and a calculation function is constructed according to the set variables to obtain the test program.

7. The method according to any one of claims 1 to 6, characterized in that The step of performing project debugging on the photovoltaic energy storage device according to the test procedure to obtain a test result includes the following steps: Performing barcode input processing on the photovoltaic energy storage device to obtain a device barcode; Triggering the test program to call the test device according to the device barcode to perform program execution processing, obtain a test result, and bind the test result to the device barcode; The test results are received by a manufacturing execution system.

8. An automated testing system, characterized in that: The system comprises: The first module is used to obtain test information of the photovoltaic energy storage device, wherein the test information includes test items to be tested and test equipment for the photovoltaic energy storage device; The second module is used to perform test item combination processing on the test items based on a preset item editing page to obtain test items; The third module is used to perform device configuration processing on the test device based on a preset device configuration page to obtain a configuration file; The fourth module is used to process the test items and the configuration files according to a test process based on a preset program editing page to obtain a test program; The fifth module is used to perform project debugging on the photovoltaic energy storage equipment according to the test program to obtain test results.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Test case component processing method and device, equipment, medium and product

    CN115328791A

  • Test method, device and equipment based on modular test unit

    CN116754952A

  • Test platform display method and device, equipment and storage medium

    CN116755818A

  • Test program generation method and test program generation equipment

    CN117667658A