CN103763153A - Method and system for automatically converting device link circuit information into topology graph - Google Patents
Method and system for automatically converting device link circuit information into topology graph Download PDFInfo
- Publication number
- CN103763153A CN103763153A CN201410011485.4A CN201410011485A CN103763153A CN 103763153 A CN103763153 A CN 103763153A CN 201410011485 A CN201410011485 A CN 201410011485A CN 103763153 A CN103763153 A CN 103763153A
- Authority
- CN
- China
- Prior art keywords
- topological graph
- equipment
- area
- filled
- filling
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000012360 testing method Methods 0.000 claims abstract description 66
- 239000011159 matrix material Substances 0.000 claims description 22
- 230000002093 peripheral effect Effects 0.000 claims description 19
- 125000004122 cyclic group Chemical group 0.000 claims description 6
- 230000006855 networking Effects 0.000 abstract description 12
- 230000000007 visual effect Effects 0.000 abstract description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method and system for automatically converting device link circuit information into a topology graph, and belongs to the technical field of automatic testing. The method comprises the following steps that S1 an automatic platform generates journals in the Html format, codes are embedded in the Html files, the topology graph is drawn out, and in the topology graph, every two areas representing for testing devices are connected through circuits; S2 the automatic platform analyzes the information of the links connected between every two devices, fills the device with the maximum connecting number in the real environment into the central area of the topology graph, and the filling content is a device name and interfaces around. The method and system for automatically converting device link circuit information into the topology graph have the advantages that the device link information is converted and then displayed in the automatic journals, the displaying method is obviously more visual than the displaying method in the existing technical scheme, a testing operator can know the networking conditions of the devices more rapidly and visually when analyzing the automatic journals, and the efficiency of journal analysis is improved.
Description
Technical Field
The invention relates to the technical field of automatic testing, in particular to a method and a system for automatically converting equipment link information into a topological graph.
Background
In the automatic test in the communication field, the execution process of each script is stored as a log file, and the link condition of the equipment in the running process of the script, the test operation steps of the script on the equipment and the like are mainly recorded. In the current automation platform, for information recording of device links in the log, a recording mode in which two devices are connected is still adopted, for example, in the automation test, 4 test devices perform link networking in a certain mode, and the recording mode of the current automation platform in the log is exemplified by:
interface 1 of device 1-interface 1 of device 2
Interface 2 of device 2-interface 1 of device 3
Interface 3 of device 2-interface 2 of device 4
The recording mode of the log is quite not intuitive, only link information of two connected devices can be recorded, and when a tester analyzes the log, the tester often cannot directly find out the whole networking of the testing devices in the testing environment, and the whole networking topological graph of the tested device can be found out only by manually drawing the connection condition of each testing device again according to the recording mode of two connected devices.
In the existing technical scheme, the recording mode of the networking information of the equipment in the automatic log is a mode of directly recording the information of two connected pieces of equipment, so that although the method is simple, the log analysis for a tester is complicated, and particularly under the conditions of more test equipment and more complicated networking, the tester is difficult to know the whole networking topological graph of the test equipment through the record in the log.
Therefore, the existing automatic test platform cannot automatically convert the device link information into the topological graph in the log.
Link/networking/topology: connecting a plurality of interfaces of a plurality of communication devices by using network cables or other media;
HTML is a file format which can display rich colors, graphics and characters;
JavaScript: a programming language can be embedded into an HTML file to control the display of text and graphics.
VBScript: a programming language can be embedded into an HTML file to control the display of text and graphics.
Disclosure of Invention
The invention aims to provide a method and a system for automatically converting equipment link information into a topological graph, which are provided for solving the problem that a tester is low in efficiency when analyzing an automatic log.
In order to realize the purpose, the technical scheme adopted by the invention is as follows: a method for automatically converting device link information into a topological graph, comprising the steps of:
s1, an automatic platform generates a log into an HTML format, codes are embedded into an HTML file, and a topological graph is drawn, wherein in the topological graph, every two areas representing test equipment are connected by a line;
s2, analyzing real link information connected in pairs among the test devices by the automation platform, filling the test device with the largest connection number into a central area of the topological graph, wherein the filling content is a device name and peripheral interfaces;
s3, the automation platform obtains other test equipment connected with the filled equipment in the S2 according to the link information of pairwise connection between the test equipment, and fills the other test equipment into the area around the filled equipment in the S2, and the step is executed circularly;
and S4, after all the devices in the link information connected in pairs between the test devices are filled, the automatic platform hides the unfilled areas and the lines between the unfilled areas in the topological graph.
Preferably, the method comprises the following steps: the topological graph in the S1 is a matrix topological graph, the area is a square area, and the displaying of the topological graph area and the line in the S1 is realized by a JavaScript language or a VBScript language.
Preferably, the method comprises the following steps: in step S2. The automation platform populates the topology map with the selected devices by displaying the contents of the central region of the topology map as the selected devices.
Preferably, the method comprises the following steps: in step S3. When a new device is filled into the peripheral area of the filled device, for example, when the peripheral area has the device already filled, other square areas in the peripheral area are reselected for filling.
Preferably, the method comprises the following steps: in step S4, the hiding of the topological graph area and the line is realized by the JavaScript language or VBScript language.
In order to solve the above problems, the present invention further provides a system, which includes an automation platform, where the automation platform includes a topology drawing unit, a link analysis unit, a region filling unit, a region cyclic filling unit, and a region hiding unit; wherein,
the topological graph drawing unit is used for generating the log into an HTML format, embedding codes in an HTML file and drawing a topological graph, wherein every two areas representing the testing equipment in the topological graph are connected by a line;
the link analysis unit is used for analyzing real link information connected pairwise among the test devices;
the area filling unit is used for filling the test equipment with the largest number of connections in the real environment into the central area of the topological graph, and the filling contents are the equipment name and the interfaces at the periphery;
the area is circularly filled, and the unit is used for circularly filling other testing equipment connected with the filled equipment into the area around the filled equipment according to the link analysis unit until all equipment in the link information connected in pairs among the equipment is filled;
the area hiding unit is used for hiding the unfilled areas and lines between the unfilled areas in the topological graph after all the devices are filled.
Preferably, the method comprises the following steps: the topological graph is a matrix topological graph, and the area is a square area.
Preferably, the method comprises the following steps: the display of the topological graph area and the line is realized by a JavaScript language or a VBScript language.
Preferably, the method comprises the following steps: the area cyclic filling unit is specifically configured to reselect another square area in the peripheral area for filling when a new device is filled into the peripheral area of the filled device, for example, when the peripheral area has a device that has been filled.
Preferably, the method comprises the following steps: the hiding of the topological graph area and the line is realized by a JavaScript language or a VBScript language.
The invention has the beneficial effects that: the invention converts the connection information of the test equipment in the prior art, converts the connection information of the equipment into the topological graph display among the plurality of test equipment, so that a tester can quickly and intuitively know the overall networking topological graph of the test equipment when analyzing the log, the networking condition of the test equipment does not need to be combed in time, the log analysis efficiency is greatly improved, and the labor and the time are saved.
The concrete description is as follows: according to the method, the automatic log is stored in an HTML format, JavaScript or VBScript codes are embedded into an HTML format file, a large matrix networking topological graph is drawn in the log file, information which is connected in pairs among all devices is read, the device information is filled into a corresponding area in the matrix topological graph, the unfilled area is hidden, and finally the visual topological graph of the testing device is displayed in the log file.
The invention presents the converted link information of the equipment in the automatic log, which is obviously more intuitive than the presenting mode of the prior technical scheme, so that a tester can more quickly and intuitively know the networking condition of the test equipment when analyzing the automatic log, and the log analyzing efficiency is improved.
Drawings
FIG. 1 is a matrix topology diagram plotted in step 101 according to an embodiment of the present invention;
FIG. 2 is a matrix topology after step 102 is populated in an embodiment of the present invention;
FIG. 3 is a matrix topology after step 103 is populated in an embodiment of the present invention;
FIG. 4 is a matrix topology diagram after hiding at step 104 according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating conversion of link information into a topology graph according to an 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 examples.
A method for automatically converting device link information into a topological graph, comprising the steps of:
s1, an automatic platform generates a log into an HTML format, codes are embedded into an HTML file, and a topological graph is drawn, wherein in the topological graph, every two areas representing test equipment are connected by a line;
s2, analyzing real link information connected pairwise among the test devices by the automation platform, filling the devices with the largest number of connections into a central area of the topological graph, wherein the filling contents are device names and peripheral interfaces;
s3, the automation platform obtains other test equipment connected with the test equipment filled in the step S2 according to the link information of the connection between every two test equipment, and fills the other test equipment into the area around the filled test equipment in the step S2, and the step is executed circularly;
and S4, after all the devices in the link information connected in pairs between the test devices are filled, the automatic platform hides the unfilled areas and the lines between the unfilled areas in the topological graph. The topological graph in S1 is a matrix topological graph, the area is a square area, and the displaying of the topological graph area and the line in S1 is realized by JavaScript language or VBScript language.
The topological graph in S1 is a matrix topological graph, the area is a square area, and the displaying of the topological graph area and the line in S1 is realized by JavaScript language or VBScript language.
The automation platform in S2 populates the topology map with the selected test devices by displaying the contents of the center area of the topology map as the selected devices.
When a new device is filled into the peripheral area of the filled device in S3, for example, when there is a device already filled in the peripheral area, other square areas in the peripheral area are reselected for filling.
The hiding of the topological graph area and the line in the S4 is realized by a JavaScript language or VBScript language.
In order to solve the above problems, the present invention further provides a system, which includes an automation platform, where the automation platform includes a topology drawing unit, a link analysis unit, a region filling unit, a region cyclic filling unit, and a region hiding unit; wherein,
the topological graph drawing unit is used for generating the log into an HTML format, embedding codes in an HTML file and drawing a topological graph, wherein every two areas representing the testing equipment in the topological graph are connected by a line;
the link analysis unit is used for analyzing link information connected pairwise among the devices;
the area filling unit is used for filling the equipment with the maximum number of connections in the real environment into the central area of the topological graph, and the filling contents are the equipment name and the interfaces at the periphery;
the area circulating filling unit is used for circularly filling other testing equipment connected with the filled equipment into the area around the filled equipment according to the link analysis unit until all equipment in the link information connected in pairs among the equipment is filled;
the area hiding unit is used for hiding the unfilled areas and lines between the unfilled areas in the topological graph after all the devices are filled.
The topological graph is a matrix topological graph, and the area is a square area.
The display of the topological graph area and the line is realized by a JavaScript language or a VBScript language.
The area cyclic filling unit is specifically configured to reselect another square area in the peripheral area for filling when a new device is filled into the peripheral area of the filled device, for example, when the peripheral area has a device that has been filled.
The hiding of the topological graph area and the line is realized by a JavaScript language or a VBScript language.
In the specific embodiment, referring to fig. 1, the specific steps are as follows:
step 101, an automation platform generates a log into an HTML format, and embeds JavaScript or VBScript codes into an HTML file to draw a larger matrix topological graph, wherein each block area in the matrix topological graph represents a test device, and every two blocks are connected by a line;
the display of each block area and the line of the matrix topological graph generated in the step is realized by JavaScript or VBScript code language.
102, analyzing real link information connected between every two test devices by an automation platform, filling the test device with the largest number of connections into a block area at the center of a matrix topological graph, wherein the filling contents are a device name and peripheral interfaces;
in this step, the method for the automation platform to fill the selected test device into the matrix topological graph is to display the content of the square area in the matrix topological graph as the selected device.
In this step, the selected square area is the portion of the thickened square area in the step.
And 103, the automation platform continues to obtain other test equipment connected with the equipment filled in the step 102 according to the link information of pairwise connection between the test equipment, and fills the square area around the equipment filled in the step 102.
The step is a cyclic step, namely after the equipment is filled to the square area of the matrix topological graph each time, the automation platform obtains other testing equipment connected with the equipment just filled according to the link information of the connection between every two equipment, and fills the square area around the equipment just filled again until all the equipment in the link information of the connection between every two equipment is filled.
In this step, when a new device is filled into the peripheral block area of the filled device, for example, when there is a device already filled in the peripheral block area, another block area in the peripheral block area is reselected for filling.
After the step is finished, the filling result is the area part of the thickened square in the step.
And step 104, after all the devices in the link information connected in pairs among the devices are filled, hiding the unfilled square areas in the matrix topological graph by the automation platform, and simultaneously hiding lines among the unfilled square areas.
In this step, the hiding mode of the opposite block area and the line is realized by JavaScript or VBScript language.
The invention stores the log file into HTML format, and converts the link information of the test equipment into more visual topological graphical display through JavaScript or VBScript language, and the key point is that the HTML and the JavaScript or VBScript are used for analyzing the link information which is connected in pairs among the equipment, the link information is filled in a large matrix topological graph which is constructed in advance, and finally, the useless part is hidden, and finally, the purpose of converting the equipment link information in the automatic log into topological graph for presentation is achieved, as shown in figure 5.
In the invention, the automatic platform generates the log file in the HTML format and simultaneously uniformly writes a section of JavaScript or VBScript conversion code or other similar languages to realize the automatic conversion of various link information.
It will be appreciated by those of ordinary skill in the art that the examples described herein are intended to assist the reader in understanding the manner in which the invention is practiced, and it is to be understood that the scope of the invention is not limited to such specifically recited statements and examples. Those skilled in the art can make various other specific changes and combinations based on the teachings of the present invention without departing from the spirit of the invention, and these changes and combinations are within the scope of the invention.
Claims (10)
1. The method for automatically converting the equipment link information into the topological graph is characterized by comprising the following steps:
s1, an automatic platform generates a log into an HTML format, codes are embedded into an HTML file, and a topological graph is drawn, wherein in the topological graph, every two areas representing test equipment are connected through lines;
s2, analyzing real link information connected in pairs among the test devices by the automation platform, filling the test device with the largest connection number into a central area of the topological graph, wherein the filling content is a device name and peripheral interfaces;
s3, the automation platform obtains other test equipment connected with the filled equipment in the S2 according to the link information of pairwise connection between the test equipment, and fills the other test equipment into the area around the filled equipment in the S2, and the step is executed circularly;
and S4, after all the test equipment in the link information connected in pairs among the test equipment are filled, the automatic platform hides the unfilled areas and the lines among the unfilled areas in the topological graph.
2. The method according to claim 1, wherein in step S1, the topological graph is a matrix topological graph, and the display of each region and line of the topological graph is implemented by JavaScript language or VBScript language.
3. The method according to claim 2, wherein in step S2, the method for filling the test device with the largest number of connections into the central area of the topology map is to display the content of the central area of the topology map as the selected device.
4. The method according to claim 3, wherein in step S3, when a new device is filled into the surrounding area of the filled device, such as when there is a device already filled in the surrounding area, other square areas in the surrounding area are reselected for filling.
5. The method according to any one of claims 2 to 4, wherein in step S4, the hiding of the topological graph area and the line is implemented by JavaScript language or VBScript language.
6. The system for automatically converting the equipment link information into the topological graph is characterized by comprising an automatic platform, wherein the automatic platform comprises a topological graph drawing unit, a link analysis unit, a region filling unit, a region circulating filling unit and a region hiding unit; wherein,
the topological graph drawing unit is used for generating the log into an HTML format, embedding codes in an HTML file and drawing a topological graph, wherein every two areas representing the testing equipment in the topological graph are connected by a line;
the link analysis unit is used for analyzing real link information connected pairwise among the test devices;
the area filling unit is used for filling the test equipment with the largest number of connections in the real environment into the central area of the topological graph, and the filling contents are the equipment name and the interfaces at the periphery;
the area circulating filling unit is used for circularly filling other testing equipment connected with the filled equipment into the area around the filled equipment according to the link analysis unit until all the testing equipment in the link information connected in pairs among the testing equipment is filled;
the area hiding unit is used for hiding the unfilled areas and lines between the unfilled areas in the topological graph after all the test equipment is filled.
7. The system of claim 6, wherein the topology is a matrix topology.
8. The system of claim 7, wherein the topology map area and the line are displayed in a JavaScript language or a VBScript language.
9. The system according to claim 8, wherein the region cyclic filling unit is further configured to reselect other square regions in the surrounding region for filling when a new device is filled into the surrounding region of the filled device, such as when there is a device already filled in the surrounding region.
10. The system according to any one of claims 7-9, wherein: the hiding of the topological graph area and the line is realized by a JavaScript language or a VBScript language.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410011485.4A CN103763153B (en) | 2014-01-10 | 2014-01-10 | The automatic method and system that device link information is converted to topological graph |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410011485.4A CN103763153B (en) | 2014-01-10 | 2014-01-10 | The automatic method and system that device link information is converted to topological graph |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103763153A true CN103763153A (en) | 2014-04-30 |
CN103763153B CN103763153B (en) | 2017-06-06 |
Family
ID=50530316
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410011485.4A Active CN103763153B (en) | 2014-01-10 | 2014-01-10 | The automatic method and system that device link information is converted to topological graph |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103763153B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107040414A (en) * | 2017-04-05 | 2017-08-11 | 上海新炬网络信息技术有限公司 | The method that physical equipment topology is presented is used for based on JavaScript |
CN112346930A (en) * | 2020-10-30 | 2021-02-09 | 银盛支付服务股份有限公司 | Method and system for monitoring full link based on CAT |
CN112929938A (en) * | 2021-01-27 | 2021-06-08 | 华中师范大学 | AP topological relation graph generation method and system based on wireless log information |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7324456B2 (en) * | 2003-02-05 | 2008-01-29 | Samsung Electronics Co., Ltd. | Apparatus and method for testing an xDSL transceiver unit-central office |
CN101247278A (en) * | 2007-08-06 | 2008-08-20 | 北京高信达网络科技有限公司 | Routing monitoring apparatus |
CN101534216A (en) * | 2009-04-24 | 2009-09-16 | 北京东土科技股份有限公司 | Automatic topology realisation method based on topological bucket algorithm |
CN101702655A (en) * | 2009-10-27 | 2010-05-05 | 北京星网锐捷网络技术有限公司 | Layout method and system of network topological diagram |
CN102904753A (en) * | 2012-09-26 | 2013-01-30 | 迈普通信技术股份有限公司 | Method and system for rapidly establishing network topology |
CN102932201A (en) * | 2012-09-26 | 2013-02-13 | 迈普通信技术股份有限公司 | Display control system and method for network monitoring data |
-
2014
- 2014-01-10 CN CN201410011485.4A patent/CN103763153B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7324456B2 (en) * | 2003-02-05 | 2008-01-29 | Samsung Electronics Co., Ltd. | Apparatus and method for testing an xDSL transceiver unit-central office |
CN101247278A (en) * | 2007-08-06 | 2008-08-20 | 北京高信达网络科技有限公司 | Routing monitoring apparatus |
CN101534216A (en) * | 2009-04-24 | 2009-09-16 | 北京东土科技股份有限公司 | Automatic topology realisation method based on topological bucket algorithm |
CN101702655A (en) * | 2009-10-27 | 2010-05-05 | 北京星网锐捷网络技术有限公司 | Layout method and system of network topological diagram |
CN102904753A (en) * | 2012-09-26 | 2013-01-30 | 迈普通信技术股份有限公司 | Method and system for rapidly establishing network topology |
CN102932201A (en) * | 2012-09-26 | 2013-02-13 | 迈普通信技术股份有限公司 | Display control system and method for network monitoring data |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107040414A (en) * | 2017-04-05 | 2017-08-11 | 上海新炬网络信息技术有限公司 | The method that physical equipment topology is presented is used for based on JavaScript |
CN112346930A (en) * | 2020-10-30 | 2021-02-09 | 银盛支付服务股份有限公司 | Method and system for monitoring full link based on CAT |
CN112929938A (en) * | 2021-01-27 | 2021-06-08 | 华中师范大学 | AP topological relation graph generation method and system based on wireless log information |
CN112929938B (en) * | 2021-01-27 | 2022-05-03 | 华中师范大学 | AP topological relation graph generation method and system based on wireless log information |
Also Published As
Publication number | Publication date |
---|---|
CN103763153B (en) | 2017-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9165100B2 (en) | Methods and apparatus to map schematic elements into a database | |
CN103197930B (en) | The method that automobile diagnostic software automatically generates | |
CN107273297B (en) | Method and device for generating test cases | |
CN103763153B (en) | The automatic method and system that device link information is converted to topological graph | |
CN108519929B (en) | CRC (cyclic redundancy check) method and device for bus protection configuration management and control of intelligent substation | |
KR101587279B1 (en) | Functional safety testing device having user interface for msc input and testing method thereof | |
JP2014143644A (en) | Test device and test display method | |
CN114003451B (en) | Interface testing method, device, system and medium | |
CN110069413A (en) | Test data communication, test method, device, equipment and storage medium | |
CN112631937A (en) | Automatic CAN operation testing method and device for T-Box | |
CN112416775B (en) | Software automatic test method and device based on artificial intelligence and electronic equipment | |
CN104636784A (en) | Two-dimensional code, and generation method and identification method thereof | |
CN109032937B (en) | Data selection method and system based on webpage | |
CN104240142A (en) | Version difference highly-visualized exhibition method for intelligent substation secondary system configuration | |
JP5583726B2 (en) | Test apparatus and test method | |
CN111695238A (en) | System and method for visualizing transient simulation data of power system | |
CN105490914A (en) | Light-emitting diode (LED) automation server and interaction method | |
JP5208230B2 (en) | Mobile communication terminal test apparatus and message display method | |
CN103595819A (en) | Method for online testing service usability of web system | |
JP5433753B1 (en) | Test apparatus and test method | |
CN103699482A (en) | Method and device for testing reasonableness of controls | |
CN115454865A (en) | Software test data design method and device, electronic equipment and storage medium | |
CN115097808A (en) | Vehicle fault code simulation test method, system, electronic equipment and storage | |
CN102854875B (en) | Automobile air conditioner controller testing method and system | |
CN110928219B (en) | Method for quickly accessing working condition parameters of engineering machinery |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |