CN108075938A - A kind of automated testing method and device - Google Patents

A kind of automated testing method and device Download PDF

Info

Publication number
CN108075938A
CN108075938A CN201611013365.3A CN201611013365A CN108075938A CN 108075938 A CN108075938 A CN 108075938A CN 201611013365 A CN201611013365 A CN 201611013365A CN 108075938 A CN108075938 A CN 108075938A
Authority
CN
China
Prior art keywords
equipment
topology
physical vlan
automatic test
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.)
Pending
Application number
CN201611013365.3A
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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201611013365.3A priority Critical patent/CN108075938A/en
Publication of CN108075938A publication Critical patent/CN108075938A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)

Abstract

An embodiment of the present invention provides a kind of automated testing method and devices, belong to automatic test technology field.The described method includes:It obtains and the corresponding perform script of test case respectively, and it pair is parsed with the corresponding topological file of the perform script, obtain the description information in each topological file, wherein, the description information includes the connection relation between device type, number of devices, equipment interface quantity and equipment.Corresponding multiple equipment is selected according to the description information, the physical vlan topology for performing automatic test is built, and the occupancy of each equipment in the physical vlan topology is set to identify.Automatic test, output and the corresponding test result of each perform script are carried out for each perform script.The present invention can effectively improve the efficiency and precision tested automatically testing machine.

Description

