CN101847118B - Automatic test system - Google Patents

Automatic test system Download PDF

Info

Publication number
CN101847118B
CN101847118B CN200910301079A CN200910301079A CN101847118B CN 101847118 B CN101847118 B CN 101847118B CN 200910301079 A CN200910301079 A CN 200910301079A CN 200910301079 A CN200910301079 A CN 200910301079A CN 101847118 B CN101847118 B CN 101847118B
Authority
CN
China
Prior art keywords
test
automatic test
client
script
program module
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.)
Expired - Fee Related
Application number
CN200910301079A
Other languages
Chinese (zh)
Other versions
CN101847118A (en
Inventor
李昕
董哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN200910301079A priority Critical patent/CN101847118B/en
Publication of CN101847118A publication Critical patent/CN101847118A/en
Application granted granted Critical
Publication of CN101847118B publication Critical patent/CN101847118B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to the technical field of computers, and provides an automatic test system for different scripts for supporting different automatic script language realization. The automatic test system comprises tested equipment, a server and a plurality of clients. The server comprises an automatic test server program module; each client comprises an automatic test client program module, and a plurality of different test scripts for script language realization; script languages installed on the clients are different from each other; the automatic test server program module of the server is used for transmitting testing actions to be executed to the clients according to automatic test tasks; and the automatic test client program module of the clients is used for calling a corresponding test script according to the testing actions to be executed, and notifying the automatic test server program module of the completion. The automatic test system reduces the development cost of the automatic test scripts and improves the flexibility of the automatic test implementation.

Description

Automatization test system
Technical field
The present invention relates to field of computer technology, relate in particular to the automatization testing technique of the different test scripts of realizing that on computers the multiple script of support is realized.
Background technology
Automatic test is an operation automatic test program on PC; The automatic test program is configured and information inspection equipment under test and subtest equipment through a plurality of control links (serial ports, Telnet or reverse Telnet); Set up the communication link of equipment under test and subtest equipment; The a plurality of network interface cards of control on the PC carry out the transmitting-receiving of test frame, and accomplish obtaining automatically and judging of test result, finally draw the test result of this test procedure.
The automatic test program is realized by script usually; On PC, move, (serial ports, Telnet or reverse Telnet) is configured equipment under test (DUT, Device Under Test) through the control link; The control network interface card sends and the acceptance test frame; And can add up, analyze, judge confirm finally whether the correlation function of equipment under test correct to sending with received frame, reach purpose to the test of equipment under test.Script commonly used comprises: TCL/TK, PERL, RUBY etc.The test script that different scripts is realized is applicable to the difference in functionality of testing equipment under test.And specific client can only be supported the script that some is specific.
Common automatization test system is to the difference in functionality of equipment under test; An equipment under test will independently be set up a test environment; Many cover equipment under tests need be formed different automatic test environment; As shown in Figure 1, the test script that equipment under test 1 needs Run Script language A, B to realize is respectively realized its automatic test together; The test script that equipment under test 2 needs Run Script language C, D to realize is respectively realized its automatic test, and the test script that equipment under test 3 needs Run Script language A, C to realize is respectively realized its automatic test; The test script that equipment under test 4 needs Run Script language A, C, D to realize is respectively realized its automatic test.
Prior art just need be set up 4 different test environments so; Equipment under test 1 is formed test macro 1 with test lead 1, and wherein test lead 1 comprises automatic test program module, test script 1 (comprising the test script that script A, B realize respectively) and one or more test network interface cards; Test lead 2 comprises automatic test program module, test script 2 (comprising the test script that script C, D realize respectively) and one or more test network interface cards; Test lead 3 comprises automatic test program module, test script 3 (comprising the test script that script A, C realize respectively) and one or more test network interface cards; Test lead 4 comprises automatic test program module, test script 4 (comprising the test script that script A, C, D realize respectively) and one or more test network interface cards.
There are some following problems in existing automatization test system:
1, to the difference in functionality of equipment under test, need many cover equipment under tests to form different automatic test environment, cost and the expense of implementing automatic test are higher;
2, to the difference in functionality of equipment under test, need the different automatic test program of exploitation, automatic test cost of developing and expense are higher;
3, be difficult to test, can not be directed against the user's in the actual network environment diverse network application and the effect that data stream reach automatic test, influenced the accuracy and the specific aim of automatic test to complicated network environment.
Summary of the invention
Technical matters to be solved by this invention is that a kind of automatization test system of supporting the different scripts that different automatized script language are realized is provided.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be, automatization test system comprises server and a plurality of client, and said server comprises automatic test server program module, a plurality of network interface card; Said client comprises different test scripts, a plurality of test network interface card that automatic test client program module, a plurality of script are realized; The script of installing on each client has nothing in common with each other; Server links to each other through Ethernet with each client; Each client links to each other through Ethernet with each equipment under test;
The automatic test server program module of server is used for sending to client according to the test action that the automatic test task is carried out needs; A plurality of network interface cards of server are used to set up the communication link with client;
The automatic test client program module of client, the corresponding test script of automatic test action invocation that is used for carrying out as required, notice automatic test server program module after accomplishing; A plurality of test network interface cards of client be used to set up with the communication link of server and with the communication link of equipment under test; Accept the control of automatic test server program module.
The invention has the beneficial effects as follows; Through set up the automatic test program the server and client side; Can support the test script that multiple different script is realized simultaneously, reduce the cost of development of automatic test script, improve the flexibility ratio that automatic test is implemented; Carry out automatic test through different automatic test scripts is collaborative, reduced building of environment to be tested and taking of equipment to be tested, reduced the cost of automatic test; Expanded the automatic test applicable scope, the automatic test of the network environment of the complicacy that can carry out many equipment to be tested and Duo Tai subtest equipment are formed.
Description of drawings
Fig. 1 is an automatization test system synoptic diagram of the prior art;
Fig. 2 is an automatization test system synoptic diagram of the present invention;
Fig. 3 is the automatization test system synoptic diagram of the present invention at complex network environment.
Embodiment
Embodiment 1
In automatization test system as shown in Figure 2, comprise that equipment under test 1, equipment under test 2, equipment under test 3,4,4 equipment under tests of equipment under test link to each other with client 1, client 2 respectively through Ethernet; Client 1 links to each other with server through Ethernet with client 2; Server comprises automatic test server program module, a plurality of network interface card; Client 1 comprises the test script A of automatic test client program module, script A realization, test script B, a plurality of test network interface card that script B realizes; Client 2 comprises the test pin C of automatic test client program module, script C realization, test script D, a plurality of test network interface card that script D realizes; Automatic test client program module intercept communications port one 0000 on the client 1 also calls test script A, and intercept communications port one 0001 also calls test script B; Automatic test client program module intercept communications port one 0002 on the client 2 also calls test script C, and intercept communications port one 0003 also calls test script D.
Equipment under test 1 needs operation test script A, B to realize its automatic test together; Equipment under test 2 needs operation test script C, D to realize its automatic test, and equipment under test 3 needs operation test script A, C to realize its automatic test; Equipment under test 4 needs operation test script A, C, D to realize its automatic test.The automatic test action that the automatic test server program module of server is carried out according to the automatic test task needs of equipment under test 1 sends to the COM1 10000 of client 1; Function or method among the local test script A are called and carried out to the automatic test client program module after receiving the message of the automatic test action that comprises the needs execution; Accomplish the automatic test action of regulation, notify automatic test server program module then; Automatic test server program module receives the automatic test action that will next will carry out after the message that the automatic test action of test script A accomplishes and sends to the COM1 10001 on the client 1; After the automatic test client program module receives the message of the automatic test action that comprises the needs execution; Call and carry out function or method among the local test script C; Accomplish the automatic test action of regulation; Notify automatic test server program module then, the automatic test task of equipment under test 1 is accomplished.The automatic test action that the automatic test server program module of server is carried out according to the automatic test task needs of equipment under test 2 sends to the COM1 10002 of client 2; The automatic test client program module is called function or the method among the local test script C; Carry out code wherein; Accomplish the automatic test action of regulation, notify automatic test server program module then; Automatic test server program module receives the automatic test action that will next will carry out after the message that the automatic test action of test script C accomplishes and sends to the COM1 10003 on the client 2; After the automatic test client program module receives the message of the automatic test action that comprises the needs execution; Call function or method among the local test script D; Carry out code wherein; Accomplish the automatic test action of regulation, notify automatic test server program module then, the automatic test task of equipment under test 2 is accomplished.Same; Automatic test task for equipment under test 3; Automatic test server program module is controlled the automatic test client program module of client 1 respectively and is called local test script A, and the automatic test client program module of client 2 is called local test script C.Automatic test task for equipment under test 4; Automatic test server program module is controlled the automatic test client program module of client 1 respectively and is called local test script A, and the automatic test client program module of client 2 is called local test script C and D.So just can reach different test scripts in cover environment to be tested, the effect of different equipment under tests being carried out the continuous and automatic test.Test action is meant a kind of operation to equipment to be tested, comprises the information of the literary composition that sends datagram, configuration and monitoring equipment under test.
Embodiment 2
Use different scripts to realize that the automatic test of complicated network environment need relate to the server of operation automatic test program; Many clients of operation test script, the network environment of many equipment under tests and the complicacy of Duo Tai subtest equipment composition.
In automatization test system as shown in Figure 3; The test script A that script A realizes, the test script B that script B realizes, the test script C that script C realizes; The test script D that script D realizes; The test script E that script E realizes, the test script F that script F realizes has realized the automatic test to the network environment to be tested of many equipment to be tested (equipment under test 1, equipment under test 2) and 1 subtest equipment (subtest equipment 1) composition together.Automatic test client program module intercept communications port one 0000 on the client 1 also calls test script A, and intercept communications port one 0001 also calls test script B; Automatic test client program module intercept communications port one 0002 on the client 2 also calls test script C, and intercept communications port one 0003 also calls test script D; Automatic test client program module intercept communications port one 0004 on the client 3 also calls automatic test script E, and intercept communications port one 0005 also calls automatic test script F.
The automatic test task that automatic test server program module is carried out according to network environment needs to be tested; The automatic test action that client 1 is needed to carry out sends to the COM1 10000 on the client 1; After the automatic test client program module receives the message of the automatic test action that comprises the needs execution; Call function or method among the local test script A; Carry out code wherein, accomplish the test assignment of regulation, notify the automatic test of automatic test server program module testing script A to move then; After automatic test server program module receives the message that the automatic test action of test script A accomplishes; Next the automatic test action that will carry out is sent to the COM1 10001 on the client 1; After the automatic test client program module receives the message of the automatic test action that comprises the needs execution; Call function or method among the local test script B; Carry out code wherein, accomplish the test action of regulation and notify the automatic test task of automatic test server program module testing script B to accomplish then; After automatic test server program module receives the message that the automatic test action of test script B accomplishes; The automatic test action that will carry out sends to the COM1 10002 on the client 2; The automatic test client program module is called function or the method among the local test script C; Carry out code wherein, accomplish the test action of regulation; The automatic test client program module is controlled the automatic test client program module again and is called local test script D then; After the automatic test action of test script D is accomplished; The automatic test action that automatic test server program module will be carried out sends to the COM1 10004 on the client 3; The automatic test client program module is called function or the method among the local test script E; Carry out code wherein, accomplish the test action of regulation; The automatic test client program module is controlled the automatic test client program module again and is called local test script F then; The automatic test task that automatic test server program module is carried out according to network environment needs to be tested is called test script repeatedly and is surveyed action with the robotization of accomplishing separately, up to accomplishing whole automatic test task.Described client possibly be a PC, also possibly be the test instrumentation of specialty.

Claims (8)

1. automatization test system is characterized in that, comprises server and a plurality of client, and said server comprises automatic test server program module, a plurality of network interface card; Each client comprises different test scripts, a plurality of test network interface card that automatic test client program module, multiple script are realized; The script of installing on each client has nothing in common with each other; Server links to each other through Ethernet with each client; Each client links to each other through Ethernet with each equipment under test;
The automatic test server program module of server is used for sending to client according to the test action that the automatic test task is carried out needs;
A plurality of network interface cards of server are used to set up the communication link with each client;
The automatic test client program module of client, the corresponding test script of automatic test action invocation that is used for carrying out as required, notice automatic test server program module after accomplishing;
A plurality of test network interface cards of client, be used to set up with the communication link of server and with the communication link of equipment under test; Accept the control of automatic test server program module.
2. automatization test system as claimed in claim 1 is characterized in that, also comprises a plurality of auxiliary equipment under tests, and a plurality of equipment under tests and a plurality of auxiliary equipment under test are formed network to be tested, and network to be tested links to each other through Ethernet with each client.
3. automatization test system as claimed in claim 1 is characterized in that, said test action is meant the operation to equipment under test.
4. like each described automatization test system of claim 1-3, it is characterized in that the automatic test client program module of client is monitored a certain COM1 to call corresponding test script; Different COM1s is corresponding one by one with corresponding test script.
5. automatization test system as claimed in claim 4; It is characterized in that; The automatic test server program module of server is according to the automatic test task of equipment under test; Confirm that the automatic test that needs to carry out moves and related test script; Automatic test action is sent to COM1 corresponding with this test script on the client, after the automatic test client program module receives the message that comprises the automatic test action that needs carry out, call and carry out function or method in the test script of local correspondence; Accomplish the automatic test action of regulation, notify automatic test server program module then; Automatic test server program module receives the message of the automatic test action completion of test script.
6. automatization test system as claimed in claim 2 is characterized in that, said equipment under test and auxiliary equipment under test are router or switch.
7. automatization test system as claimed in claim 4 is characterized in that said client is a tester.
8. automatization test system as claimed in claim 4 is characterized in that said client is a PC.
CN200910301079A 2009-03-24 2009-03-24 Automatic test system Expired - Fee Related CN101847118B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910301079A CN101847118B (en) 2009-03-24 2009-03-24 Automatic test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910301079A CN101847118B (en) 2009-03-24 2009-03-24 Automatic test system

Publications (2)

Publication Number Publication Date
CN101847118A CN101847118A (en) 2010-09-29
CN101847118B true CN101847118B (en) 2012-09-12

Family

ID=42771743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910301079A Expired - Fee Related CN101847118B (en) 2009-03-24 2009-03-24 Automatic test system

Country Status (1)

Country Link
CN (1) CN101847118B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185733B (en) * 2011-04-13 2014-04-02 宝德科技集团股份有限公司 Network card testing method and system
CN102202334B (en) * 2011-06-24 2015-01-07 迈普通信技术股份有限公司 Method and system for testing 3G (3rd Generation) wireless router with encryption card
CN102510347B (en) * 2011-12-13 2015-11-11 曙光信息产业(北京)有限公司 A kind of system and method to Intelligent Network Element Function detection
CN102620746B (en) * 2012-02-28 2015-06-24 惠州市德赛西威汽车电子有限公司 Navigator testing system
CN102916848B (en) * 2012-07-13 2014-12-10 北京航空航天大学 Automatic test method of Ethernet interface equipment based on script technology
CN103309778A (en) * 2013-06-05 2013-09-18 苏州惠瑞自动化集成有限公司 Automatic test system with different test scripts
CN104125116A (en) * 2014-08-04 2014-10-29 上海斐讯数据通信技术有限公司 Method and system for testing protocol conformance
CN105429773B (en) * 2014-09-18 2019-05-07 广州思林杰网络科技有限公司 A kind of distributed automatization test system and the management configuration method for testing terminal
CN105512026A (en) * 2015-11-25 2016-04-20 普华基础软件股份有限公司 Automatic batch testing method
CN107315576A (en) * 2016-04-26 2017-11-03 中兴通讯股份有限公司 A kind of method and system of dynamic expansion software flow
CN108319548A (en) * 2017-01-18 2018-07-24 阿里巴巴集团控股有限公司 A kind of program code adjustment method and device
CN106802846A (en) * 2017-01-23 2017-06-06 郑州云海信息技术有限公司 A kind of remote test method, apparatus and system
CN106911778A (en) * 2017-02-27 2017-06-30 网宿科技股份有限公司 A kind of flow bootstrap technique and system
CN106899454B (en) * 2017-03-06 2020-10-20 苏州浪潮智能科技有限公司 Method and system for automatically testing RoCE performance based on Linux system
CN108055298A (en) * 2017-12-04 2018-05-18 泰康保险集团股份有限公司 For the method and device of control message queue
CN108052455A (en) * 2018-01-02 2018-05-18 赛汇检测(广州)有限公司 A kind of software testing system and its test method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1510574A (en) * 2002-12-24 2004-07-07 英业达股份有限公司 Testing system and method for disperse test and central administration
CN1832433A (en) * 2005-03-08 2006-09-13 华为技术有限公司 Distribution structure test system and testing method of the test system
CN101206604A (en) * 2006-12-22 2008-06-25 英业达股份有限公司 Method for testing automatic updating test script

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1510574A (en) * 2002-12-24 2004-07-07 英业达股份有限公司 Testing system and method for disperse test and central administration
CN1832433A (en) * 2005-03-08 2006-09-13 华为技术有限公司 Distribution structure test system and testing method of the test system
CN101206604A (en) * 2006-12-22 2008-06-25 英业达股份有限公司 Method for testing automatic updating test script

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李军.网络环境下软件测试自动化技术的研究与应用.《中国优秀硕士学位论文全文数据库》.2004,(第1期),文本第23页. *

Also Published As

Publication number Publication date
CN101847118A (en) 2010-09-29

Similar Documents

Publication Publication Date Title
CN101847118B (en) Automatic test system
CN105335293B (en) A kind of automatization test system and method based on interface concurrent
CN102023922B (en) System and method for testing automotive electronic diagnostic software
CN103744784B (en) Mobile phone application automated testing method and system
CN101150463B (en) Testing method and system
CN109740222B (en) Testing device and system for automobile networking scene
CN102141962A (en) Safety distributed test framework system and test method thereof
CN105354118B (en) Automatic test approach, the apparatus and system of intelligent terminal
CN103973858B (en) The Auto-Test System of mobile terminal
US9348719B2 (en) Automated test equipment and control method thereof
CN106326093A (en) Automated testing system and testing method
CN108241582A (en) A kind of software automated testing platform based on RabbitMQ message-oriented middlewares
EP3534573A1 (en) Chain building device, testing device, testing system, method, and recording medium
KR100794130B1 (en) Automatic Function Testing Equipment for Application Software and Additional Service of Mobile Communication Terminal
CN101150460A (en) Method and system for automatic debugging and testing of network devices
CN108234246A (en) A kind of method and system of multidirectional server network performance
KR20060056744A (en) Remote control method for short message service of mobile communication device
CN102739463A (en) Remote reliability lifetime verification and test system, and method thereof
CN106936658A (en) The method of testing and test platform of test case, simulation test equipment
CN102595461A (en) Performance testing device, system and testing method for mobile communication system
CN102201877A (en) Method and apparatus for testing air interface of TTCN (Testing and Test Control Notation)-3-based digital interphone
CN104142882A (en) Test method, test device and test system based on data processing
CN106131869A (en) Method of testing and device, test system for mobile terminal
CN105243015B (en) Method and system for automatically testing software
CN109656804A (en) Automated testing method, equipment, storage medium and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120912