An in-situ automatic test system architecture method for a cloud-edge collaborative distribution edge gateway

By designing a cloud-edge collaborative distribution edge gateway automatic testing system, the complex design level of the distribution network edge gateway detection system in the existing technology is solved, efficient testing process and data synchronization is achieved, and equipment operation stability and detection efficiency are improved.

CN117714332BActive Publication Date: 2025-06-20GUANGDONG POWER GRID CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311799239.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2025-06-20
Estimated Expiration
2043-12-25

AI Technical Summary

Technical Problem

In the prior art, the detection system design level of the distribution network edge gateway is complex, resulting in low system detection efficiency and it is difficult to ensure the operational stability of edge gateway equipment.

Method used

Design a cloud-edge collaborative distribution edge gateway in-site automatic testing system architecture method to keep the distribution edge gateway in-site automatic testing system consistent with the distribution edge gateway remote automatic testing system, and realize data synchronization and efficient transmission between systems.

Benefits of technology

By simplifying the test process and synchronous control, the test quality and efficiency are improved, the complexity between systems is reduced, and the operation stability of edge gateway equipment is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117714332B_ABST
    Figure CN117714332B_ABST
Patent Text Reader

Abstract

An in-situ automatic test system architecture method for a cloud-edge collaborative distribution edge gateway. The cloud-edge collaborative distribution edge gateway in-situ automatic test system includes: an in-situ automatic test system for the distribution edge gateway and a remote automatic test system for the distribution edge gateway. The in-situ automatic test system for the distribution edge gateway acquires a number of devices to be detected and receives the detection tasks issued by the remote automatic test system for the distribution edge gateway, retrieves the test templates to test the number of devices to be detected, obtains the test results corresponding to the number of devices to be detected, determines that the in-situ automatic test system for the distribution edge gateway is communicatively connected to the remote automatic test system for the distribution edge gateway, and the in-situ automatic test system for the distribution edge gateway that has completed the test synchronizes the database to the remote automatic test system for the distribution edge gateway, solving the problem of low system detection efficiency caused by the complex system design level in the prior art and improving the detection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automatic testing of distribution edge gateways, and particularly to an in-situ automatic testing system architecture method for distribution edge gateways with cloud-edge collaboration. Background Art

[0002] Cloud-edge collaboration refers to the collaborative work across edges and regions by connecting multiple edge devices and cloud resources based on cloud computing and edge computing technologies. With the rapid development of the Internet and the popularization of intelligent devices, the cloud-edge collaboration industry has risen rapidly, showing great market potential. Distribution edge gateways are distributed in multiple scenarios such as 10kV feeders, ring main units, substations, and distributed power access points, and are key node devices supporting the cloud-edge intelligent scheduling system and the digital power grid equipment operation and maintenance system. With the continuous penetration of digital technologies, virtualization technologies and cloud-edge collaboration technologies have penetrated into devices such as distribution edge gateways, which are significantly different from traditional distribution terminals. Great changes have occurred in the process of realizing functions, the final function presentation, and the remote operation and maintenance methods of distribution edge gateways.

[0003] Currently, most of the detections for distribution network edge gateways still adopt the technical means of single-system manual detection. There is still a large gap between the detection technologies and means for technical verification of distribution network gateways and the actual requirements. The detection methods and technologies for emerging business functions and technologies are not yet perfect, and it is difficult to ensure the operation stability of edge gateway devices. At the same time, when designing cloud-edge-end systems in the existing technology, there are often "information islands" between systems, which hinder system communication. By adding integrated interface components to connect upper and lower layer systems, the detection system itself becomes hierarchically complex. When one of the systems fails, the entire system will stop working, ultimately resulting in low detection efficiency of the detection system.

[0004] Therefore, there is an urgent need to research and develop a technology that can reduce the levels between systems and improve the system detection efficiency. Summary of the Invention

[0005] Based on the above problems, the present invention proposes an in-situ automatic testing system architecture method for distribution edge gateways with cloud-edge collaboration, which solves the problem of low system detection efficiency caused by the complex design levels of the existing technology system.

[0006] To achieve the above object, an embodiment of the present invention provides an in-situ automatic testing system architecture method for distribution edge gateways with cloud-edge collaboration. The in-situ automatic testing system for distribution edge gateways with cloud-edge collaboration includes: an in-situ automatic testing system for distribution edge gateways and a remote automatic testing system for distribution edge gateways; wherein, all function modules of the in-situ automatic testing system for distribution edge gateways are set to be consistent with those of the remote automatic testing system for distribution edge gateways.

