A charging pile testing method and system

By conducting tests and data monitoring of charging piles classified by product family and generating detailed statistical reports, the problem of intricate statistics of charging piles in the existing technology has been solved, the ability to analyze the long-term stability of charging piles has been improved, and the Server load.

CN114911693BActive Publication Date: 2024-11-26ZHEJIANG HAOHAN ENERGY TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210093494.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-26
Publication Date
2024-11-26
Estimated Expiration
2042-01-26

AI Technical Summary

Technical Problem

The existing charging pile testing system cannot conduct long-term statistics based on product family and model, and it is difficult to determine which charging pile has the best long-term stable operation capability. The laboratory resources are limited, so it is impossible to effectively monitor and analyze the impact of batch operations of a large number of charging piles on the server. .

Method used

By classifying the charging piles to be tested according to the number and family code of the charging pile, multiple product families are generated, task scripts are set in advance and grouped according to the product families, task execution plans are set, and data changes in the testing process of the charging pile are obtained in real time. and test results, generate statistical reports, and monitor data during the operation of the real charging pile to record abnormal situations.

Benefits of technology

The charging pile data classification statistics are realized by product family and model, and the analysis ability of the long-term and stable operation of the charging pile is improved, helping to determine which charging pile is more stable, reducing server load and operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114911693B_ABST
    Figure CN114911693B_ABST
Patent Text Reader

Abstract

The present invention relates to a charging pile testing method and system, the method includes selecting a real charging pile for multi-process patrol monitoring, obtaining key information of the current charging pile when the business status is abnormal, and analyzing it according to different product families, models, versions, etc. to obtain statistical reports; when the business status is abnormal, automatically packing the logs of each module of the server for nearly 1 hour to facilitate subsequent positioning; selecting real charging piles and simulated charging piles, executing scheduled tasks, obtaining the results of each execution, and the pressure on the device and server CPU and memory, and obtaining statistical reports according to device attributes and task modules. Compared with the prior art, the present invention can divide the charging piles into multiple charging pile groups according to different product families and different uses; the statistical report is used to finally analyze which type of charging pile is prone to abnormalities during long-term stable operation; loading a certain charging pile business on the server to detect whether the server can run stably and complete the consumption of specific functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of charging pile testing, and in particular to a charging pile testing method and system. Background Art

[0002] The country is vigorously developing the new energy industry, and the charging pile market is still in its initial development stage, requiring continuous acquisition and analysis of data. The company's charging pile product family, models, and suppliers are expanding, and which charging pile has the best long-term stable operation capability and what kind of pressure the use of a large number of charging piles will put on the server require long-term data monitoring and analysis. Based on the above situation, it has become indispensable to monitor and count the data of online charging piles. The shortage of real charging pile resources in the laboratory also makes the batch use of simulated charging piles extremely important. The charging pile test and system in the existing technology are still mainly based on the single function of the real charging pile.

[0003] The shortcoming of the existing technology is that the data of charging piles has not been statistically analyzed over a long period of time according to product families, models, etc., which is not conducive to judging which charging pile has the best long-term stable operation capability; there are few laboratory resources and real charging piles, and a single simulated charging pile is more used to verify a single function. Whether the batch operation of a large number of charging piles will have an impact on the server requires long-term and stable observation.

[0004] The invention with publication number CN112445945A discloses a charging pile terminal equipment management system and management method, including equipment access service unit, authority management unit, asset management unit, data acquisition unit, data processing unit and remote upgrade unit, the equipment management service unit is respectively connected to the authority management unit and the asset management unit, the business processing service unit is respectively connected to the data acquisition unit and the remote upgrade unit, and a management method of the charging pile terminal equipment. A business server cluster is used to centrally manage and remotely debug DC charging piles and AC charging piles, and the collected charging pile data is classified and stored in different databases, and the information of different databases is detected to facilitate timely resolution of charging pile faults corresponding to different databases, and the charging pile data is centrally analyzed and processed to reduce operation and maintenance costs.

[0005] Although this solution classifies and stores the collected charging pile data, it only performs classification processing after the data collection is completed. The testing process of the charging piles still uses a general testing solution and cannot achieve targeted functional testing. Summary of the invention

