CN105306292A - Automatic test system - Google Patents

Automatic test system Download PDF

Info

Publication number
CN105306292A
CN105306292A CN201510638460.1A CN201510638460A CN105306292A CN 105306292 A CN105306292 A CN 105306292A CN 201510638460 A CN201510638460 A CN 201510638460A CN 105306292 A CN105306292 A CN 105306292A
Authority
CN
China
Prior art keywords
test
terminal
testing equipment
order
script
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
CN201510638460.1A
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510638460.1A priority Critical patent/CN105306292A/en
Publication of CN105306292A publication Critical patent/CN105306292A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an automatic test system, comprising a test terminal which is connected with a test device and is used for testing the test device, wherein the test terminal comprises: a first storage unit used for storing a test script, and the test script comprises at least one test case; a communication unit used for communicating with the test device; a control unit, which is respectively connected with the first storage unit and the communication unit and is used for controlling the test script to test the corresponding test device; and a recording unit, which is connected with the communication unit and is used for recording a test case result of the test script to the test device. According to the automatic test system disclosed by the invention, the control unit controls the test script to test the test device, the recording unit records the test case result, the test device can be automatically tested, the test efficiency is improved, the accuracy is high, and the uniformity and repeatability are strong.

Description

A kind of automatization test system
Technical field
The present invention relates to automatic test field, particularly relate to a kind of automatization test system.
Background technology
Current switch test carries out sequence permutation, to reduce the workload of operation maintenance personnel mainly for the switch type information of different vendor, basic command and operational order.But also cannot realize invoke script to test switch, configuration cannot be issued to switch.Each order for switch all will by testing manually, and test result is often uneven.Testing time also cannot ensure.Especially in regression test, need repeatedly retest manually, there is the problem that efficiency is low, content measurement is inconsistent and easily cause testing error in the process of implementation because of artificial carelessness.
Summary of the invention
For the problems referred to above that existing switch test exists, now provide a kind of and be intended to realize the automatization test system that operational testing efficiency is high, error rate is low.
Concrete technical scheme is as follows:
A kind of automatization test system, comprising: a test terminal, is connected with testing equipment, in order to test described testing equipment;
Described test terminal comprises:
One first memory cell, in order to On-board test script, described test script comprises at least one test case;
One communication unit, in order to communicate with described testing equipment;
One control unit, connects described first memory cell and described communication unit respectively, tests corresponding described testing equipment in order to control described test script;
One record cell, connects described communication unit, in order to record the test case result that described test script is tested described testing equipment.
Preferably, described test terminal also comprises: an edit cell, connects described first memory cell, in order to edit described test script.
Preferably, described test script comprises user name to the described testing equipment that described testing equipment is tested, password, IP address and port baud rate.
Preferably, described communication unit adopts serial port.
Preferably, described communication unit adopts remote terminal protocol port.
Preferably, described testing equipment adopts switch.
Preferably, described test terminal also comprises:
One second memory cell, connects described record cell, in order to store described test case result.
Preferably, described test terminal also comprises:
One display unit, connects described record cell, in order to show described test case result.
Preferably, also comprise: at least one subtest terminal, each described subtest terminal is connected with described testing equipment, the corresponding network address of each described subtest terminal;
Described test script comprises the test topology relation of the corresponding network address of each described subtest terminal and described subtest terminal and described testing equipment, and described control unit is in order to the connectedness according to the described test topology relation test in described test script between subtest terminal and described testing equipment.
The beneficial effect of technique scheme:
In the technical program, control test script by control unit and test testing equipment, adopt recording unit records test case result, can automatically test testing equipment, improve testing efficiency, accuracy rate is high, consistency and repeatability strong.
Accompanying drawing explanation
Fig. 1 is the module map of a kind of embodiment of automatization test system of the present invention;
Fig. 2 is the module map of the another kind of embodiment of automatization test system of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, all belongs to the scope of protection of the invention.
It should be noted that, when not conflicting, the embodiment in the present invention and the feature in embodiment can combine mutually.
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
As shown in Figure 1, a kind of automatization test system, comprising: a test terminal 8, is connected with testing equipment 9, in order to test testing equipment 9;
Test terminal 8 comprises:
One first memory cell 7, in order to On-board test script, test script comprises at least one test case;
One communication unit 4, in order to communicate with testing equipment 9;
One control unit 5, connects the first memory cell 7 and communication unit 4 respectively, tests corresponding testing equipment 9 in order to control test script;
One record cell 2, connects communication unit 4, in order to record the test case result that test script is tested testing equipment 9.
Further, testing equipment 9 adopts switch.First memory cell 7 can store the script test suite of multiple test script and preset order, and control unit 5 can control script test suite and test accordingly switch.
In the present embodiment, automatization test system adopts Tool Command Language (ToolCommandLanguage, Tcl) to realize.Test script adopts Tcl script.Control test script by control unit 5 to test testing equipment 9, control unit 5 can control test script in test process to be stopped test or controls the test of test script Yuncheng; Adopt record cell 2 to record test case success or failed result, can automatically test testing equipment 9, improve testing efficiency, accuracy rate is high, consistency and repeatability strong.
In a preferred embodiment, test terminal 8 also comprises:
One edit cell 6, connects the first memory cell 7, in order to edit test script.
In the present embodiment, can be used for edit script by edit cell 6 and the relevant parameter of testing equipment 9 is set.
In a preferred embodiment, test script comprises user name to the testing equipment 9 that testing equipment 9 is tested, password, IP address and port baud rate.
In the present embodiment, the relevant parameter of testing equipment 9 is set, such as: when testing equipment 9 is switch, can arrange the serial port baud rate of switch, username and password, management ip address etc. by edit cell 6.
In a preferred embodiment, communication unit 4 adopts serial port.
In the present embodiment, serial port is used for tandem metadata transmission by turn, as: RS-232 serial port.
In a preferred embodiment, communication unit 4 adopts remote terminal protocol port.
In the present embodiment, remote terminal protocol (Telnet) port, can be the ability completing distance host work on the local computer.
In a preferred embodiment, test terminal 8 also comprises:
One second memory cell 1, linkage record unit 2, in order to On-board test use-case result.
In the present embodiment, by the second memory cell 1 On-board test use-case result, user is facilitated to search or the test of transferring test result a pair switch is analyzed.
In a preferred embodiment, test terminal 8 also comprises:
One display unit 3, linkage record unit 2, in order to show test case result.
In the present embodiment, test case result is shown with the process and the correlated results that make user get information about test by display unit 3.
As shown in Figure 2, in a preferred embodiment, also comprise: at least one subtest terminal 10, each subtest terminal 10 is connected with testing equipment 9, the corresponding network address of each subtest terminal 10;
Test script comprises the test topology relation of the corresponding network address of each subtest terminal 10 and subtest terminal 10 and testing equipment 9, and control unit 5 is in order to according to the connectedness between the test topology relation test subtest terminal 10 in test script and testing equipment 9.
In the present embodiment, when the vlan port test to switch, need subtest terminal 10 to carry out subtest, the test script file of VLAN is as follows:
The present invention can manage the test case of test script, automatic test cases can also be organized to test with the form of test suite; Remote terminal protocol port and/or serial port can be adopted to communicate with switch, with the process realizing i.e. packet receiving, give out a contract for a project; Arrange test result by record cell, the Debugging message comprising log recording and export in real time, can real time inspection.
Greatly can improve testing efficiency when testing, shortening the regression test time, there is consistency and repeatability.Because test automatically performs, the consistency of each result of test and the content of execution can be protected, thus reaches the repeatably effect of test, and avoids carelessness artificial in manual testing's process and mistake.
The foregoing is only preferred embodiment of the present invention; not thereby embodiments of the present invention and protection range is limited; to those skilled in the art; should recognize and all should be included in the scheme that equivalent replacement done by all utilizations specification of the present invention and diagramatic content and apparent change obtain in protection scope of the present invention.

