Charging data test processing method, device, and equipment
By selecting and processing charging data templates, generating charging current test data, and using a distributed processing engine for analysis, the problem of incomplete charging data testing in the existing technology is solved and the test effect is improved.
Patent Information
- Application Number
- CN202211051912.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-31
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2042-08-31
AI Technical Summary
The prior art cannot guarantee the comprehensiveness of charging data testing, resulting in poor testing results.
By obtaining the test request, selecting the corresponding charging data template, and processing the template according to the test data generation method to generate the charging current test data, the pre-configured distributed processing engine is used to analyze to determine whether the engine is normal.
It realizes the generation of more comprehensive charging and current test data, ensuring the improvement of test results.
Smart Images

Figure CN115407115B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to charging data testing technology, and in particular to a charging data testing processing method, device, and equipment. Background Art
[0002] At present, with the development of science and technology, new energy vehicles are becoming more and more popular in people's lives. During the charging process of new energy vehicles, a large amount of charging data will be reported. After these charging data are reported, the processing equipment will process these real-time charging data. Before the processing equipment product goes online, it is necessary to test the processing process of the charging data generated by the charging process of new energy vehicles. How to ensure that during the test process, rich charging flow data simulating the actual charging process can be generated more conveniently and the comprehensiveness of the test data is guaranteed is a big problem.
[0003] In the prior art, test data is directly generated according to charging data generated during an actual charging process, and the test data is used to perform testing.
[0004] However, the above method cannot guarantee the comprehensiveness of the test data, and thus cannot guarantee a good test result. Summary of the invention
[0005] The present disclosure provides a charging data test processing method, device, and equipment to provide more comprehensive test data, thereby ensuring a better test effect.
[0006] According to a first aspect of the present disclosure, a charging data test processing method is provided, comprising:
[0007] Obtain a test request, and select at least one corresponding charging data template according to the charging device type, event type, and charging type to be tested in the test request; wherein the charging data template is pre-determined according to the charging data generated by the charging device during the charging process; wherein the charging device type is used to characterize the type of device serving the charging process; the event type is used to characterize the type of event generated during the charging process; and the charging type is used to characterize the type of charging at different charging powers;
[0008] Processing the charging data template according to the test data generation method in the test request to obtain charging current test data;
[0009] A preconfigured distributed processing engine is used to analyze and process the charging current test data, and based on the analysis result, it is determined whether the distributed processing engine is normal.
[0010] According to a second aspect of the present disclosure, a charging data test processing device is provided, comprising:
[0011] A template selection unit, used to obtain a test request, and select at least one charging data template corresponding to the charging device type, event type, and charging type to be tested in the test request; wherein the charging data template is pre-determined according to the charging data generated by the charging device during the charging process; wherein the charging device type is used to characterize the type of device serving the charging process; the event type is used to characterize the type of event generated during the charging process; and the charging type is used to characterize the type of charging under different charging powers;
[0012] a test data generating unit, configured to process the charging data template according to the test data generating mode in the test request to obtain charging current test data;
[0013] The test unit is used to use a preconfigured distributed processing engine to analyze and process the charging current test data, and determine whether the distributed processing engine is normal based on the analysis result.
[0014] According to a third aspect of the present disclosure, an electronic device is provided, including a memory and a processor; wherein:
[0015] The memory is used to store computer programs;
[0016] The processor is used to read the computer program stored in the memory and execute the charging data test processing method as described in the first aspect according to the computer program in the memory.
[0017] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the charging data test processing method as described in the first aspect is implemented.
[0018] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the charging data test processing method as described in the first aspect is implemented.
[0019] The charging data test processing method, device, and equipment provided by the present disclosure include: obtaining a test request, and selecting at least one corresponding charging data template according to the type of charging device to be tested, the event type, and the charging type in the test request; wherein the charging data template is determined in advance according to the charging data generated by the charging device during the charging process; wherein the charging device type is used to characterize the type of device serving the charging process; the event type is used to characterize the type of event generated during the charging process; the charging type is used to characterize the type of charging under different charging powers; according to the test data generation method in the test request, the charging data template is processed to obtain the charging flow test data; a pre-configured distributed processing engine is used to analyze and process the charging flow test data, and according to the analysis results, it is determined whether the distributed processing engine is normal. In the charging data test processing method, device, and equipment provided by the present solution, the charging data template can be determined in advance according to the charging data, and then the charging data template is selected and the charging flow test data is obtained according to the selected charging data template. In this way, more comprehensive charging flow test data can be easily obtained, thereby ensuring a better test effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 A schematic flow chart of a charging data test processing method according to an exemplary embodiment of the present disclosure;
[0022] Figure 2 A schematic flow chart of a charging data test processing method according to another exemplary embodiment of the present disclosure;
[0023] Figure 3 A schematic diagram of a charging data test processing process shown in an exemplary embodiment of the present disclosure;
[0024] Figure 4 A structural diagram of a charging data test processing device according to an exemplary embodiment of the present disclosure;
[0025] Figure 5 A structural diagram of a charging data test processing device according to another exemplary embodiment of the present disclosure;
[0026] Figure 6 The present invention is a structural diagram of an electronic device according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0027] At present, with the development of science and technology, new energy vehicles are becoming more and more popular in people's lives. During the charging process of new energy vehicles, a large amount of charging data will be reported. This also involves the data of various hardware devices such as charging guns, charging gun cabinets, rectifier cabinets, etc. during the charging process. After these charging data are reported, these real-time charging data will be processed. The sources of these charging data are diverse and complex, and there are normal reported data and abnormal reported data. Before the charging data processing equipment product goes online, it is necessary to test the processing process of the charging data generated by the charging process of new energy vehicles. How to ensure that during the test process, rich charging flow data simulating the actual charging process is generated more conveniently and the comprehensiveness of the test data is guaranteed is a big problem. In the prior art, test data is directly generated according to the charging data generated in the actual charging process, and the test data is used for testing.
[0028] However, there are some specific scenarios that are difficult to achieve during the actual charging process, so it is difficult to simulate abnormal data in these specific scenarios, resulting in the inability to guarantee the comprehensiveness of the test data, and thus unable to guarantee a good test result.
[0029] In order to solve the above technical problems, in the solution provided by the present disclosure, a charging data template can be determined in advance according to the charging data, and then the charging data template can be selected and the charging current test data can be obtained according to the selected charging data template. In this way, more comprehensive charging current test data can be easily obtained, thereby ensuring a better test effect.
[0030] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0031] Figure 1 The figure is a flow chart of a charging data test processing method according to an exemplary embodiment of the present disclosure.
[0032] like Figure 1 As shown, the charging data test processing method provided in this embodiment includes:
[0033] Step 101, obtain a test request, and select at least one corresponding charging data template according to the charging device type, event type, and charging type to be tested in the test request; wherein the charging data template is pre-determined according to the charging data generated by the charging device during the charging process; wherein the charging device type is used to characterize the type of device serving the charging process; the event type is used to characterize the type of event generated during the charging process; and the charging type is used to characterize the type of charging under different charging powers.
[0034] The method provided by the present disclosure may be executed by an electronic device with computing capabilities, such as a computer. The electronic device may obtain a test request and may select at least one charging data template corresponding to the charging device type, event type, and charging type to be tested in the test request.
[0035] Among them, charging equipment is used to represent the equipment that serves the charging process, such as charging piles, charging guns, new energy vehicles, ground locks, power distribution cabinets, charging gun cabinets, rectifier cabinets and other equipment.
[0036] Specifically, before obtaining the test request, a charging data template may be determined in advance based on the charging data generated by the charging device during the charging process. Specifically, multiple charging data templates may be generated based on different types of charging data.
[0037] Specifically, a test request can be generated based on the operation of the tester to test whether the distributed engine that processes the charging data is normal. The test request includes the type of charging device to be tested, the event type, and the charging type. At least one corresponding charging data template can be selected based on the type of charging device to be tested, the event type, and the charging type.
[0038] Among them, the charging device type is used to characterize the type of equipment that serves the charging process. The event type is used to characterize the type of event generated during the charging process. The charging type is used to characterize the type of charging under different charging powers. Specifically, a charging device type, an event type, and a charging type combined together can correspond to a charging data template. Furthermore, there can be multiple types of charging device types to be tested in the test request, there can be multiple types of event types, and there can be multiple types of charging types. The combination of different charging device types, different event types, and different charging types can correspond to multiple charging data templates.
[0039] Step 102: Process the charging data template according to the test data generation method in the test request to obtain charging current test data.
[0040] Specifically, the test request also includes a test data generation method, and the selected charging data template can be processed according to the test data generation method to obtain the charging current test data.
[0041] For example, if only one charging data template is selected, the duration of the charging data template may be set, or the data in the charging data template may be modified to obtain charging current test data.
[0042] For example, if there are multiple selected charging data templates, the multiple charging data templates can be combined, and the order of the charging data templates, the interval time between the charging data templates, and the duration of each charging data template can be set to obtain charging current test data.
[0043] Specifically, the processing of the charging data template can simulate a wealth of charging flow data in the actual charging process, which can simulate both normal charging data and abnormal charging data, thereby more conveniently obtaining more comprehensive charging flow test data.
[0044] Step 103: Use the pre-configured distributed processing engine to analyze and process the charging current test data, and determine whether the distributed processing engine is normal based on the analysis result.
[0045] Among them, the distributed processing engine (Flink) can support stream processing. Specifically, a pre-configured distributed processing engine can be used to analyze and process the charging flow test data, such as identifying and filtering erroneous data in the charging flow test data, or modifying erroneous data. And the results of the analysis can be saved in a preset database. It is convenient for testers to obtain the results of the analysis from the preset database, and determine whether the distributed processing engine is normal based on the results of the analysis.
[0046] Specifically, using more comprehensive charging current test data for testing can ensure a better test result.
[0047] The charging data test processing method provided by the present disclosure includes: obtaining a test request, and selecting at least one corresponding charging data template according to the charging device type, event type, and charging type to be tested in the test request; wherein the charging data template is determined in advance according to the charging data generated by the charging device during the charging process; wherein the charging device type is used to characterize the type of device serving the charging process; the event type is used to characterize the type of event generated during the charging process; the charging type is used to characterize the type of charging under different charging powers; according to the test data generation method in the test request, the charging data template is processed to obtain the charging flow test data; the pre-configured distributed processing engine is used to analyze and process the charging flow test data, and according to the analysis results, it is determined whether the distributed processing engine is normal. In the method adopted by the present disclosure, the charging data template can be determined in advance according to the charging data, and then the charging data template is selected and the charging flow test data is obtained according to the selected charging data template. In this way, more comprehensive charging flow test data can be easily obtained, thereby ensuring a better test effect.
[0048] Figure 2 The figure is a flowchart of a charging data test processing method according to another exemplary embodiment of the present disclosure.
[0049] like Figure 2 As shown, the charging data test processing method provided in this embodiment includes:
[0050] Step 201, acquiring charging data generated by a charging device during a charging process, and acquiring charging data matching a preset screening condition according to a preset screening condition.
[0051] Specifically, the charging data generated by various charging devices during the charging process can be obtained. Then, according to the preset filtering conditions, the charging data matching the filtering conditions is obtained. For example, if one of the preset filtering conditions is: the charging device type is a charging pile, the event type is start charging, and the charging type is supercharging, then it can be determined whether the charging data satisfies the conditions that the charging device type is a charging pile, the event type is start charging, and the charging type is supercharging. If so, the charging data matches this filtering condition.
[0052] In one implementable manner, the preset screening condition is a screening condition pre-set according to actual conditions, and may include one or more of the following combinations: charging device type, event type, and charging type.
[0053] Among them, the charging device type is used to characterize the type of equipment serving the charging process; the event type is used to characterize the type of event generated during the charging process; and the charging type is used to characterize the type of charging under different charging powers.
[0054] In one implementable manner, the charging equipment types include at least one of the following: charging piles, charging guns, new energy vehicles, ground locks, distribution cabinets, charging gun cabinets, and rectifier cabinets; the event types include at least one of the following: charging start, charging process, charging end, and charging alarm; in order of charging power from large to small, the charging types include at least one of the following: super charging, extreme charging, and light charging.
[0055] Among them, the charging alarm is the alarm information generated by each charging device during the charging process. For example, if the charging gun is broken, an alarm message will be generated; for example, if the charging pile is broken, an alarm message will also be generated.
[0056] Step 202: Determine a corresponding charging data template according to the screening condition and the charging data corresponding to the screening condition.
[0057] For example, one of the preset screening conditions is: the charging device type is a charging pile, the event type is start charging, and the charging type is supercharging. Then, it can be determined whether the charging data satisfies the charging device type of a charging pile, the event type is start charging, and the charging type is supercharging. If the charging data satisfies the charging device type of a charging pile, the event type is start charging, and the charging type is supercharging, a charging data template can be determined based on the charging data. Specifically, the charging data can be loaded in JavaScript Object Notation (JSON) format first, and then a charging data template can be directly generated. It is also possible to load the charging data in JSON format, modify the data as needed, and generate a charging data template. Among them, JSON is a lightweight data exchange format.
[0058] Specifically, the charging data template may include data type, device type, terminal information, and other data information such as charging flow information generated during the charging process. For example, the charging data template may include: charging device number, timestamp, charging device status, charging device data, and other data information.
[0059] Furthermore, the charging data template can be stored in the MySQL database by connecting to the relational database management system (MySQL) through PyMySQL in the Python library. Among them, Python is a computer programming language. PyMySQL is an interface that connects Python to the MySQL database server. In simple terms, Pymysql is a third-party module for Python to operate the MySQL database.
[0060] Specifically, different charging device types, different event types, and different charging types can be combined into a variety of different screening conditions. Each screening condition corresponds to a charging data template. Therefore, multiple charging data templates can be obtained.
[0061] Specifically, a list of charging data templates may be generated based on a plurality of charging data templates, and operations such as adding, editing, and deleting charging data templates may be performed in the list.
[0062] Step 203, obtain a test request, and select at least one corresponding charging data template according to the charging device type, event type, and charging type to be tested in the test request; wherein the charging device type is used to characterize the type of device serving the charging process; the event type is used to characterize the type of event generated during the charging process; and the charging type is used to characterize the type of charging under different charging powers.
[0063] Specifically, a test request can be generated based on the tester's operation to test whether the distributed engine that processes the charging data is normal. The test request includes the charging device type to be tested, the event type, and the charging type. According to the charging device type, event type, and charging type to be tested, at least one corresponding charging data template can be selected. Among them, the charging device type is used to characterize the type of equipment serving the charging process; the event type is used to characterize the type of event generated during the charging process; and the charging type is used to characterize the type of charging at different charging powers.
[0064] For example, if the charging device type to be tested is a charging pile, the event type is start charging, and the charging type is supercharging, then the corresponding charging data template can be selected, whose charging device type is a charging pile, the event type is start charging, and the charging type is supercharging.
[0065] Step 204, setting the interval time between each charging data template, setting the duration of the charging data template, and setting the change parameters of the preset variable data in the charging data template during the duration, to obtain charging current test data.
[0066] Specifically, if only one charging data template is selected, the duration of the charging data template can be set, the change parameters of the preset variable data in the charging data template during the duration can be set, and the data in the charging data template can be modified to obtain the charging current test data.
[0067] If there are multiple charging data templates selected, the multiple charging data templates can be combined, and the order of the charging data templates and the interval time between the charging data templates can be set. The duration of each charging data template can be set, and the change parameters of the preset variable data in the charging data template during the duration can be set. The data in the charging data template can also be modified to obtain the charging current test data.
[0068] In one implementable manner, the preset variable data in the charging data template includes at least one of the following: power data, temperature data, and time data; correspondingly, the change parameters of the preset variable data include at least one of the following: a first change parameter of the power data, a second change parameter of the temperature data, and a third change parameter of the time data.
[0069] The power data may refer to the power used by the charging device during the charging process. The temperature data may refer to the temperature of the charging device during the charging process. The time data may refer to the duration of the charging process of the charging device.
[0070] For example, in the process of simulating the charging of a new energy vehicle, a first variation parameter of the amount of charge of the new energy vehicle during the charging process can be set. The normal charging data or abnormal charging data of the new energy vehicle during the charging process can be simulated according to the first variation parameter. For example, under normal circumstances, the amount of charge of the new energy vehicle during the charging process increases over time. Therefore, if a positive value is set for the first variation parameter, the normal charging data of the new energy vehicle during the charging process can be simulated. If a negative value is set for the first variation parameter, the abnormal charging data of the new energy vehicle during the charging process can be simulated.
[0071] Similarly, for example, a second change parameter of the temperature data of the charging pile during the charging process may be set. Alternatively, a third change parameter of the time data of the charging gun during the charging process may be set.
[0072] Specifically, these processing of the charging data template can simulate a wealth of charging flow data in the actual charging process, which can simulate both normal charging data and abnormal charging data, and can more conveniently obtain more comprehensive charging flow test data.
[0073] Step 205, according to the environment information in the test request, select a corresponding sending address, and send the charging current test data to the sending address; and use the distributed processing engine to obtain the charging current test data from the sending address.
[0074] Specifically, the test request may also include environment information, and the environment in which the test is performed may be determined through the environment information.
[0075] Specifically, before obtaining the test request, an environment information list may be pre-set, the environment information list including a plurality of corresponding relationships between environment information and sending addresses. Further, the environment information list may be added, edited, deleted, etc. according to the operation instruction.
[0076] In an implementable manner, the environment information includes at least one of the following: a test environment and a pre-release environment.
[0077] Specifically, the environmental information may include a test environment and a pre-send environment. Different environmental information corresponds to different sending addresses. The sending address corresponding to the environmental information in the test request can be selected. The charging current test data is sent to the sending address. Then, the distributed processing engine can be used to obtain the charging current test data from the sending address.
[0078] The sending address corresponding to the test environment includes the address of the first message middleware and the first topic information corresponding to each charging type in the first message middleware; the sending address corresponding to the pre-release environment includes the address of the second message middleware and the second topic information corresponding to each charging type in the second message middleware.
[0079] Specifically, the charging flow test data can be sent using message middleware (kafka) technology. Specifically, the address of the message middleware corresponding to different environmental information and the topic information (topic) corresponding to each charging type in the message middleware can be pre-set. The address of the message middleware includes the Internet Protocol (IP) address and port number of the group.
[0080] Specifically, the IP address and port number of the corresponding message middleware group can be selected according to different environmental information, as well as the subject information corresponding to each charging type in the corresponding message middleware, and the charging flow test data can be sent out. Then, the distributed processing engine can be used to obtain the charging flow test data from the message middleware.
[0081] Specifically, when sending the charging current test data, a producer can be created in advance, and then the Kafka Producer in the Kafka library can be introduced. The message is sent through the pre-created producer, thereby completing the sending of the charging current test data.
[0082] Furthermore, before sending the charging current test data, the sending order of each test data in the charging current test data can be set. For example, each test data in the charging current test data can be sent randomly instead of in the original order. This method can make the charging current test data used for testing more comprehensive to a certain extent.
[0083] Step 206: Use the pre-configured distributed processing engine to analyze and process the charging current test data, and determine whether the distributed processing engine is normal based on the analysis result.
[0084] Specifically, the principle and implementation of step 206 are similar to those of step 103 and will not be described in detail.
[0085] Figure 3The figure is a schematic diagram of a charging data test processing process according to an exemplary embodiment of the present disclosure.
[0086] like Figure 3 As shown, after obtaining the test request, a charging data template can be selected according to the test request, and the selected charging data template can be processed to obtain the charging flow test data, and then the corresponding Kafka address can be selected according to the environmental information in the test request, and the charging flow test data can be sent to the Kafka address. Flink can obtain the charging flow test data from the Kafka address, and analyze and process the charging flow test data to obtain the analysis results, and the analysis results can be saved in a database, which can be a Remote Dictionary Server (Remote Dictionary Server, Redis) database or a MySQL database. The analysis results can be read from the database, and whether Flink is normal can be determined based on the analysis results.
[0087] Figure 4 The figure is a structural diagram of a charging data test processing device according to an exemplary embodiment of the present disclosure.
[0088] like Figure 4 As shown, the charging data test processing device 400 provided by the present disclosure includes:
[0089] The template selection unit 410 is used to obtain a test request, and select at least one corresponding charging data template according to the charging device type, event type, and charging type to be tested in the test request; wherein the charging data template is pre-determined according to the charging data generated by the charging device during the charging process; wherein the charging device type is used to characterize the type of device serving the charging process; the event type is used to characterize the type of event generated during the charging process; and the charging type is used to characterize the type of charging under different charging powers;
[0090] A test data generating unit 420, configured to process the charging data template according to the test data generating method in the test request to obtain charging current test data;
[0091] The test unit 430 is used to analyze and process the charging current test data using a pre-configured distributed processing engine, and determine whether the distributed processing engine is normal based on the analysis result.
[0092] Figure 5 It is a structural diagram of a charging data test processing device according to another exemplary embodiment of the present disclosure.
[0093] like Figure 5As shown, based on the above embodiment, the charging data test processing device 500 provided by the present disclosure further includes: a template generating unit 440, which is used to obtain the charging data generated by the charging device during the charging process;
[0094] Match charging data with preset filter conditions;
[0095] If it is determined that the charging data successfully matches the preset screening condition, a charging data template is determined according to the charging data.
[0096] In one achievable manner, the preset screening condition includes one or more of the following combinations: charging device type, event type, and charging type.
[0097] In one implementable manner, the charging equipment types include at least one of the following: charging piles, charging guns, new energy vehicles, ground locks, distribution cabinets, rectifier cabinets, and charging gun cabinets; the event types include at least one of the following: charging start, charging process, charging end, and charging alarm; in order of charging power from large to small, the charging types include at least one of the following: super charging, extreme charging, and light charging.
[0098] The test data generating unit 420 is specifically used to set the interval time between each charging data template, set the duration of the charging data template, and set the change parameters of the preset variable data in the charging data template during the duration to obtain the charging current test data.
[0099] In an implementable manner, the preset variable data in the charging data template includes at least one of the following: power data, temperature data, and time data;
[0100] The preset change parameter of the variable data includes at least one of the following: a first change parameter of the electric quantity data, a second change parameter of the temperature data, and a third change parameter of the time data.
[0101] The charging data test processing device 500 provided in the present disclosure further includes: a sending unit 450, which is used to select a sending address corresponding to the environment information in the test request and send the charging current test data to the sending address;
[0102] The distributed processing engine is used to obtain the charging current test data from the sending address.
[0103] In one achievable manner, the environment information includes at least one of the following: a test environment, a pre-release environment;
[0104] The sending address corresponding to the test environment includes the address of the first message middleware and the first topic information corresponding to each charging type in the first message middleware;
[0105] The sending address corresponding to the pre-release environment includes the address of the second message middleware and the second topic information corresponding to each charging type in the second message middleware.
[0106] Figure 6 The present invention is a structural diagram of an electronic device according to an exemplary embodiment of the present invention.
[0107] like Figure 6 As shown, the electronic device provided in this embodiment includes:
[0108] Memory 601;
[0109] Processor 602; and
[0110] Computer programs;
[0111] The computer program is stored in the memory 601 and is configured to be executed by the processor 602 to implement any of the above charging data test processing methods.
[0112] This embodiment further provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement any of the above charging data test processing methods.
[0113] This embodiment further provides a computer program product, including a computer program. When the computer program is executed by a processor, any of the above-mentioned charging data test processing methods is implemented.
[0114] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A charging data test processing method, characterized in that: include: Obtain a test request, and select at least one corresponding charging data template according to the charging device type, event type, and charging type to be tested in the test request; wherein the charging data template is determined in advance according to the charging data generated by the charging device during the charging process and preset screening conditions, and the preset screening conditions include one or more of the following combinations: charging device type, event type, and charging type; wherein the charging device type is used to characterize the type of equipment serving the charging process, and the charging device type includes at least one of the following: charging pile, charging gun, new energy vehicle, ground lock, distribution cabinet, rectifier cabinet, and charging gun cabinet; the event type is used to characterize the type of event generated during the charging process, and the event type includes at least one of the following: charging start, charging process, charging end, and charging alarm; the charging type is used to characterize the type of charging under different charging powers, and according to the order of charging power from large to small, the charging type includes at least one of the following: super charging, extreme charging, and light charging; Processing the charging data template according to the test data generation method in the test request to obtain charging current test data; A preconfigured distributed processing engine is used to analyze and process the charging current test data, and based on the analysis result, it is determined whether the distributed processing engine is normal.
2. The method according to claim 1, characterized in that The charging data template is determined in advance based on the charging data generated by the charging device during the charging process and preset screening conditions, including: Obtain charging data generated by the charging device during the charging process; According to a preset screening condition, acquiring charging data matching the screening condition; A corresponding charging data template is determined according to the screening condition and the charging data corresponding to the screening condition.
3. The method according to claim 1, characterized in that The step of processing the charging data template according to the test data generation method in the test request to obtain the charging current test data includes: The interval time between each charging data template is set, the duration of the charging data template is set, and the change parameters of the preset variable data in the charging data template during the duration are set to obtain the charging current test data.
4. The method according to claim 1, characterized in that The preset variable data in the charging data template includes at least one of the following: power data, temperature data, and time data; The preset change parameter of the variable data includes at least one of the following: a first change parameter of the electric quantity data, a second change parameter of the temperature data, and a third change parameter of the time data.
5. The method according to any one of claims 1 to 4, characterized in that: After obtaining the charging current test data, the method further includes: According to the environmental information in the test request, select a sending address corresponding thereto, and send the charging current test data to the sending address; The charging current test data is acquired from the sending address using the distributed processing engine.
6. The method according to claim 5, characterized in that The environmental information includes at least one of the following: a test environment and a pre-release environment; The sending address corresponding to the test environment includes the address of the first message middleware and the first topic information corresponding to each charging type in the first message middleware; The sending address corresponding to the pre-release environment includes the address of the second message middleware and the second topic information corresponding to each of the charging types in the second message middleware.
7. A charging data test processing device, characterized in that: include: A template selection unit, used to obtain a test request, and select at least one corresponding charging data template according to the charging device type, event type, and charging type to be tested in the test request; wherein the charging data template is determined in advance according to the charging data generated by the charging device during the charging process and preset screening conditions, and the preset screening conditions include one or more of the following combinations: charging device type, event type, and charging type; wherein the charging device type is used to characterize the type of equipment serving the charging process, and the charging device type includes at least one of the following: charging pile, charging gun, new energy vehicle, ground lock, distribution cabinet, rectifier cabinet, and charging gun cabinet; the event type is used to characterize the type of event generated during the charging process, and the event type includes at least one of the following: charging start, charging process, charging end, and charging alarm; the charging type is used to characterize the type of charging under different charging powers, and according to the order of charging power from large to small, the charging type includes at least one of the following: super charging, extreme charging, and light charging; a test data generating unit, configured to process the charging data template according to the test data generating mode in the test request to obtain charging current test data; The test unit is used to use a preconfigured distributed processing engine to analyze and process the charging current test data, and determine whether the distributed processing engine is normal based on the analysis result.
8. An electronic device, characterized in that: comprising a memory and a processor; wherein, The memory is used to store computer programs; The processor is used to read the computer program stored in the memory and execute the method according to any one of claims 1 to 6 according to the computer program in the memory.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method and device for processing charging data
CN104809246A
Evaluation method and device for centralized processing of network security equipment logs
CN112565000A
Test data construction method and device, computer readable medium and electronic equipment
CN114138679A