CN103714003B - A kind of automatic Prediction method for testing of terminating gateway device software - Google Patents

A kind of automatic Prediction method for testing of terminating gateway device software Download PDF

Info

Publication number
CN103714003B
CN103714003B CN201310753001.9A CN201310753001A CN103714003B CN 103714003 B CN103714003 B CN 103714003B CN 201310753001 A CN201310753001 A CN 201310753001A CN 103714003 B CN103714003 B CN 103714003B
Authority
CN
China
Prior art keywords
software
terminating gateway
version
main control
control computer
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
CN201310753001.9A
Other languages
Chinese (zh)
Other versions
CN103714003A (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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201310753001.9A priority Critical patent/CN103714003B/en
Publication of CN103714003A publication Critical patent/CN103714003A/en
Application granted granted Critical
Publication of CN103714003B publication Critical patent/CN103714003B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of automatic Prediction method for testing of terminating gateway device software, solve in terminating gateway device software test process, software prediction examination needs intervention the most on duty and manual, and can not test software in time in the case of prosthetic is on duty, the problem wasting a large amount of self-test time.The technical scheme of the inventive method is that main control computer accesses compiler server, compiler server is retrieved the version software to be measured that user specifies, version software to be measured the most after tested is sent on main control computer, by terminating gateway device upgrade to this software under testing version, log in terminating gateway equipment by main control computer and be configured, and version software to be measured is preserved and renaming, by the control of main control computer, the use-case needing pretest is tested automatically, and outputs test result.The inventive method achieves software prediction examination process without the most on duty and manual intervention, saves idle testing time in pretest stage, enters version in advance and test comprehensively, the purpose of quickening product development progress.

Description

A kind of automatic Prediction method for testing of terminating gateway device software
Present disclosure belongs to communication terminal field tests, is specifically related to a kind of terminating gateway device software oneself Dynamic pretest method.
Technical background
At present, for accelerating Software project schedule, generally use agile development and iteration tests mode, different in development teams Software engineer all can revise different problems every day and submit to code everyone to be carried to SVN server, compiler server After the software that the amendment compiling handed over makes new advances, this software needs tested timely and confirm.But, everyone submits amendment to Time different, effective version time that therefore server compiles out is uncertain, and compiles version out and need soft Whether part engineer's artificial judgment meets the requirements, and carries out upgrading and configuring, could start next step test.This kind of method needs people Work intervention on duty and manual, and can not in time software be tested in the case of prosthetic is on duty, waste a large amount of self-test Time.
Summary of the invention
Present invention aim at providing the automatic Prediction method for testing of a kind of terminating gateway device software, solve terminating gateway and set In standby software test procedure, software prediction examination needs intervention the most on duty and manual, and can not in the case of prosthetic is on duty In time software is tested, the problem wasting a large amount of self-test time.
The technical scheme of the inventive method is in terminating gateway device software test process, by main control computer, compiling In the test system of server, terminating gateway equipment composition, based on robot framework 2.8.1 software environment, master control electricity Satisfactory software on brain Auto-Sensing compiler server, and it is upgraded on terminating gateway equipment carry out pretest, employing Technical scheme is, the method comprises the steps:
Step one, main control computer pass through SMB protocol access compiler server based on Linux system, retrieval compiling service The terminating gateway equipment version software to be measured meeting version specified by user whether is there is on device;
If step 2 retrieved the version software to be measured specified in compiler server, check test log file In the most saved the test record of this version software to be measured, not yet preserve the entrance step 3 of test record, have preservation to survey Trial record carry out the detecting of indicated release cycle;
If step 3 test log file not yet preserving the test record of this version software to be measured, by this version to be measured This software is sent on main control computer;
Step 4, by terminating gateway device upgrade to this software under testing version, log in terminating gateway by main control computer and set Standby, the wireless network name of change terminating gateway equipment, derives default configuration file, and carries out preserving and weighing by version software to be measured Name;
Step 5, by the control of main control computer, the use-case needing pretest is tested automatically, and export test knot Really.
Robot framework 2.8.1 is the Function Test Automation framework that a use python language is write.Tool Standby good extensibility, supports that keyword drives, can test polytype client or interface simultaneously, can carry out Distributed testing performs.
SMB(Server Messages Block, information service block) it is that one shares file and printer on a local area network A kind of communication protocol, it be between the different computers in LAN provide the resource such as file and printer shared service. SMB agreement is client/server type agreement, client computer can be accessed by this agreement the shared-file system on server, Printer and other resources.
Linux is the class Unix operating system of a kind of free and open source code, there is many different linux versions, But they all employ linux kernel.Linux may be installed in various computer hardware equipment, such as mobile phone, panel computer, Router, video game console, desk computer, large scale computer and supercomputer.Linux is a set of free use and freedom The class Unix operating system propagated, is a multi-user based on POSIX and UNIX, multitask, support multithreading and multi-CPU Operating system.It can run main unix tool software, application program and procotol.It supports 32 and 64 hardware. Linux inherits the Unix design philosophy with network as core, is the multiple-user network operating system of a stable performance.
The present invention will be further described in detail with example below in conjunction with the accompanying drawings.
Accompanying drawing explanation
The flow chart of Fig. 1 the inventive method
Detailed description of the invention
The automatic Prediction method for testing of a kind of terminating gateway device software that the present invention provides, grinds at terminating gateway equipment Send out the use of pretest stage, test process can be realized and leave unused without the most on duty and manual intervention, saving research and development pretest stage Testing time, in advance enter version test comprehensively, accelerate product development progress purpose.
The method that the present invention provides comprises the steps:
Step one, main control computer pass through SMB protocol access compiler server based on Linux system, retrieval compiling service The terminating gateway equipment version software to be measured meeting version specified by user whether is there is on device;
If step 2 retrieved the version software to be measured specified in compiler server, check test log file In the most saved the test record of this version software to be measured, not yet preserve the entrance step 3 of test record, have preservation to survey Trial record carry out the detecting of indicated release cycle;
If step 3 test log file not yet preserving the test record of this version software to be measured, by this version to be measured This software is sent on main control computer;
Step 4, by terminating gateway device upgrade to this software under testing version, log in terminating gateway by main control computer and set Standby, the wireless network name of change terminating gateway equipment, derives default configuration file, and carries out preserving and weighing by version software to be measured Name;
Step 5, by the control of main control computer, the use-case needing pretest is tested automatically, and export test knot Really.
In the embodiment of the present invention, it was predicted that example on probation refers to the Yi Zuo automatization extracted from software project entirety use-case The crucial use-case of exploitation.
In the embodiment of the present invention, the automatic Prediction method for testing of described a kind of terminating gateway device software, described step one Middle main control computer by the way of SMB protocol access compiler server based on Linux system for be completed by Samba software. Samba is the freeware realizing SMB agreement on Linux and unix system, is made up of server and client-side program.
In the embodiment of the present invention, the automatic Prediction method for testing of described a kind of terminating gateway device software, described step 3 The middle mode being sent on main control computer by version software to be measured is for copy to version software to be measured on main control computer.
In the embodiment of the present invention, the automatic Prediction method for testing of described a kind of terminating gateway device software, described step 4 The operation of the wireless network name of middle change terminating gateway equipment, by the way of accessing the radio function page of terminating gateway equipment Carry out.
In the embodiment of the present invention, the automatic Prediction method for testing of a kind of terminating gateway device software, described in described step 4 Derive the operation of default configuration file, carry out by the way of accessing the device management pages of terminating gateway equipment.
In the embodiment of the present invention, the automatic Prediction method for testing of a kind of terminating gateway device software, described step 5 needs The use-case of pretest include DHCP function, NTP function, radio function, WAN linkage function, TR069 function, equipment Management Function, Nat feature, access control function.
Wherein DHCP(Dynamic Host Configuration Protocol), for DHCP, mainly There are two purposes: to internal network or Internet service provider's automatic IP address allocation, to user or internal network manager As the means that all computers are made central management.NTP(Network Time Protocol), when being used to make computer Between synchronized a kind of agreement, it can make computer synchronize its server or clock source (such as crystal clock, GPS etc.) Changing, it can provide the time adjustment of high accurancy and precision.
TR-069, its full name is " the wide area network management agreement of customer terminal equipment ".It provide in next generation network Home network device is managed general framework and the agreement of configuration, is used for from network side the gateway home network, route The equipment such as device, Set Top Box carries out remote centralized management.NAT(Network Address Translation), the network address turns Change, belong to and access wide area network (WAN) technology, be that privately owned (reservation) address is converted into the switch technology of legitimate ip address by one, it It is widely used in all kinds Internet access way and various types of network.WAN(Wide Area Network), wide area network, also referred to as telenet, generally bridge the biggest physical extent, the scope covered from tens kilometers to several Thousand kilometers, it can connect multiple city or country, or across several continents and be provided that telecommunication, formed international remotely Network.WAN connects, and refers to that terminal unit (such as the gateway in home network, router etc.) accesses a kind of connection of wide area network (WAN) Mode, Main Function is the connection status maintaining terminal unit with wide area network, does corresponding process to by the data of gateway.
The inventive method can be predicted the use of examination stage at terminating gateway equipment, it is achieved pretest process is without artificial value Keep and manually intervene, the testing time that the saving pretest stage is idle, entering version in advance and test comprehensively, accelerate product development and enter The purpose of degree.

Claims (6)

1. an automatic Prediction method for testing for terminating gateway device software, is being set by main control computer, compiler server, terminating gateway In the test system of standby composition, based on robot framework 2.8.1 software environment, the compiling service of main control computer Auto-Sensing Satisfactory software on device, and it is upgraded on terminating gateway equipment carry out pretest, it is characterised in that the method includes following Step:
Step one, main control computer pass through SMB protocol access compiler server based on Linux system, on retrieval compiler server Existence meets the terminating gateway equipment version software to be measured of version specified by user;
If step 2 retrieved the version software to be measured specified in compiler server, inspection test log file is The no test record having saved this version software to be measured, not yet preserves the entrance step 3 of test record, has preservation test note That records carries out the detecting of indicated release cycle;
If step 3 test log file not yet preserving the test record of this version software to be measured, by soft for this version to be measured Part is sent on main control computer;
Step 4, by terminating gateway device upgrade to this software under testing version, log in terminating gateway equipment by main control computer, more Change the wireless network name of terminating gateway equipment, derive default configuration file, and carry out preserving and renaming by version software to be measured;
Step 5, by the control of main control computer, the use-case needing pretest is tested automatically, and outputs test result.
The automatic Prediction method for testing of a kind of terminating gateway device software the most according to claim 1, it is characterised in that described In step one, main control computer is by Samba software by the way of SMB protocol access compiler server based on Linux system Complete.
The automatic Prediction method for testing of a kind of terminating gateway device software the most according to claim 1, it is characterised in that described The mode being sent on main control computer by version software to be measured in step 3 is for copy to version software to be measured on main control computer.
The automatic Prediction method for testing of a kind of terminating gateway device software the most according to claim 1, it is characterised in that described Step 4 is changed the operation of the wireless network name of terminating gateway equipment, by accessing the radio function page of terminating gateway equipment Mode carry out.
The automatic Prediction method for testing of a kind of terminating gateway device software the most according to claim 1, it is characterised in that described Derive the operation of default configuration file described in step 4, enter by the way of accessing the device management pages of terminating gateway equipment OK.
The automatic Prediction method for testing of a kind of terminating gateway device software the most according to claim 1, it is characterised in that described The use-case needing pretest in step 5 include DHCP function, NTP function, radio function, WAN linkage function, TR069 function, Equipment Management Function, nat feature, access control function.
CN201310753001.9A 2013-12-31 2013-12-31 A kind of automatic Prediction method for testing of terminating gateway device software Expired - Fee Related CN103714003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310753001.9A CN103714003B (en) 2013-12-31 2013-12-31 A kind of automatic Prediction method for testing of terminating gateway device software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310753001.9A CN103714003B (en) 2013-12-31 2013-12-31 A kind of automatic Prediction method for testing of terminating gateway device software

Publications (2)

Publication Number Publication Date
CN103714003A CN103714003A (en) 2014-04-09
CN103714003B true CN103714003B (en) 2016-08-17

Family

ID=50407000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310753001.9A Expired - Fee Related CN103714003B (en) 2013-12-31 2013-12-31 A kind of automatic Prediction method for testing of terminating gateway device software

Country Status (1)

Country Link
CN (1) CN103714003B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867990A (en) * 2015-11-20 2016-08-17 乐视云计算有限公司 Software development integration method and device thereof
CN108718261A (en) * 2018-06-08 2018-10-30 北京飞音时代技术有限公司 Gateway automated testing method and system
CN114978938A (en) * 2022-05-26 2022-08-30 西安易朴通讯技术有限公司 Switch testing method, system and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336696A (en) * 2013-05-27 2013-10-02 摩比天线技术(深圳)有限公司 Software updating method and system for testing instrument
EP2677440A2 (en) * 2011-03-30 2013-12-25 KT Corporation Method and apparatus for separating in order to upgrade software remotely in m2m communication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2677440A2 (en) * 2011-03-30 2013-12-25 KT Corporation Method and apparatus for separating in order to upgrade software remotely in m2m communication
CN103336696A (en) * 2013-05-27 2013-10-02 摩比天线技术(深圳)有限公司 Software updating method and system for testing instrument

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于嵌入式Linux平台的家庭网关设备的研究与设计;乔俊平;《中国优秀硕士学位论文全文数据库·信息科技辑》;20061231;第2006年卷(第12期);全文 *
家庭网关与终端远程访问设计及实现;孙智慧;《中国优秀硕士学位论文全文数据库·信息科技辑》;20081115;第2008年卷(第11期);全文 *

Also Published As

Publication number Publication date
CN103714003A (en) 2014-04-09

Similar Documents

Publication Publication Date Title
US10901721B2 (en) Methods and apparatus for version aliasing mechanisms and cumulative upgrades for software lifecycle management
Deelman et al. Workflow management in GriPhyN
US9417895B2 (en) Concurrent execution of a first instance and a cloned instance of an application
EP3019976B1 (en) Dynamic migration script management
CN104254834B (en) Cloud application deployment is portable
US8819672B2 (en) Multi-image migration system and method
US8930918B2 (en) System and method for SQL performance assurance services
CN102075381A (en) Automatic test platform server and system applied to cloud storage
US9898372B2 (en) Backing up a computer application
US11210466B2 (en) Multiple document editing using rules for a restricted language
US20110087767A1 (en) Computer Environment Analysis Tool
CN107148626A (en) Method and apparatus for the integrated console environment of diagnostic instrments
US11087042B1 (en) Generation of a simulation plan and performance of a simulation based on the plan
CN103714003B (en) A kind of automatic Prediction method for testing of terminating gateway device software
CN111045652B (en) Power distribution network development and service system
WO2009052424A2 (en) Virtual computing environments
US20150212834A1 (en) Interoperation method of newtork device performed by computing device including cloud operating system in could environment
US20090055518A1 (en) Method and apparatus for managing lightweight directory access protocol information
Hwang et al. Cloud transformation analytics services: a case study of cloud fitness validation for server migration
US11115279B2 (en) Client server model for multiple document editor
CN110891239B (en) PNF configuration and PNFD TOSCA implementation method and device
Childs et al. A virtual TestGrid, or how to replicate a national grid
Wolfe et al. Automating the installation of Apache VCL on OpenStack
Admodisastro et al. An architecture analysis approach for supporting black-box software development
Durairajan et al. Portable service management deployment over cloud platforms to support production workloads

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160817