Claims (9)

1. an automatization test system, is characterized in that, comprising: a test terminal, is connected with testing equipment, in order to test described testing equipment;
Described test terminal comprises:
One first memory cell, in order to On-board test script, described test script comprises at least one test case;
One communication unit, in order to communicate with described testing equipment;
One control unit, connects described first memory cell and described communication unit respectively, tests corresponding described testing equipment in order to control described test script;
One record cell, connects described communication unit, in order to record the test case result that described test script is tested described testing equipment.
2. automatization test system as claimed in claim 1, it is characterized in that, described test terminal also comprises: an edit cell, connects described first memory cell, in order to edit described test script.
3. automatization test system as claimed in claim 1, is characterized in that, described test script comprises user name to the described testing equipment that described testing equipment is tested, password, IP address and port baud rate.
4. automatization test system as claimed in claim 1, is characterized in that, described communication unit adopts serial port.
5. automatization test system as claimed in claim 1, is characterized in that, described communication unit adopts remote terminal protocol port.
6. automatization test system as claimed in claim 1, is characterized in that, described testing equipment adopts switch.
7. automatization test system as claimed in claim 1, it is characterized in that, described test terminal also comprises:
One second memory cell, connects described record cell, in order to store described test case result.
8. automatization test system as claimed in claim 1, it is characterized in that, described test terminal also comprises:
One display unit, connects described record cell, in order to show described test case result.
9. automatization test system as claimed in claim 1, it is characterized in that, also comprise: at least one subtest terminal, each described subtest terminal is connected with described testing equipment, the corresponding network address of each described subtest terminal;
Described test script comprises the test topology relation of the corresponding network address of each described subtest terminal and described subtest terminal and described testing equipment, and described control unit is in order to the connectedness according to the described test topology relation test in described test script between subtest terminal and described testing equipment.
CN201510638460.1A 2015-09-29 2015-09-29 Automatic test system Pending CN105306292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510638460.1A CN105306292A (en) 2015-09-29 2015-09-29 Automatic test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510638460.1A CN105306292A (en) 2015-09-29 2015-09-29 Automatic test system