[0006] The purpose of the present invention is to provide a charging pile testing method and system in order to overcome the defect that the data of charging piles in the above-mentioned prior art have not been statistically analyzed according to product families, models, etc. for a long time, which is not conducive to judging which charging pile has the best long-term stable operation capability.

[0007] The purpose of the present invention can be achieved by the following technical solutions:

[0008] A charging pile testing method comprises the following steps:

[0009] The charging piles to be tested are classified according to the charging pile numbers and family codes to generate multiple product families;

[0010] Task scripts are pre-set, and each task script has an identifier corresponding to a product family. According to the identifier, the task scripts are grouped according to the product family.

[0011] Set the task execution plan, control each charging pile to execute the task script corresponding to the product family of the charging pile according to the task execution plan;

[0012] The data changes and test results of the task scripts of each charging pile during the test process are obtained in real time to obtain statistical reports.

[0013] Furthermore, the execution process of the task script is specifically as follows:

[0014] Select one or more charging piles to perform tasks;

[0015] Select one or more task scripts to be executed from the task scripts corresponding to the product family of each charging pile;

[0016] According to the task execution plan corresponding to each charging pile, execute the task script to be executed corresponding to the charging pile; the task execution plan is a single plan or a timed plan. If it is a single plan, the corresponding task script to be executed is executed for each charging pile of the task to be executed in turn until all the selected task scripts are executed; if it is a timed plan, all the corresponding task scripts to be executed are executed for each charging pile of the task to be executed at a fixed time until the stop condition corresponding to the timed plan is met;

[0017] The execution results of each task script are stored in data.

[0018] Further, the charging pile includes a real charging pile and a simulated charging pile, and the testing method further includes performing data monitoring during the operation of the real charging pile;

[0019] The data monitoring process includes:

[0020] Monitor the service status of the activated real charging pile. If the service status is abnormal, store the data of the real charging pile at the current moment, including product family, device type, device model and version;

[0021] The number of abnormalities of real charging piles for each product family, each device type, each device model and each version is counted in the form of a report according to the preset unit time.

[0022] Furthermore, the acquisition of the statistical report is specifically as follows:

[0023] Acquire data changes during the test of the task script of each charging pile in real time to obtain a first statistical report;

[0024] The test results of the simulated charging piles are counted according to the classification of the product family to obtain a second statistical report;

[0025] The test results of the real charging piles are counted according to the classification of product families to obtain a third statistical report;

[0026] The monitoring data of the actual charging piles are counted according to the classification of product families to obtain a fourth statistical report.

[0027] Furthermore, the process of classifying the charging piles to be tested includes:

[0028] Get the number and family code of the charging pile to be tested, and import them into the table;

[0029] Multiple product families are defined in advance according to the family code. Each product family is set on the corresponding tab. Select the tab, read the table, and make the following judgments:

[0030] If the family codes of the charging piles in the imported table are not completely consistent, the import will fail and a failure prompt will be given, and the table will be imported again;

[0031] If the family code of the charging pile in the imported table is inconsistent with the family code corresponding to the current tab, the import fails and a failure prompt is given, and the table import is repeated;

[0032] If all the family codes in the imported table are exactly the same as the family codes corresponding to the current tab, the import is successful;

[0033] Import the table in real time based on the selected tab.

[0034] Furthermore, the task scripts are grouped according to the product families as follows:

[0035] Set up the task script and set an identifier corresponding to the product family for the task script. Select a tab for a product family and import the task script into the tab. If the identifier corresponding to the task script corresponds to the product family corresponding to the tab, the import is completed. If the task script has no label, the import fails and a failure prompt is given. Re-import the task script.

[0036] Furthermore, the multiple product families include extreme charging piles, light charging piles and public AC piles.

[0037] Furthermore, if the test result of the task script is a failure, all data of the test process within a preset first time will be packaged and saved.

[0038] Furthermore, the testing method also includes counting the number of execution failures of task scripts of different charging piles and the number of execution failures of different tasks under all charging piles.

[0039] The present invention also provides a charging pile testing system, comprising:

