CN109861874A - Equipment automatization test macro - Google Patents

Equipment automatization test macro Download PDF

Info

Publication number
CN109861874A
CN109861874A CN201811589441.4A CN201811589441A CN109861874A CN 109861874 A CN109861874 A CN 109861874A CN 201811589441 A CN201811589441 A CN 201811589441A CN 109861874 A CN109861874 A CN 109861874A
Authority
CN
China
Prior art keywords
test command
setup module
batch
command
configuration order
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811589441.4A
Other languages
Chinese (zh)
Other versions
CN109861874B (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.)
Qax Technology Group Inc
Original Assignee
Beijing Qianxin 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 Beijing Qianxin Technology Co Ltd filed Critical Beijing Qianxin Technology Co Ltd
Priority to CN201811589441.4A priority Critical patent/CN109861874B/en
Publication of CN109861874A publication Critical patent/CN109861874A/en
Application granted granted Critical
Publication of CN109861874B publication Critical patent/CN109861874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

A kind of equipment automatization test macro provided in an embodiment of the present invention, comprising: configuration order setup module issues and the test command of automated execution for generating batch;Command down-transmitting module is devices under for test command batch to be issued to, accomplishes through automation mode, realize the input largely ordered, influence when verifying big configuration to equipment convenient for multi-user while operating system, and is used in conjunction with after saving setting for all users.

Description

Equipment automatization test macro
Technical field
The present invention relates to technical field of computer programs more particularly to a kind of equipment automatization test macros.
Background technique
With constantly improve for the functions of the equipments such as wisdom firewall, router, interchanger, VPN, IPS, IDS, modules There is respective order to issue configuration.For test function and stability, verifying requires the order of corresponding configuration every time Row input.The duplication of labour is higher, full configuration set specification verifying and stability configuration repeatedly when repeated workload more so.
Summary of the invention
The embodiment of the present invention provides a kind of equipment automatization test macro, for solving the above problems.
The embodiment of the present invention provides a kind of equipment automatization test macro, comprising:
Configuration order setup module, for generating test command, the test command issues for batch and automated execution Order;
Command down-transmitting module is devices under for test command batch to be issued to.
Preferably, the configuration order setup module includes:
Wound unit is read, the order line for creating new issues the interface that sets a property;
Generation unit issues the set content information to set a property on interface in the order line for acquiring, according to institute It states set content information and generates test command.
Preferably, the configuration order setup module further include:
Unit is marked, carries out issuing limitation mark for treating the test command issued, generates markup information, the mark Information is used for the limitation being performed to test command.
Preferably, the configuration order setup module further include:
Display unit, new test command or existing test command for creation.
Preferably, unit is created in the reading, is also used to read existing test command from database.
Preferably, the command down-transmitting module is specifically used for: using the configuration order by terminal emulator The address of the connection type of setup module setting and username and password log in after being devices under, and execute the configuration order and set The test command script for setting module generation carries out the batch of order and issues.
Preferably, the set content include: device type, device model, version information, connection type, login user, Modification logging, executes purpose at creator.
Preferably, the markup information includes: that batch issues mark, number of repetition and jump range.
Preferably, the terminal emulator includes: SecureCRT, Xshell 5Commercial, ConEmu.
Preferably, the test command script uses the script of python or js.
As shown from the above technical solution, a kind of equipment automatization test macro provided in an embodiment of the present invention, comprising: configuration Order setup module issues and the test command of automated execution for generating batch;Command down-transmitting module, for that will survey Examination order batch, which is issued to, to be devices under, and accomplishes to realize the input largely ordered by automation mode, to verify big configuration When influence to equipment, convenient for multi-user's operating system simultaneously, and be used in conjunction with after saving setting for all users.
Detailed description of the invention
The equipment automatization test macro that Fig. 1 provides for one embodiment of the invention uses schematic diagram;
Fig. 2 is the schematic diagram at the interface that sets a property that one embodiment of the invention provides.
Specific embodiment
With reference to the accompanying drawings and examples, specific embodiments of the present invention will be described in further detail.Implement below Example is not intended to limit the scope of the invention for illustrating the present invention.
Fig. 1 shows one embodiment of the invention and provides a kind of equipment automatization test macro, which is used for by automatic Change mode realizes the input of a large amount of test commands, influence when verifying big configuration to equipment.The system mainly includes configuration life Enable setup module and command down-transmitting module, in which:
Configuration order setup module, for generating test command, the test command issues for batch and automated execution Order;
Command down-transmitting module is devices under for test command batch to be issued to.This, which is devices under, to wrap Include the equipment such as wisdom firewall, router, interchanger, VPN, IPS, IDS.
Wherein, the configuration order setup module includes:
Wound unit is read, the order line for creating new issues the interface that sets a property.
Generation unit issues the set content information to set a property on interface in the order line for acquiring, according to institute It states set content information and generates test command.
The above-mentioned interface that sets a property is as shown in Fig. 2, the set content includes: device type (such as: wisdom firewall), sets Standby model (such as: QYC206), version information (such as: 6.1.10 or Baikal), connection type (such as: ssh:172.24.x.x:22), Login user, creator, executes purpose at modification logging.Tester can be according to the set content input frame on properties interface Information input is carried out, the information of input can generate test command by system acquisition.
The configuration order setup module further include:
Unit is marked, carries out issuing limitation mark for treating the test command issued, generates markup information, the mark Information is used for the limitation being performed to test command.The markup information includes: that batch issues mark, number of repetition and jump Range.This issues mark in batches can be shown which order needs batch to issue, which can be shown which order needs weight Multiple multiple, which can be shown that the range that parameter involved in order needs to jump.
The configuration order setup module further include:
Display unit, new test command or existing test command for creation.Tester can be by hand in display unit Order to be issued is selected in the test command of display, and can mark which order need batch to issue, number of repetition and order Involved in parameter need the range that jumps.
In the present embodiment, the reading wound unit is also used to read existing test command from database, then can carry out Above-mentioned set content information collection, mark processing and display.
The command down-transmitting module is specifically used for: using the configuration order setup module by terminal emulator The address of the connection type of setting and username and password log in be devices under after, it is raw to execute the configuration order setup module At test command script carry out the batch of order and issue.Wherein, the terminal emulator includes: SecureCRT, Xshell 5Commercial,ConEmu.SecureCRT is a terminal emulator for supporting SSH (SSH1 and SSH2).Xshell 5Commercial is the very powerful terminal emulator of a function.ConEmu is a dos system simulator, briefly It is exactly the dos program an of graphical interfaces.The test command script uses the script of python or js.Python is a kind of meter Calculation machine programming language.It is a kind of dynamic, object-oriented scripting language.Js full name is javascript, be it is a kind of by The scripting language that the LiveScript of Netscape is developed.
A kind of equipment automatization test macro provided in an embodiment of the present invention, comprising: configuration order setup module, for giving birth to It issues in batch and the test command of automated execution;Command down-transmitting module, for by test command batch be issued to by Test equipment accomplishes to realize the input largely ordered by automation mode, influence when verifying big configuration to equipment, just It is used in conjunction in multi-user while operating system, and after saving setting for all users.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
Those of ordinary skill in the art will appreciate that: the above embodiments are only used to illustrate the technical solution of the present invention., and It is non-that it is limited;Although present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art It is understood that it is still possible to modify the technical solutions described in the foregoing embodiments, either to part of or All technical features are equivalently replaced;And these are modified or replaceed, it does not separate the essence of the corresponding technical solution this hair Bright claim limited range.

