CN109857666A - A kind of optimization method of test set, device and computer readable storage medium - Google Patents

A kind of optimization method of test set, device and computer readable storage medium Download PDF

Info

Publication number
CN109857666A
CN109857666A CN201910107735.7A CN201910107735A CN109857666A CN 109857666 A CN109857666 A CN 109857666A CN 201910107735 A CN201910107735 A CN 201910107735A CN 109857666 A CN109857666 A CN 109857666A
Authority
CN
China
Prior art keywords
test case
test
title
testing sequence
sequence
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.)
Withdrawn
Application number
CN201910107735.7A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201910107735.7A priority Critical patent/CN109857666A/en
Publication of CN109857666A publication Critical patent/CN109857666A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of optimization method of test set, device and computer readable storage mediums, this method comprises: naming test case according to preset rules;The dependence and optimal testing sequence of the test case are set;N number of test case is randomly selected, the N is the integer more than or equal to 1;According to the testing sequence of N number of test case described in the title of the test case, dependence and optimal testing sequence intelligent decision;N number of test case after output sequence.Compared to the prior art, the present invention solves the problems, such as that the sequence of test case when executing test is unreasonable, reduces unnecessary system configuration operation, minimizes the testing time, improves testing efficiency.

Description

A kind of optimization method of test set, device and computer readable storage medium
Technical field
The present invention relates to automatization testing technique field, particularly a kind of optimization method of test set, device and meter Calculation machine readable storage medium storing program for executing.
Background technique
The most basic product that one whitepack interchanger manufacturer provides is exactly opening of running on exchange hardware and hardware Put network installation environment (ONIE:Open Network Install Environment) system.ONIE system is a guidance Loading procedure (boot loader) and the operating system based on Linux, it is responsible for finding and installing network operation system Above system (NOS:Network Operating Systems) to whitepack interchanger.Although ONIE is the system of open source, factory The certification that quotient needs to obtain authoritative institution could obtain the legal logo right to use.Certification authority's regulation is surveyed from one comprising very much It randomly selects N test case in the test set of example (test case) on probation to be tested, if all tests of sampling are used Example all tests pass through, then the ONIE system of the manufacturer has passed through authenticating authority.
Since the test of ONIE system relates generally to installing and uninstalling for NOS, such as in the N number of test case extracted, There are multiple test cases to need to install NOS and unloading NOS, then when test very possible follow-on test installation NOS or The use-case of person's follow-on test unloading NOS.And it is well known that the premise of test unloading NOS is that must have NOS on machine, test is pacified The premise for filling NOS is that must not have NOS on machine.If that NOS or unloading NOS, Jiu Huizeng are installed in test twice in succession Add test complexity and extended testing system time., whereas if test installation NOS and test unloading NOS are staggered, then can Sufficiently to save the testing time.
In the existing method, after extracting N number of test case, it is not provided with specific testing sequence, and Test case is manually specified, and testing sequence understands different from according to the experience and habit of different testers, to will cause There is the space that can be compressed in the testing time.In the worst case, if tester does not do sequence analysis and begins to sequence Implementation of test cases causes to test then being likely to the use-case of the multiple installations of follow-on test or the multiple unloading NOS of follow-on test The serious lengthening of time.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of optimization method of test set, device and computer-readable depositing Storage media, the testing sequence to solve the problems, such as test case in the prior art is unreasonable, reduces unnecessary system configuration behaviour Make, minimize the testing time, improves testing efficiency.
In order to solve the above technical problems, the present invention provides a kind of optimization methods of test set, which comprises
Test case is named according to preset rules;
The dependence and optimal testing sequence of the test case are set;
N number of test case is randomly selected, the N is the integer more than or equal to 1;
According to N number of test case described in the title of the test case, dependence and optimal testing sequence intelligent decision Testing sequence;
N number of test case after output sequence.
Preferably, the preset rules are as follows: the title of the test case includes the keyword of corresponding test content.
Preferably, the keyword includes: install or uninstall.
Preferably, the N according to the title of the test case, dependence and optimal testing sequence intelligent decision The testing sequence of a test case includes:
It include the test case of uninstall in test case and title in translocation sorting title comprising install.
Preferably, the above method is applied to the certification of open network installation environment ONIE system.
In order to solve the above technical problems, the present invention also provides a kind of optimization device of test set, described device includes:
Unit is named, for naming test case according to preset rules;
Setting unit, for the dependence and optimal testing sequence of the test case to be arranged;
Sampling unit, for randomly selecting N number of test case, the N is the integer more than or equal to 1;
Decision engine, for according to the title of the test case, dependence and optimal testing sequence intelligent decision institute State the testing sequence of N number of test case;
Output unit, for exporting N number of test case after sorting.
Preferably, the preset rules are as follows: the title of the test case includes the keyword of corresponding test content.
Preferably, the keyword includes: install or uninstall.
Preferably, the N according to the title of the test case, dependence and optimal testing sequence intelligent decision The testing sequence of a test case includes:
It include the test case of uninstall in test case and title in translocation sorting title comprising install.
Preferably, above-mentioned apparatus is applied to the certification of open network installation environment ONIE system.
In order to solve the above technical problems, the computer can the present invention also provides a kind of computer readable storage medium It reads to be stored with computer program on storage medium, the computer program realizes any of the above-described kind of test set when being executed by processor Optimization method the step of.
It is disclosed by the invention to have the beneficial effect that
According to N number of test case of the title of test case, dependence and optimal testing sequence intelligent decision extraction Testing sequence solves the problems, such as that the sequence of test case when executing test in the prior art is unreasonable, reduces unnecessary system It is under unified central planning to set operation, the testing time is minimized, testing efficiency is improved.
Detailed description of the invention
It in order to illustrate the embodiments of the present invention more clearly or the technical solution of the prior art, below will be to embodiment or existing Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to the attached drawing of offer.
Fig. 1 is a kind of flow chart of the optimization method of test set provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of the sequencer procedure of intelligent decision provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of the optimization device of test set provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The core of the embodiment of the present invention is to provide a kind of optimization method of test set, is able to solve and executes survey in the prior art The sequence of test case unreasonable problem when examination reduces unnecessary system configuration operation, minimizes the testing time, improves and surveys Try efficiency;Another core of the invention is to provide a kind of monitor and management of cluster system and computer readable storage medium, has There is above-mentioned beneficial effect.
It is right with reference to the accompanying drawings and detailed description in order to make those skilled in the art more fully understand the present invention program The present invention is described in further detail.
Fig. 1 is a kind of flow chart of the optimization method of test set provided in an embodiment of the present invention, as shown in Figure 1, a kind of survey Try the optimization method of collection, comprising the following steps:
Step S101 names test case according to preset rules;
Specifically, before performing the testing, it first has to rationally name each test case test case, so that each The name of test case includes the keyword of corresponding test content.Therefore, preset rules can be with are as follows: the title packet of test case Keyword containing corresponding test content.For example, can will be tested to keep test installation NOS and test unloading NOS staggered Use-case is named as nos_install and nos_uninstall, i.e. keyword may include: install or uninstall etc..
The dependence and optimal testing sequence of the test case is arranged in step S102;
Specifically, tested system environments generally comprises various aspects, i.e., test case is for test system environment Therefore different function presets the dependence and optimal testing sequence between each test case, facilitates decision and draw Hold up quick, intelligent sequence test case.
Step S103, randomly selects N number of test case, and the N is the integer more than or equal to 1;
Specifically, when test, randomly selected from a test set comprising many test cases N number of test case into Row test, passes through if all test cases of sampling are all tested, and this time test passes through.
Step S104, it is N number of according to the title of the test case, dependence and optimal testing sequence intelligent decision The testing sequence of test case;
Specifically, decision engine imports strategy input and test set input, test set of the output by sequence.Strategy input The dependence and optimal testing sequence of naming rule and test case including the test case containing keyword, test Collection input includes the N number of test case randomly selected.Decision engine is according to the title of test case, dependence and optimal test Sequence carries out intelligent sequencing to N number of test case.
As shown in Fig. 2, the schematic diagram of the sequencer procedure for intelligent decision provided in an embodiment of the present invention, the row of intelligent decision Program process are as follows:
It include the test case of uninstall in test case and title in translocation sorting title comprising install.
It is sorted by intelligent decision, test installation NOS and test unloading NOS can be made staggered, sufficiently save test Time improves testing efficiency.
Step S105, N number of test case after output sequence;
Specifically, N number of test case of the decision engine output by sequence, tester can be with reference to N number of after sequence Test case is tested, and can also be tested one by one.
The optimization method of test set provided in an embodiment of the present invention, according to the title of test case, dependence and optimal The testing sequence for N number of test case that testing sequence intelligent decision extracts is able to solve test when executing test in the prior art The unreasonable problem of the sequence of use-case reduces unnecessary system configuration operation, minimizes the testing time, improves testing efficiency.
Fig. 3 is a kind of structure chart of the optimization device of test set provided in an embodiment of the present invention, as shown in figure 3, a kind of survey Examination collection optimization device include:
Unit 201 is named, for naming test case according to preset rules;
Wherein, preset rules can be with are as follows: the title of test case includes the keyword of corresponding test content;Keyword can be with It include: install or uninstall etc..
Setting unit 202, for the dependence and optimal testing sequence of the test case to be arranged;
The dependence and optimal testing sequence between each test case are preset, it is quick to facilitate decision engine Intelligent sequencing test case.
Sampling unit 203, for randomly selecting N number of test case, the N is the integer more than or equal to 1;
Specifically, when test, randomly selected from a test set comprising many test cases N number of test case into Row test, passes through if all test cases of sampling are all tested, and this time test passes through.
Decision engine 204, for according to the title of the test case, dependence and optimal testing sequence intelligent decision The testing sequence of N number of test case;
The sequencer procedure of intelligent decision are as follows:
It include the test case of uninstall in test case and title in translocation sorting title comprising install.
Output unit 205, for exporting N number of test case after sorting.
Wherein, N number of test case of the decision engine output by sequence, tester can be with reference to N number of surveys after sequence Example on probation is tested, and can also be tested one by one.
The optimization device of test set provided in an embodiment of the present invention, the beneficial effect of the optimization method with above-mentioned test set Fruit, Installation practice can refer to above method embodiment, repeat no more again.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, computer-readable storage It is stored with computer program on medium, the step of the optimization method such as above-mentioned test set is realized when computer program is executed by processor Suddenly.
Computer readable storage medium provided in an embodiment of the present invention, the beneficial effect of the optimization method with above-mentioned test set Fruit, for details, reference can be made to mode embodiments, and details are not described herein again.
Above to the optimization method of test set provided by the present invention, device, equipment and computer readable storage medium into It has gone and has been discussed in detail.Principle and implementation of the present invention are described for specific embodiment used herein, the above reality The explanation for applying example is merely used to help understand method and its core concept of the invention.It should be pointed out that for the art For those of ordinary skill, without departing from the principle of the present invention, can with several improvements and modifications are made to the present invention, These improvements and modifications also fall within the scope of protection of the claims of the present invention.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.

Claims (10)

1. a kind of optimization method of test set, which is characterized in that the described method comprises the following steps:
Test case is named according to preset rules;
The dependence and optimal testing sequence of the test case are set;
N number of test case is randomly selected, the N is the integer more than or equal to 1;
According to the survey of N number of test case described in the title of the test case, dependence and optimal testing sequence intelligent decision Examination sequence;
N number of test case after output sequence.
2. the method according to claim 1, wherein the preset rules are as follows:
The title of the test case includes the keyword of corresponding test content.
3. according to the method described in claim 2, it is characterized in that, the keyword includes:
Install or uninstall.
4. according to the method described in claim 3, it is characterized in that, the title according to the test case, dependence Testing sequence with N number of test case described in optimal testing sequence intelligent decision includes:
It include the test case of uninstall in test case and title in translocation sorting title comprising install.
5. method according to any of claims 1-4, which is characterized in that the method is installed applied to open network The certification of environment ONIE system.
6. a kind of optimization device of test set, which is characterized in that described device includes:
Unit is named, for naming test case according to preset rules;
Setting unit, for the dependence and optimal testing sequence of the test case to be arranged;
Sampling unit, for randomly selecting N number of test case, the N is the integer more than or equal to 1;
Decision engine, for N number of according to the title of the test case, dependence and optimal testing sequence intelligent decision The testing sequence of test case;
Output unit, for exporting N number of test case after sorting.
7. device according to claim 6, which is characterized in that the preset rules are as follows:
The title of the test case includes the keyword of corresponding test content.
8. device according to claim 7, which is characterized in that the keyword includes:
Install or uninstall.
9. device according to claim 8, which is characterized in that the title according to the test case, dependence Testing sequence with N number of test case described in optimal testing sequence intelligent decision includes:
It include the test case of uninstall in test case and title in translocation sorting title comprising install.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the optimization side such as test set described in any one of claim 1 to 5 when the computer program is executed by processor The step of method.
CN201910107735.7A 2019-01-31 2019-01-31 A kind of optimization method of test set, device and computer readable storage medium Withdrawn CN109857666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910107735.7A CN109857666A (en) 2019-01-31 2019-01-31 A kind of optimization method of test set, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910107735.7A CN109857666A (en) 2019-01-31 2019-01-31 A kind of optimization method of test set, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109857666A true CN109857666A (en) 2019-06-07

Family

ID=66897498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910107735.7A Withdrawn CN109857666A (en) 2019-01-31 2019-01-31 A kind of optimization method of test set, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109857666A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124911A (en) * 2019-12-20 2020-05-08 苏州浪潮智能科技有限公司 Automatic testing method, device, equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124911A (en) * 2019-12-20 2020-05-08 苏州浪潮智能科技有限公司 Automatic testing method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN104185840B (en) It is used for being prioritized the mthods, systems and devices of multiple tests in lasting deployment streamline
CN111124850A (en) MQTT server performance testing method, system, computer equipment and storage medium
US20080263400A1 (en) Fault insertion system
CN103793326B (en) Assembly test method and device
CN109617759A (en) Block catenary system stability test method, apparatus, equipment and storage medium
EP2572294B1 (en) System and method for sql performance assurance services
CN110162977A (en) A kind of Android vehicle-mounted terminal system leakage location and method
Saeed et al. Software clustering techniques and the use of combined algorithm
CN105302706B (en) Applied program testing method and device
CN104461873B (en) The method of testing and device of a kind of application program
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
CN106610896A (en) Adaptive pressure testing method and device
CN107463362A (en) The method and system of lasting deployment based on multiple Jenkins
CN109240755A (en) A kind of configuration file comparison method and configuration file Compare System
CN106294094A (en) The method of testing of game server, client, server and system
US20130080983A1 (en) Functional simulation redundancy reduction by state comparison and pruning
CN109213645A (en) A kind of method and apparatus of distributed memory system performance test
CN106897207A (en) Ui testing method and apparatus
CN110471652A (en) Task method of combination, composer, equipment and readable storage medium storing program for executing
CN109508267A (en) A kind of server hardware configuration detection method, device, equipment and storage medium
CN102291274B (en) A kind of system and method realizing automatic adaptation of network testing instrument
CN109086176A (en) A kind of SSD steady-state method of test, device, equipment and storage medium based on FIO
CN105553732B (en) A kind of distributed network analogy method and system
CN109857666A (en) A kind of optimization method of test set, device and computer readable storage medium
CN107992326A (en) Java automation code dissemination methods based on Struts2 frames

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190607

WW01 Invention patent application withdrawn after publication