CN109728929A - A kind of test method, device and storage medium - Google Patents

A kind of test method, device and storage medium Download PDF

Info

Publication number
CN109728929A
CN109728929A CN201711042868.8A CN201711042868A CN109728929A CN 109728929 A CN109728929 A CN 109728929A CN 201711042868 A CN201711042868 A CN 201711042868A CN 109728929 A CN109728929 A CN 109728929A
Authority
CN
China
Prior art keywords
port
topological graph
engineering
adaptation
test
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.)
Granted
Application number
CN201711042868.8A
Other languages
Chinese (zh)
Other versions
CN109728929B (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201711042868.8A priority Critical patent/CN109728929B/en
Publication of CN109728929A publication Critical patent/CN109728929A/en
Application granted granted Critical
Publication of CN109728929B publication Critical patent/CN109728929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of test methods, comprising: based on being devices under allocation project topological diagram;Logical topology chart is configured based on preset test case;Adaption of topology is carried out based on the engineering topological diagram and the logical topology chart, obtains adaptation result;Based on the adaptation result and the test case, described be devices under is tested.The present invention further simultaneously discloses two kinds of test devices and a kind of storage medium.

Description

Test method, test device and storage medium
Technical Field
The invention relates to the field of automatic testing, in particular to a testing method, a testing device and a storage medium.
Background
Currently, most devices integrate resources such as power, interface, processor, and memory together as an independent device; taking a router as an example, the router integrates a power supply, a fan, a physical interface, and software and hardware for implementing the functions of the router into one chassis, and provides service support as an independent device.
For the Network Device, the resources in the Network Device can be divided into different subsets according to the related resource division principle, each subset is a Virtual Network Device (VND), and the Virtual Network Device is also called a logical Network Device; that is, one network device is virtualized into a plurality of VNDs capable of performing separate tasks, and the plurality of VNDs virtualized by each network device can provide functions that can be implemented by a plurality of network devices.
With the development of virtual network devices, there is no solution for how to perform automated testing on network devices virtualized as multiple VNDs.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a testing method, a testing apparatus, and a storage medium, which can perform an automated test on a network device virtualized as multiple VNDs, improve testing efficiency, and save networking device resources.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a test method, which comprises the following steps:
configuring an engineering topological graph based on the tested equipment;
configuring a logic topological graph based on a preset test case;
carrying out topology adaptation based on the engineering topological graph and the logic topological graph to obtain an adaptation result;
and testing the tested equipment based on the adaptation result and the test case.
In the foregoing solution, the performing topology adaptation based on the engineering topology map and the logic topology map to obtain an adaptation result includes:
creating at least two virtualization devices based on the logic topological graph and the tested device;
and establishing the connection relation of each port of the at least two virtualization devices based on the engineering topological graph and the logic topological graph.
In the foregoing solution, the establishing a connection relationship between ports of the at least two pieces of virtualization equipment based on the engineering topology map and the logic topology map includes:
searching a port pair formed by two ports with mutual connection relation in the engineering topological graph;
determining a connection relationship between the at least two virtualization devices based on the logical topology map;
and respectively adding the two searched ports in one port pair to two virtualization devices with connection relations.
In the above scheme, the testing the device under test based on the adaptation result and the test case includes:
and running the test case on the at least two virtualization devices.
In the above solution, the configuring the engineering topological graph based on the tested device includes:
configuring the mutual connection relationship between two ports of the tested equipment to form a port pair;
and configuring a port connection relation between the tested equipment and the electronic equipment running the test case.
An embodiment of the present invention further provides a testing apparatus, including: the device comprises a configuration module, an adaptation module and a test module; wherein,
the configuration module is used for configuring an engineering topological graph based on the tested equipment and configuring a logic topological graph based on a preset test case;
the adaptation module is used for carrying out topology adaptation based on the engineering topological graph and the logic topological graph to obtain an adaptation result
And the test module is used for testing the tested equipment based on the adaptation result and the test case.
In the above-mentioned solution, the adaptation module,
specifically, the method is used for creating at least two virtualization devices based on the logical topology map and the device under test;
and establishing the connection relation of each port of the at least two virtualization devices based on the engineering topological graph and the logic topological graph.
In the above-mentioned solution, the adaptation module,
the method is specifically used for searching a port pair formed by two ports with mutual connection relation in the engineering topological graph;
determining a connection relationship between the at least two virtualization devices based on the logical topology map;
and respectively adding the two searched ports in one port pair to two virtualization devices with connection relations.
In the foregoing scheme, the test module is specifically configured to run the test case on the at least two pieces of virtualization equipment.
In the above-mentioned solution, the configuration module,
the method comprises the steps of configuring the mutual connection relationship between two ports of the tested device to form a port pair;
and configuring a port connection relation between the tested equipment and the electronic equipment running the test case.
An embodiment of the present invention further provides a testing apparatus, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of the above method when running the computer program.
An embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the above method.
The test method, the test device and the storage medium provided by the embodiment of the invention configure the engineering topological graph based on the tested equipment and configure the logic topological graph based on the preset test case; carrying out topology adaptation based on the engineering topological graph and the logic topological graph to obtain an adaptation result; and testing the tested equipment based on the adaptation result and the test case. The tested equipment is virtualized into at least two pieces of virtualization equipment through topology adaptation between the engineering topological graph and the logic topological graph, the connection relation between the at least two pieces of virtualization equipment is established based on the logic topological graph, and the testing efficiency is improved and networking equipment resources are saved by running the test cases on the at least two pieces of virtualization equipment.
Drawings
Fig. 1 is a schematic processing flow diagram of a testing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an alternative engineering topology provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative logical topology provided by an embodiment of the present invention;
fig. 4 is a schematic processing flow diagram illustrating a process of establishing a connection relationship between ports of at least two virtualization devices according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a connection relationship between virtualization devices determined according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating a connection relationship between virtualized devices according to another embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating a connection relationship between virtualization devices according to an embodiment of the present invention;
fig. 8 is a schematic diagram of topology adaptation provided in an embodiment of the present invention;
fig. 9 is a schematic diagram of another topology adaptation provided by the embodiment of the present invention;
FIG. 10 is a flowchart illustrating a testing method according to a second embodiment of the present invention;
fig. 11 is a schematic structural diagram illustrating a testing apparatus according to a third embodiment of the present invention;
FIG. 12 is a diagram illustrating a hardware structure of a testing device according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
In order to better understand the technical content of the embodiment of the invention, the following briefly describes the automated testing.
Automated testing is a process that translates human-driven testing behavior into device execution. Typically, after the test case is designed, the test is performed step by a tester according to the procedures described in the test case, resulting in a comparison of the actual results with the expected results. In the process, in order to save manpower, time or hardware resources and improve the testing efficiency, an automatic test is provided.
As shown in fig. 1, a processing flow of a testing method according to an embodiment of the present invention includes the following steps:
and step S101, configuring an engineering topological graph based on the tested equipment.
In an optional embodiment, first, a test environment is constructed, that is, a connection relationship between a device under test and other devices (such as a tester) is established by connecting a port of the device under test with ports of the other devices; and establishing pairwise connection relation between ports which are not connected with other devices in the tested device. For example, the device under test includes 28 ports, wherein 8 ports need to be connected with ports of other devices; the remaining 20 ports of the device under test are connected two by two to form 10 port pairs. Then, the testing device configures an engineering topological graph based on the built testing environment; in the schematic diagram of the engineering topological diagram, as shown in fig. 2, ports 1 to 8 of a device under test are connected with ports 1 to 8 of other devices (testers), respectively; port 9 of the device under test is connected to port 10, port 11 is connected to port 12, port 13 is connected to port 14, port 15 is connected to port 16, port 17 is connected to port 18, port 19 is connected to port 20, port 21 is connected to port 22, port 23 is connected to port 24, port 25 is connected to port 26, and port 27 is connected to port 28. The engineering topological graph is used for representing a test environment and is a topological graph for the actual operation of a test case.
And S102, configuring a logic topological graph based on a preset test case.
In an optional embodiment, the test device configures a logic topological graph based on a preset test case; in practical application, one logic topological graph can be applied to one test case, and the same logic topological graph can be applied to a plurality of test cases.
In the embodiment of the present invention, as shown in fig. 3, a schematic diagram of a logic topology, a port 1 of a first device under test is connected to a port 1 of a tester; the port 1 and the port 2 of the second tested device are respectively connected with the port 2 and the port 3 of the tester; the port 1 of the third tested device is connected with the port 4 of the tester; the port 2 and the port 3 of the first device under test are respectively connected with the port 3 and the port 4 of the second device under test, and the port 5 and the port 6 of the second device under test are respectively connected with the port 2 and the port 3 of the third device under test; port 4 of the first device under test is connected to port 4 of the third device under test.
And S103, carrying out topology adaptation based on the engineering topological graph and the logic topological graph to obtain an adaptation result.
In an optional embodiment, first, the testing apparatus creates at least two virtualization devices based on the logical topology and the device under test; that is to say, the device under test is virtualized into at least two virtualization devices according to the logical topology map, and the number of the virtualization devices is the same as the number of the device under test in the logical topology map.
The test device allocates corresponding test resources to each virtualization device, the test resources include virtual network device resources, such as a master control line card and a virtual network device port, and configures corresponding management addresses for the virtual network device ports.
Then, the testing device compares the number of ports in the logical topological graph with the number of ports in the engineering topological graph, when port data in the engineering topological graph is larger than or equal to the port data in the logical topological graph, the engineering topological graph and the logical topological graph are confirmed to meet adaptation conditions, and the connection relation of the ports of the at least two pieces of virtualization equipment is established based on the engineering topological graph and the logical topological graph. And when the port data in the engineering topological graph is smaller than the port data in the logic topological graph, confirming that the engineering topological graph and the logic topological graph do not meet the adaptation condition, and ending the operation of the test case.
In an example, the processing flow diagram of the testing apparatus establishing the connection relationship between the ports of the at least two virtualization devices is shown in fig. 4, and includes the following steps:
and step S1031, searching a port pair formed by two ports with mutual connection relation in the engineering topological graph.
Based on the engineering topological graph shown in fig. 2, the pair found by the testing device includes: a port pair formed by port 9 and port 10, a port pair formed by port 11 and port 12, a port pair formed by port 13 and port 14, a port pair formed by port 15 and port 16, a port pair formed by port 17 and port 18, a port pair formed by port 19 and port 20, a port pair formed by port 21 and port 22, a port pair formed by port 23 and port 24, a port pair formed by port 25 and port 26, and a port pair formed by port 27 and port 28.
Step S1032, determining a connection relationship between the at least two virtualization devices based on the logical topology.
In an embodiment, based on the logical topology shown in fig. 3, the testing apparatus determines the connection relationship between the virtualized devices, as shown in fig. 5, the port 1 of the first virtualized device is connected with the port 1 of the tester; the port 1 and the port 2 of the second virtualization device are respectively connected with the port 2 and the port 3 of the tester; the port 1 of the third virtualization device is connected with the port 4 of the tester; the port 2 and the port 3 of the first virtualization device are respectively connected with the port 3 and the port 4 of the second virtualization device, and the port 5 and the port 6 of the second virtualization device are respectively connected with the port 2 and the port 3 of the third virtualization device; the port 4 of the first virtualization device is connected to the port 4 of the third virtualization device.
In another embodiment, based on the logical topology shown in fig. 3, the testing apparatus determines the connection relationship between the virtualized devices, as shown in fig. 6, the port 1 of the second virtualized device is connected with the port 1 of the tester; the port 1 and the port 2 of the third virtualization device are respectively connected with the port 2 and the port 3 of the tester; the port 1 of the first virtualization device is connected with the port 4 of the tester; the port 2 and the port 3 of the second virtualization device are respectively connected with the port 3 and the port 4 of the third virtualization device, and the port 5 and the port 6 of the third virtualization device are respectively connected with the port 2 and the port 3 of the first virtualization device; the port 4 of the second virtualization device is connected with the port 4 of the first virtualization device.
In yet another embodiment, based on the logical topology shown in fig. 3, the testing apparatus determines the connection relationship between the virtualized devices, as shown in fig. 7, the port 1 of the third virtualized device is connected with the port 1 of the tester; the port 1 and the port 2 of the first virtualization device are respectively connected with the port 2 and the port 3 of the tester; the port 1 of the second virtualization device is connected with the port 4 of the tester; the port 2 and the port 3 of the third virtualization device are respectively connected with the port 3 and the port 4 of the first virtualization device, and the port 5 and the port 6 of the first virtualization device are respectively connected with the port 2 and the port 3 of the second virtualization device; port 4 of the third virtualization device is connected to port 4 of the second virtualization device.
Step S1033, add the two ports in the searched port pair to the two virtualization devices with the connection relationship, respectively.
In an optional embodiment, based on the connection relationship between the engineering topology shown in fig. 2, the logic topology shown in fig. 3, and the virtualization device shown in fig. 5, the testing apparatus adds ports to the virtualization device, as shown in fig. 8, and the ports 1, 2, 3, and 4 of the first device under test in the logic topology are respectively adapted to the ports 1, 9, 11, and 13 in the engineering topology; ports 1, 2, 3, 4, 5, 6 of the second device under test in the logical topological graph are respectively adapted to ports 2, 3, 10, 12, 15, 17 in the engineering topological graph; ports 1, 2, 3 and 4 of a third tested device in the logic topological graph are respectively adapted to ports 4, 16, 18 and 14 in the engineering topological graph; ports 1, 2, 3, 4 of the tester are adapted to ports 1, 2, 3, 4 of the engineering topology map, respectively. According to the topology adaptation diagram representing the topology results of the engineering topology map and the logic topology map shown in fig. 8, it can be seen that the port 4 of the first virtualization device is connected to the port 4 of the third virtualization device, and corresponds to the port 13 and the port 14 connected to each other in the engineering topology map; the port 2 of the first virtualization device is connected with the port 3 of the second virtualization device, and corresponds to the port 9 and the port 10 which are connected with each other in the engineering topological graph; a port 3 in the first virtualization device is connected with a port 4 in the second virtualization device, and corresponds to a port 11 and a port 12 which are connected with each other in the engineering topological graph; the port 5 in the second virtualization device is connected with the port 2 in the third virtualization device, and corresponds to the port 15 and the port 16 which are connected with each other in the engineering topological graph; the port 6 in the second virtualization device is connected to the port 3 in the third virtualization device, corresponding to the port 17 and the port 18 connected to each other in the engineering topology.
In another optional embodiment, in an optional embodiment, based on the connection relationship between the engineering topology shown in fig. 2, the logic topology shown in fig. 3, and the virtualization device shown in fig. 5, the testing apparatus adds ports to the virtualization device, as shown in fig. 9, and adapts the ports 1, 2, 3, and 4 of the first device under test in the logic topology to the ports 1, 11, 21, and 23 in the engineering topology, respectively; ports 1, 2, 3, 4, 5, 6 of the second device under test in the logical topology map are adapted to ports 2, 3, 20, 22, 25, 27 in the engineering topology map, respectively; ports 1, 2, 3 and 4 of a third tested device in the logic topological graph are respectively adapted to ports 4, 26, 28 and 24 in the engineering topological graph; ports 1, 2, 3, 4 of the tester are adapted to ports 1, 2, 3, 4 of the engineering topology map, respectively. According to the topology adaptation diagram representing the topology results of the engineering topology map and the logic topology map shown in fig. 9, it can be seen that the port 4 of the first virtualization device is connected to the port 4 of the third virtualization device, and corresponds to the port 23 and the port 24 connected to each other in the engineering topology map; the port 2 of the first virtualization device is connected with the port 3 of the second virtualization device, and corresponds to the port 21 and the port 22 which are connected with each other in the engineering topological graph; the port 3 in the first virtualization device is connected with the port 4 in the second virtualization device, and corresponds to the port 19 and the port 20 which are connected with each other in the engineering topological graph; the port 5 in the second virtualization device is connected with the port 2 in the third virtualization device, and corresponds to the port 25 and the port 26 which are connected with each other in the engineering topological graph; the port 6 in the second virtualization device is connected to the port 3 in the third virtualization device, corresponding to the port 27 and the port 28 connected to each other in the engineering topology.
FIGS. 8 and 9 are only an alternative adaptation result of the topology adaptation of the engineering topology shown in FIG. 2 and the logical topology shown in FIG. 3; certainly, when the engineering topology diagram shown in fig. 2 and the logic topology diagram shown in fig. 3 perform topology adaptation, there are also multiple adaptation results, and in each adaptation result, two ports in the engineering topology diagram corresponding to the ports connected between the virtual devices have a connection relationship.
And step S104, testing the tested equipment based on the adaptation result and the test case.
In an optional embodiment, the test apparatus runs the test case on the at least two virtualization devices.
In the related art, based on the logic topology diagram shown in fig. 3, three devices to be tested need to be configured for networking when testing is performed based on a test case; according to the embodiment of the invention, one tested device is virtualized into three virtualized devices based on the engineering topological graph and the logic topological graph, so that the test can be carried out based on the test case, the test efficiency can be improved, the networking device resources are saved, and the research and development efficiency and the research and development period of the product are further improved.
The processing flow of the testing method provided by the second embodiment of the present invention is similar to the processing flow of the testing method provided by the first embodiment of the present invention shown in fig. 1, as shown in fig. 10, except that after step S104, the method further includes:
step S105, the default settings are restored.
After the test case is given by the test device and the test is finished, the default setting is recovered, for example, the automatic test environment is removed, the created virtualization equipment is deleted, the port setting is recovered, the configuration of the tester is cleared, and the like.
The third embodiment of the present invention further provides a testing apparatus 100, and a composition structure of the testing apparatus 100, as shown in fig. 11, includes: a configuration module 10, an adaptation module 11 and a test module 12; wherein,
the configuration module 10 is configured to configure an engineering topological graph based on the device to be tested, and configure a logic topological graph based on a preset test case;
the adaptation module 11 is configured to perform topology adaptation based on the engineering topology map and the logic topology map to obtain an adaptation result
The test module 12 is configured to test the device under test based on the adaptation result and the test case.
In the foregoing solution, the adaptation module 11 is specifically configured to create at least two pieces of virtualization equipment based on the logical topology and the device under test;
and establishing the connection relation of each port of the at least two virtualization devices based on the engineering topological graph and the logic topological graph.
In the above scheme, the adaptation module 11 is specifically configured to search a port pair formed by two ports having a mutual connection relationship in the engineering topology;
determining a connection relationship between the at least two virtualization devices based on the logical topology map;
and respectively adding the two searched ports in one port pair to two virtualization devices with connection relations.
In the above scheme, the test module 12 is specifically configured to run the test case on the at least two pieces of virtualization equipment.
In the above solution, the configuration module 10 is specifically configured to configure a mutual connection relationship between two ports of the device under test to form a port pair;
and configuring a port connection relation between the tested equipment and the electronic equipment running the test case.
In practical applications, the configuration module 10, the adaptation module 11, and the test module 12 may be implemented by a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
An embodiment of the present invention further provides a testing apparatus, where a hardware composition structure of the testing apparatus, as shown in fig. 12, includes: a processor 701 and a memory 702 for storing computer programs capable of running on the processor 701,
wherein, when the processor 701 is configured to run the computer program, it executes:
configuring an engineering topological graph based on the tested equipment;
configuring a logic topological graph based on a preset test case;
carrying out topology adaptation based on the engineering topological graph and the logic topological graph to obtain an adaptation result;
and testing the tested equipment based on the adaptation result and the test case.
The processor 701 is configured to, when running the computer program, further perform: creating at least two virtualization devices based on the logic topological graph and the tested device;
and establishing the connection relation of each port of the at least two virtualization devices based on the engineering topological graph and the logic topological graph.
The processor 701 is configured to, when running the computer program, further perform: searching a port pair formed by two ports with mutual connection relation in the engineering topological graph;
determining a connection relationship between the at least two virtualization devices based on the logical topology map;
and respectively adding the two searched ports in one port pair to two virtualization devices with connection relations.
The processor 701 is configured to, when running the computer program, further perform: and running the test case on the at least two virtualization devices.
The processor 701 is configured to, when running the computer program, further perform: configuring the mutual connection relationship between two ports of the tested equipment to form a port pair;
and configuring a port connection relation between the tested equipment and the electronic equipment running the test case.
It will be appreciated that the memory 702 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 702 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 702 in embodiments of the present invention is used to store various types of data to support the operation of the data processing apparatus 700. Examples of such data include: any computer programs for operating on data processing device 700, such as operating system 7021 and application programs 7022. The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application programs 7022 may include various application programs, and a program that implements the method of an embodiment of the present invention is also included in the application programs 7022.
An embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform:
configuring an engineering topological graph based on the tested equipment;
configuring a logic topological graph based on a preset test case;
carrying out topology adaptation based on the engineering topological graph and the logic topological graph to obtain an adaptation result;
and testing the tested equipment based on the adaptation result and the test case.
The computer program, when executed by the processor, further performs: creating at least two virtualization devices based on the logic topological graph and the tested device;
and establishing the connection relation of each port of the at least two virtualization devices based on the engineering topological graph and the logic topological graph.
The computer program, when executed by the processor, further performs: searching a port pair formed by two ports with mutual connection relation in the engineering topological graph;
determining a connection relationship between the at least two virtualization devices based on the logical topology map;
and respectively adding the two searched ports in one port pair to two virtualization devices with connection relations.
The computer program, when executed by the processor, further performs: and running the test case on the at least two virtualization devices.
The computer program, when executed by the processor, further performs: configuring the mutual connection relationship between two ports of the tested equipment to form a port pair;
and configuring a port connection relation between the tested equipment and the electronic equipment running the test case.
Those skilled in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a RAM, a ROM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a RAM, a ROM, a magnetic or optical disk, or various other media that can store program code.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (12)

1. A method of testing, the method comprising:
configuring an engineering topological graph based on the tested equipment;
configuring a logic topological graph based on a preset test case;
carrying out topology adaptation based on the engineering topological graph and the logic topological graph to obtain an adaptation result;
and testing the tested equipment based on the adaptation result and the test case.
2. The method according to claim 1, wherein the performing topology adaptation based on the engineering topology map and the logic topology map to obtain an adaptation result comprises:
creating at least two virtualization devices based on the logic topological graph and the tested device;
and establishing the connection relation of each port of the at least two virtualization devices based on the engineering topological graph and the logic topological graph.
3. The method according to claim 2, wherein the establishing a connection relationship between the ports of the at least two virtualization devices based on the engineering topology map and the logical topology map comprises:
searching a port pair formed by two ports with mutual connection relation in the engineering topological graph;
determining a connection relationship between the at least two virtualization devices based on the logical topology map;
and respectively adding the two searched ports in one port pair to two virtualization devices with connection relations.
4. The method according to claim 2, wherein the testing the device under test based on the adaptation result and the test case comprises:
and running the test case on the at least two virtualization devices.
5. The method of claim 1, wherein configuring the engineering topology map based on the device under test comprises:
configuring the mutual connection relationship between two ports of the tested equipment to form a port pair;
and configuring a port connection relation between the tested equipment and the electronic equipment running the test case.
6. A test apparatus, comprising: the device comprises a configuration module, an adaptation module and a test module; wherein,
the configuration module is used for configuring an engineering topological graph based on the tested equipment and configuring a logic topological graph based on a preset test case;
the adaptation module is used for carrying out topology adaptation based on the engineering topological graph and the logic topological graph to obtain an adaptation result
And the test module is used for testing the tested equipment based on the adaptation result and the test case.
7. The apparatus of claim 6, wherein the adaptation module,
specifically, the method is used for creating at least two virtualization devices based on the logical topology map and the device under test;
and establishing the connection relation of each port of the at least two virtualization devices based on the engineering topological graph and the logic topological graph.
8. The apparatus of claim 7, wherein the adaptation module,
the method is specifically used for searching a port pair formed by two ports with mutual connection relation in the engineering topological graph;
determining a connection relationship between the at least two virtualization devices based on the logical topology map;
and respectively adding the two searched ports in one port pair to two virtualization devices with connection relations.
9. The apparatus according to claim 7, wherein the test module is specifically configured to run the test case on the at least two virtualization devices.
10. The apparatus of claim 6, wherein the configuration module,
the method comprises the steps of configuring the mutual connection relationship between two ports of the tested device to form a port pair;
and configuring a port connection relation between the tested equipment and the electronic equipment running the test case.
11. A test apparatus, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of claims 1 to 5 when running the computer program.
12. A storage medium on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of claims 1 to 5.
CN201711042868.8A 2017-10-30 2017-10-30 Test method, test device and storage medium Active CN109728929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711042868.8A CN109728929B (en) 2017-10-30 2017-10-30 Test method, test device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711042868.8A CN109728929B (en) 2017-10-30 2017-10-30 Test method, test device and storage medium

Publications (2)

Publication Number Publication Date
CN109728929A true CN109728929A (en) 2019-05-07
CN109728929B CN109728929B (en) 2022-02-22

Family

ID=66294109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711042868.8A Active CN109728929B (en) 2017-10-30 2017-10-30 Test method, test device and storage medium

Country Status (1)

Country Link
CN (1) CN109728929B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614493A (en) * 2020-05-08 2020-09-01 厦门视诚科技有限公司 Topological connection method of video processing system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330412A (en) * 2008-07-29 2008-12-24 中兴通讯股份有限公司 Automatization test approach and system based on topological discovery
CN101639806A (en) * 2009-09-01 2010-02-03 中兴通讯股份有限公司 Topology adaptation method and device for automatization test
CN101706799A (en) * 2009-11-20 2010-05-12 中兴通讯股份有限公司 Method and device for realizing automated testing
CN101986282A (en) * 2010-11-08 2011-03-16 中兴通讯股份有限公司 Topological adaptation method and device
CN102118281A (en) * 2011-03-16 2011-07-06 北京星网锐捷网络技术有限公司 Method, device and network equipment for automatic testing
US20130132778A1 (en) * 2010-08-26 2013-05-23 Assaf Dagan Isolation of problems in a virtual environment
CN105227344A (en) * 2015-08-21 2016-01-06 武汉烽火网络有限责任公司 Based on software defined network analogue system and the method for OpenStack

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330412A (en) * 2008-07-29 2008-12-24 中兴通讯股份有限公司 Automatization test approach and system based on topological discovery
CN101639806A (en) * 2009-09-01 2010-02-03 中兴通讯股份有限公司 Topology adaptation method and device for automatization test
CN101706799A (en) * 2009-11-20 2010-05-12 中兴通讯股份有限公司 Method and device for realizing automated testing
US20130132778A1 (en) * 2010-08-26 2013-05-23 Assaf Dagan Isolation of problems in a virtual environment
CN101986282A (en) * 2010-11-08 2011-03-16 中兴通讯股份有限公司 Topological adaptation method and device
CN102118281A (en) * 2011-03-16 2011-07-06 北京星网锐捷网络技术有限公司 Method, device and network equipment for automatic testing
CN105227344A (en) * 2015-08-21 2016-01-06 武汉烽火网络有限责任公司 Based on software defined network analogue system and the method for OpenStack

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614493A (en) * 2020-05-08 2020-09-01 厦门视诚科技有限公司 Topological connection method of video processing system
CN111614493B (en) * 2020-05-08 2022-07-05 厦门视诚科技有限公司 Topological connection method of video processing system

Also Published As

Publication number Publication date
CN109728929B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
US10922205B2 (en) Monitoring applications running on containers
US9128742B1 (en) Systems and methods for enhancing virtual machine backup image data
WO2017124713A1 (en) Data model determination method and apparatus
US10878335B1 (en) Scalable text analysis using probabilistic data structures
CN110515795B (en) Big data component monitoring method and device and electronic equipment
US10318479B2 (en) Method and device for automatically identifying junk file
TW201627859A (en) Virtual machine image analysis
CN110556155B (en) Method and device for testing diskless started SSD product and computer equipment
CN105704188A (en) Deployment method and apparatus of applications and services
US10855807B2 (en) Systems and methods for semi-automatic workload domain deployments
CN111274512A (en) Page loading method, device and medium
CN103246566A (en) Resource monitoring method and device for application program
CN112433812A (en) Method, system, equipment and computer medium for virtual machine cross-cluster migration
CN114531477A (en) Method and device for configuring functional components, computer equipment and storage medium
US11474809B2 (en) Upgrades based on analytics from multiple sources
CN109728929B (en) Test method, test device and storage medium
US10970196B1 (en) Semantic-aware fuzz-based functional testing
CN110795304B (en) Method and device for testing performance of distributed storage system
US20140298002A1 (en) Method and device for identifying a disk boot sector virus, and storage medium
CN110928941B (en) Data fragment extraction method and device
CN111124890B (en) Distributed database performance test method, system, terminal and storage medium
CN106156210B (en) Method and device for determining application identifier matching list
CN109561121B (en) Method and device for monitoring deployment
WO2019118338A1 (en) Systems and methods for mapping software applications interdependencies
KR20200048033A (en) Method and apparatus for testing javascript interpretation engine based on rewriting

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
GR01 Patent grant
GR01 Patent grant