[0007] The architecture method of the local automatic test system for the distribution edge gateway with cloud-edge collaboration includes:

[0008] The local automatic test system for the distribution edge gateway obtains a number of devices to be detected and receives the detection tasks issued by the remote automatic test system for the distribution edge gateway.

[0009] When it is determined that the local automatic test system for the distribution edge gateway is synchronized with the remote automatic test system for the distribution edge gateway, the local automatic test system for the distribution edge gateway retrieves the test template to test the number of devices to be detected, and obtains the test results corresponding to the number of devices to be detected.

[0010] When it is determined that the local automatic test system for the distribution edge gateway cannot be synchronized with the remote automatic test system for the distribution edge gateway, the local automatic test system for the distribution edge gateway starts the local website service to perform the test and obtains the test results corresponding to the number of devices to be detected. When it is determined that the local automatic test system for the distribution edge gateway re-establishes communication with the remote automatic test system for the distribution edge gateway, the local automatic test system for the distribution edge gateway that has completed the test synchronizes the database to the remote automatic test system for the distribution edge gateway.

[0011] An architecture method of the local automatic test system for the distribution edge gateway with cloud-edge collaboration proposed in an embodiment of the present invention makes all functional modules of the local automatic test system for the distribution edge gateway consistent with the remote automatic test system for the distribution edge gateway, so that data transmission between systems is no longer affected by the "information island". The local automatic test system for the distribution edge gateway and the remote automatic test system for the distribution edge gateway can form separate main bodies of the cloud-edge system in terms of architecture. The cloud side can edit multiple tasks, and the edge side executes multiple tasks in sequence. At the same time, by efficiently distributing and processing data, the test process is simplified, and the test data is synchronously controlled, thereby ensuring the test quality and test efficiency.

[0012] Further, the local automatic test system for the distribution edge gateway includes: an application platform module, an interaction platform module, an execution platform module, a communication platform module, and a hardware module;

[0013] The application platform module is used to detect the access rights of test users, store user information and test template path information, and when it is determined that the test user has obtained secure access rights, create a test interface and match the corresponding user information and retrieve the test template path information.

[0014] The interactive platform module is used to transmit data between the modules of the local automatic test system for the power distribution edge gateway; wherein the data between the modules of the local automatic test system for the power distribution edge gateway includes: instructions issued and received by the application platform module, operation data of the test program and data information issued by the remote automatic test system for the power distribution edge gateway;

[0015] The execution platform module is used for editing test cases, managing test methods and processing report data;

[0016] The communication platform module is used to provide testing services;

[0017] The hardware module is used to obtain the equipment that needs to be detected by the overall system and to simulate the sending of status sequences, overcurrent tests and overvoltage tests supported by the detection equipment of the on-site automatic testing system of the power distribution edge gateway.

[0018] Furthermore, the local automatic test system of the power distribution edge gateway obtains a number of devices to be tested and receives a test task issued by the remote automatic test system of the power distribution edge gateway, specifically:

[0019] The on-site automatic testing system of the power distribution edge gateway verifies the authority of each device to be tested through the application platform module;

[0020] When it is determined that each device to be detected obtains security access rights, the execution platform module is controlled to retrieve the information of each device to be detected of the hardware module, and the detection task issued by the remote automatic testing system of the power distribution edge gateway is received through the interactive platform module.

[0021] Further, when it is determined that the local automatic test system of the power distribution edge gateway is communicating and synchronizing with the remote automatic test system of the power distribution edge gateway, the local automatic test system of the power distribution edge gateway calls the test template to test the several devices to be tested, and obtains the test results corresponding to the several devices to be tested, specifically:

[0022] When it is determined that the local automatic test system for the power distribution edge gateway is communicating and synchronizing with the remote automatic test system for the power distribution edge gateway, the local automatic test system for the power distribution edge gateway retrieves the test template and edits the test case through the execution platform module;

[0023] The local automatic test system of the power distribution edge gateway checks the verification code in the test case with the verification code of the remote automatic test system of the power distribution edge gateway, and after determining that the verification is successful, tests the plurality of devices to be tested to obtain a test result;

[0024] The in-situ automatic test system of the distribution edge gateway processes the reported data of the test results through the execution platform module, outputs a test result report, and synchronizes the test result report to the remote automatic test system of the distribution edge gateway.

[0025] Furthermore, the execution platform module further includes: a test template editing sub-module, a report template editing sub-module, an automatic test control sub-module, a report generation sub-module, and a multi-device synchronous test sub-module;

[0026] The test template editing sub-module is used to customize test items, load various communication platform instructions, and tester control parameters;

[0027] The report template editing sub-module is used to perform personalized custom editing on the test report;

[0028] The automatic test control sub-module is used to load the test template and perform tests one by one according to the functions in the test template; among them, the process of performing tests one by one according to the functions in the test template includes: starting the test, stopping the test, and ending the test;

[0029] The report generation sub-module is used to generate a test report after the automatic test control sub-module finishes the test;

[0030] The multi-device synchronous test sub-module is used to control multiple test devices to perform synchronous tests.

[0031] Furthermore, when it is determined that the in-situ automatic test system of the distribution edge gateway cannot communicate and synchronize with the remote automatic test system of the distribution edge gateway, the in-situ automatic test system of the distribution edge gateway starts a local website service to perform the test and obtains the test results corresponding to the several devices to be detected; when it is determined that the in-situ automatic test system of the distribution edge gateway re-establishes a communication connection with the remote automatic test system of the distribution edge gateway, the in-situ automatic test system that has completed the test synchronizes the database to the remote automatic test system of the distribution edge gateway, specifically:

[0032] When it is determined that the in-situ automatic test system of the distribution edge gateway cannot communicate and synchronize with the remote automatic test system of the distribution edge gateway, the in-situ automatic test system of the distribution edge gateway starts a local website service through the communication platform module to perform the test and obtains the test results corresponding to the several devices to be detected; among them, the local website service includes: the service of the northbound edge cluster simulation module, the service of the southbound scenario simulation module, and the service of other test interface modules;

[0033] The in-situ automatic test system of the distribution edge gateway processes the reported data of the test results through the execution platform module, outputs the test result report, and synchronizes the test result report to the remote automatic test system of the distribution edge gateway.

[0034] Further, the northbound edge cluster simulation module is used to simulate various protocol master stations in the edge cluster. Among them, the northbound edge cluster simulation module further includes: a network communication platform and a wired communication platform; the protocol master stations include: a plug-and-play simulation master station, a 104 communication simulation master station, a modbus simulation master station, and a 645 simulation master station.

[0035] Further, the southbound scenario simulation module is used for multi-protocol concurrent communication; among them, the southbound scenario simulation module internally simulates a 104 acquisition end device, a modbus acquisition end device, and a 645 acquisition end device.

[0036] Further, the other test interface module is used for other simulation test communications: among them, the other test interface module includes: a security test interface and a spare test interface;

[0037] The security test interface is used to test the security performance of the distribution edge gateway; among them, the security performance includes: the structure, functions, configuration, threats, and vulnerabilities of the distribution network gateway device.

[0038] Further, the application platform module further includes a function for setting the priority of the in-situ automatic test system of the distribution edge gateway and the remote automatic test system of the distribution edge gateway for testing;

[0039] When it is determined that the in-situ automatic test system of the distribution edge gateway and the remote automatic test system of the distribution edge gateway log in to the same test bench for testing at the same time, it is determined that the system user with a higher permission level will obtain the access permission and log in for testing; it is determined that the system user with a lower permission level will receive a prompt that the system is occupied. Description of the Drawings

[0040] Figure 1 It is a schematic diagram of the step flow of a method for the architecture of an in-situ automatic test system of a cloud-edge collaborative distribution edge gateway provided by an embodiment of the present invention;

[0041] Figure 2 It is a schematic diagram of the module structure of an in-situ automatic test system of a cloud-edge collaborative distribution edge gateway provided by an embodiment of the present invention;

[0042] Figure 3 It is a schematic diagram of the module structure of the in-situ automatic test system of the distribution edge gateway of an in-situ automatic test system of a cloud-edge collaborative distribution edge gateway provided by an embodiment of the present invention;

[0043] Figure 4 Schematic diagram of the execution platform module structure of a local automatic test system for a distribution edge gateway in a cloud-edge collaborative distribution edge gateway local automatic test system provided by an embodiment of the present invention;

[0044] Figure 5 Schematic diagram of the northbound edge cluster simulation module structure of a local automatic test system for a distribution edge gateway in a cloud-edge collaborative distribution edge gateway local automatic test system provided by an embodiment of the present invention;

[0045] Figure 6 Schematic diagram of the southbound scenario simulation module structure of a local automatic test system for a distribution edge gateway in a cloud-edge collaborative distribution edge gateway local automatic test system provided by an embodiment of the present invention;

[0046] Figure 7 Schematic diagram of the structure of other test interface modules of a local automatic test system for a distribution edge gateway in a cloud-edge collaborative distribution edge gateway local automatic test system provided by an embodiment of the present invention;