A kind of automated testing method and device
Technical field
The present invention relates to automatic test technology field, in particular to a kind of automated testing method and device.
Background technology
With the upgrading of automatically testing machine (such as router and interchanger etc.), it includes chip also increasingly It is more, and chip plays an important role for the forwarding of data.In order to ensure the use quality of automatically testing machine, it will usually Automatically testing machine is tested for the property before dispatching from the factory.In recent years, the automatization testing technique that data communication field occurs is very Reduce the substantial amounts of repeated labor of manual test personnel in big degree, so as to reduce the cost of product development and exploitation Cycle brings very big contribution for test job.
Inventor has found under study for action, in current automatic test course, typically uses actual physical equipment and takes Build test network to be tested, but often bring other various problems, for example, the loosening of cable, the input of device resource and Equipment upgrade pretty troublesome etc..In addition, during the test, being inevitably present with the exception of environment, it is also required to this when Labor intensive goes investigation environmental problem.Meanwhile test environment is built, investigate environmental problem, it is also desirable to regular hour cost, shadow Ring the efficiency of test.
The content of the invention
The present invention provides a kind of automated testing method and devices, it is intended to by pair with the corresponding topology of perform script File is parsed, and obtains description information, and then is built physical vlan topology and carried out automatic test, is effectively increased to automatic Change efficiency and accuracy that test machine carries out automatic test.
In a first aspect, a kind of automated testing method provided in an embodiment of the present invention, including:
Obtain respectively with the corresponding perform script of test case, and pair with the corresponding topological file of the perform script into Row parsing, obtains the description information in the topological file, and the description information includes device type, number of devices, equipment and connects Connection relation between mouth quantity and equipment;
Corresponding multiple equipment is selected according to the description information, builds the physical vlan topology for performing automatic test, And lock each equipment in the physical vlan topology;
Automatic test, output and the corresponding test result of each perform script are carried out for each perform script.
Preferably, the step for building the physical vlan topology for performing automatic test includes:
Creating one according to the connection relation between the equipment has the physical vlan topology of graphical operation interface;
It is soft according to device type progress to each equipment in the physical vlan topology in the graphical operation interface Part edition upgrading.
Preferably, the step for building the physical vlan topology for performing automatic test includes:
The physical vlan topology based on order line control is created according to the connection relation between the equipment;
Software is carried out according to device type to each equipment in the physical vlan topology by order line control instruction Edition upgrading.
Preferably, in the physical vlan topology, the attribute information of equipment is stored in a configuration file, wherein, institute Stating the attribute information of equipment includes the use state of device numbering, interface quantity, the software version of equipment and equipment.
Preferably, the method for lockking each equipment in the physical vlan topology, including:
The use state of each equipment is arranged to be used.
Second aspect, a kind of automatic test device provided in an embodiment of the present invention, including:
Automated execution module, for obtain respectively with the corresponding perform script of test case, and pair with the execution foot This corresponding topological file is parsed, and obtains the description information in the topological file, and the description information includes equipment Connection relation between type, number of devices, equipment interface quantity and equipment;
Virtual topology builds module, and for selecting corresponding multiple equipment according to the description information, it is automatic to build execution Change the physical vlan topology of test, and lock each equipment in the physical vlan topology;
Test module carries out automatic test for being directed to each perform script, and output is corresponding with each perform script Test result.
Preferably, the virtual topology structure module includes the first creating unit and the first upgrade unit, wherein,
First creating unit has graphical operation circle for creating one according to the connection relation between the equipment The physical vlan topology in face;
First upgrade unit, for being set in the graphical operation interface to each in the physical vlan topology It is standby to carry out software release upgrade according to device type.
Preferably, the virtual topology structure module includes the second creating unit and the second upgrade unit, wherein,
Second creation module, for creating the void based on order line control according to the connection relation between the equipment Intend physical topology;
Second upgraded module, for passing through order line control instruction to each equipment in the physical vlan topology Software release upgrade is carried out according to device type.
Preferably, in the physical vlan topology, the attribute information of equipment is stored in a configuration file, wherein, institute Stating the attribute information of equipment includes the use state of device numbering, interface quantity, the software version of equipment and equipment.
Preferably, each equipment lockked in the physical vlan topology refers to the use state of each equipment It is arranged to be used.
A kind of automated testing method and device provided in an embodiment of the present invention by reading perform script, are obtained and are somebody's turn to do The corresponding topological file of perform script, obtains description information after being parsed to the topology file, is selected according to the description information It selects multiple equipment and builds the physical vlan topology for performing automatic test, and then perform automatic test, obtain test result, because This effectively increases the efficiency and accuracy that automatic test is carried out to automatically testing machine.
For the above objects, features and advantages of the present invention is enable to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
It in order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore should not be viewed as pair The restriction of scope, for those of ordinary skill in the art, without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of composition frame chart for automatically testing machine that embodiment of the present invention provides.
Fig. 2 is a kind of functional block diagram for automatic test device that embodiment of the present invention provides.
Fig. 3 shows the composition frame chart of the virtual topology structure module in Fig. 2.
Fig. 4 is a kind of flow chart for automated testing method that embodiment of the present invention provides.
Fig. 5 is the flow chart of the step for building the physical vlan topology for performing automatic test in Fig. 4.
Fig. 6 is the flow chart of the step for building the physical vlan topology for performing automatic test in Fig. 4.
Figure acceptance of the bid, which is remembered, is respectively:
Icon:100- automatically testing machines;200- automatic test devices;201- automated execution modules;202- is virtual Topology constructing module;203- test modules;The first creating units of 2021-;The first upgrade units of 2022-;2023- second creates list Member;The second upgrade units of 2024-.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art All other embodiments obtained without creative efforts belong to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
As shown in Figure 1, it is the composition frame chart of automatically testing machine 100 provided in an embodiment of the present invention.The automatic test Machine 100 may be, but not limited to, PC machine and server etc..Wherein, the automatically testing machine 100 can including device 200 It is stored in the memory of the automatically testing machine 100, and is performed by the processor of the automatically testing machine 100.
As shown in Fig. 2, it is the functional block diagram of automatic test device 200 provided in an embodiment of the present invention.Wherein, institute Stating automatic test device 200 can include:Automated execution module 201, virtual topology structure module 202 and test module 203.Above each function module will be described in detail below.
In the present embodiment, the automated execution module 201 obtains be stored in depositing for the automatically testing machine 100 respectively Multiple perform scripts in reservoir.The perform script supports a variety of scripts, such as:JavaScript、ASP、JSP、PHP、 SQL and Shell language etc..The perform script is determined that different test cases corresponds to different by default test case Perform script.Wherein, the test case can be used for various agreements of the test run on automatically testing machine 100, example Such as:TCP/IP (Transmission Control Protocol/Internet Protocol, transmission control protocol/internet Interconnection protocol), OSPF (Open Shortest Path First, open type shortest path priority protocol), IGP (Interior Gateway Protocols, Interior Gateway Protocol) and EGP (Exterior Gateway Protocols, Exterior Gateway Protocol) Deng.In addition, the automated execution module 201 obtains corresponding topological file according to each perform script, and to topology text Part is parsed, and the virtual topology structure module 202 is sent to after obtaining corresponding description information.Wherein, the description letter Breath can include the type, the quantity of equipment, the interconnection between the interface quantity and multiple equipment of each equipment of equipment Relation etc..
In the present embodiment, what automated execution module 201 described in virtual topology structure 202 real-time reception of module was sent Description information, and the related content in the description information is extracted, corresponding multiple equipment is selected, it will based on virtual networking technology The plurality of equipment carries out virtual networking, builds and the corresponding physical vlan for being used to perform automatic test of the description information Topology.
In detail, the virtual topology structure module 202 extracts the type of the equipment in the description information, the number of equipment The interface quantity of amount and each equipment determines to need the multiple equipment for carrying out virtual networking.Then, the description information is extracted In multiple equipment between interconnected relationship, virtual networking is carried out to definite multiple equipment, obtain it is corresponding perform from The physical vlan topology of dynamicization test.Such as:The device type needed according to the corresponding description information of perform script is road By device, and the quantity of router is three, if three routers are respectively router A, router B and router C.Wherein, The interface quantity that the router A needs is two, and the interface quantity that the router B needs is three and the router The interface quantity that C needs is one.Then, the interconnected relationship between three routers in description information to this three A router carries out virtual networking, builds physical vlan topology corresponding with the perform script.In addition, the physical vlan is set The occupancy mark of each equipment in topology.
In order to increase the convenience tested the automatically testing machine 100 and man-machine interaction, simplify operation step Suddenly.As shown in figure 3, the virtual topology module can include the first creating unit 2021 and the first upgrade unit 2022.
Wherein, first creating unit 2021 is created according to the connection relation between definite multiple equipment has figure Change the physical vlan topology of operation interface.In the present embodiment, different appliance icons can be selected according to the type of each equipment, In order to distinguish.According to the connection relation between the multiple equipment each equipment can also be determined in the operation interface On position so that whole operation simple interface and beauty etc..First upgrade unit 2022 can to each equipment according to Device type carries out the upgrading of software version, so as to simplify operation.In detail, when user needs to carry out certain type of equipment During the upgrading of software version, can be selected in the graphical operation interface with the corresponding appliance icon of the equipment, double-click or Person's right click appliance icon pops up a upgrade option list, in the option list selection need the software version that upgrades, i.e., pair Equipment corresponding with the appliance icon carries out the upgrading of software version.
Further referring to Fig. 3, virtual topology structure module 202 can also include the second creating unit 2023 and the Two upgrade units 2024.Wherein, second creating unit 2023 is created according to the connection relation between definite multiple equipment Physical vlan topology based on order line control.In the present embodiment, different equipment can be specified by order line control instruction. Second upgrade unit 2024 can carry out specified each equipment according to device type the upgrading of software version, so as to letter Change operation.It in detail, can be first in order line when user needs to carry out the upgrading of software version to certain type of equipment Interface inputs default order line control instruction and specifies the equipment that needs upgrade, then input need the software version number upgraded with And confirm the instruction of upgrading, i.e., the upgrading of software version is carried out to specified equipment.
In addition, the accuracy of automatic test is carried out to the automatically testing machine 100, it is necessary to by virtual object in order to realize The attribute of each equipment in reason topology is recorded.In the present embodiment, in the physical vlan topology, by each equipment Attribute information is stored in a configuration file.Wherein, the attribute information of the equipment can include the number of equipment, equipment connects Use state of mouth quantity, the software version of equipment and equipment etc..Therefore, virtual topology structure module 202 can be with The occupancy of each equipment in the physical vlan topology is set to identify, the networking state of the equipment is represented, to avoid virtual Networking and test errors caused by due to the reuse of equipment during networking.In the present embodiment, when the equipment is in lock Firmly during state, the use state of the equipment is arranged to be used in the configuration file, expression cannot be used for again into Row virtual networking etc..
For each perform script, after building of physical vlan topology is completed when the virtual topology builds module 202, A test instruction is sent to the test module 203.The test module 203 is held under the control of the test instruction to each It travels far and wide this progress automatic test.It, can (such as regression test and configuration be surveyed according to different test mode in the present embodiment Examination), different test level (such as UI tests, interface testing and unit testing etc.) and different test protocols (such as TCP/IP and OSPF etc.) automatic test code is write out, and the code is implanted into the memory.In addition, with each survey The corresponding perform script of example on probation can be corresponded in the write-in memory.The test module 203 is receiving test instruction Afterwards, corresponding automatic test code is called to test each perform script, and test result is exported.Its In, the way of output of the test result can include, but not limited to electrical form, while also the electrical form can be carried out Printing.
As shown in figure 4, it is a kind of automated testing method provided in an embodiment of the present invention.This method can include following step Suddenly:
Step S101:Obtain respectively with the corresponding perform script of test case, it is and pair corresponding with the perform script Topological file is parsed, and obtains the description information in the topological file.
In the present embodiment, which supports a variety of scripts, such as:JavaScript、ASP、JSP、PHP、SQL And Shell language etc..The perform script is determined that different test cases corresponds to different hold by default test case Travel far and wide this.Wherein, which can be used for various agreements of the test run on automatically testing machine 100, such as:TCP/ IP (Transmission Control Protocol/Internet Protocol, transmission control protocol/Internet Interconnection association View), OSPF (Open Shortest Path First, open type shortest path priority protocol), IGP (Interior Gateway protocols, Interior Gateway Protocol) and EGP (Exterior gateway protocols, Exterior Gateway Protocol) Deng.In addition, in the step S101, can be obtained by the automated execution module 201 according to each perform script corresponding Topological file, and the topology file is parsed, it is sent to the virtual topology structure mould after obtaining corresponding description information Block 202.Wherein, the description information can include the type of equipment, the quantity of equipment, the interface quantity of each equipment and more Interconnected relationship between a equipment etc..
Step S102:Corresponding multiple equipment is selected according to the description information, builds and performs the virtual of automatic test Physical topology, and the occupancy of each equipment in the physical vlan topology is set to identify.
In detail, in step S102, can module 202 be built by the virtual topology and extracted in the description information The interface quantity of the type of equipment, the quantity of equipment and each equipment determines to need the multiple equipment for carrying out virtual networking.It connects It, extracts the interconnected relationship between the multiple equipment in the description information, virtual group is carried out to definite multiple equipment Net obtains corresponding physical vlan topology.Such as:It is according to the device type that the corresponding description information of perform script is needed Router, and the quantity of router is three, if three routers are respectively router A, router B and router C.Its In, the interface quantity that the router A needs is two, and the interface quantity that the router B needs is three and the road The interface quantity needed by device C is one.Then, the interconnected relationship pair between three routers in description information Three routers carry out virtual networking, build physical vlan topology corresponding with the perform script.In the present embodiment, take Each equipment for selecting is built in physical vlan topology to possess the virtual unit of the port of needs and function corresponding types.In addition, It is seizure condition to set each equipment in the physical vlan topology.
In order to increase the convenience tested the automatically testing machine 100 and man-machine interaction, simplify operation step Suddenly.As shown in figure 5, the step S102 can also comprise the following steps.
Step S201:Creating one according to the connection relation between the equipment has the physical vlan of graphical operation interface Topology.
In the present embodiment, step S201 can be selected not by first creating unit 2021 according to the type of each equipment Same appliance icon, in order to distinguish.First creating unit 2021 can also be according between the multiple equipment Connection relation determines position of each equipment in the operation interface, so that whole operation simple interface and beauty etc..
Step S202:To each equipment in the physical vlan topology according to equipment class in the graphical operation interface Type carries out software release upgrade.
In detail, when user needs to carry out the upgrading of software version to certain type of equipment, step S202 can be by First upgrade unit 2022 selected in the graphical operation interface with the corresponding appliance icon of the equipment, double-click or The right click appliance icon pops up a upgrade option list, in the option list selection need the software version that upgrades, i.e., pair and The corresponding equipment of the appliance icon carries out the upgrading of software version.
As shown in fig. 6, the step S102 can also comprise the following steps.
Step S301:The physical vlan topology based on order line control is created according to the connection relation between the equipment.
In the present embodiment, step S301 can be inputted by second creating unit 2023 according in the Command Line Interface Default order line control instruction specifies different equipment.
Step S302:By order line control instruction to each equipment in the physical vlan topology according to device type Carry out software release upgrade.
In detail, when user needs to carry out the upgrading of software version to certain type of equipment, step S302 can be by The equipment that second upgrade unit 2024 specifies needs to upgrade in the default order line control instruction of Command Line Interface input, Then input needs the software version number upgraded and confirms the instruction of upgrading, i.e., the liter of software version is carried out to specified equipment Grade.
In addition, the accuracy of automatic test is carried out to the automatically testing machine 100, it is necessary to by virtual object in order to realize The attribute of each equipment in reason topology is recorded.In the present embodiment, in the physical vlan topology, by each equipment Attribute information is stored in a configuration file.Wherein, the attribute information of the equipment can include the number of equipment, equipment connects Use state of mouth quantity, the software version of equipment and equipment etc..Therefore, virtual topology structure module 202 can be with Each equipment in the physical vlan topology is set for locking-in state, the networking state of the equipment is represented to be occupied, to keep away Exempt from networking and test errors caused by due to during virtual networking because the reuse of equipment.In the present embodiment, set when described During for being in locking-in state, the use state of the equipment is arranged to be used in the configuration file, expression cannot be used In progress virtual networking etc. again.
Further referring to Fig. 4, the method further includes:
Step S103:Automatic test, output and the corresponding survey of each perform script are carried out for each perform script Test result.
It, can be according to different test modes (such as regression test and configuration testing), different tests in the present embodiment Level (such as UI tests, interface testing and unit testing etc.) and different test protocol (such as TCP/IP and OSPF etc.) are compiled Automatic test code is write out, and the code is implanted into the memory.In addition, with the corresponding execution of each test case Script can be corresponded in the write-in memory.Step S103 can be adjusted by the test module 203 after test instruction is received Each perform script is tested with corresponding automatic test code, and test result is exported.Wherein, it is described The way of output of test result can include, but not limited to electrical form, while also the electrical form can be printed.
A kind of automated testing method provided in an embodiment of the present invention, system and automatically testing machine 100 are held by reading This is traveled far and wide, acquisition and the corresponding topological file of the perform script obtain description information, root after being parsed to the topology file The physical vlan topology for performing automatic test is built according to description information selection multiple equipment, and then performs automatic test, Test result is obtained, therefore effectively increases the efficiency and accuracy that automatic test is carried out to automatically testing machine 100.
It should be noted that in embodiment provided herein, it should be understood that disclosed apparatus and method, it can To realize by another way.The apparatus embodiments described above are merely exemplary, for example, the unit is drawn Point, it is only a kind of division of logic function, there can be other dividing mode in actual implementation.
In embodiment provided herein, it should be understood that disclosed apparatus and method can pass through others Mode is realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are shown The device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, function and Operation.In this regard, each box in flow chart or block diagram can represent a part for a module, program segment or code, A part for the module, program segment or code includes the executable finger that one or more is used to implement defined logic function Order.It should also be noted that at some as in the realization replaced, the function that is marked in box can also be to be different from institute in attached drawing The order of mark occurs.For example, two continuous boxes can essentially perform substantially in parallel, they sometimes can also be by phase Anti- order performs, this is depending on involved function.It is also noted that each box in block diagram and/or flow chart, with And the combination of the box in block diagram and/or flow chart, the dedicated hardware based of function or action as defined in performing can be used System is realized or can realized with the combination of specialized hardware and computer instruction.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical location, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That unit is individually physically present, can also two or more units integrate in a unit.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that article or equipment including a series of elements not only include those elements, but also including not having There is the other element being expressly recited.In the absence of more restrictions, the element limited by sentence "including a ...", and It is not precluded in the article including the element or equipment that also there are other identical elements.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of automated testing method, which is characterized in that the described method includes:
Respectively obtain with the corresponding perform script of test case, and pair with the perform script it is corresponding topology file solve Analysis, obtains the description information in the topological file, and the description information includes device type, number of devices, equipment interface number Connection relation between amount and equipment;
Corresponding multiple equipment is selected according to the description information, the physical vlan topology for performing automatic test is built, and locks Firmly each equipment in the physical vlan topology;
Automatic test, output and the corresponding test result of each perform script are carried out for each perform script.
2. automated testing method according to claim 1, which is characterized in that described to build the void for performing automatic test The step of intending physical topology includes:
Creating one according to the connection relation between the equipment has the physical vlan topology of graphical operation interface;
Software version is carried out according to device type to each equipment in the physical vlan topology in the graphical operation interface This upgrading.
3. automated testing method according to claim 1, which is characterized in that described to build the void for performing automatic test The step of intending physical topology includes:
The physical vlan topology based on order line control is created according to the connection relation between the equipment;
Software version is carried out according to device type to each equipment in the physical vlan topology by order line control instruction Upgrading.
4. automated testing method according to claim 3, which is characterized in that in the physical vlan topology, equipment Attribute information be stored in a configuration file, wherein, the attribute information of the equipment includes device numbering, interface quantity, sets Standby software version and the use state of equipment.
5. according to claim 1-4 any one of them automated testing methods, which is characterized in that described latching physical vlan The method of each equipment in topology, including:
The use state of each equipment is arranged to be used.
6. a kind of automatic test device, which is characterized in that described device includes:
Automated execution module, for obtain respectively with the corresponding perform script of test case, and pair with the perform script phase Corresponding topology file is parsed, and obtains the description information in the topological file, the description information include device type, Connection relation between number of devices, equipment interface quantity and equipment;
Virtual topology builds module, for selecting corresponding multiple equipment according to the description information, builds execution automation and surveys The physical vlan topology of examination, and lock each equipment in the physical vlan topology;
Test module carries out automatic test, output and the corresponding survey of each perform script for being directed to each perform script Test result.
7. automatic test device according to claim 6, which is characterized in that virtual topology structure module includes the One creating unit and the first upgrade unit, wherein,
First creating unit has graphical operation interface for creating one according to the connection relation between the equipment Physical vlan topology;
First upgrade unit, for being pressed in the graphical operation interface to each equipment in the physical vlan topology Software release upgrade is carried out according to device type.
8. automatic test device according to claim 6, which is characterized in that virtual topology structure module includes the Two creating units and the second upgrade unit, wherein,
Second creation module, for creating the virtual object based on order line control according to the connection relation between the equipment Reason topology;
Second upgraded module, for pass through order line control instruction to each equipment in the physical vlan topology according to Device type carries out software release upgrade.
9. automatic test device according to claim 8, which is characterized in that in the physical vlan topology, equipment Attribute information be stored in a configuration file, wherein, the attribute information of the equipment includes device numbering, interface quantity, sets Standby software version and the use state of equipment.
10. according to claim 6-9 any one of them automatic test devices, which is characterized in that described latching virtual object Each equipment in reason topology refers to, the use state of each equipment is arranged to be used.
CN201611013365.3A 2016-11-17 2016-11-17 A kind of automated testing method and device Pending CN108075938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611013365.3A CN108075938A (en) 2016-11-17 2016-11-17 A kind of automated testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611013365.3A CN108075938A (en) 2016-11-17 2016-11-17 A kind of automated testing method and device