[0040] A writing unit is used to classify the charging piles to be tested according to the number and family code of the charging piles to generate multiple product families; task scripts are pre-set, each task script is provided with an identifier corresponding to the product family, and the task scripts are grouped according to the product family according to the identifier;

[0041] The logic test unit is used to set the task execution plan, control each charging pile to execute the task script corresponding to the product family of the charging pile according to the task execution plan;

[0042] A judgment unit, used to judge the test result of the task script;

[0043] The statistical analysis unit is used to obtain the data changes and test results of the task script of each charging pile in real time during the test process to obtain statistical reports.

[0044] Compared with the prior art, the present invention has the following advantages:

[0045] The present invention can divide charging piles into multiple charging pile groups according to different product families and different uses; the statistical report is used to finally analyze which type of charging piles are prone to abnormalities during long-term stable operation; a certain charging pile business is loaded on the server to detect whether the server can run stably and complete the consumption of specific functions. The system includes: a writing unit, a testing unit, a judgment unit and a statistical analysis unit, and achieves the same beneficial effects as the method.

[0046] The present invention realizes the grouping of charging piles and task scripts according to family codes, and also realizes the import process of charging piles and task scripts by family codes, which not only facilitates the classification and analysis of the long-term stable operation of each charging pile, but also improves the effectiveness and convenience of the grouping process. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of a charging pile testing method provided by an embodiment of the present invention;

[0048] Figure 2 A schematic diagram of an interface of a charging pile testing method provided by an embodiment of the present invention;

[0049] Figure 3 A schematic diagram of a flow chart of a charging pile testing method provided by an embodiment of the present invention;

[0050] Figure 4 A charging pile management diagram of a charging pile testing method provided by an embodiment of the present invention;

[0051] Figure 5 A task management diagram of a charging pile testing method provided by an embodiment of the present invention;

[0052] Figure 6 A diagram of the execution steps of a charging pile task simulation of a charging pile testing method provided by an embodiment of the present invention;

[0053] Figure 7 A diagram of the execution steps of a real charging pile task in a charging pile testing method provided by an embodiment of the present invention;

[0054] Figure 8 A diagram of real charging pile data monitoring steps for a charging pile testing method provided by an embodiment of the present invention;

[0055] Fig. 9 A schematic diagram of automatic log packaging and downloading of a charging pile testing method provided by an embodiment of the present invention;

[0056] Fig.10 A schematic diagram of a statistical report of a charging pile testing method provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0058] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0059] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0060] In the description of the present invention, it should be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings, or are the directions or positional relationships in which the inventive product is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present invention.

[0061] It should be noted that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0062] In addition, the terms "horizontal", "vertical" and the like do not mean that the components are required to be absolutely horizontal or suspended, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0063] Example 1

[0064] A charging pile testing method comprises the following steps:

[0065] The charging piles to be tested are classified according to the charging pile numbers and family codes to generate multiple product families;

[0066] Task scripts are pre-set, and each task script has an identifier corresponding to a product family. According to the identifier, the task scripts are grouped according to the product family.

[0067] Set the task execution plan, control each charging pile to execute the task script corresponding to the product family of the charging pile according to the task execution plan;

[0068] The data changes and test results of the task scripts of each charging pile during the test process are obtained in real time to obtain statistical reports.

[0069] As a preferred implementation, the charging pile includes a real charging pile and a simulated charging pile, and the testing method further includes monitoring data during the operation of the real charging pile;

[0070] The specific steps for obtaining statistical reports are as follows:

[0071] Acquire data changes during the test of the task script of each charging pile in real time to obtain a first statistical report;

[0072] The test results of the simulated charging piles are counted according to the classification of the product family to obtain a second statistical report;

[0073] The test results of the real charging piles are counted according to the classification of product families to obtain a third statistical report;

[0074] The monitoring data of the actual charging piles are counted according to the classification of product families to obtain a fourth statistical report.