[0047] Figure 8 Schematic diagram of the step flow for setting the system priority of the application platform module of a local automatic test system for a distribution edge gateway in a cloud-edge collaborative distribution edge gateway local automatic test system provided by an embodiment of the present invention;

[0048] Figure 9 Schematic diagram of the step flow for test case management of the execution platform module of a local automatic test system for a distribution edge gateway in a cloud-edge collaborative distribution edge gateway local automatic test system provided by an embodiment of the present invention. Detailed implementation manners

[0049] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0050] Embodiment 1

[0051] See Figure 2 , Figure 2 which is a schematic diagram of the module structure of a local automatic test system for a cloud-edge collaborative distribution edge gateway provided by an embodiment of the present invention; in the embodiment of the present invention, the following is adopted as Figure 2An in-situ automatic test system for a cloud-edge collaborative distribution edge gateway is explained, including: an in-situ automatic test system 201 for the distribution edge gateway and a remote automatic test system 202 for the distribution edge gateway; wherein, it is set that all functional modules of the in-situ automatic test system of the distribution edge gateway are consistent with the remote automatic test system of the distribution edge gateway; see Figure 3 , Figure 3 is a schematic diagram of the module structure of the in-situ automatic test system of the distribution edge gateway of an in-situ automatic test system for a cloud-edge collaborative distribution edge gateway provided by an embodiment of the present invention; as Figure 3 shown, the in-situ automatic test system 201 of the distribution edge gateway includes: an application platform module 301, an interaction platform module 302, an execution platform module 303, a communication platform module 304, and a hardware module 305;

[0052] The application platform module 301 is used to detect the access rights of test users, store user information and test template path information, and when it is determined that the test user has obtained secure access rights, create a test interface and match the corresponding user information and retrieve the test template path information;

[0053] As an example of this embodiment, it is set that the application platform module 301 is consistent with the front-end operation interface function of the remote automatic test system 202 of the distribution edge gateway. The front-end operation interface function includes: B / S website service, data management, display management, test bench management, data management, user management, and permission management.

[0054] The interaction platform module 302 is used to transmit data between the modules of the in-situ automatic test system of the distribution edge gateway; wherein the data between the modules of the in-situ automatic test system of the distribution edge gateway includes: the instructions sent and received by the application platform module, the operation data of the test program, and the data information sent by the remote automatic test system of the distribution edge gateway;

[0055] As an example of this embodiment, the interaction platform module 302 is the data interaction center of the entire system. Whether it is the instructions sent and received by the front-end operation interface, the operations of the automatic test program, or the instructions sent by the remote automatic test system 202 of the distribution edge gateway, the interaction platform module 302 is used to call, control, and transmit data to each module in the system. It interacts with the front-end operation interface through the HTTP protocol and with the execution platform module 303 through the automatic test control protocol.

[0056] The execution platform module 303 is used for editing test cases, controlling test methods, and processing report data;

[0057] As an example of this embodiment, see Figure 4 , Figure 4Schematic diagram of the execution platform module structure of a local automatic test system for a distribution edge gateway with cloud-edge collaboration provided by an embodiment of the present invention; as Figure 4 shown, the execution platform module 303 further includes: a test template editing sub-module 401, a report template editing sub-module 402, an automatic test control sub-module 403, a report generation sub-module 404, and a multi-device synchronous test sub-module 405;

[0058] The test template editing sub-module 401 is used to customize test items, load various communication platform instructions and tester control parameters; it is worth mentioning that the test template format is set to the xml format.

[0059] The report template editing sub-module 402 is used to perform personalized custom editing on test reports; it is worth mentioning that the report template format is set to the doc / docx format.

[0060] The automatic test control sub-module 403 is used to load the test template and perform tests one by one according to the functions in the test template; among them, the process of performing tests one by one according to the functions in the test template includes: starting the test, stopping the test, and ending the test;

[0061] The report generation sub-module 404 is used to generate a test report after the automatic test control sub-module finishes the test;

[0062] The multi-device synchronous test sub-module 405 is used to control multiple test devices to perform synchronous tests.

[0063] The communication platform module 304 is used to provide test services;