Publications (1)

Publication Number Publication Date
CN108075938A true CN108075938A (en) 2018-05-25

Family

ID=62159846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611013365.3A Pending CN108075938A (en) 2016-11-17 2016-11-17 A kind of automated testing method and device

Country Status (1)

Country Link
CN (1) CN108075938A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897609A (en) * 2018-06-14 2018-11-27 郑州云海信息技术有限公司 A kind of machine tasks dispatching method and device
CN108920363A (en) * 2018-06-15 2018-11-30 中国船舶工业综合技术经济研究院 A kind of multi-platform software automated testing method
CN110071848A (en) * 2019-03-27 2019-07-30 武汉思普崚技术有限公司 The method and apparatus of automatic test order line command
CN110830790A (en) * 2018-08-08 2020-02-21 浙江宇视科技有限公司 Method and device for intelligently building automatic testing networking environment
CN111124936A (en) * 2020-02-28 2020-05-08 苏州市龙测智能科技有限公司 Building block type software testing method, testing device, testing equipment and storage medium
CN111159006A (en) * 2018-11-07 2020-05-15 迈普通信技术股份有限公司 Automatic testing method and device
CN111181801A (en) * 2019-12-04 2020-05-19 腾讯云计算(北京)有限责任公司 Node cluster testing method and device, electronic equipment and storage medium
CN111177728A (en) * 2019-10-10 2020-05-19 腾讯科技(深圳)有限公司 Virtual equipment vulnerability mining method, device and medium
CN112817861A (en) * 2021-02-20 2021-05-18 汇链通供应链科技(上海)有限公司 Multi-interface automatic testing method and device based on self-organizing network
CN112860558A (en) * 2021-02-20 2021-05-28 汇链通供应链科技(上海)有限公司 Multi-interface automatic testing method and device based on topology discovery

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731747A (en) * 2005-07-29 2006-02-08 杭州华为三康技术有限公司 Automatization testing frame system and method
CN1780237A (en) * 2004-11-22 2006-05-31 华为技术有限公司 Logic topological network for protocol test and method for realizing protocol test
CN102855175A (en) * 2011-06-28 2013-01-02 北京新媒传信科技有限公司 Automated testing method and automated testing device
CN103812726A (en) * 2014-01-26 2014-05-21 烽火通信科技股份有限公司 Automated testing method and device for data communication equipment
CN105335287A (en) * 2015-10-15 2016-02-17 广东欧珀移动通信有限公司 Automatic test method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1780237A (en) * 2004-11-22 2006-05-31 华为技术有限公司 Logic topological network for protocol test and method for realizing protocol test
CN1731747A (en) * 2005-07-29 2006-02-08 杭州华为三康技术有限公司 Automatization testing frame system and method
CN102855175A (en) * 2011-06-28 2013-01-02 北京新媒传信科技有限公司 Automated testing method and automated testing device
CN103812726A (en) * 2014-01-26 2014-05-21 烽火通信科技股份有限公司 Automated testing method and device for data communication equipment
CN105335287A (en) * 2015-10-15 2016-02-17 广东欧珀移动通信有限公司 Automatic test method and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897609A (en) * 2018-06-14 2018-11-27 郑州云海信息技术有限公司 A kind of machine tasks dispatching method and device
CN108920363A (en) * 2018-06-15 2018-11-30 中国船舶工业综合技术经济研究院 A kind of multi-platform software automated testing method
CN110830790A (en) * 2018-08-08 2020-02-21 浙江宇视科技有限公司 Method and device for intelligently building automatic testing networking environment
CN111159006A (en) * 2018-11-07 2020-05-15 迈普通信技术股份有限公司 Automatic testing method and device
CN110071848A (en) * 2019-03-27 2019-07-30 武汉思普崚技术有限公司 The method and apparatus of automatic test order line command
CN111177728A (en) * 2019-10-10 2020-05-19 腾讯科技(深圳)有限公司 Virtual equipment vulnerability mining method, device and medium
CN111177728B (en) * 2019-10-10 2022-06-17 腾讯科技(深圳)有限公司 Virtual equipment vulnerability mining method, device and medium
CN111181801A (en) * 2019-12-04 2020-05-19 腾讯云计算(北京)有限责任公司 Node cluster testing method and device, electronic equipment and storage medium
CN111124936A (en) * 2020-02-28 2020-05-08 苏州市龙测智能科技有限公司 Building block type software testing method, testing device, testing equipment and storage medium
CN111124936B (en) * 2020-02-28 2023-10-31 师江帆 Building block type software testing method, testing device, testing equipment and storage medium
CN112817861A (en) * 2021-02-20 2021-05-18 汇链通供应链科技(上海)有限公司 Multi-interface automatic testing method and device based on self-organizing network
CN112860558A (en) * 2021-02-20 2021-05-28 汇链通供应链科技(上海)有限公司 Multi-interface automatic testing method and device based on topology discovery
CN112860558B (en) * 2021-02-20 2022-05-31 汇链通产业供应链数字科技(厦门)有限公司 Multi-interface automatic testing method and device based on topology discovery