Publications (1)

Publication Number Publication Date
CN105306292A true CN105306292A (en) 2016-02-03

Family

ID=55203072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510638460.1A Pending CN105306292A (en) 2015-09-29 2015-09-29 Automatic test system

Country Status (1)

Country Link
CN (1) CN105306292A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030191590A1 (en) * 2002-04-04 2003-10-09 Catteleya Systems Interactive automatic-test GUI for testing devices and equipment using shell-level, CLI, and SNMP commands
CN1529466A (en) * 2003-09-29 2004-09-15 港湾网络有限公司 Network device automatic measuring method
CN101110734A (en) * 2007-08-24 2008-01-23 福建星网锐捷网络有限公司 Automatization test approach and system
CN101179456A (en) * 2007-12-11 2008-05-14 福建星网锐捷网络有限公司 Network appliance testing approach and device
CN102622234A (en) * 2012-03-07 2012-08-01 迈普通信技术股份有限公司 Development system and method for automatic test case
CN103684581A (en) * 2013-12-20 2014-03-26 上海斐讯数据通信技术有限公司 Automatic testing tool and testing method for vlan function of ONU (Optical Network Unit)

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030191590A1 (en) * 2002-04-04 2003-10-09 Catteleya Systems Interactive automatic-test GUI for testing devices and equipment using shell-level, CLI, and SNMP commands
CN1529466A (en) * 2003-09-29 2004-09-15 港湾网络有限公司 Network device automatic measuring method
CN101110734A (en) * 2007-08-24 2008-01-23 福建星网锐捷网络有限公司 Automatization test approach and system
CN101179456A (en) * 2007-12-11 2008-05-14 福建星网锐捷网络有限公司 Network appliance testing approach and device
CN102622234A (en) * 2012-03-07 2012-08-01 迈普通信技术股份有限公司 Development system and method for automatic test case
CN103684581A (en) * 2013-12-20 2014-03-26 上海斐讯数据通信技术有限公司 Automatic testing tool and testing method for vlan function of ONU (Optical Network Unit)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李志报 等: "基于Tcl/Tk语言的自动化测试平台的实现", 《电子技术应用》 *
李自明: "数据通信设备的自动化测试及实施方案", 《中国优秀硕士学位论文全文数据库(电子期刊) 信息科技辑》 *

Similar Documents

Publication Publication Date Title
US9356855B2 (en) Methods, systems, and computer readable media for providing for specification or autodiscovery of device under test (DUT) topology information
CN109067569B (en) Industrial control network topological structure visualization method
CN109245951B (en) Method for realizing networking monitoring of network optimization equipment based on web
CN104246521A (en) Method and device for automatic test of relay protection function of intelligent susbstation
CN106302027A (en) A kind of SDN controller performance tester and method of testing
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
CN109428783B (en) Network equipment testing method and device
CN113572656A (en) Method and device for flexibly combining inspection items of network equipment
WO2021253856A1 (en) Test method and apparatus, and device and storage medium
CN109710496A (en) A kind of method, apparatus, equipment and the storage medium of cabinet visual control
CN105306292A (en) Automatic test system
CN106301994A (en) A kind of network service abnormality test method and apparatus
CN113162816A (en) Testing method and testing system for OSPFv3 protocol of switch
CN105405280B (en) A kind of implementation method for debugging electric power acquisition terminal and obtaining amr message
CN107800802A (en) A kind of Rack whole machine cabinets write-in and the method for reading UUID
CN107423185B (en) Method and device for testing compatibility adaptation of disk array and host
CN104822157A (en) Micro power wireless communication protocol conformance testing system for short-distance power communication
CN105306302A (en) Method and system for automatically testing Qinq function
CN105049294A (en) Automatic testing method for port state switching of EAPS (Ethernet Automatic Protection Switching) protocol MASTER switch
CN115617589A (en) Chip debugging method
CN112073238B (en) Network configuration management system
CN109739716A (en) The test method and system of HBA card in a kind of storage system
WO2016041387A1 (en) Method and device used by network management system for debugging network element configuration
CN107465569A (en) A kind of SAS Switch whole machine cabinets crawl node phy error count method and system
CN113507165A (en) Intelligent terminal verification platform for distribution transformer and use method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20160203