[0064] As an example of this embodiment, the communication platform module can enable local website services, specifically including: services of the northbound edge cluster simulation module, services of the southbound scenario simulation module, and services of other test interface modules; in one example, see Figure 5 、 Figure 6 and Figure 7 , Figure 5 Schematic diagram of the northbound edge cluster simulation module structure of a local automatic test system for a distribution edge gateway with cloud-edge collaboration provided by an embodiment of the present invention; Figure 6 Schematic diagram of the southbound scenario simulation module structure of a local automatic test system for a distribution edge gateway with cloud-edge collaboration provided by an embodiment of the present invention; Figure 7 Schematic diagram of the structure of other test interface modules of a local automatic test system for a distribution edge gateway with cloud-edge collaboration provided by an embodiment of the present invention; as Figure 5 、Figure 6 and Figure 7 As shown in Figure 7 , the northbound edge cluster simulation module is used to simulate various protocol masters in the edge cluster. Among them, the northbound edge cluster simulation module further includes: a network communication platform 501 and a wired communication platform 502; the protocol masters include: a plug-and-play simulation master 503, a 104 communication simulation master 504, a modbus simulation master 505, and a 645 simulation master 506. The southbound scenario simulation module is used to perform multi-protocol concurrent communication; among them, the southbound scenario simulation module internally simulates a 104 acquisition end device 601, a simulated modbus acquisition end device 602, and a simulated 645 acquisition end device 603; among them, the southbound scenario simulation module can perform scenario simulations of a virtual power plant 604, a photovoltaic system 605, and a charging pile 606. The other test interface module is used to perform other simulation test communications: among them, the other test interface module includes: a security test interface 701 and a spare test interface 702; the security test interface 701 is used to test the security performance of the distribution edge gateway; among them, the security performance includes: the structure, functions, configurations, threats, and vulnerabilities of the distribution network gateway device.

[0065] The hardware module 305 is used to obtain the devices to be detected by the overall system and simulate and send the detection device support status sequence, overcurrent test, and overvoltage test of the in-situ automatic test system for the distribution edge gateway.

[0066] As an example of this embodiment, the hardware module 305 includes: a distribution edge gateway to be tested and a test device (test bench). The distribution edge gateway is the device to be detected by the overall system. The test device (test bench) is used to simulate and send the detection device support status sequence, overcurrent test, and overvoltage test of the distribution edge gateway. The tester control platform can receive the calls and controls of the automatic test system.

[0067] In this embodiment, an in-situ automatic test system for a cloud-edge collaborative distribution edge gateway is used to explain an architecture method for an in-situ automatic test system for a cloud-edge collaborative distribution edge gateway. This explanation is only one of the feasible explanations of the embodiments of the present invention and is not specially limited. It will not be elaborated below.

[0068] See Figure 1 , Figure 1 , which is a schematic flow chart of the steps of an architecture method for an in-situ automatic test system for a cloud-edge collaborative distribution edge gateway provided by an embodiment of the present invention. As Figure 1 shown in Figure 1 , the present invention proposes an architecture method for an in-situ automatic test system for a cloud-edge collaborative distribution edge gateway, including steps 101 to 105. The specific steps are as follows:

[0069] Step 101, the local automatic test system of the power distribution edge gateway obtains a number of devices to be tested and receives a test task issued by the remote automatic test system of the power distribution edge gateway;

[0070] As an example of this embodiment, the power distribution edge gateway on-site automatic test system verifies the authority of each device to be tested through the application platform module;

[0071] When it is determined that each device to be detected obtains security access rights, the execution platform module is controlled to retrieve the information of each device to be detected of the hardware module, and the detection task issued by the remote automatic testing system of the power distribution edge gateway is received through the interactive platform module.

[0072] Step 102, when it is determined that the local automatic test system of the power distribution edge gateway is communicating and synchronizing with the remote automatic test system of the power distribution edge gateway, the local automatic test system of the power distribution edge gateway retrieves a test template to test the plurality of devices to be tested, and obtains test results corresponding to the plurality of devices to be tested;

[0073] As an example of this embodiment, when it is determined that the local automatic test system of the power distribution edge gateway is communicating and synchronizing with the remote automatic test system of the power distribution edge gateway, the local automatic test system of the power distribution edge gateway retrieves the test template and edits the test case through the execution platform module;

[0074] The local automatic test system of the power distribution edge gateway checks the verification code in the test case with the verification code of the remote automatic test system of the power distribution edge gateway, and after determining that the verification is successful, tests the plurality of devices to be tested to obtain a test result;

[0075] The on-site automatic testing system for the power distribution edge gateway processes the report data of the test results through the execution platform module, outputs the test result report and synchronizes the test result report to the remote automatic testing system for the power distribution edge gateway.

[0076] Step 103, when it is determined that the local automatic test system of the power distribution edge gateway cannot communicate and synchronize with the remote automatic test system of the power distribution edge gateway, the local automatic test system of the power distribution edge gateway starts the local website service to perform the test and obtains the test results corresponding to the plurality of devices to be tested;

