CN105868101B - A kind of method for testing software - Google Patents

A kind of method for testing software Download PDF

Info

Publication number
CN105868101B
CN105868101B CN201610164884.3A CN201610164884A CN105868101B CN 105868101 B CN105868101 B CN 105868101B CN 201610164884 A CN201610164884 A CN 201610164884A CN 105868101 B CN105868101 B CN 105868101B
Authority
CN
China
Prior art keywords
upgrading
upgrade
software
upgrading configuration
upgrade package
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.)
Active
Application number
CN201610164884.3A
Other languages
Chinese (zh)
Other versions
CN105868101A (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 Siglent Technologies Co Ltd
Original Assignee
Shenzhen Siglent Technologies 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 Siglent Technologies Co Ltd filed Critical Shenzhen Siglent Technologies Co Ltd
Priority to CN201610164884.3A priority Critical patent/CN105868101B/en
Publication of CN105868101A publication Critical patent/CN105868101A/en
Application granted granted Critical
Publication of CN105868101B publication Critical patent/CN105868101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A kind of method for testing software, and in particular to a kind of method of the automatic test software compatibility, including:Upgrading configuration is run, the upgrading configuration includes path and title and the escalation policy of upgrading configuration;According to software to be upgraded in the upgrading configuration updating apparatus;Restart the equipment after the completion of upgrading;Whether detection device being capable of normal operation;Whether all upgrade package in detection escalation policy all upgrade.

Description

A kind of method for testing software
Technical field
The present invention relates to a kind of method for testing software, and in particular to a kind of method of the automatic test software compatibility.
Background technology
During software version is issued, software test department be required for testing new software version with old software version it Between compatibility, ensure that all legacy version softwares can work normally after being upgraded to new version software with this.
Currently, existing test method needs to connect host computer or upgrade package is put into USB flash disk upgrading.Tester is surveying When examination compatibility, often upgrades a version and be required for manpower intervention, until all versions all test completion.Exist during its Problems with:
1. inefficiency.Terminate to test since test, each link is required for manpower intervention.
2. escalation policy coverage rate is inadequate.Manual testing usually can only test from minimum version to highest version, Huo Zhesui Machine extracts version test, and is tested from highest version to minimum version, is not often covered due to testing efficiency.
3. escalation policy cannot be fixed very well, human factor is too big.During actual test, tester may There is the phenomenon that maloperation or test leakage.
Invention content
The application provides a kind of method automatically improving test software compatibility efficiency.
Technical solution disclosed by the invention includes:
Upgrading configuration is run, the upgrading configuration includes path and title and the upgrading of upgrading configuration Strategy;
According to software to be upgraded in the upgrading configuration updating apparatus;Restart the equipment after the completion of upgrading;
Whether detection device being capable of normal operation;Whether all upgrade package in detection escalation policy all upgrade.
The raising of this method is:The efficiency for improving software compatibility test only needs to click to run using this method Test script, so that it may to be automatically performed entire test process;
Required software package can be preserved in the form of configuration file in test, in this way can be to avoid Test coverage not Complete problem;
Required software package can be preserved in the form of configuration file in test, can preferably fix test stream Journey, can avoid in this way it is artificial during the test caused by maloperation mistake.
Description of the drawings
Fig. 1 is the flow chart of software compatibility test method.
Specific implementation mode
Below by specific implementation mode combination attached drawing, invention is further described in detail.
Fig. 1 is the flow chart of software compatibility test method.
Step 1:Starting device, after equipment is powered, software enters initialization step, terminate to start after initialization step into Enter software compatibility testing process.
Step 2:After software enters flow, software starts to read corresponding upgrading configuration.Wherein the upgrading is matched Set the upgrade package path and name and escalation policy that file can include all software versions.
On the one hand, due to containing all software versions in upgrade package, when software execute upgrade when, can be by It is addressed to corresponding upgrade package software according to the upgrade package path of the version software, software is carried out to execute upgrade package software program Upgrade actions;On the other hand, the escalation policy in configuration file can include following use-case:1) from minimum version to highest version This;2) from highest version to minimum version;3) version is randomly selected;4) include the test case of above three step;5) spy formulated Determine version.Each software upgrading action can select corresponding test case according to the requirement of test.
Step 3:After software reads corresponding configuration file, according to corresponding upgrade package and upgrading in corresponding configuration file Strategy upgrades software.First, software can read the upgrade package of respective version, and the version of upgrade package is and software version one One is corresponding, and software can recognize the version coding of upgrade package, so as to automatic running upgrade package script file, execute liter Grade action;Secondly, according to the escalation policy being determined in advance, software can read the use of escalation policy corresponding in configuration file Example, and use-case therein is executed automatically, test case can be one or more kinds of, and when there are many test case, software will It scheduled use-case is installed puts in order and carry out one by one, the case where to avoid test case from obscuring or omit.
Step 4:Whether software detection, which is completed, upgrades.If software discovery still has a upgrade package to be upgraded or is not carried out Escalation policy use-case then illustrates that software is not completed to upgrade, then continues software upgrading.If so upgrade package and upgrading Tactful use-case is performed, then illustrates that software upgrading is completed, then enter next step.
Step 5:When software is completed to upgrade, software can send remote command restarting equipment in hardware layer.That is when When software completes upgrading, control command can be sent out from software scripts to the central processing unit of equipment, central processing unit receives soft After the control command of part script, changed by the level to hardware circuit so that the hardware circuit of equipment carries out restarting action.
Step 6:After the completion of equipment is restarted, software can send remote command carrys out detection device whether can be just in physical layer Often work.Equipment normal work refers to:Hardware and software in equipment can realize its due function, without due to The change of software version and lose its relevant function or the missing of function occur.If equipment can work normally, enter Next step step.If equipment cisco unity malfunction, software pops up miscue frame, and generation error on human-computer interaction interface Daily record.The error log has recorded the relevant information of the upgrading failure of software, including update time, software version, staging error Corresponding error code, and appear in human-computer interaction interface in the form of text, such as on display.
Step 7:Equipment detects whether so upgrade package to be upgraded all tests completion.When all upgrade package complete upgrading Afterwards, software should reach desired software version.If there is upgrade package not complete, step 3 is jumped to, is continued according to step 3 Corresponding configuration file is read, and software is risen according to corresponding upgrade package and escalation policy in corresponding configuration file Grade, then repeatedly step 4 arrive step 7 process.If all upgrade package are all completed to test, entire software compatibility test knot Beam.
It will be understood by those skilled in the art that all or part of step of various methods can pass through in the above embodiment Program instructs related hardware to complete, which can be stored in a computer readable storage medium, storage medium can wrap It includes:Read-only memory, random access memory, disk or CD etc..
Use above specific case is illustrated the present invention, is merely used to help understand the present invention, not limiting The system present invention.For those skilled in the art, according to the thought of the present invention, can also make several simple It deduces, deform or replaces.