Similar Documents

Publication Publication Date Title
CN108075938A (en) A kind of automated testing method and device
CN105700888B (en) A kind of visualization quick development platform based on jbpm workflow engine
Ghamarian et al. Modelling and analysis using GROOVE
US7881440B2 (en) Method for automatic graphical profiling of a system
US10503844B1 (en) Identification and simulation of multiple subgraphs in multi-domain graphical modeling environment
EP3502896A1 (en) Generation of an adapters configuration user interface
US20170277516A1 (en) Designer tool for managing cloud computing services
Lazarescu Wireless sensor networks for the Internet of Things: barriers and synergies
Alférez et al. Context-aware autonomous web services in software product lines
EP2107514A1 (en) Process monitoring
Rojas et al. Are we ready to drive software-defined networks? A comprehensive survey on management tools and techniques
CN102724079B (en) Method and system for auxiliary configuration of Ethernet equipment
US9785412B1 (en) Methods and systems for object-oriented modeling of networks
US20200410150A1 (en) Generating a template-driven schematic from a netlist of electronic circuits
CN106797670A (en) Initialized using the physical switches for characterizing state transfer service
US20220066916A1 (en) Mapping test parameter data elements during heterogeneous component-based testing in a portable automation framework in both api mode and ui mode
CN109032850A (en) Field device debugging system and field device adjustment method
CN104081347A (en) Graphical representation of an order of operations
Ratan Practical Network Automation: Leverage the power of Python and Ansible to optimize your network
US11269712B1 (en) Customized categorial error handling framework for heterogeneous component-based testing in a portable automation framework
CN109725884A (en) Air control ' In System Reconfiguration Method, device, equipment and readable storage medium storing program for executing
Lednicki et al. A framework for generation of inter-node communication in component-based distributed embedded systems
Ratan et al. Python network programming: conquer all your networking challenges with the powerful python language
Rendon et al. A mashup-based approach for virtual SDN management
CN116360712A (en) Platform framework extension method, device and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180525