[0077] As an example of this embodiment, when it is determined that the in-situ automatic test system of the distribution edge gateway cannot communicate and synchronize with the remote automatic test system of the distribution edge gateway, the in-situ automatic test system of the distribution edge gateway starts the local website service through the communication platform module to execute the test, and obtains the test results corresponding to the several devices to be detected; wherein, the local website service includes: the service of the northbound edge cluster simulation module, the service of the southbound scenario simulation module, and the service of other test interface modules;

[0078] Step 104, when it is determined that the in-situ automatic test system of the distribution edge gateway re-establishes a communication connection with the remote automatic test system of the distribution edge gateway;

[0079] Step 105, the in-situ automatic test system of the distribution edge gateway that has completed the test synchronizes the database to the remote automatic test system of the distribution edge gateway.

[0080] As an example of this embodiment, the in-situ automatic test system of the distribution edge gateway processes the test result report data through the execution platform module, outputs a test result report, and synchronizes the test result report to the remote automatic test system of the distribution edge gateway.

[0081] See Figure 8 , Figure 8 is a schematic flowchart of the steps for setting the system priority of the application platform module of an in-situ automatic test system for a cloud-edge collaborative distribution edge gateway provided in an embodiment of the present invention. As Figure 8 shown, before the test process of executing the architecture method of the in-situ automatic test system for the cloud-edge collaborative distribution edge gateway, the in-situ automatic test system for the cloud-edge collaborative distribution edge gateway will perform permission verification on the user to be tested. When the situation where the in-situ automatic test system 201 of the distribution edge gateway and the remote automatic test system 202 of the distribution edge gateway log in simultaneously occurs, the application platform module 301 further includes setting the priority for the in-situ automatic test system 201 of the distribution edge gateway and the remote automatic test system 202 of the distribution edge gateway to perform the test; when it is determined that the in-situ automatic test system of the distribution edge gateway and the remote automatic test system of the distribution edge gateway log in to the same test bench for testing at the same time, it is determined that the system user with a higher permission level will obtain the access permission and log in for testing; it is determined that the system user with a lower permission level will receive a prompt that the system is occupied.

[0082] Specifically, as an example of this embodiment, in step 801, it is determined whether the in-situ automatic test system 201 of the distribution edge gateway and the remote automatic test system 202 of the distribution edge gateway log in to the same test bench for testing at the same time. If the result is no, the system login status is re-detected; if the result is yes, step 802 is entered, and it is determined whether the priority of the in-situ automatic test system 201 of the distribution edge gateway is higher than that of the remote automatic test system 202 of the distribution edge gateway. If the result is yes, the user of the in-situ automatic test system 201 of the distribution edge gateway will obtain access permission and log in for testing; if the result is no, the user of the in-situ automatic test system 201 of the distribution edge gateway will be prompted that the current test bench is occupied, and the operator is requested to contact the current test user for communication and handling.

[0083] See Figure 9 , Figure 9 FIG. is a schematic diagram of the test case management step process of the execution platform module of a cloud-edge collaborative in-situ automatic test system for a distribution edge gateway provided by an embodiment of the present invention. As Figure 9 shown, in the embodiment of the present invention, the test case management process is further explained. The test case management process is implemented in the execution platform module 303 and includes steps 901 to 904, which are specifically as follows:

[0084] Step 901: Upload test cases.

[0085] As an explanation of this embodiment, the administrator and expert roles can upload test cases, and only the administrator has the permission to delete test cases. The test cases should not be uploaded in a covering manner, and all previously uploaded test cases should be backed up.

[0086] Step 902: Classify and manage the test cases. The classification method is related to the test content and test type.

[0087] As an explanation of this embodiment, for example, type test templates, full inspection templates for arriving goods, and on-site inspection templates. The test cases are associated with the uploaded accounts.

[0088] Step 903: Download test cases.

[0089] As an explanation of this embodiment, the downloaded test cases can only be supported for download after being reviewed and approved by the reviewer.

[0090] Step 904: After the test cases are downloaded, the in-situ automatic test system 201 of the distribution edge gateway will compare the verification codes in the test cases with the verification codes of the remote automatic test system. Only after the verification is correct can they be used.

[0091] As an explanation of this embodiment, the operators who uploaded the test cases should be informed of the test cases that have not been reviewed and approved by the reviewer.

