CN104021083A - Testing method and device - Google Patents

Testing method and device Download PDF

Info

Publication number
CN104021083A
CN104021083A CN201410271415.2A CN201410271415A CN104021083A CN 104021083 A CN104021083 A CN 104021083A CN 201410271415 A CN201410271415 A CN 201410271415A CN 104021083 A CN104021083 A CN 104021083A
Authority
CN
China
Prior art keywords
test
orthogonal
described test
path set
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.)
Granted
Application number
CN201410271415.2A
Other languages
Chinese (zh)
Other versions
CN104021083B (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201410271415.2A priority Critical patent/CN104021083B/en
Publication of CN104021083A publication Critical patent/CN104021083A/en
Application granted granted Critical
Publication of CN104021083B publication Critical patent/CN104021083B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a testing method and device. The testing method comprises the steps of using an orthogonal test algorithm for calculating test path sets of a plurality of test cases, obtaining navigation data corresponding to the test path sets, and using the navigation data, the test cases and the test path sets for carrying out testing. By the adoption of the method and the device, the problem that the leak rate of testing is high when the function of software is tested in the prior art, the integrity of test paths is ensured, the closed cycle of quality control is ensured, and the testing efficiency is improved greatly.

Description

Method of testing and device
Technical field
The present invention relates to software test field, in particular to a kind of method of testing and device.
Background technology
At present equipment being carried out to logic function test, is all by manually logic function book being combined, and then manually or test according to testing software function, is not combined with software in complete logic testing path, realizes the function that test is navigated.So this test mode can cause the phenomenons such as test leakage, few survey, content measurement mistake, and can waste a large amount of test periods.
Test the problem that false pass rate is high when software being carried out to functional test in prior art, not yet propose at present effective solution.
Summary of the invention
Test the problem that false pass rate is high when software being carried out to functional test in correlation technique, not yet propose at present effective solution, for this reason, fundamental purpose of the present invention is to provide a kind of method of testing and device, to address the above problem.
To achieve these goals, according to an aspect of the present invention, provide a kind of method of testing, this method of testing comprises: the test path set that uses orthogonal test algorithm to calculate multiple test cases; Obtain the navigation data corresponding with test path set; Use navigation data, test case and test path set to test.
Further, the test path set that uses orthogonal test algorithm to calculate multiple test cases comprises: resolve test case and obtain test data; Use orthogonal test algorithm to calculate two horizontal quadrature tables and the multilevel orthogonal arrage of test data; Use orthogonal test algorithm to calculate the orthogonal array of two horizontal quadrature tables and multilevel orthogonal arrage; Use parameter preset to obtain test path set to orthogonal array correction.
Further, using navigation data, test case and test path set to test comprises: use navigation data to determine the order of test path in test path set; From test path set, extract test path in order; Test according to test path use test use-case.
Further, test and comprise according to test path use test use-case: obtain the test case corresponding with test path;
Obtain the test configurations interface corresponding with test case; By the implementation of test cases of test configurations interface, to test.
To achieve these goals, according to a further aspect in the invention, provide a kind of proving installation, this proving installation comprises: computing module, for using orthogonal test algorithm to calculate the test path set of multiple test cases; The first acquisition module, for obtaining the navigation data corresponding with test path set; Test module, for using navigation data, test case and test path set to test.
Further, computing module comprises: parsing module, obtains test data for resolving test case; The first calculating sub module, for being used orthogonal test algorithm to calculate two horizontal quadrature tables and the multilevel orthogonal arrage of test data; The second calculating sub module, for being used orthogonal test algorithm to calculate the orthogonal array of two horizontal quadrature tables and multilevel orthogonal arrage; Correcting module, for using parameter preset to obtain test path set to orthogonal array correction.
Further, test module comprises: determination module, for using navigation data to determine the order of test path set test path; Abstraction module, for extracting test path from test path set in order; Test submodule, for testing according to test path use test use-case.
Further, test submodule comprises: the second acquisition module, for obtaining the test case corresponding with test path; The 3rd acquisition module, for obtaining the test configurations interface corresponding with test case; Execution module, for passing through the implementation of test cases of test configurations interface, to test.
Adopt the present invention, can be according to orthogonal test algorithm, calculate test combination (being the test path in the test path set in above-described embodiment), and test path is combined with software gui interface, realize the navigation feature that software automatically performs.Adopt the present invention, function logic when test is no longer by artificial combination, but according to orthogonal experiment method Automatic Combined, form complete test path, stopped test leakage that artificial combination exists, surveyed less, the wrong phenomenon of surveying, solved while in prior art software being carried out to functional test and tested the problem that false pass rate is high, ensured the integrality of test path, the closed loop of quality control, improves testing efficiency greatly.
Brief description of the drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the structural representation of the proving installation of the embodiment of the present invention;
Fig. 2 is according to the process flow diagram of the method for testing of the embodiment of the present invention; And
Fig. 3 is according to the process flow diagram of a kind of method of testing of the embodiment of the present invention.
Embodiment
In order to make those skilled in the art person understand better the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and needn't be used for describing specific order or precedence.The data that should be appreciated that such use suitably can exchanged in situation, so as embodiments of the invention described herein can with except diagram here or describe those order enforcement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, for example, those steps or unit that process, method, system, product or the equipment that has comprised series of steps or unit is not necessarily limited to clearly list, but can comprise clearly do not list or for these processes, method, product or equipment intrinsic other step or unit.
Fig. 1 is according to the structural representation of the proving installation of the embodiment of the present invention.As shown in Figure 1, this proving installation can comprise: computing module 10, for using orthogonal test algorithm to calculate the test path set of multiple test cases; The first acquisition module 20, for obtaining the navigation data corresponding with test path set; Test module 30, for using navigation data, test case and test path set to test.
Adopt the present invention, can be according to orthogonal test algorithm, calculate test combination (being the test path in the test path set in above-described embodiment), and test path is combined with software gui interface, realize the navigation feature that software automatically performs.Adopt the present invention, function logic when test is no longer by artificial combination, but according to orthogonal experiment method Automatic Combined, form complete test path, stopped test leakage that artificial combination exists, surveyed less, the wrong phenomenon of surveying, solved while in prior art software being carried out to functional test and tested the problem that false pass rate is high, ensured the integrality of test path, the closed loop of quality control, improves testing efficiency greatly.
According to the abovementioned embodiments of the present invention, computing module can comprise: parsing module, obtains test data for resolving test case; The first calculating sub module, for being used orthogonal test algorithm to calculate two horizontal quadrature tables and the multilevel orthogonal arrage of test data; The second calculating sub module, for being used orthogonal test algorithm to calculate the orthogonal array of two horizontal quadrature tables and multilevel orthogonal arrage; Correcting module, for using parameter preset to obtain test path set to orthogonal array correction.
Further, test module can comprise: determination module, for using navigation data to determine the order of test path set test path; Abstraction module, for extracting test path from test path set in order; Test submodule, for testing according to test path use test use-case.
Need to be that test submodule can comprise with further illustrating: the second acquisition module, for obtaining the test case corresponding with test path; The 3rd acquisition module, for obtaining the test configurations interface corresponding with test case; Execution module, for passing through the implementation of test cases of test configurations interface, to test.
Each processing module in above-described embodiment all can using method embodiment in the implementation method of corresponding step realize, do not repeat them here.
Fig. 2 is that the method comprises the steps: as shown in Figure 2 according to the process flow diagram of the method for testing of the embodiment of the present invention
Step S202, the test path set that uses orthogonal test algorithm to calculate multiple test cases.
Step S204, obtains the navigation data corresponding with test path set.
Step S206, uses navigation data, test case and test path set to test.
Adopt the present invention, can be according to orthogonal test algorithm, calculate test combination (being the test path in the test path set in above-described embodiment), and test path is combined with software gui interface, realize the navigation feature that software automatically performs.Adopt the present invention, function logic when test is no longer by artificial combination, but according to orthogonal experiment method Automatic Combined, form complete test path, stopped test leakage that artificial combination exists, surveyed less, the wrong phenomenon of surveying, solved while in prior art software being carried out to functional test and tested the problem that false pass rate is high, ensured the integrality of test path, the closed loop of quality control, improves testing efficiency greatly.
Wherein, in the above-described embodiments, taking disturbed test frock as example, disturbed test content coverage rate has reached 99%, and efficiency has improved 90%.
While using in the above-described embodiments orthogonal test algorithm to determine test path, can check and obtain test path set test path wherein by orthogonal arrage character, wherein, orthogonal arrage character (pre-conditioned) can comprise:
1. once combine all standing: any row must comprise whole levels, do not leak item.
2. secondary combination all standing: screen arbitrarily certain level in row, after screening, all the other are listed as full level and all exist, and do not leak item
3. same level once combines and is uniformly distributed: each horizontal occurrence number equalization in any row.
4. horizontal secondary combination of the same type is uniformly distributed: screen arbitrarily certain horizontal factor in row, the number of times equalization that after screening, in all the other row, each level occurs.Wherein, horizontal factor can be the test parameter in test case, as parameters such as blower fan temperature, environment temperatures.
Merge duplicate removal processing according to the above-mentioned pre-conditioned test path set to initial acquisition and obtain test path set.
According to the abovementioned embodiments of the present invention, the test path set that uses orthogonal test algorithm to calculate multiple test cases can comprise: resolve test case and obtain test data; Use orthogonal test algorithm to calculate two horizontal quadrature tables and the multilevel orthogonal arrage of test data; Use orthogonal test algorithm to calculate the orthogonal array of two horizontal quadrature tables and multilevel orthogonal arrage; Use parameter preset to obtain test path set to orthogonal array correction.
As shown in Figure 3, the method can realize as follows:
Step S301: obtain test case.
Step S302: use orthogonal test algorithm that test case is screened and combined and obtain test path set.
Particularly, test case screening combination, can be by the Matlab realization of programming, first reading input data resolves, write algorithm and calculate satisfactory two horizontal quadrature tables and multilevel orthogonal arrage, write again algorithm and calculate orthogonal array, calculate complete and revise after the data of input are brought into form and are arranged, a complete test path set of output.
Wherein, the input data in above-described embodiment are the test parameter in test case, and test parameter comprises the data such as environment temperature test data, blower fan temperature test data.These data need to be carried out all elements of quadrature analysis, can from the logic of test case, extract.
In above-described embodiment, calculating satisfactory two horizontal quadrature tables and multilevel orthogonal arrage can realize by the following method: the orthogonal arrage number of levels of 1, selecting and all must not be less than input value (input value is herein in above-described embodiment) because of prime number (being the quantity of the test parameter in above-described embodiment).2, in the time having more than 2 or 2 that orthogonal arrage can be selected, selection principle is that orthogonal arrage that selects test number (TN) minimum, and the path that can make like this test case is the most succinct and the most complete.
Step S303: use software that all test paths are made to navigation feature.
Wherein, test path function realizes and being developed by labview development platform, and every kind of test path comprises combination, and software function and test path carry out combination by the mode of state machine, are also that software calls test path in order from database; Navigation feature embodies at gui interface, realizes self-navigation function.
According to the abovementioned embodiments of the present invention, use navigation data, test case and test path set to test and can comprise: to use navigation data to determine the order of test path in test path set; From test path set, extract test path in order; Test according to test path use test use-case.Specifically can realize by the step shown in Fig. 3:
Step S304 a: test path in the set of the automated randomized extraction test path of software.
Further, test and comprise according to test path use test use-case: obtain the test case corresponding with test path; Obtain the test configurations interface corresponding with test case; By the implementation of test cases of test configurations interface, to test.
Particularly, can realize to step S308 by the step S305 shown in Fig. 3:
Step S305: eject test configurations interface.
Step S306: automatically perform content measurement.
Step S307: detect all test paths and whether tested.
In the case of all test paths have been tested, execution step S308: generate test report; In the case of all test paths have not been tested, return to execution step S304.
Pass through the above embodiment of the present invention, content and the function of software test are no longer guided by tester, but by navigation feature Automatic Combined, execution step by step, guide test man's easy configuration, realize the integrality of test path, can not have test leakage, few survey, the wrong phenomenon of surveying, after navigation content has been tested, software produces test report automatically.
It should be noted that, can in the computer system such as one group of computer executable instructions, carry out in the step shown in the process flow diagram of accompanying drawing, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
As can be seen from the above description, the present invention has realized following technique effect:
Adopt the present invention, can be according to orthogonal test algorithm, calculate test combination (being the test path in the test path set in above-described embodiment), and test path is combined with software gui interface, realize the navigation feature that software automatically performs.Adopt the present invention, function logic when test is no longer by artificial combination, but according to orthogonal experiment method Automatic Combined, form complete test path, stopped test leakage that artificial combination exists, surveyed less, the wrong phenomenon of surveying, solved while in prior art software being carried out to functional test and tested the problem that false pass rate is high, ensured the integrality of test path, the closed loop of quality control, improves testing efficiency greatly.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (8)

1. a method of testing, is characterized in that, comprising:
The test path set that uses orthogonal test algorithm to calculate multiple test cases;
Obtain the navigation data corresponding with described test path set;
Use described navigation data, described test case and described test path set to test.
2. method of testing according to claim 1, is characterized in that, the test path set that uses orthogonal test algorithm to calculate multiple test cases comprises:
Resolve described test case and obtain test data;
Use orthogonal test algorithm to calculate two horizontal quadrature tables and the multilevel orthogonal arrage of described test data;
Use orthogonal test algorithm to calculate the orthogonal array of described two horizontal quadrature tables and described multilevel orthogonal arrage;
Use parameter preset to obtain described test path set to described orthogonal array correction.
3. method of testing according to claim 1, is characterized in that, uses described navigation data, described test case and described test path set to test and comprises:
Use described navigation data to determine the order of test path in described test path set;
From described test path set, extract described test path according to described order;
Use described test case to test according to described test path.
4. method of testing according to claim 3, is characterized in that, uses described test case to test comprise according to described test path:
Obtain the described test case corresponding with described test path;
Obtain the test configurations interface corresponding with described test case;
Carry out described test case by described test configurations interface, to test.
5. a proving installation, is characterized in that, comprising:
Computing module, for using orthogonal test algorithm to calculate the test path set of multiple test cases;
The first acquisition module, for obtaining the navigation data corresponding with described test path set;
Test module, for using described navigation data, described test case and described test path set to test.
6. proving installation according to claim 5, is characterized in that, described computing module comprises:
Parsing module, obtains test data for resolving described test case;
The first calculating sub module, for being used orthogonal test algorithm to calculate two horizontal quadrature tables and the multilevel orthogonal arrage of described test data;
The second calculating sub module, for being used orthogonal test algorithm to calculate the orthogonal array of described two horizontal quadrature tables and described multilevel orthogonal arrage;
Correcting module, for using parameter preset to obtain described test path set to described orthogonal array correction.
7. proving installation according to claim 5, is characterized in that, described test module comprises:
Determination module, for using described navigation data to determine the order of described test path set test path;
Abstraction module, for extracting described test path according to described order from described test path set;
Test submodule, for using described test case to test according to described test path.
8. proving installation according to claim 7, is characterized in that, test submodule comprises:
The second acquisition module, for obtaining the described test case corresponding with described test path;
The 3rd acquisition module, for obtaining the test configurations interface corresponding with described test case;
Execution module, for carrying out described test case by described test configurations interface, to test.
CN201410271415.2A 2014-06-17 2014-06-17 Method of testing and device Active CN104021083B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410271415.2A CN104021083B (en) 2014-06-17 2014-06-17 Method of testing and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410271415.2A CN104021083B (en) 2014-06-17 2014-06-17 Method of testing and device

Publications (2)

Publication Number Publication Date
CN104021083A true CN104021083A (en) 2014-09-03
CN104021083B CN104021083B (en) 2017-11-28

Family

ID=51437848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410271415.2A Active CN104021083B (en) 2014-06-17 2014-06-17 Method of testing and device

Country Status (1)

Country Link
CN (1) CN104021083B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677667A (en) * 2014-11-19 2016-06-15 珠海格力电器股份有限公司 Data processing method and method used for orthogonal test
CN109558310A (en) * 2018-10-25 2019-04-02 北京仁科互动网络技术有限公司 Method for generating test case and device
CN110111911A (en) * 2019-03-15 2019-08-09 国联汽车动力电池研究院有限责任公司 Experimental design management method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002014851A (en) * 2000-06-30 2002-01-18 Nec Corp Software testing work supporting method and device for the same and recording medium with software testing work supporting program recorded
CN1851665A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for completing product automation test utilizing test kit
CN101593145A (en) * 2008-05-29 2009-12-02 福建升腾资讯有限公司 Designing method of high-efficiency high-coverage-rate function test case
CN102096631A (en) * 2009-12-11 2011-06-15 华为技术有限公司 Interface testing method and device
CN103428739A (en) * 2012-05-17 2013-12-04 上海手机测试公共服务平台有限公司 Off-site testing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002014851A (en) * 2000-06-30 2002-01-18 Nec Corp Software testing work supporting method and device for the same and recording medium with software testing work supporting program recorded
CN1851665A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for completing product automation test utilizing test kit
CN101593145A (en) * 2008-05-29 2009-12-02 福建升腾资讯有限公司 Designing method of high-efficiency high-coverage-rate function test case
CN102096631A (en) * 2009-12-11 2011-06-15 华为技术有限公司 Interface testing method and device
CN103428739A (en) * 2012-05-17 2013-12-04 上海手机测试公共服务平台有限公司 Off-site testing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677667A (en) * 2014-11-19 2016-06-15 珠海格力电器股份有限公司 Data processing method and method used for orthogonal test
CN109558310A (en) * 2018-10-25 2019-04-02 北京仁科互动网络技术有限公司 Method for generating test case and device
CN110111911A (en) * 2019-03-15 2019-08-09 国联汽车动力电池研究院有限责任公司 Experimental design management method and device

Also Published As

Publication number Publication date
CN104021083B (en) 2017-11-28

Similar Documents

Publication Publication Date Title
CN103473506B (en) For the method and apparatus identifying malice APK file
CN110134588B (en) Test case priority ordering method and test system based on code and combination coverage
CN107193733A (en) Simulate the methods, devices and systems of Monkey tests
CN103530228A (en) Software testing method based on model
CN111506485B (en) Feature binning method, device, equipment and computer-readable storage medium
CN110474900B (en) Game protocol testing method and device
CN107885660A (en) Fund system automatic test management method, device, equipment and storage medium
CN105045574A (en) Software key function identification method based on complex network fault propagation
CN109062794A (en) A kind of the determination method, apparatus and electronic equipment of software evaluating result
CN109446814A (en) Vulnerability detection method and device
CN110209551B (en) Abnormal equipment identification method and device, electronic equipment and storage medium
CN110046088A (en) A kind of interface test method, device and equipment
CN104021083A (en) Testing method and device
CN103309805B (en) The robotization system of selection of test target in xUnit framework Based on Object-Oriented Technology software
CN105045715A (en) Programming mode and mode matching based bug clustering method
CN107145447B (en) Method and device for detecting memory leakage and electronic equipment
CN105630667A (en) Test method and terminal equipment
CN106021113A (en) Precise test implementation method
CN104063307A (en) Software testing method and system
CN110221933A (en) Aacode defect assists restorative procedure and system
CN104615537A (en) Constrained random verification method and device for picture processing class IPs
CN107402883B (en) A kind of data test treating method and apparatus
Cruz et al. A machine learning based automatic hardware trojan attack space exploration and benchmarking framework
CN110941830B (en) Vulnerability data processing method and device
George Constructing covering arrays using parallel computing and grid computing

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