Claims (4)

1. a kind of software compatibility test method, which is characterized in that including:
Run upgrading configuration, the upgrading configuration include upgrading configuration path and title and upgrading plan Slightly, the upgrading configuration is computer script file;
According to software in the upgrading configuration updating apparatus;
Restart the equipment after the completion of upgrading;
Whether detection device being capable of normal operation;
Whether all upgrade package in detection escalation policy all upgrade;
The escalation policy includes following upgrading use-case:From minimum version to highest upgrade edition upgrade pack, from highest version to minimum Upgrade edition upgrade pack randomly selects the synthesis of upgrade edition upgrade pack, particular version upgrade package and above-mentioned upgrade package;The escalation policy It further include the ordering of each upgrade package.
2. the method as described in claim 1, which is characterized in that the computer script file automatic running.
3. the method as described in claim 1, which is characterized in that when equipment is not normally functioning, pop-up miscue frame is simultaneously And generation error daily record.
4. the method as described in claim 1, which is characterized in that when there is upgrade package not complete, then
Run upgrading configuration, the upgrading configuration include upgrading configuration path and title and upgrading plan Slightly;
According to software to be upgraded in the upgrading configuration updating apparatus;
Restart the equipment after the completion of upgrading;
Detection device is whether normal operation;
Whether all upgrade package in detection escalation policy all upgrade.
CN201610164884.3A 2016-03-22 2016-03-22 A kind of method for testing software Active CN105868101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610164884.3A CN105868101B (en) 2016-03-22 2016-03-22 A kind of method for testing software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610164884.3A CN105868101B (en) 2016-03-22 2016-03-22 A kind of method for testing software