[0092] An architecture method for an in-situ automatic test system of a cloud-edge collaborative distribution edge gateway proposed by an embodiment of the present invention makes all functional modules of the in-situ automatic test system of the distribution edge gateway consistent with the remote automatic test system of the distribution edge gateway, so that data transmission between systems is no longer affected by the "information island". The in-situ automatic test system of the distribution edge gateway and the remote automatic test system of the distribution edge gateway can form separate main bodies of a cloud-edge system in terms of architecture. The cloud side can edit multiple tasks, and the edge side executes multiple tasks in sequence. At the same time, by efficiently distributing and processing data, the test process is simplified, and the test data is synchronously controlled, thereby ensuring the test quality and efficiency.

[0093] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the technical principle of the present invention, several improvements and deformations can be made, and these improvements and deformations should also be regarded as the protection scope of the present invention.

[0094] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0095] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" can explicitly or implicitly include at least one of these features. In the description of the present application, "a plurality" means two or more, unless otherwise specifically defined.

Claims

1. An in-situ automatic test system architecture method for a cloud-edge collaborative distribution edge gateway, characterized in that The in-situ automatic test system for the distribution edge gateway with cloud-edge collaboration includes: the in-situ automatic test system for the distribution edge gateway and the remote automatic test system for the distribution edge gateway; among them, it is set that all functional modules of the in-situ automatic test system for the distribution edge gateway are consistent with the remote automatic test system for the distribution edge gateway; The architecture method of the in-situ automatic test system for the distribution edge gateway with cloud-edge collaboration includes: The in-situ automatic test system for the distribution edge gateway obtains a number of devices to be detected and receives the detection tasks issued by the remote automatic test system for the distribution edge gateway; When it is determined that the in-situ automatic test system for the distribution edge gateway is synchronized with the remote automatic test system for the distribution edge gateway in communication, the in-situ automatic test system for the distribution edge gateway retrieves the test template to test the number of devices to be detected, and obtains the test results corresponding to the number of devices to be detected; When it is determined that the in-situ automatic test system for the distribution edge gateway cannot be synchronized with the remote automatic test system for the distribution edge gateway in communication, the in-situ automatic test system for the distribution edge gateway starts the local website service to perform the test and obtains the test results corresponding to the number of devices to be detected; when it is determined that the in-situ automatic test system for the distribution edge gateway re-establishes the communication connection with the remote automatic test system for the distribution edge gateway, the in-situ automatic test system that has completed the test synchronizes the database to the remote automatic test system for the distribution edge gateway.

2. The in-situ automatic test system architecture method for a cloud-edge collaborative distribution edge gateway according to claim 1, characterized in that The in-situ automatic test system for the distribution edge gateway includes: an application platform module, an interaction platform module, an execution platform module, a communication platform module, and a hardware module; The application platform module is used to detect the access rights of test users, store user information and test template path information, and when it is determined that the test user has obtained secure access rights, create a test interface and match the corresponding user information and retrieve the test template path information; The interaction platform module is used to transmit data between the modules of the in-situ automatic test system for the distribution edge gateway; among them, the data between the modules of the in-situ automatic test system for the distribution edge gateway includes: the instructions sent and received by the application platform module, the operation data of the test program, and the data information sent by the remote automatic test system for the distribution edge gateway; The execution platform module is used for editing test cases, controlling test methods, and processing report data; The communication platform module is used to provide test services; The hardware module is used to obtain the devices that need to be detected by the overall system and simulate the sending of the detection device support status sequence, overcurrent test, and overvoltage test of the in-situ automatic test system for the distribution edge gateway.

3. The in-situ automatic test system architecture method for a cloud-edge collaborative distribution edge gateway according to claim 2, characterized in that The in-situ automatic test system for the distribution edge gateway obtains a number of devices to be detected and receives the detection tasks issued by the remote automatic test system for the distribution edge gateway, specifically: The in-situ automatic test system for the distribution edge gateway verifies the permissions of each device to be detected through the application platform module; When it is determined that each device to be detected has obtained the secure access permission, control the execution platform module to retrieve the information of each device to be detected of the hardware module, and receive the detection tasks issued by the power distribution edge gateway remote automatic test system through the interaction platform module.