[0075] In specific implementation, the method includes the following steps: selecting a real charging pile for multi-process patrol monitoring, and when the business status of the charging pile is abnormal, obtaining the key information of the charging pile at the current time, analyzing the key information according to different product families, models, versions, etc., and obtaining statistical reports; when the business status is abnormal, automatically packaging the logs of each module of the server in the past hour to facilitate subsequent positioning; selecting real charging piles and simulated charging piles, executing scheduled tasks, obtaining the results of each execution, and the pressure on the device and server CPU and memory, and obtaining statistical reports according to device attributes and task modules.

[0076] like Figure 1 and 3 As shown, the method flow is specifically as follows:

[0077] S1: Make a table of SN and family codes of multiple charging piles by product family;

[0078] S2: Use Python language and unittest test framework to edit the task scripts for simulating charging piles and various modules;

[0079] S3: Import charging piles and tasks that meet the requirements, and group the charging piles and tasks in different tabs;

[0080] S4: Select charging piles and tasks, and execute tasks on a scheduled basis for each charging pile;

[0081] S5: If the test fails, the logs of each module on the server within one hour are packaged and downloaded for subsequent positioning;

[0082] S6: Obtain data changes of the charging pile and the server during the task, and obtain a statistical report;

[0083] S7: Select a real charging pile and perform multi-process patrol according to the monitoring interval. When the charging pile service status is abnormal, record the current information of the charging pile, including product family, type, model, firmware version, etc.

[0084] S8: Count the test results of the simulated charging pile according to different attributes to obtain a statistical report;

[0085] S9: Count the test results of the real charging piles according to different combinations to obtain a statistical report;

[0086] S10: Count the monitoring data of the real charging piles according to different combinations to obtain a statistical report.

[0087] The following is a detailed description of the implementation process of the charging pile testing method of this embodiment.

[0088] 1. Interface management

[0089] like Figure 2 As shown, the interface is divided into different product family interfaces, real charging pile interface, simulated charging pile interface, task interface, and report interface;

[0090] Charging piles are divided into three categories according to their product families: ultra-high charging piles, light-charging piles and public AC piles. Each product family has an independent catalog.

[0091] The product family directory is divided into the interface of the real charging pile and the interface of the simulated charging pile;

[0092] The interface of the simulated charging pile implements two functions: charging pile import and task import;

[0093] The real charging pile interface is divided into two categories, one for data monitoring and the other for task execution;

[0094] The real charging pile implements two functions in the interface used to execute tasks: charging pile import and task import;

[0095] The real charging pile uses the data monitoring interface to implement two functions: charging pile import and data monitoring activation;

[0096] Each interface only stores charging piles and tasks that match the product family on the current tab.

[0097] 2. Management of charging piles

[0098] The process of classifying the charging piles to be tested includes:

[0099] Get the number and family code of the charging pile to be tested, and import them into the table;

[0100] Define multiple product families in advance according to the family code. Each product family is set on the corresponding tab. Select the tab, read the table, and make the following judgments:

[0101] If the family codes of the charging piles in the imported table are not completely consistent, the import will fail and a failure prompt will be given, and the table will be imported again;

[0102] If the family code of the charging pile in the imported table is inconsistent with the family code corresponding to the current tab, the import fails and a failure prompt is given, and the table import is repeated;

[0103] If all the family codes in the imported table are exactly the same as the family codes corresponding to the current tab, the import is successful;

[0104] Import the table in real time based on the selected tab.

[0105] like Figure 4 As shown, the specific implementation includes the following steps:

[0106] S301: Fill in the SN number and family code of the charging pile to be tested for long-term stability into an excel sheet;

[0107] S302: defining a script for importing charging piles in the backend script, so that the import of charging piles that do not meet the current product family fails and a prompt is given;

[0108] S303: Click the charging pile import button to read the table and determine the family code of the charging pile. If the product family of the current tab is satisfied and the product families of all charging piles are exactly the same, the import is successful and displayed on the front-end interface.

[0109] S304: If the charging pile family code in the imported table is inconsistent with the family code of the current product family, the import fails, a failure prompt is given, and the import interface is returned;

[0110] S305: If the charging pile family codes in the imported table are not completely consistent, the import fails, a failure prompt is given, and the import interface is returned;

[0111] S306: Data monitoring interface, no restrictions on import;

[0112] S307: Each charging pile can be deleted by clicking the delete button.

