CN115118643A - Intelligent network closing ring test method and system - Google Patents

Intelligent network closing ring test method and system Download PDF

Info

Publication number
CN115118643A
CN115118643A CN202210686212.4A CN202210686212A CN115118643A CN 115118643 A CN115118643 A CN 115118643A CN 202210686212 A CN202210686212 A CN 202210686212A CN 115118643 A CN115118643 A CN 115118643A
Authority
CN
China
Prior art keywords
test
case
gateway
tested
intelligent gateway
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210686212.4A
Other languages
Chinese (zh)
Inventor
徐启源
马楠
邓浩
黄湛华
胡冉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Power Supply Co ltd
Original Assignee
Shenzhen Power Supply Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Power Supply Co ltd filed Critical Shenzhen Power Supply Co ltd
Priority to CN202210686212.4A priority Critical patent/CN115118643A/en
Publication of CN115118643A publication Critical patent/CN115118643A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a system for testing a closing ring of an intelligent network, wherein the method comprises the following steps: determining a case database according to gateway information and a gateway test instruction of the intelligent gateway to be tested, generating a test scheme according to the case database, and carrying out case test on the intelligent gateway to be tested according to the test scheme to obtain a case test result; collecting communication response information of the intelligent gateway to be tested aiming at the node information; and generating a connection test result of the intelligent gateway to be tested according to the communication response information, and generating a closed-loop test report according to the connection test result and the case test result. The method can automatically perform case testing on the intelligent gateway to be tested based on the testing scheme, does not need a user to manually trigger the testing case, improves the testing efficiency of the intelligent gateway to be tested, can automatically generate the closed-loop testing report of the intelligent gateway to be tested based on the connection testing result and the case testing result, and effectively plays a role in closed-loop testing on the intelligent gateway to be tested.

Description

Intelligent network closing ring test method and system
Technical Field
The invention relates to the technical field of intelligent gateways, in particular to a method and a system for testing a closing ring of an intelligent network.
Background
The distribution internet of things is a novel power network form generated by deep fusion of the traditional industrial technology and the internet of things technology, and lean management requirements of a distribution network are met through comprehensive interconnection, intercommunication and interoperation among distribution network equipment. The power distribution internet of things system architecture is divided into four core levels of cloud, pipe, edge and end, and the intelligent gateway belongs to the edge equipment, but can also have partial characteristics of the end equipment. The intelligent gateway is an access unit for connecting objects to the internet in the power distribution internet of things, is a source responsible for providing basic data such as the running state, the equipment state, the environmental state and other auxiliary information of the power distribution network upwards, has the capability of connecting other terminals to each other downwards and executing decision commands or controlling on site, and is key equipment starting and ending in the power distribution internet of things framework, so that the test problem of the intelligent gateway is more and more valued by people for ensuring the stability of the working state of the intelligent gateway
In the existing intelligent gateway testing process, the intelligent gateway is generally tested based on a mode that a user manually triggers a test case to obtain a test result, but the intelligent gateway testing efficiency is low due to the fact that the intelligent gateway is manually tested.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a system for testing a closing ring of an intelligent network, aiming at solving the problem of low testing efficiency of the existing intelligent gateway.
The embodiment of the invention is realized in such a way that an intelligent network shutdown loop test method comprises the following steps:
receiving a gateway test instruction, and determining an intelligent gateway to be tested according to the gateway test instruction;
acquiring gateway information of the intelligent gateway to be tested, and determining a case database according to the gateway information and the gateway test instruction;
generating a test scheme according to the case database, and carrying out case test on the intelligent gateway to be tested according to the test scheme to obtain a case test result;
sending node information of an intelligent terminal to the intelligent gateway to be tested for communication connection, and collecting communication response information of the intelligent gateway to be tested for the node information;
and generating a connection test result of the intelligent gateway to be tested according to the communication response information, and generating a closed-loop test report of the intelligent gateway to be tested according to the connection test result and the case test result.
Further, the generating a test scenario according to the use case database includes:
generating at least one test state sequence according to the case database, and generating a test case according to each test state sequence, wherein the test state sequence comprises 1 or more continuous parameter states, and the test case comprises 1 or more test state sequences;
classifying the test cases according to test parameters in the test cases to obtain test case classifications, wherein the test case classifications comprise 1 or more test cases;
and generating the test scheme according to each test case classification, wherein the test scheme comprises 1 or more test case classifications.
Further, the generating at least one test state sequence according to the case database, and generating a test case according to each test state sequence includes:
generating an amplitude parameter, a phase parameter, a frequency parameter, a voltage channel name, a current channel name, a switch position and anti-shake time in the use case database;
combining the obtained amplitude parameter, the phase parameter, the frequency parameter, the voltage channel name, the current channel name, the switch position and the anti-shake time to obtain the test state sequence;
combining the test state sequences to obtain a remote measurement test case, a remote signaling test case and a remote control test case;
the test cases comprise the remote-measuring test case, the remote-signalling test case and the remote-control test case.
Further, the performing a case test on the intelligent gateway to be tested according to the test scheme to obtain a case test result includes:
acquiring a test environment of the test case, and setting parameters of the intelligent gateway to be tested according to the test environment;
performing parameter analysis on the test case to obtain a test item parameter table, and generating a test script according to the test item parameter table;
and carrying out case testing on the intelligent gateway to be tested according to the test script to obtain test data, and carrying out data comparison on the test data and standard data corresponding to the test case to obtain a case testing result.
Further, the generating a connection test result of the intelligent gateway to be tested according to the communication response information includes:
judging whether the communication response information stores the equipment information of the intelligent gateway to be tested or not;
if the communication response information stores the equipment information, acquiring the network connection state of the intelligent gateway to be tested and the intelligent terminal;
if the network connection state of the intelligent gateway to be tested and the intelligent terminal is a normal communication state, judging whether an equipment on-line notification is stored in the communication response information;
and if the communication response information stores the equipment on-line notification, judging that the connection test of the intelligent gateway to be tested is qualified.
Further, after the device on-line notification is stored in the communication response message, the method further includes:
sending a terminal disconnection instruction to the intelligent gateway to be tested, and receiving disconnection response information of the intelligent gateway to be tested aiming at the terminal disconnection instruction;
judging whether the disconnection response information stores an equipment offline notification or not;
and if the off-line notification of the equipment is stored in the disconnection response information, judging that the off-line detection of the intelligent gateway to be detected is qualified.
Further, the determining a use case database according to the gateway information and the gateway test instruction includes:
acquiring instruction information in the gateway test instruction, and judging whether a preset database is stored locally;
if the preset database is stored locally and the database identifier of the preset database is matched with the instruction information, setting the preset database as the case database;
if the preset database is not stored locally or the database identifier of the preset database is not matched with the instruction information, matching the gateway information and the instruction information with a pre-stored database query table to obtain a database address, wherein the database query table contains corresponding relations among different gateway information, instruction information and corresponding database addresses;
and performing database query according to the matched database address to obtain the use case database.
Still further, the method further comprises:
determining a protocol database according to the gateway information and the instruction information, and generating protocol test data according to each protocol stored in the protocol data;
and carrying out protocol test on the intelligent gateway to be tested according to the protocol test data to obtain a protocol test result.
Further, the protocol test is performed on the intelligent gateway to be tested according to the protocol test data to obtain a protocol test result, including:
respectively transmitting data to the intelligent gateway to be tested according to the protocol corresponding to each protocol test data, and acquiring protocol response information of the intelligent gateway to be tested aiming at each protocol test data;
respectively inquiring standard response information of each protocol test data, and performing information matching on the standard response information and the collected protocol response information aiming at each protocol test data;
if the standard response information of any protocol test data is not matched with the correspondingly acquired protocol response information, determining the protocol of the protocol test data as a fault protocol;
if the number of the fault protocols is larger than the number threshold, judging that the protocol test of the intelligent gateway to be tested is unqualified;
and if the number of the fault protocols is smaller than or equal to the number threshold, judging that the protocol test of the intelligent gateway to be tested is qualified.
Another objective of an embodiment of the present invention is to provide a system for testing a closed loop of an intelligent network, where the system includes:
the gateway determination module is used for receiving a gateway test instruction and determining the intelligent gateway to be tested according to the gateway test instruction;
the database determining module is used for acquiring gateway information of the intelligent gateway to be tested and determining a case database according to the gateway information and the gateway test instruction;
the case testing module is used for generating a testing scheme according to the case database and carrying out case testing on the intelligent gateway to be tested according to the testing scheme to obtain a case testing result;
the information acquisition module is used for sending the node information of the intelligent terminal to the intelligent gateway to be tested for communication connection and acquiring the communication response information of the intelligent gateway to be tested aiming at the node information;
and the test report generating module is used for generating a connection test result of the intelligent gateway to be tested according to the communication response information and generating a closed-loop test report of the intelligent gateway to be tested according to the connection test result and the case test result.
According to the embodiment of the invention, the case database is determined through the gateway information and the gateway test instruction, the test scheme of the intelligent gateway to be tested can be automatically generated based on the case database, the case test can be automatically carried out on the intelligent gateway to be tested based on the test scheme, the test case is not required to be manually triggered by a user, the test efficiency of the intelligent gateway to be tested is improved, the connection test result of the intelligent gateway to be tested can be automatically generated based on the communication response information by acquiring the communication response information of the intelligent gateway to be tested aiming at the node information, and the closed-loop test report of the intelligent gateway to be tested can be automatically generated based on the connection test result and the case test result, so that the closed-loop test effect on the intelligent gateway to be tested is effectively achieved.
Drawings
Fig. 1 is a flowchart of a method for testing a closed loop of an intelligent network according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for testing a closed loop of an intelligent network according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a closed loop test system for an intelligent network according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Fig. 1 is a flowchart of a method for testing intelligent network closed loops according to a first embodiment of the present invention, where the method for testing intelligent network closed loops can be applied to any system, and the method for testing intelligent network closed loops includes the steps of:
step S10, receiving a gateway test instruction, and determining an intelligent gateway to be tested according to the gateway test instruction;
acquiring gateway identifiers stored in a gateway test instruction, and matching the gateway identifiers stored in the gateway test instruction with a pre-stored gateway query table to obtain the intelligent gateway to be tested, wherein the gateway query table stores corresponding relations between different gateway identifiers and the corresponding intelligent gateways to be tested;
step S20, acquiring gateway information of the intelligent gateway to be tested, and determining a case database according to the gateway information and the gateway test instruction;
optionally, in this step, determining a case database according to the gateway information and the gateway test instruction includes:
acquiring instruction information in the gateway test instruction, and judging whether a preset database is stored locally; in the step, the preset database is obtained by respectively obtaining the locally pre-stored data;
if the preset database is stored locally and the database identifier of the preset database is matched with the instruction information, setting the preset database as the case database;
judging whether the obtained database identifier of the preset database is matched with the instruction information or not so as to judge whether the preset database is set as a use case database or not, wherein in the step, judging whether the database identifier of the preset database is stored in the instruction information or not so as to judge whether the database identifier of the preset database is matched with the instruction information or not;
specifically, when the instruction information is judged to store the database identifier of the preset database, the database identifier of the preset database is judged to be matched with the instruction information, and the preset database is set as a use case database;
if the preset database is not stored locally or the database identifier of the preset database is not matched with the instruction information, matching the gateway information and the instruction information with a pre-stored database query table to obtain a database address; the corresponding relation between different gateway information and instruction information in the database lookup table and corresponding database addresses;
performing database query according to the matched database address to obtain the use case database;
step S30, generating a test scheme according to the case database, and carrying out case test on the intelligent gateway to be tested according to the test scheme to obtain a case test result;
in the step, the test case can be automatically tested on the intelligent gateway to be tested based on the generated test scheme, the user does not need to manually trigger the test case, and the test efficiency of the intelligent gateway to be tested is improved;
step S40, sending the node information of the intelligent terminal to the intelligent gateway to be tested for communication connection, and collecting the communication response information of the intelligent gateway to be tested aiming at the node information;
the node information of the intelligent terminal is sent to the intelligent gateway to be tested for communication connection so as to trigger the communication connection between the intelligent gateway to be tested and the intelligent terminal, and the communication response information of the intelligent gateway to be tested for the node information is collected, so that the data base is improved for the connection test of the intelligent gateway to be tested, and the test accuracy of the intelligent gateway to be tested is improved;
step S50, generating a connection test result of the intelligent gateway to be tested according to the communication response information, and generating a closed loop test report of the intelligent gateway to be tested according to the connection test result and the case test result;
the method comprises the steps of acquiring communication response information of an intelligent gateway to be tested aiming at node information, automatically generating a connection test result of the intelligent gateway to be tested based on the communication response information, wherein the connection test result is used for representing the communication connection performance between the intelligent gateway to be tested and an intelligent terminal, and automatically generating a closed-loop test report of the intelligent gateway to be tested based on the connection test result and a case test result, so that the effect of closed-loop test on the intelligent gateway to be tested is effectively achieved.
Optionally, in this embodiment, the generating a connection test result of the intelligent gateway to be tested according to the communication response information includes:
judging whether the communication response information stores the equipment information of the intelligent gateway to be tested or not; whether the equipment information corresponding to the feedback of the intelligent gateway to be tested is available for the node information is judged by judging whether the equipment information of the intelligent gateway to be tested is stored in the communication response information; in the step, if the communication response information does not store the equipment information, the connection test of the intelligent gateway to be tested is judged to be unqualified, namely, the intelligent gateway to be tested is not effectively in communication connection with the intelligent terminal;
if the communication response information stores the equipment information, acquiring the network connection state of the intelligent gateway to be tested and the intelligent terminal;
if the network connection state of the intelligent gateway to be tested and the intelligent terminal is an incommunication state, judging that the connection test of the intelligent gateway to be tested is unqualified;
if the network connection state of the intelligent gateway to be tested and the intelligent terminal is a normal communication state, judging whether an equipment on-line notification is stored in the communication response information;
the device online notification is used for representing that the intelligent terminal is in communication connection with the intelligent gateway to be tested, and an online notification Message queue Telemetry Transport protocol (MQTT) is generated in the intelligent gateway to be tested according to the device information of the intelligent terminal;
if the communication response information stores the equipment on-line notification, judging that the connection test of the intelligent gateway to be tested is qualified; and if the communication response information does not store the equipment on-line notification, judging that the connection test of the intelligent gateway to be tested is unqualified.
Further, in this embodiment, after the device online notification is stored in the communication response information, the method further includes:
sending a terminal disconnection instruction to the intelligent gateway to be tested, and receiving disconnection response information of the intelligent gateway to be tested aiming at the terminal disconnection instruction; the terminal disconnection instruction is used for indicating the disconnection of the communication connection between the intelligent gateway to be tested and the intelligent terminal;
judging whether the off-line equipment notification is stored in the disconnection response information or not; and if the off-line notification of the equipment is stored in the disconnection response information, judging that the off-line detection of the intelligent gateway to be detected is qualified.
Further, in this embodiment, the method further includes:
determining a protocol database according to the gateway information and the instruction information, and generating protocol test data according to each protocol stored in the protocol data;
the gateway information and the instruction information are matched with a database query table to obtain the protocol database, and the database query table also stores corresponding relations between different gateway information and instruction information and corresponding protocol databases;
according to the protocol test data is right the intelligent gateway to be tested carries out protocol test, obtains the protocol test result, wherein, can carry out protocol test to the intelligent gateway to be tested automatically based on the protocol test data, has further improved the efficiency to the intelligent gateway to be tested test.
Optionally, in this embodiment, the protocol test data pair is used to perform a protocol test on the intelligent gateway to be tested, so as to obtain a protocol test result, including:
respectively transmitting data to the intelligent gateway to be tested according to the protocol corresponding to each protocol test data, and acquiring protocol response information of the intelligent gateway to be tested aiming at each protocol test data;
the method comprises the steps that protocol response information of an intelligent gateway to be tested for each protocol test data is collected to detect whether the intelligent gateway to be tested can effectively perform protocol response for each protocol test data;
respectively inquiring standard response information of each protocol test data, and performing information matching on the standard response information and the collected protocol response information aiming at each protocol test data;
the method comprises the steps that information matching is carried out on standard response information and collected protocol response information, so that whether the protocol response information fed back by the intelligent gateway to be tested is accurate or not is judged;
if the standard response information of any protocol test data is not matched with the correspondingly acquired protocol response information, determining the protocol of the protocol test data as a fault protocol;
if the standard response information of any protocol test data is not matched with the correspondingly acquired protocol response information, the intelligent gateway to be tested and the protocol test data are judged to be incapable of effectively performing data response, and the protocol of the protocol test data is determined to be a fault protocol, so that the user can effectively and conveniently check the protocol which cannot perform protocol communication on the intelligent gateway to be tested;
if the number of the fault protocols is larger than the number threshold, judging that the protocol test of the intelligent gateway to be tested is unqualified;
the quantity threshold value can be set according to requirements, for example, the quantity threshold value can be set to be 1, 3 or 5, and if the quantity of the fault protocols is greater than the quantity threshold value, the number of the communication protocols which can be met by the intelligent gateway to be tested is determined to be less, so that the protocol test of the intelligent gateway to be tested is determined to be unqualified;
and if the number of the fault protocols is less than or equal to the number threshold, judging that the protocol test of the intelligent gateway to be tested is qualified.
In the embodiment, the case database is determined through the gateway information and the gateway test instruction, the test scheme of the intelligent gateway to be tested can be automatically generated based on the case database, the case test can be automatically performed on the intelligent gateway to be tested based on the test scheme, the test case does not need to be manually triggered by a user, the test efficiency of the intelligent gateway to be tested is improved, the connection test result of the intelligent gateway to be tested can be automatically generated based on the communication response information by acquiring the communication response information of the intelligent gateway to be tested aiming at the node information, and the closed-loop test report of the intelligent gateway to be tested can be automatically generated based on the connection test result and the case test result, so that the effect of closed-loop test is effectively achieved on the intelligent gateway to be tested.
Example two
Please refer to fig. 2, which is a flowchart illustrating a method for testing a smart network shutdown loop according to a second embodiment of the present invention, where the method for further detailing the step S30 includes the steps of:
step S31, generating at least one test state sequence according to the case database, and generating a test case according to each test state sequence;
the test case comprises 1 or more test state sequences, and parameters corresponding to the parameter states comprise amplitude parameters, phase parameters, frequency parameters, switch positions, anti-shake time and the like;
optionally, in this step, the generating at least one test state sequence according to the case database, and generating a test case according to each test state sequence includes:
generating an amplitude parameter, a phase parameter, a frequency parameter, a voltage channel name, a current channel name, a switch position and anti-shake time in the use case database;
combining the obtained amplitude parameter, the phase parameter, the frequency parameter, the voltage channel name, the current channel name, the switch position and the anti-shake time to obtain the test state sequence;
combining the test state sequences to obtain a remote measurement test case, a remote signaling test case and a remote control test case; the test cases comprise a remote measurement test case, a remote signaling test case and a remote control test case;
step S32, classifying the test cases according to the test parameters in each test case to obtain test case classifications;
optionally, in the step, the test cases corresponding to different test parameters are combined pairwise based on the test parameters to obtain the trial case classification.
Step S33, generating the test scheme according to each test case classification;
the test scheme comprises 1 or more test case classifications; optionally, in this step, for step S30, performing a case test on the intelligent gateway to be tested according to the test scheme to obtain a case test result, where the step includes:
acquiring a test environment of the test case, and setting parameters of the intelligent gateway to be tested according to the test environment;
in the step, parameter setting is carried out on the intelligent gateway to be tested through the testing environment, so that the testing operation of the testing case in the intelligent gateway to be tested is effectively guaranteed, and the testing efficiency of the intelligent gateway to be tested is improved;
performing parameter analysis on the test case to obtain a test item parameter table, and generating a test script according to the test item parameter table;
the test case parameter table corresponding to the test case can be effectively obtained through automatically analyzing the test case parameters, the test script can be automatically generated based on the test item parameter table, and the subsequent case test of the intelligent gateway to be tested is guaranteed based on the test script;
and carrying out case testing on the intelligent gateway to be tested according to the test script to obtain test data, and carrying out data comparison on the test data and standard data corresponding to the test case to obtain a case testing result.
In the embodiment, the test state sequence can be automatically generated based on the case database, the test cases can be automatically generated based on each test state sequence, the test cases can be automatically classified based on the test parameters in each test case to obtain the test case classification, the test scheme can be automatically generated based on each test case classification, and therefore the accuracy of the test scheme generation is improved.
EXAMPLE III
Please refer to fig. 3, which is a schematic structural diagram of an intelligent network closed loop test system 100 according to a third embodiment of the present invention, including: a gateway determining module 10, a database determining module 11, a use case testing module 12, an information collecting module 13 and a test report generating module 14, wherein:
and the gateway determination module 10 is configured to receive a gateway test instruction, and determine the intelligent gateway to be tested according to the gateway test instruction.
And the database determining module 11 is configured to obtain gateway information of the intelligent gateway to be tested, and determine a case database according to the gateway information and the gateway test instruction.
Optionally, the database determining module 11 is further configured to: acquiring instruction information in the gateway test instruction, and judging whether a preset database is stored locally;
if the preset database is stored locally and the database identifier of the preset database is matched with the instruction information, setting the preset database as the case database;
if the preset database is not stored locally or the database identifier of the preset database is not matched with the instruction information, matching the gateway information and the instruction information with a pre-stored database query table to obtain a database address, wherein the database query table contains corresponding relations among different gateway information, instruction information and corresponding database addresses;
and performing database query according to the matched database address to obtain the use case database.
And the case testing module 12 is used for generating a testing scheme according to the case database and carrying out case testing on the intelligent gateway to be tested according to the testing scheme to obtain a case testing result.
Optionally, the use case testing module 12 is further configured to: generating at least one test state sequence according to the case database, and generating a test case according to each test state sequence, wherein the test state sequence comprises 1 or more continuous parameter states, and the test case comprises 1 or more test state sequences;
classifying the test cases according to test parameters in the test cases to obtain test case classifications, wherein the test case classifications comprise 1 or more test cases;
and generating the test scheme according to each test case classification, wherein the test scheme comprises 1 or more test case classifications.
Further, the use case testing module 12 is further configured to: generating an amplitude parameter, a phase parameter, a frequency parameter, a voltage channel name, a current channel name, a switch position and anti-shake time in the use case database;
combining the obtained amplitude parameter, the phase parameter, the frequency parameter, the voltage channel name, the current channel name, the switch position and the anti-shake time to obtain the test state sequence;
combining the test state sequences to obtain a remote measurement test case, a remote signaling test case and a remote control test case;
the test cases comprise the remote-measuring test case, the remote-signalling test case and the remote-control test case.
Further, the use case testing module 12 is further configured to: acquiring a test environment of the test case, and setting parameters of the intelligent gateway to be tested according to the test environment;
performing parameter analysis on the test case to obtain a test item parameter table, and generating a test script according to the test item parameter table;
and carrying out case testing on the intelligent gateway to be tested according to the test script to obtain test data, and carrying out data comparison on the test data and standard data corresponding to the test case to obtain a case testing result.
And the information acquisition module 13 is configured to send node information of the intelligent terminal to the intelligent gateway to be tested for communication connection, and acquire communication response information of the intelligent gateway to be tested for the node information.
And the test report generating module 14 is configured to generate a connection test result of the intelligent gateway to be tested according to the communication response information, and generate a closed-loop test report of the intelligent gateway to be tested according to the connection test result and the case test result.
Optionally, the test report generating module 14 is further configured to: judging whether the communication response information stores the equipment information of the intelligent gateway to be tested or not;
if the communication response information stores the equipment information, acquiring the network connection state of the intelligent gateway to be tested and the intelligent terminal;
if the network connection state of the intelligent gateway to be tested and the intelligent terminal is a normal communication state, judging whether an equipment on-line notification is stored in the communication response information;
and if the communication response information stores the equipment on-line notification, judging that the connection test of the intelligent gateway to be tested is qualified.
Further, the test report generating module 14 is further configured to: sending a terminal disconnection instruction to the intelligent gateway to be tested, and receiving disconnection response information of the intelligent gateway to be tested aiming at the terminal disconnection instruction;
judging whether the disconnection response information stores an equipment offline notification or not;
and if the off-line notification of the equipment is stored in the disconnection response information, judging that the off-line detection of the intelligent gateway to be detected is qualified.
Preferably, the test report generating module 14 is further configured to: determining a protocol database according to the gateway information and the instruction information, and generating protocol test data according to each protocol stored in the protocol data;
and carrying out protocol test on the intelligent gateway to be tested according to the protocol test data to obtain a protocol test result.
In this embodiment, the test report generating module 14 is further configured to: respectively transmitting data to the intelligent gateway to be tested according to the protocol corresponding to each protocol test data, and acquiring protocol response information of the intelligent gateway to be tested aiming at each protocol test data;
respectively inquiring standard response information of each protocol test data, and performing information matching on the standard response information and the collected protocol response information aiming at each protocol test data;
if the standard response information of any protocol test data is not matched with the correspondingly acquired protocol response information, determining the protocol of the protocol test data as a fault protocol;
if the number of the fault protocols is larger than the number threshold, judging that the protocol test of the intelligent gateway to be tested is unqualified;
and if the number of the fault protocols is less than or equal to the number threshold, judging that the protocol test of the intelligent gateway to be tested is qualified.
In the embodiment, the case database is determined through the gateway information and the gateway test instruction, the test scheme of the intelligent gateway to be tested can be automatically generated based on the case database, the case test can be automatically performed on the intelligent gateway to be tested based on the test scheme, the test case does not need to be manually triggered by a user, the test efficiency of the intelligent gateway to be tested is improved, the connection test result of the intelligent gateway to be tested can be automatically generated based on the communication response information by acquiring the communication response information of the intelligent gateway to be tested aiming at the node information, and the closed-loop test report of the intelligent gateway to be tested can be automatically generated based on the connection test result and the case test result, so that the effect of closed-loop test is effectively achieved on the intelligent gateway to be tested.
Example four
Fig. 4 is a block diagram of a terminal device 2 according to a fourth embodiment of the present application. As shown in fig. 4, the terminal device 2 of this embodiment includes: a processor 20, a memory 21 and a computer program 22 stored in said memory 21 and executable on said processor 20, such as a program of the intelligent network closed loop test method. The processor 20, when executing the computer program 22, implements the steps of the above-mentioned various embodiments of the intelligent network closed loop test method, such as S10 to S50 shown in fig. 1 or S31 to S33 shown in fig. 2. Alternatively, when the processor 20 executes the computer program 22, the functions of the units in the embodiment corresponding to fig. 3 are implemented, please refer to the related description in the embodiment corresponding to fig. 3, which is not described herein again.
Illustratively, the computer program 22 may be divided into one or more units, which are stored in the memory 21 and executed by the processor 20 to accomplish the present application. The one or more units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 22 in the terminal device 2. For example, the computer program 22 may be divided into a gateway determination module 10, a database determination module 11, a use case testing module 12, an information collection module 13 and a test report generation module 14, and the specific functions of the units are as described above.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for testing intelligent network closedown rings, the method comprising:
receiving a gateway test instruction, and determining an intelligent gateway to be tested according to the gateway test instruction;
acquiring gateway information of the intelligent gateway to be tested, and determining a case database according to the gateway information and the gateway test instruction;
generating a test scheme according to the case database, and carrying out case test on the intelligent gateway to be tested according to the test scheme to obtain a case test result;
sending node information of an intelligent terminal to the intelligent gateway to be tested for communication connection, and collecting communication response information of the intelligent gateway to be tested for the node information;
and generating a connection test result of the intelligent gateway to be tested according to the communication response information, and generating a closed-loop test report of the intelligent gateway to be tested according to the connection test result and the case test result.
2. The method for testing a closed loop of an intelligent network according to claim 1, wherein the generating a test solution according to the use case database comprises:
generating at least one test state sequence according to the case database, and generating a test case according to each test state sequence, wherein the test state sequence comprises 1 or more continuous parameter states, and the test case comprises 1 or more test state sequences;
classifying the test cases according to test parameters in the test cases to obtain test case classifications, wherein the test case classifications comprise 1 or more test cases;
and generating the test scheme according to each test case classification, wherein the test scheme comprises 1 or more test case classifications.
3. The method for testing a closed loop in an intelligent network according to claim 2, wherein the generating at least one test state sequence according to the case database and generating test cases according to each test state sequence comprises:
generating an amplitude parameter, a phase parameter, a frequency parameter, a voltage channel name, a current channel name, a switch position and anti-shake time in the use case database;
combining the obtained amplitude parameter, the phase parameter, the frequency parameter, the voltage channel name, the current channel name, the switch position and the anti-shake time to obtain the test state sequence;
combining the test state sequences to obtain a remote measurement test case, a remote signaling test case and a remote control test case;
the test cases comprise the remote measuring test case, the remote signaling test case and the remote control test case.
4. The method for testing intelligent network closedown ring according to claim 2, wherein the performing a case test on the intelligent gateway to be tested according to the test scheme to obtain a case test result comprises:
acquiring a test environment of the test case, and setting parameters of the intelligent gateway to be tested according to the test environment;
performing parameter analysis on the test case to obtain a test item parameter table, and generating a test script according to the test item parameter table;
and carrying out case testing on the intelligent gateway to be tested according to the test script to obtain test data, and carrying out data comparison on the test data and standard data corresponding to the test case to obtain a case testing result.
5. The method for testing intelligent network closedown ring according to claim 1, wherein the generating the connection test result of the intelligent gateway to be tested according to the communication response information comprises:
judging whether the communication response information stores the equipment information of the intelligent gateway to be tested;
if the communication response information stores the equipment information, acquiring the network connection state of the intelligent gateway to be tested and the intelligent terminal;
if the network connection state of the intelligent gateway to be tested and the intelligent terminal is a normal communication state, judging whether an equipment on-line notification is stored in the communication response information;
and if the communication response information stores the equipment on-line notification, judging that the connection test of the intelligent gateway to be tested is qualified.
6. The method for testing a intelligent network closedown ring according to claim 5, wherein after the device on-line notification is stored in the communication response message, the method further comprises:
sending a terminal disconnection instruction to the intelligent gateway to be tested, and receiving disconnection response information of the intelligent gateway to be tested aiming at the terminal disconnection instruction;
judging whether the disconnection response information stores an equipment offline notification or not;
and if the off-line notification of the equipment is stored in the disconnection response information, judging that the off-line detection of the intelligent gateway to be detected is qualified.
7. The method for testing a closeout loop of an intelligent network according to claim 1, wherein the determining a case database according to the gateway information and the gateway test command comprises:
acquiring instruction information in the gateway test instruction, and judging whether a preset database is stored locally;
if the preset database is stored locally and the database identifier of the preset database is matched with the instruction information, setting the preset database as the case database;
if the preset database is not stored locally or the database identifier of the preset database is not matched with the instruction information, matching the gateway information and the instruction information with a pre-stored database query table to obtain a database address, wherein the database query table contains corresponding relations among different gateway information, instruction information and corresponding database addresses;
and performing database query according to the matched database address to obtain the use case database.
8. The intelligent network closeout loop test method of claim 7, wherein the method further comprises:
determining a protocol database according to the gateway information and the instruction information, and generating protocol test data according to each protocol stored in the protocol data;
and carrying out protocol test on the intelligent gateway to be tested according to the protocol test data to obtain a protocol test result.
9. The method for testing intelligent network closedown ring according to claim 8, wherein the performing a protocol test on the intelligent gateway to be tested according to the protocol test data to obtain a protocol test result comprises:
respectively transmitting data to the intelligent gateway to be tested according to the protocol corresponding to each protocol test data, and acquiring protocol response information of the intelligent gateway to be tested aiming at each protocol test data;
respectively inquiring standard response information of each protocol test data, and performing information matching on the standard response information and the collected protocol response information aiming at each protocol test data;
if the standard response information of any protocol test data is not matched with the correspondingly acquired protocol response information, determining the protocol of the protocol test data as a fault protocol;
if the number of the fault protocols is larger than the number threshold, judging that the protocol test of the intelligent gateway to be tested is unqualified;
and if the number of the fault protocols is less than or equal to the number threshold, judging that the protocol test of the intelligent gateway to be tested is qualified.
10. An intelligent network closedown ring test system, the system comprising:
the gateway determination module is used for receiving a gateway test instruction and determining the intelligent gateway to be tested according to the gateway test instruction;
the database determining module is used for acquiring gateway information of the intelligent gateway to be tested and determining a case database according to the gateway information and the gateway test instruction;
the case testing module is used for generating a testing scheme according to the case database and carrying out case testing on the intelligent gateway to be tested according to the testing scheme to obtain a case testing result;
the information acquisition module is used for sending the node information of the intelligent terminal to the intelligent gateway to be tested for communication connection and acquiring the communication response information of the intelligent gateway to be tested aiming at the node information;
and the test report generating module is used for generating a connection test result of the intelligent gateway to be tested according to the communication response information and generating a closed-loop test report of the intelligent gateway to be tested according to the connection test result and the case test result.
CN202210686212.4A 2022-06-17 2022-06-17 Intelligent network closing ring test method and system Pending CN115118643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210686212.4A CN115118643A (en) 2022-06-17 2022-06-17 Intelligent network closing ring test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210686212.4A CN115118643A (en) 2022-06-17 2022-06-17 Intelligent network closing ring test method and system