Publications (2)

Publication Number Publication Date
CN105868101A CN105868101A (en) 2016-08-17
CN105868101B true CN105868101B (en) 2018-11-09

Family

ID=56625606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610164884.3A Active CN105868101B (en) 2016-03-22 2016-03-22 A kind of method for testing software

Country Status (1)

Country Link
CN (1) CN105868101B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415825B (en) * 2017-10-27 2021-01-19 平安科技(深圳)有限公司 Electronic device, test method, and storage medium
CN110703726B (en) * 2019-09-26 2021-07-30 上海赫千电子科技有限公司 Automatic upgrading test method applied to locomotive

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042651A (en) * 2006-03-22 2007-09-26 华为技术有限公司 Software updating method and system thereof
CN103064715A (en) * 2013-01-09 2013-04-24 上海大唐移动通信设备有限公司 Remote upgrade method and system for automatic drive test systems

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593121B (en) * 2009-06-23 2014-03-05 中兴通讯股份有限公司 Method, device and system for software on-line upgrade
CN104978271B (en) * 2015-07-06 2019-06-04 Tcl集团股份有限公司 A kind of automatic upgrading pressure survey method and system of android system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042651A (en) * 2006-03-22 2007-09-26 华为技术有限公司 Software updating method and system thereof
CN103064715A (en) * 2013-01-09 2013-04-24 上海大唐移动通信设备有限公司 Remote upgrade method and system for automatic drive test systems

Also Published As

Publication number Publication date
CN105868101A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN102662701B (en) CPLD online upgrading method, device and service board
CN102629206B (en) A kind of method for updating embedded system software and system
CN102637144B (en) System fault processing method and device
US8423991B2 (en) Embedded network device and firmware upgrading method
CN106445591A (en) Automatic and batched RAID card FW refreshing method of servers
CN103399814B (en) The method and device of automatic test
CN103150231A (en) Computer booting method and computer system
CN104834575A (en) Firmware recovery method and device
CN103970660A (en) Total system stability automatic test method based on crontab
CN104125504B (en) Deployment method, device and system based on continuous integration
CN109284117A (en) Firmware upgrade method and system and flash memory microcontroller based on flash memory microcontroller
CN105760191A (en) Embedded system equipment programming mass production method
CN110515641A (en) The update method of server firmware, apparatus and system
CN106598796A (en) Method for testing hardware information stability in reboot
CN104216771B (en) The method for restarting and device of software program
CN104699615B (en) A kind for the treatment of method and apparatus of the system failure
CN110750396A (en) Server operating system compatibility testing method and device and storage medium
CN102447732A (en) Method for intelligent configuration of host computer embedded environment during BMC (Baseboard Management Controller) development
CN104461402B (en) A kind of method for adjusting disk order under Linux system between multi-controller
CN109189485A (en) A kind of system starting management of embedded device, operating system configuration method
CN111444119B (en) Firework platform nonvolatile memory registration method based on kernel parameters
CN108572895B (en) Stability test method for automatically checking software and hardware configuration under Linux
CN105868101B (en) A kind of method for testing software
CN113315675B (en) White box switch U-Boot automatic testing method, system and storage medium
CN113377586A (en) Automatic server detection method and device and storage medium

Legal Events

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

Address after: 518000 Guangdong Province, Baoan District, Baoan District, Xin'an Street, Xingdong Community, 68 District, Antongda Industrial Factory Area, 4 factories, 3 floors, 5 office buildings, 1-3 floors

Patentee after: Shenzhen dingyang Technology Co., Ltd

Address before: Shenzhen City, Guangdong province Baoan District 518000 District 68 road left three Antongda Industrial Park, 4 floor

Patentee before: Shenzhen Siglent Technologies Co., Ltd.

CP03 Change of name, title or address