Claims (10)

1. a kind of equipment automatization test macro characterized by comprising
Configuration order setup module, for generating test command, the test command issues for batch and the life of automated execution It enables;
Command down-transmitting module is devices under for test command batch to be issued to.
2. system according to claim 1, which is characterized in that the configuration order setup module includes:
Wound unit is read, the order line for creating new issues the interface that sets a property;
Generation unit issues the set content information to set a property on interface in the order line for acquiring, is set according to described It sets content information and generates test command.
3. system according to claim 2, which is characterized in that the configuration order setup module further include:
Unit is marked, carries out issuing limitation mark for treating the test command issued, generates markup information, the markup information Limitation for being performed to test command.
4. system according to claim 2 or 3, which is characterized in that the configuration order setup module further include:
Display unit, new test command or existing test command for creation.
5. system according to claim 2, which is characterized in that unit is created in the reading, is also used to read from database There is test command.
6. system according to claim 1, which is characterized in that the command down-transmitting module is specifically used for: passing through end End simulated program is logged in tested using the address and username and password of the connection type of configuration order setup module setting After trying equipment, executes the test command script that the configuration order setup module generates and carry out the batch of order and issue.
7. system according to claim 2, which is characterized in that the set content include: device type, device model, Version information, login user, modification logging, creator, executes purpose at connection type.
8. system according to claim 3, which is characterized in that the markup information includes: that batch issues mark, repetition time Number and jump range.
9. system according to claim 6, which is characterized in that the terminal emulator include: SecureCRT, Xshell 5 Commercial、ConEmu。
10. system according to claim 6, which is characterized in that the test command script uses the foot of python or js This.
CN201811589441.4A 2018-12-25 2018-12-25 Automatic test system of equipment Active CN109861874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811589441.4A CN109861874B (en) 2018-12-25 2018-12-25 Automatic test system of equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811589441.4A CN109861874B (en) 2018-12-25 2018-12-25 Automatic test system of equipment

Publications (2)

Publication Number Publication Date
CN109861874A true CN109861874A (en) 2019-06-07
CN109861874B CN109861874B (en) 2021-05-25

Family