4. The in-situ automatic test system architecture method for a cloud-edge collaborative distribution edge gateway according to claim 3, characterized in that When it is determined that the power distribution edge gateway local automatic test system synchronizes communication with the power distribution edge gateway remote automatic test system, the power distribution edge gateway local automatic test system retrieves the test template to test the several devices to be detected, and obtains the test results corresponding to the several devices to be detected. Specifically: When it is determined that the power distribution edge gateway local automatic test system synchronizes communication with the power distribution edge gateway remote automatic test system, the power distribution edge gateway local automatic test system retrieves the test template and edits the test cases through the execution platform module; The power distribution edge gateway local automatic test system compares the verification codes in the test cases with the verification codes of the power distribution edge gateway remote automatic test system. After determining that the comparison is successful, it tests the several devices to be detected and obtains the test results; The power distribution edge gateway local automatic test system processes the reported data of the test results through the execution platform module, outputs the test result report, and synchronizes the test result report to the power distribution edge gateway remote automatic test system.

5. The in-situ automatic test system architecture method for a cloud-edge collaborative distribution edge gateway according to claim 4, characterized in that The execution platform module further includes: a test template editing sub-module, a report template editing sub-module, an automatic test control sub-module, a report generation sub-module, and a multi-device synchronous test sub-module; The test template editing sub-module is used to customize the test items and load various communication platform instructions and tester control parameters; The report template editing sub-module is used to perform personalized custom editing on the test report; The automatic test control sub-module is used to load the test template and test one by one according to the functions in the test template; among them, the process of testing one by one according to the functions in the test template includes: starting the test, stopping the test, and ending the test; The report generation sub-module is used to generate a test report after the automatic test control sub-module finishes the test; The multi-device synchronous test sub-module is used to control multiple test devices to perform synchronous tests.

6. The in-situ automatic test system architecture method for a cloud-edge collaborative distribution edge gateway according to claim 5, characterized in that When it is determined that the power distribution edge gateway local automatic test system cannot synchronize communication with the power distribution edge gateway remote automatic test system, the power distribution edge gateway local automatic test system starts the local website service to perform the test and obtains the test results corresponding to the several devices to be detected; when it is determined that the power distribution edge gateway local automatic test system re-establishes communication connection with the power distribution edge gateway remote automatic test system, the power distribution edge gateway local automatic test system that has completed the test synchronizes the database to the power distribution edge gateway remote automatic test system. Specifically: When it is determined that the in-situ automatic test system of the distribution edge gateway cannot communicate and synchronize with the remote automatic test system of the distribution edge gateway, the in-situ automatic test system of the distribution edge gateway starts the local website service through the communication platform module to execute the test, and obtains the test results corresponding to the several devices to be detected; wherein, the local website service includes: the service of the northbound edge cluster simulation module, the service of the southbound scenario simulation module, and the service of other test interface modules. The in-situ automatic test system of the distribution edge gateway processes the report data of the test results through the execution platform module, outputs the test result report, and synchronizes the test result report to the remote automatic test system of the distribution edge gateway.

7. The in-situ automatic test system architecture method for a cloud-edge collaborative distribution edge gateway according to claim 6, characterized in thatThe northbound edge cluster simulation module is used to simulate various protocol masters in the edge cluster. Among them, the northbound edge cluster simulation module further includes: a network communication platform and a wired communication platform; the protocol masters include: a plug-and-play simulation master, a 104 communication simulation master, a modbus simulation master, and a 645 simulation master.

8. A method for the architecture of an in-situ automatic test system for a cloud-edge collaborative distribution edge gateway, as claimed in claim 7, wherein The southbound scenario simulation module is used for multi-protocol concurrent communication; among them, the southbound scenario simulation module internally has a simulated 104 acquisition device, a simulated modbus acquisition device, and a simulated 645 acquisition device.

9. A method for the architecture of an in-situ automatic test system for a cloud-edge collaborative distribution edge gateway, as claimed in claim 8, wherein The other test interface module is used for other simulated test communications: among them, the other test interface module includes: a security test interface and a spare test interface; The security test interface is used to test the security performance of the distribution edge gateway; wherein, the security performance includes: the structure, functions, configurations, threats, and vulnerabilities of the distribution gateway device.

10. A method for the architecture of an in-situ automatic test system for a cloud-edge collaborative distribution edge gateway, as claimed in claim 9, wherein The application platform module further includes setting the priority for the in-situ automatic test system of the distribution edge gateway and the remote automatic test system of the distribution edge gateway to perform tests. When it is determined that the in-situ automatic test system of the distribution edge gateway and the remote automatic test system of the distribution edge gateway log in to the same test bench for testing at the same time, it is determined that the system user with a higher permission level will obtain the access permission and log in for testing; It is determined that the system user with a lower permission level will receive a prompt that the system is occupied.

Citation Information

Patent Citations

  • Off-lining test execution constructing method and apparatus

    CN101119239A

  • Region-related network marketing activity test method and device

    CN108427638A