[0113] 3. Obtaining tasks

[0114] The task scripts are grouped according to the product family as follows:

[0115] Set up the task script and set an identifier corresponding to the product family for the task script. Select a tab for a product family and import the task script into the tab. If the identifier corresponding to the task script corresponds to the product family corresponding to the tab, the import is completed. If the task script has no label, the import fails and a failure prompt is given. Re-import the task script.

[0116] like Figure 5 As shown, the specific implementation includes the following steps:

[0117] S311: Use Python language and unittest test framework to edit task scripts. Each script is labeled to indicate which product families can execute the task. All product families can execute the task, which is indicated by "all";

[0118] S312: Import the tasks edited in the background through the task import button on the interface. Before importing, the identifier of each task is judged, and the tasks that match the current product family are automatically imported into the current interface.

[0119] S313: If there is a task without an identifier, the task import fails, and a failure message is given, specifically which task it is, and the interface for importing the task is returned;

[0120] S314: If the real charging pile interface is used for data monitoring, there is no need to import tasks;

[0121] S315: Tasks can be deleted on the front end without affecting back end scripts;

[0122] S316: The script written in the backend uses the task code to represent the unique identifier of the task, and the identifier cannot be repeated;

[0123] S317: After writing a new task and modifying the task, use the front-end synchronization button to synchronize the task to the front-end. If the identifiers are the same, the original task will be updated. If the identifiers are different, it means that a new task is added.

[0124] S318: If there is a scheduled schedule for the charging pile and the task when synchronizing the task, the synchronization fails and a prompt is given: Please cancel the task schedule first.

[0125] 4. Task script execution process

[0126] The execution process of the task script is as follows:

[0127] Select one or more charging piles to perform tasks;

[0128] Select one or more task scripts to be executed from the task scripts corresponding to the product family of each charging pile;

[0129] According to the task execution plan corresponding to each charging pile, execute the task script to be executed corresponding to the charging pile; the task execution plan is a single plan or a scheduled plan. If it is a single plan, the corresponding task script to be executed is executed for each charging pile to be executed in turn until all the selected task scripts are executed; if it is a scheduled plan, all the corresponding task scripts to be executed are executed for each charging pile to be executed at a scheduled time until the stop condition corresponding to the scheduled plan is met;

[0130] The execution results of each task script are stored in data.

[0131] The data monitoring process includes:

[0132] Monitor the service status of the activated real charging pile. If the service status is abnormal, store the data of the real charging pile at the current moment, including product family, device type, device model and version;

[0133] The number of abnormalities of real charging piles for each product family, each device type, each device model and each version is counted in the form of a report according to the preset unit time.

[0134] The specific implementation includes the task execution process of the simulated charging pile, the task execution process of the real charging pile and the data monitoring process of the real charging pile.

[0135] like Figure 6 As shown, the task execution process of the simulated charging pile is as follows:

[0136] S401: Selecting a single or multiple simulated charging piles to represent the simulated charging piles for executing the task;

[0137] S402: Select a single task or multiple tasks to be executed;

[0138] S403: Configure a timing plan, which can be executed once or at a scheduled time;

[0139] S404: If single execution is selected, each selected simulated charging pile executes the selected task until all the selected tasks are completed;

[0140] S405: If the scheduled execution is selected, each selected simulated charging pile will execute the selected task according to the set time, and all the selected tasks will be completed; until the scheduled plan is closed;

[0141] S406: storing data on the results of each simulated charging pile executing each task, and collecting statistics on the execution results after a single task is completed;

[0142] S407: When simulating the charging pile to perform tasks, the parameters of the server during each task are obtained for data storage, and statistics are performed after all tasks are completed to obtain a report on server data changes.

[0143] like Figure 7 As shown in the figure, the task execution process of the real charging pile:

[0144] S411: Selecting one or more real charging piles to represent the real charging piles to perform the task;

[0145] S412: Select a single task or multiple tasks to be executed;

[0146] S413: Configure a timing plan, which can be executed once or at a scheduled time;

[0147] S414: If single execution is selected, each selected real charging pile executes the selected task until all the selected tasks are completed;