ID=66892221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811589441.4A Active CN109861874B (en) 2018-12-25 2018-12-25 Automatic test system of equipment

Country Status (1)

Country Link
CN (1) CN109861874B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677322A (en) * 2019-09-27 2020-01-10 杭州九略智能科技有限公司 Python language-based industrial control safety equipment automatic test system and method
CN111614519A (en) * 2020-05-20 2020-09-01 深圳忆联信息系统有限公司 SSH channel-based batch start concurrency test method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296462A (en) * 2007-04-25 2008-10-29 中兴通讯股份有限公司 Method and system for batch execution of mobile terminal software automatic test
JP2012093894A (en) * 2010-10-26 2012-05-17 Hitachi Systems Ltd Fault event automatic handling system
CN102799511A (en) * 2012-06-30 2012-11-28 成都西可科技有限公司 Android-based automatic test method and system
CN103605609A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 Automatic test framework applicable to cloud computing
CN103744784A (en) * 2014-01-06 2014-04-23 中国移动(深圳)有限公司 Method and system for automatically testing mobile phone applications
CN106021098A (en) * 2016-05-10 2016-10-12 上海斐讯数据通信技术有限公司 Test system for running scripts in batches
CN106445811A (en) * 2016-08-30 2017-02-22 烽火通信科技股份有限公司 SecureCRT-based automated test system and method
CN108763083A (en) * 2018-05-30 2018-11-06 平安普惠企业管理有限公司 Automated testing method, device, computer equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296462A (en) * 2007-04-25 2008-10-29 中兴通讯股份有限公司 Method and system for batch execution of mobile terminal software automatic test
JP2012093894A (en) * 2010-10-26 2012-05-17 Hitachi Systems Ltd Fault event automatic handling system
CN102799511A (en) * 2012-06-30 2012-11-28 成都西可科技有限公司 Android-based automatic test method and system
CN103605609A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 Automatic test framework applicable to cloud computing
CN103744784A (en) * 2014-01-06 2014-04-23 中国移动(深圳)有限公司 Method and system for automatically testing mobile phone applications
CN106021098A (en) * 2016-05-10 2016-10-12 上海斐讯数据通信技术有限公司 Test system for running scripts in batches
CN106445811A (en) * 2016-08-30 2017-02-22 烽火通信科技股份有限公司 SecureCRT-based automated test system and method
CN108763083A (en) * 2018-05-30 2018-11-06 平安普惠企业管理有限公司 Automated testing method, device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677322A (en) * 2019-09-27 2020-01-10 杭州九略智能科技有限公司 Python language-based industrial control safety equipment automatic test system and method
CN111614519A (en) * 2020-05-20 2020-09-01 深圳忆联信息系统有限公司 SSH channel-based batch start concurrency test method and device

Also Published As

Publication number Publication date
CN109861874B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
Gamido et al. Comparative review of the features of automated software testing tools
CN106445811B (en) A kind of automatization test system and method based on SecureCRT
CN107704393B (en) Data test method, apparatus and electronic equipment
CN107783873B (en) Method for realizing automatic testing platform of burner
CN107943707B (en) Behavior tree testing method and device, storage medium and terminal
US8731896B2 (en) Virtual testbed for system verification test
CN108446190A (en) interface test method and device
TW201433802A (en) GUI implementations on central controller computer system for supporting protocol independent device testing
Mateo et al. Bacterio: Java mutation testing tool: A framework to evaluate quality of tests cases
CN106603259B (en) The configuration data method of calibration and device of network element, network management device
CN107678942A (en) A kind of API automated testing methods
CN109861874A (en) Equipment automatization test macro
CN105760296A (en) Automation testing control method, device and terminal
CN105243017B (en) The test method and system of debarkation authentication are carried out based on SSH agreements
CN103116656A (en) Circuit fault diagnostic system based on fault logic interpreter and achieving method thereof
CN103324568A (en) Method and apparatus for testing programs
CN110568339A (en) Instrument automatic testing system and method based on Internet of things
Grønli et al. Meeting quality standards for mobile application development in businesses: A framework for cross-platform testing
CN110297637A (en) The applicable resource file thermogravimetric of full platform client software carries tool and method of development
CN103729293A (en) GUI testing method based on UML activity diagrams
CN103455024B (en) ECU tests system and method
CN106546834B (en) A kind of environmental stress screening test method and device
CN108628734A (en) A kind of function program adjustment method and terminal
CN106053964B (en) A kind of distribution Battle Field Electromagnetic dynamic analog construction method
CN107741909A (en) A kind of automated testing method and system for distributed block storage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Patentee after: QAX Technology Group Inc.

Address before: 100015 15, 17 floor 1701-26, 3 building, 10 Jiuxianqiao Road, Chaoyang District, Beijing.

Patentee before: BEIJING QIANXIN TECHNOLOGY Co.,Ltd.