Publications (1)

Publication Number Publication Date
CN115118643A true CN115118643A (en) 2022-09-27

Family

ID=83328343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210686212.4A Pending CN115118643A (en) 2022-06-17 2022-06-17 Intelligent network closing ring test method and system

Country Status (1)

Country Link
CN (1) CN115118643A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597028A (en) * 2020-12-25 2021-04-02 北京知因智慧科技有限公司 Method and device for displaying case test result and readable storage medium
CN114205273A (en) * 2020-08-26 2022-03-18 腾讯科技(深圳)有限公司 System testing method, device and equipment and computer storage medium
CN114448852A (en) * 2021-12-30 2022-05-06 中国电信股份有限公司 Gateway terminal testing method, device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205273A (en) * 2020-08-26 2022-03-18 腾讯科技(深圳)有限公司 System testing method, device and equipment and computer storage medium
CN112597028A (en) * 2020-12-25 2021-04-02 北京知因智慧科技有限公司 Method and device for displaying case test result and readable storage medium
CN114448852A (en) * 2021-12-30 2022-05-06 中国电信股份有限公司 Gateway terminal testing method, device and storage medium

Similar Documents

Publication Publication Date Title
CN109067617B (en) V2X protocol consistency test method, device and system
CN111104341B (en) Automatic testing method, device, equipment and storage medium for intelligent household equipment
CN109934356A (en) A kind of computer room method for inspecting and relevant device based on big data
CN105141449A (en) Addition method and device for monitoring configuration
CN108134692A (en) A kind of fault handling method and system based on mark figure
CN104391244A (en) Closed loop test method of relay protection apparatus and system thereof
CN112165167B (en) Intelligent substation relay protection maintenance auxiliary system and method
CN110867956A (en) Topology automatic identification system and method based on intelligent platform area
CN113676526A (en) Industrial data access management system and method
CN114116343A (en) Equipment testing method and device, electronic equipment and storage medium
CN113824031A (en) Robot inspection method and device based on gateway, gateway equipment and storage medium
CN113703836A (en) SCPI instruction management method for spacecraft power system evaluation
CN109765833A (en) A method of monitoring Internet of Things equipment state of a control
CN115118643A (en) Intelligent network closing ring test method and system
CN112650765A (en) Method, device and equipment for judging station faults and storage medium
CN114157561B (en) Fault processing system and method
CN111597227A (en) Electric power automation cloud detection platform and monitoring method based on big data platform technology
CN116192607A (en) Fault alarm method and device
CN110544182B (en) Power distribution communication network fusion control method and system based on machine learning technology
CN113778831A (en) Data application performance analysis method, device, equipment and medium
CN109376436B (en) Method and device for generating strong network line topology
CN104734354A (en) Intelligent power grid overhaul system based on network topology and overhaul method
CN107682174B (en) Method for collecting network equipment support data
CN112821548A (en) Power distribution terminal with display module, wireless power distribution display system and method
CN105228138A (en) A kind of safety detecting method of Wireless Communication Equipment and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20220927

WD01 Invention patent application deemed withdrawn after publication