[0148] S415: If the scheduled execution is selected, each selected real charging pile will execute the selected task according to the set time, and all the selected tasks will be completed; until the scheduled plan is closed;

[0149] S416: storing data on the results of each task executed by each real charging pile, and collecting statistics on the execution results after a single task is completed;

[0150] S417: When the real charging pile executes the task, the parameters of the charging pile and the server are obtained during each task and the data are stored separately. After all the tasks are completed, statistics are performed to obtain reports on the data changes of the charging pile and the server respectively.

[0151] like Figure 8 As shown in the figure, the data monitoring process of the real charging pile:

[0152] S421: Select a real charging pile to enable data monitoring, and do not perform data monitoring on unenabled devices;

[0153] S422: When it is detected that the service status of the charging pile is abnormal, the data of the current charging pile is obtained and stored, and the main data is divided into product family, device type, device model, version, etc.;

[0154] S423: Count the number of exceptions for each product family, each device type, each model or version on a monthly basis, and display them in the form of a report on the front end.

[0155] 5. Log automatic packaging and downloading process

[0156] like Fig. 9As shown, the log automatic packaging and downloading process includes the following steps in specific implementation:

[0157] S501: Select simulation equipment and tasks;

[0158] S502: Select real equipment and tasks;

[0159] S503: Detect execution result;

[0160] S504: When the execution result fails, the server logs within one hour are automatically packaged and downloaded;

[0161] S505: The log is stored in the internal service address, and the log address is displayed after the device fails the task.

[0162] 6. The process of obtaining statistical reports

[0163] like Fig.10 As shown, the process of obtaining statistical reports includes the following steps in specific implementation:

[0164] S601: Enable data monitoring for real charging piles;

[0165] S602: When the charging pile service is abnormal, the current charging pile information is stored, mainly including product family, device type, device model, device supplier, firmware version and other information;

[0166] S603: Counting the number and time of abnormal service status according to important attributes of the charging pile;

[0167] S604: Select a real device to execute the task;

[0168] S605: Counting the number of times that the task execution fails on different charging piles and the number of times that the task execution fails on different charging piles;

[0169] S606: Select a simulated device to execute a task;

[0170] S607: Counting the number of times that the task execution fails on different charging piles and the number of times that the task execution fails on different charging piles;

[0171] S608: According to different combinations, reports of different product attributes and reports of different task execution results are obtained.

[0172] This embodiment also provides a charging pile testing system, including:

[0173] A writing unit is used to classify the charging piles to be tested according to the number and family code of the charging piles to generate multiple product families; task scripts are pre-set, each task script is provided with an identifier corresponding to the product family, and the task scripts are grouped according to the product family according to the identifier;

[0174] In this embodiment, the programming language of the writing unit is python, the front-end framework is bootstrap, and the use case framework is unittest. The simulation charging pile, front-end interface and test tasks are written;

[0175] The logic test unit is used to set the task execution plan, control each charging pile to execute the task script corresponding to the product family of the charging pile according to the task execution plan;

[0176] It is equivalent to performing logic testing of charging piles according to the test tasks;

[0177] A judgment unit, used to judge the test result of the task script;

[0178] This is equivalent to automatically packaging and downloading logs when logic tests fail;

[0179] The statistical analysis unit is used to obtain the data changes and test results of the task script of each charging pile in real time during the test process to obtain statistical reports.

[0180] This is equivalent to storing the test results and then performing statistical analysis to obtain statistical reports.

[0181] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A charging pile testing method, characterized in that: The following steps are involved: The charging piles to be tested are classified according to the number and family code of the charging piles, and multiple product families are generated; including: obtaining the number and family code of the charging pile to be tested, and importing them into a table; defining multiple product families according to the family code in advance, each product family is set on a corresponding tab, selecting a tab, reading the table, and making the following judgments: if the family code of the charging pile in the imported table is not completely consistent, the import fails, and a failure prompt is given, and the table is imported again; if the family code of the charging pile in the imported table is inconsistent with the family code corresponding to the current tab, the import fails, and a failure prompt is given, and the table is imported again; if all the family codes in the imported table are completely consistent with the family code corresponding to the current tab, the import is successful; import the table in real time according to the selected tab; Task scripts are pre-set, and each task script has an identifier corresponding to a product family. According to the identifier, the task scripts are grouped according to the product family. Set the task execution plan, control each charging pile to execute the task script corresponding to the product family of the charging pile according to the task execution plan; The data changes and test results of the task scripts of each charging pile during the test process are obtained in real time to obtain statistical reports.

2. A charging pile testing method according to claim 1, characterized in that: The execution process of the task script is specifically as follows: Select one or more charging piles to perform tasks; Select one or more task scripts to be executed from the task scripts corresponding to the product family of each charging pile; According to the task execution plan corresponding to each charging pile, execute the task script to be executed corresponding to the charging pile; The task execution plan is a single plan or a timing plan. If it is a single plan, the corresponding task script to be executed is executed for each charging pile of the task to be executed in turn until all the selected task scripts are executed; if it is a timing plan, all corresponding task scripts to be executed are executed for each charging pile of the task to be executed at a fixed time until the stop condition corresponding to the timing plan is met; The execution results of each task script are stored in data.

3. A charging pile testing method according to claim 1, characterized in that: The charging pile includes a real charging pile and a simulated charging pile, and the testing method further includes performing data monitoring during the operation of the real charging pile; The data monitoring process includes: Monitor the service status of the activated real charging pile. If the service status is abnormal, store the data of the real charging pile at the current moment, including product family, device type, device model and version; The number of abnormalities of real charging piles for each product family, each device type, each device model and each version is counted in the form of a report according to the preset unit time.

4. A charging pile testing method according to claim 3, characterized in that: The acquisition of the statistical report is specifically as follows: Acquire data changes during the test of the task script of each charging pile in real time to obtain a first statistical report; The test results of the simulated charging piles are counted according to the classification of the product family to obtain a second statistical report; The test results of the real charging piles are counted according to the classification of product families to obtain a third statistical report; The monitoring data of the actual charging piles are counted according to the classification of product families to obtain a fourth statistical report.

5. A charging pile testing method according to claim 1, characterized in that: The task scripts are grouped according to product families as follows: Set up the task script and set an identifier corresponding to the product family for the task script. Select a tab for a product family and import the task script into the tab. If the identifier corresponding to the task script corresponds to the product family corresponding to the tab, the import is completed. If the task script has no label, the import fails and a failure prompt is given. Re-import the task script.

6. A charging pile testing method according to claim 1, characterized in that: The multiple product families include extreme charging piles, light charging piles and public AC piles.

7. A charging pile testing method according to claim 1, characterized in that: If the test result of the task script is a failure, all data of the test process within the preset first time will be packaged and saved.

8. A charging pile testing method according to claim 7, characterized in that: The testing method further includes counting the number of execution failures of task scripts of different charging piles and the number of execution failures of different tasks under all charging piles.

9. A charging pile testing system, characterized in that: include: A writing unit is used to classify the charging piles to be tested according to the number and family code of the charging piles to generate multiple product families; a task script is pre-set, each task script is provided with an identifier corresponding to the product family, and the task script is grouped according to the product family according to the identifier; wherein, the charging piles to be tested are classified according to the number and family code of the charging piles to be tested to generate multiple product families, including: obtaining the number and family code of the charging pile to be tested, and importing them into a table; pre-defining multiple product families according to the family code, each product family is set on a corresponding tab, selecting the tab, reading the table, and making the following judgments: if the family code of the charging pile in the imported table is not completely consistent, the import fails, and a failure prompt is given, and the table is imported again; if the family code of the charging pile in the imported table is inconsistent with the family code corresponding to the current tab, the import fails, and a failure prompt is given, and the table is imported again; if all the family codes in the imported table are completely consistent with the family code corresponding to the current tab, the import is successful; the table is imported in real time according to the selected tab; The logic test unit is used to set the task execution plan, control each charging pile to execute the task script corresponding to the product family of the charging pile according to the task execution plan; A judgment unit, used to judge the test result of the task script; The statistical analysis unit is used to obtain the data changes and test results of the task script of each charging pile in real time during the test process to obtain statistical reports.