CN106326116B - The method and apparatus of product test - Google Patents
The method and apparatus of product test Download PDFInfo
- Publication number
- CN106326116B CN106326116B CN201610682292.0A CN201610682292A CN106326116B CN 106326116 B CN106326116 B CN 106326116B CN 201610682292 A CN201610682292 A CN 201610682292A CN 106326116 B CN106326116 B CN 106326116B
- Authority
- CN
- China
- Prior art keywords
- test
- code information
- hot spot
- change code
- product
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
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)
Abstract
The present invention provides a kind of method and apparatus of product test, this method comprises: obtaining corresponding at least one hot spot change code information test case for product test project;According to the identification information of the hot spot change code information test case got, corresponding hot spot change code information test case script is called to test product test project, to obtain test result;The test result of product test project and the expected results of product test project are compared, and comparing result is exported and shown.Technical solution of the present invention, which is realized, changes test of the script of code information test case to product test project by hot spot, improve the test quality of product test project, so that the code stability of product test project also greatly reinforces, and improve the quality of product;While guaranteeing the product of high quality, product test project is tested in an automated manner, reduces artificial time cost and manpower, accuracy rate with higher.
Description
Technical field
The present invention relates to field of software engineering, specifically, the present invention relates to a kind of method and apparatus of product test.
Background technique
With the development of computer, software also from common computer software, develops to the terminal system of bank or supermarket
Software, or even the built-in system software to mobile phone.But the quality and stability of software systems is not fully up to expectations, using effective
Software test discovery software in program bug be guarantee software quality, improve software reliability important means.
However, the program bug in software is often caused by the uncertainty of software requirement, the defect of software design or volume
Caused by journey fault;Even if being tested by manual or automaticization means software, since software test exists centainly
Limitation can not also find all program bugs in software systems, so how to effectively improve soft by software test
The quality of part is the emphasis of Current software test.
Summary of the invention
To overcome above-mentioned technical problem or at least being partially solved above-mentioned technical problem, spy proposes following technical scheme:
The embodiment of the present invention proposes a kind of method of product test, comprising:
At least one corresponding hot spot, which is obtained, for product test project changes code information test case;
According to the identification information of the hot spot change code information test case got, corresponding hot spot change code is called
Information test case script tests product test project, to obtain test result;
The test result of product test project and the expected results of product test project are compared, and by comparing result
It is exported and is shown.
Preferably, corresponding at least one hot spot change code information test is obtained for product test project to use
Example, comprising:
According to scheduled matching algorithm, obtains the change code information of at least one hot spot corresponding to product test project and survey
Example on probation;
At least one hot spot change code information test case that will acquire is added to test case concentration.
Preferably, by executing the test use cases, according to the hot spot change code information test case got
Identification information, call corresponding hot spot change code information test case script to test the product test project,
To obtain test result.
Preferably, this method further include:
Generation is changed for hot spot change code information creation hot spot change code information test case and with corresponding hot spot
Code information test case script.
Wherein, scheduled change frequency and/or change code letter of the hot spot change code information based on change code information
It ceases and is extracted in multiple change code informations with the scheduled relevance of program bug.
Preferably, this method further include:
According to scheduled matching algorithm, at least one the corresponding scheduled non-hot code information of product test project is obtained
Test case;
It is surveyed according to the identification information of the hot spot change code information test case got and non-hot change code information
The identification information of example on probation calls corresponding hot spot change code information test case script and non-hot change code information to survey
Case script on probation tests product test project, to obtain test result.
Another embodiment of the present invention proposes a kind of device of product test, comprising:
First obtains module, for obtaining corresponding at least one hot spot change code letter for product test project
Cease test case;
First test module is called for the identification information according to the hot spot change code information test case got
Corresponding hot spot change code information test case script tests product test project, to obtain test result;
Contrast module, for carrying out the expected results of the test result of product test project and product test project pair
Than, and comparing result is exported and shown.
Preferably, the first acquisition module includes:
Acquiring unit, for obtaining at least one hot spot corresponding to product test project according to scheduled matching algorithm
Change code information test case;
Adding unit, at least one hot spot change code information test case for will acquire are added to test case
It concentrates.
Preferably, the first test module, for being changed according to the hot spot got by executing the test use cases
The identification information of code information test case calls corresponding hot spot change code information test case script to survey the product
Examination project is tested, to obtain test result.
Preferably, the device further include:
Creation module, for for hot spot change code information creation hot spot change code information test case and with it is corresponding
Hot spot change code information test case script.
Wherein, scheduled change frequency and/or change code letter of the hot spot change code information based on change code information
It ceases and is extracted in multiple change code informations with the scheduled relevance of program bug.
Preferably, the device further include:
Second obtains module, and for according to scheduled matching algorithm, obtaining product test project, corresponding at least one is pre-
Fixed non-hot code information test case;
Second test module, for according to the hot spot change identification information of code information test case that gets and non-thermal
The identification information of point change code information test case calls corresponding hot spot change code information test case script and non-thermal
Point change code information test case script tests product test project, to obtain test result.
Technical solution of the present invention gets at least one hot spot change code information corresponding with product test project and surveys
Example on probation changes test of the script of code information test case to product test project by hot spot to realize, improves
The test quality of product test project, so that the code stability of product test project also greatly reinforces, and improves product
Quality;While guaranteeing the product of high quality, realizes and product test project is tested in an automated manner, reduce
Artificial time cost and manpower, accuracy rate with higher.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow diagram of the method for the product test of one embodiment of the present of invention;
Fig. 2 is the flow diagram for obtaining hot spot and changing code information test case of specific embodiments of the present invention;
Fig. 3 is the process that product test is carried out by non-hot code information test case of specific embodiments of the present invention
Schematic diagram;
Fig. 4 is the structural framing schematic diagram of the device of the product test of another embodiment of the invention;
Fig. 5 is that the realization first of another embodiment of the invention obtains the circuit theory schematic diagram of module;
Fig. 6 is that the realization of another embodiment of the invention carries out product test by non-hot code information test case
Product test device circuit theory schematic diagram.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein may include being wirelessly connected, or " coupling " may include wirelessly coupling.Here
The wording "and/or" used includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
It should be noted that the executing subject of technical solution of the present invention is server.
Fig. 1 is the flow diagram of the method for the product test of one embodiment of the present of invention.
Step S101: corresponding at least one hot spot change code information test is obtained for product test project and is used
Example;Step S102: according to the identification information of the hot spot change code information test case got, corresponding hot spot is called to change
Code information test case script tests product test project, to obtain test result;Step S103: by product test
The test result of project and the expected results of product test project compare, and comparing result is exported and shown.This
The technical solution of invention gets at least one hot spot change code information test case corresponding with product test project, thus
It realizes and test of the script of code information test case to product test project is changed by hot spot, improve product test item
Purpose tests quality, so that the code stability of product test project also greatly reinforces, and improves the quality of product;Guaranteeing height
While the product of quality, realize and product test project tested in an automated manner, reduce the artificial time at
Sheet and manpower, accuracy rate with higher.
Specific implementation below for each step is described further:
Step S101: corresponding at least one hot spot change code information test is obtained for product test project and is used
Example.
Specifically, step S101 is as shown in Figure 2, comprising: step S201: according to scheduled matching algorithm, obtaining product and surveys
At least one hot spot corresponding to examination project changes code information test case;Step S202: at least one heat that will acquire
Point change code information test case is added to test case concentration.Wherein, step S201 accurately selects test and uses
Example, is tested to be directed to the product test project.
Wherein, product test project includes but is not limited to: the test assignment of the subfunction module of software product, software produce
Test assignment, the test assignment of the interface of the subfunction module of software product of the function of the subfunction module of product.
Specifically, this method further include: equipment under test, such as tested server receive the upgrade package of software product, and certainly
It is dynamic to be upgraded;In escalation process, the test environment of tested software product is restored and imports the upgrading of software product
The configuration file of packet, and to the test environment, including hardware environment and software environment, it is checked;Simultaneously to test environment
Database is initialized, and the upgrade package of software product is updated, to guarantee going on smoothly for test.Complete test wrapper
After the setting and inspection in border, start to test the test item of software product.
Wherein, hardware environment includes but is not limited to: server, cable, distributor.
Software environment includes but is not limited to: database, operating system, subordinate's information of tested software product.
Specifically, the mode for obtaining hot spot change code information test case includes: to traverse matching under test case path
File is set, by search instruction, the file of the hot spot test case stored under configuration folder is searched, to obtain under its catalogue
Hot spot change code information test case file.The file for the hot spot change code information test case that will acquire, leads to
It crosses scheduled pattern matching algorithm and extracts and meet the algorithm, that is, the text of the hot spot change code information test case needed
Part, and instructed according to load, the hot spot in the file for the hot spot change code information test case for meeting the algorithm is changed into generation
Code information test case increases in test use cases suite.
Step S102: changing the identification information of code information test case according to hot spot, calls corresponding hot spot change generation
Code information test case script tests product test project, to obtain test result.
Specifically, by implementation of test cases collection, according to the mark of the hot spot change code information test case got
Know information, calls corresponding hot spot change code information test case script to test product test project, surveyed with obtaining
Test result.
Specifically, product test project carries out in the test cell of testing engine;Wherein, pass through pair of test use cases
As: test executing device runner calls measuring executing process operation platform TestRunner to drive the survey of product test project
Examination process;Start use-case test according to the operating instruction of TestRunner.
At least one hot spot for meeting the algorithm will be obtained by scheduled pattern matching algorithm changes code information test
The file of use-case, and instructed according to load, the heat in the file of the hot spot change code information test case of the algorithm will be met
Point change code information test case is loaded, by the hot spot modification information test case in operation suite, based on acquisition
The identification information of the hot spot modification information test case, such as title transfer the hot spot change under the corresponding script path of the title
Information test case script, to test product test project.For example, test gateway encryption and decryption product software, according to this
The demand of the product test project of product software first runs the configuration file of its hot spot modification information test case, sets gateway
The configuration of distributing policy;Product test project is tested by executing hot spot modification information test case script, is such as uploaded
The project of data or downloading data, is tested.
Specifically, this method further include: change code information test case for hot spot change code information creation hot spot
Code information test case script is changed with corresponding hot spot.
Specifically, scheduled change frequency and/or change code of the hot spot change code information based on change code information
The scheduled relevance of information and program bug extracts in multiple change code informations.
Specifically, the method for determination for changing the change frequency of code information includes: by checking what compiler server generated
Code in the order history time submits log, and statistics is submitted to compiling service by compiling client within the order history time
Change code information in the code database of device, to determine change of each change code information within the order history time
Number, so that it is determined that the change frequency of each change code information.Frequency will be changed and be greater than the scheduled change generation for changing frequency
Code information is determined as hot spot change code information.For example, by checking by code control system, e.g., Subversion, referred to as
Svn, the intraday code that the compiler server built generates submit log, submit the content recorded in log raw the code
It is recorded at json formatted file, and to the content being recorded in json formatted file perhaps directly to code submission log
It is marked;It, should with statistics according to label as a result, the record data of the change code information with same tag are merged
Intraday code alteration determines that hot spot changes code information according to statistical result.
Specifically, change the degree of association of code information and program bug method of determination include: will change code information with
Program bug bug management system, such as bugzilla are associated;Pass through the bug report and bug of program bug bug management system
Handling suggestion, to determine the degree of association of the change code information bug that can be generated and the change code information, wherein the change generation
Code information is submitted in the code database of compiler server by compiling client, i.e. the bug of change code information generation
Whether the execution of the change code information can be seriously affected, if need to handle.The pass of code information and program bug will be changed
The change code information that connection degree is greater than the scheduled degree of association is determined as hot spot change code information.
By changing the extraction of code information to hot spot, hot spot change code information test case and test foot are created
This, improves the test quality of product test project, so that the code stability of product test project also greatly reinforces, and improves
The quality of product.
It should be understood that creation test case and the corresponding test script of test case are the more mature skills in this field
Art just repeats no more here.
Step S103: the test result of product test project and the expected results of product test project are compared, and
Comparing result is exported and shown.
Specifically, the configuration file for running product software will in the product software for logging in or entering directly into equipment under test
The test result of product test project is compared with the expected results in the database for being stored in product software, soft by product
The help file of part obtains comparing result;Comparing result is generated into the test report by the TestRunner html page created,
With Record Comparison as a result, facilitating browsing to which forward end shows comparing result.
Wherein, TestRunner is by being saved in the html page for comparing result, to generate the test report of the html page.
Specifically, this method is as shown in Figure 3, further includes: step S301: according to scheduled matching algorithm, obtaining product and surveys
At least one corresponding scheduled non-hot code information test case of examination project;Step S302: become according to the hot spot got
The identification information of the more identification information of code information test case and non-hot change code information test case, is called corresponding
Hot spot change code information test case script and non-hot change code information test case script to product test project into
Row test, to obtain test result.
Step S301: according to scheduled matching algorithm, obtaining product test project, corresponding at least one is scheduled non-thermal
Point code information test case.
Specifically, the mode for obtaining non-hot change code information test case includes: under traversal test case path
Configuration folder searches the file of the non-hot test case stored under configuration folder, by search instruction to obtain its mesh
The file of non-hot change code information test case under record.The non-hot change code information test case that will acquire
File is extracted by scheduled pattern matching algorithm and meets the algorithm, that is, the non-hot change code information needed is surveyed
The file of example on probation, and instructed according to load, it will be in the file of non-hot change code information test case that the algorithm be met
Hot spot change code information test case increase in test use cases suite.It is real while guaranteeing the product of high quality
Show and product test project has been tested in an automated manner, has reduced artificial time cost and manpower, it is with higher
Accuracy rate.
Step S302: according to the identification information of the hot spot change code information test case got and non-hot change generation
The identification information of code information test case calls corresponding hot spot change code information test case script and non-hot change generation
Code information test case script tests product test project, to obtain test result.
Specifically, product test project carries out in testing engine;Wherein, pass through the object of test use cases: test is held
Row device runner calls measuring executing process operation platform TestRunner to drive the test process of product test project;Root
Start use-case test according to the operating instruction of TestRunner.
At least one hot spot for meeting the algorithm will be obtained by scheduled pattern matching algorithm changes code information test
The file of the file of use-case and at least one non-hot modification information test case, and instructed according to load, the algorithm will be met
At least one hot spot change code information test case file in hot spot change code information test case and at least one
Non-hot modification information test case in the file of a non-hot modification information test case is loaded, and operation is passed through
Hot spot modification information test case and non-hot modification information test case in suite, based on the acquisition hot spot modification information
The identification information of test case and non-hot modification information test case, such as title are transferred under the corresponding script path of the title
Hot spot modification information test case script and non-hot modification information test case script, to be surveyed to product test project
Examination.
Fig. 4 is the structural framing schematic diagram of the device of the product test of another embodiment of the invention.
First obtains module 401, and corresponding at least one hot spot change code letter is obtained for product test project
Cease test case;First test module 402 is adjusted according to the identification information of the hot spot change code information test case got
Product test project is tested with corresponding hot spot change code information test case script, to obtain test result;It is right
Than module 403, the test result of product test project and the expected results of product test project are compared, and comparison is tied
Fruit is exported and is shown.
Specific implementation below for modules is described further:
First obtains module 401, and corresponding at least one hot spot change code letter is obtained for product test project
Cease test case.
Specifically, first mention that obtain module 401 as shown in Figure 5, comprising: acquiring unit 501, according to scheduled matching algorithm,
It obtains at least one hot spot corresponding to product test project and changes code information test case;Adding unit 502, will acquire
At least one hot spot change code information test case be added to test case concentration.Wherein, adding unit 502 is more accurate
Select test case, tested to be directed to the product test project.
Wherein, product test project includes but is not limited to: the test assignment of the subfunction module of software product, software produce
Test assignment, the test assignment of the interface of the subfunction module of software product of the function of the subfunction module of product.
Specifically, device further include: test environmental test module;Equipment under test, such as tested server, receives software
The upgrade package of product, and upgraded automatically;In escalation process, the test environment of tested software product is restored and led
Enter the configuration file of the upgrade package of software product, and to the test environment, including hardware environment and software environment, is checked;
The database of test environment is initialized simultaneously, the upgrade package of software product is updated, to guarantee the smooth of test
It carries out.After the setting and inspection for completing test environment, start to test the test item of software product.
Wherein, hardware environment includes but is not limited to: server, cable, distributor.
Software environment includes but is not limited to: database, operating system, subordinate's information of tested software product.
Specifically, first module 401 is obtained, the mode for obtaining hot spot change code information test case includes: that traversal is surveyed
Configuration folder under example path on probation searches the text of the hot spot test case stored under configuration folder by search instruction
Part, to obtain the file of the change code information test case of the hot spot under its catalogue.The hot spot change code information that will acquire
The file of test case is extracted by scheduled pattern matching algorithm and meets the algorithm, that is, the hot spot change generation needed
The file of code information test case, and instructed according to load, adding unit 502, the hot spot change code letter of the algorithm will be met
The hot spot change code information test case ceased in the file of test case increases in test use cases suite.
First test module 402 changes the identification information of code information test case according to hot spot, calls corresponding hot spot
Change code information test case script tests product test project, to obtain test result.
Specifically, the first test module 402, by implementation of test cases collection, according to the hot spot change code got
The identification information of information test case, call corresponding hot spot change code information test case script to product test project into
Row test, to obtain test result.
Specifically, product test project carries out in testing engine;Wherein, pass through the object of test use cases: test is held
Row device runner calls measuring executing process operation platform TestRunner to drive the test process of product test project;Root
Start use-case test according to the operating instruction of TestRunner.
At least one hot spot for meeting the algorithm will be obtained by scheduled pattern matching algorithm changes code information test
The file of use-case, and instructed according to load, the heat in the file of the hot spot change code information test case of the algorithm will be met
Point change code information test case is loaded, by the hot spot modification information test case in operation suite, based on acquisition
The identification information of the hot spot modification information test case, such as title transfer the hot spot change under the corresponding script path of the title
Information test case script, to test product test project.For example, test gateway encryption and decryption product software, according to this
The demand of the product test project of product software first runs the configuration file of its hot spot modification information test case, sets gateway
The configuration of distributing policy;Product test project is tested by executing hot spot modification information test case script, is such as uploaded
The project of data or downloading data, is tested.
Specifically, device further include: creation module changes code information for hot spot change code information creation hot spot
Test case and the script that code information test case is changed with corresponding hot spot.
Specifically, scheduled change frequency and/or change code of the hot spot change code information based on change code information
The scheduled relevance of information and program bug extracts in multiple change code informations.
Specifically, the method for determination for changing the change frequency of code information includes: by checking what compiler server generated
Code in the order history time submits log, and statistics is submitted to compiling service by compiling client within the order history time
Change code information in the code database of device, to determine change of each change code information within the order history time
Number, so that it is determined that the change frequency of each change code information.Frequency will be changed and be greater than the scheduled change generation for changing frequency
Code information is determined as hot spot change code information.For example, by checking by code control system, e.g., Subversion, referred to as
Svn, the intraday code that the compiler server built generates submit log, submit the content recorded in log raw the code
It is recorded at json formatted file, and to the content being recorded in json formatted file perhaps directly to code submission log
It is marked;It, should with statistics according to label as a result, the record data of the change code information with same tag are merged
Intraday code alteration determines that hot spot changes code information according to statistical result.
Specifically, change the degree of association of code information and program bug method of determination include: will change code information with
Program bug bug management system, such as bugzilla are associated;Pass through the bug report and bug of program bug bug management system
Handling suggestion, to determine the degree of association of the change code information bug that can be generated and the change code information, wherein the change generation
Code information is submitted in the code database of compiler server by compiling client, i.e. the bug of change code information generation
Whether the execution of the change code information can be seriously affected, if need to handle.The pass of code information and program bug will be changed
The change code information that connection degree is greater than the scheduled degree of association is determined as hot spot change code information.
Creation module creates hot spot change code information test case by changing the extraction of code information to hot spot
And test script, improve the test quality of product test project so that the code stability of product test project also it is big greatly
By force, and the quality of product is improved.
It should be understood that creation test case and the corresponding test script of test case are the more mature skills in this field
Art just repeats no more here.
Contrast module 403 compares the test result of product test project and the expected results of product test project,
And comparing result is exported and shown.
Specifically, the configuration file for running product software, it is right in the product software for logging in or entering directly into equipment under test
The test result of product test project and the expected results that are stored in the database of product software are carried out pair than module 403
Than obtaining comparing result by the help file of product software;Comparing result is generated to html pages created by TestRunner
The test report in face, with Record Comparison as a result, to which forward end shows comparing result.
Wherein, TestRunner is by being saved in the html page for comparing result, to generate the test report of the html page.
Specifically, the device is as shown in Figure 6, further includes: second obtains module 601, according to scheduled matching algorithm, obtains
At least one corresponding scheduled non-hot code information test case of product test project;Second test module 602, according to obtaining
The identification information for the hot spot change code information test case got and the mark letter of non-hot change code information test case
Breath calls the script of corresponding hot spot change code information test case and the script of non-hot change code information test case
Product test project is tested, to obtain test result.
Specifically, it includes: that traversal is surveyed that the second acquisition module 601, which obtains the mode of non-hot change code information test case,
Configuration folder under example path on probation searches the non-hot test case stored under configuration folder by search instruction
File, to obtain the file of the non-hot change code information test case under its catalogue.The non-hot change generation that will acquire
The file of code information test case, is extracted by scheduled pattern matching algorithm and meets the algorithm, that is, what is needed is non-thermal
The file of point change code information test case, and instructed according to load, the non-hot change code information of the algorithm will be met
Hot spot change code information test case in the file of test case increases in test use cases suite.It is high-quality in guarantee
It while the product of amount, realizes and product test project is tested in an automated manner, reduce artificial time cost
And manpower, accuracy rate with higher.
Specifically, product test project carries out in testing engine;Wherein, pass through the object of test use cases: test is held
Row device runner calls measuring executing process operation platform TestRunner to drive the test process of product test project;Root
Start use-case test according to the operating instruction of TestRunner.
At least one hot spot for meeting the algorithm will be obtained by scheduled pattern matching algorithm changes code information test
The file of the file of use-case and at least one non-hot modification information test case, and instructed according to load, the algorithm will be met
At least one hot spot change code information test case file in hot spot change code information test case and at least one
Non-hot modification information test case in the file of a non-hot modification information test case is loaded, and operation is passed through
Hot spot modification information test case and non-hot modification information test case in suite, based on the acquisition hot spot modification information
The identification information of test case and non-hot modification information test case, such as title, the second test module 602 transfer the title pair
Hot spot modification information test case script and non-hot modification information test case script under the script path answered, to product
Test item is tested.
Those skilled in the art of the present technique are appreciated that the present invention includes being related to for executing in operation described herein
One or more equipment.These equipment can specially design and manufacture for required purpose, or also may include general
Known device in computer.These equipment have the computer program being stored in it, these computer programs are selectively
Activation or reconstruct.Such computer program can be stored in equipment (for example, computer) readable medium or be stored in
It e-command and is coupled in any kind of medium of bus respectively suitable for storage, the computer-readable medium includes but not
Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only
Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable
Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable
Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card
Piece.It is, readable medium includes by equipment (for example, computer) with any Jie for the form storage or transmission information that can be read
Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or
The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology neck
Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods
The scheme specified in frame or multiple frames of the device to execute structure chart and/or block diagram and/or flow graph disclosed by the invention.
Those skilled in the art of the present technique have been appreciated that in the present invention the various operations crossed by discussion, method, in process
Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, each with having been crossed by discussion in the present invention
Kind of operation, method, other steps, measures, and schemes in process may also be alternated, changed, rearranged, decomposed, combined or deleted.
Further, in the prior art to have and the step in various operations, method disclosed in the present invention, process, measure, scheme
It may also be alternated, changed, rearranged, decomposed, combined or deleted.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of method of product test characterized by comprising
At least one corresponding hot spot, which is obtained, for product test project changes code information test case;
According to the identification information of the hot spot change code information test case got, corresponding hot spot change code information is called
Test case script tests the product test project, to obtain test result;
The expected results of the test result and product test project of the product test project are compared, and by comparing result
It is exported and is shown;
Scheduled change frequency and/or change code information and journey of the hot spot change code information based on change code information
The scheduled relevance of sequence loophole extracts in multiple change code informations.
2. the method according to claim 1, wherein obtaining corresponding at least one for product test project
A hot spot changes code information test case, comprising:
According to scheduled matching algorithm, obtains the change code information test of at least one hot spot corresponding to product test project and use
Example;
At least one hot spot change code information test case that will acquire is added to test case concentration.
3. according to the method described in claim 2, it is characterized in that, by executing the test use cases, basis is got
Hot spot change code information test case identification information, call corresponding hot spot change code information test case script pair
The product test project is tested, to obtain test result.
4. according to the method in claim 2 or 3, which is characterized in that further include:
Believe for hot spot change code information creation hot spot change code information test case and with corresponding hot spot change code
Cease test case script.
5. according to the method in claim 2 or 3, which is characterized in that further include:
According to scheduled matching algorithm, at least one the corresponding scheduled non-hot code information test of product test project is obtained
Use-case;
It is used according to the identification information of the hot spot change code information test case got and non-hot change code information test
The identification information of example calls corresponding hot spot change code information test case script and non-hot change code information test to use
Case script tests product test project, to obtain test result.
6. a kind of device of product test characterized by comprising
First obtains module, surveys for obtaining corresponding at least one hot spot change code information for product test project
Example on probation;
First test module is called corresponding for the identification information according to the hot spot change code information test case got
Hot spot change code information test case script the product test project is tested, to obtain test result;
Contrast module, for carrying out the expected results of the test result of the product test project and product test project pair
Than, and comparing result is exported and shown;
Scheduled change frequency and/or change code information and journey of the hot spot change code information based on change code information
The scheduled relevance of sequence loophole extracts in multiple change code informations.
7. device according to claim 6, which is characterized in that described first, which obtains module, includes:
Acquiring unit, for obtaining the change of at least one hot spot corresponding to product test project according to scheduled matching algorithm
Code information test case;
Adding unit, at least one hot spot change code information test case for will acquire are added to test use cases
In.
8. device according to claim 7, which is characterized in that first test module, for by executing the survey
Set of uses case is tried, according to the identification information of the hot spot change code information test case got, corresponding hot spot is called to change
Code information test case script tests the product test project, to obtain test result.
9. device according to claim 7 or 8, which is characterized in that further include:
Creation module, for for hot spot change code information creation hot spot change code information test case and with corresponding heat
Point change code information test case script.
10. device according to claim 7 or 8, which is characterized in that further include:
Second obtains module, and for according to scheduled matching algorithm, obtaining product test project, corresponding at least one is scheduled
Non-hot code information test case;
Second test module, for according to get hot spot change code information test case identification information and non-hot change
The more identification information of code information test case calls corresponding hot spot change code information test case script and non-hot change
More code information test case script tests product test project, to obtain test result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610682292.0A CN106326116B (en) | 2016-08-17 | 2016-08-17 | The method and apparatus of product test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610682292.0A CN106326116B (en) | 2016-08-17 | 2016-08-17 | The method and apparatus of product test |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106326116A CN106326116A (en) | 2017-01-11 |
CN106326116B true CN106326116B (en) | 2019-03-05 |
Family
ID=57743779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610682292.0A Active CN106326116B (en) | 2016-08-17 | 2016-08-17 | The method and apparatus of product test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106326116B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108459953A (en) * | 2017-02-22 | 2018-08-28 | 北京京东尚科信息技术有限公司 | test method and device |
CN108255700B (en) * | 2017-03-27 | 2020-03-06 | 平安科技(深圳)有限公司 | Test result generation method and device |
CN107885660B (en) * | 2017-10-31 | 2020-04-03 | 平安科技(深圳)有限公司 | Fund system automatic test management method, device, equipment and storage medium |
CN108255653B (en) * | 2018-01-02 | 2021-05-04 | 深圳壹账通智能科技有限公司 | Product testing method and terminal thereof |
CN110781090B (en) * | 2019-10-31 | 2023-09-12 | 望海康信(北京)科技股份公司 | Control method and device for data processing test, computer equipment and storage medium |
CN112612691A (en) * | 2020-11-30 | 2021-04-06 | 北京思特奇信息技术股份有限公司 | Method and system for realizing automatic test data management and control based on SVN, electronic device and storage medium |
CN115373927B (en) * | 2022-10-25 | 2023-04-21 | 深圳市亿联无限科技股份有限公司 | Product testing method, device, electronic equipment and computer readable medium |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8689177B2 (en) * | 2009-08-31 | 2014-04-01 | Accenture Global Services Limited | Integration environment generator |
CN102012864A (en) * | 2010-11-30 | 2011-04-13 | 广东星海数字家庭产业技术研究院有限公司 | Home service markup language(HSML)-based automatic test method |
CN102799515B (en) * | 2011-05-24 | 2016-01-20 | 腾讯科技(深圳)有限公司 | Applied program testing method and device |
CN103150249B (en) * | 2011-12-07 | 2015-12-16 | 北京新媒传信科技有限公司 | A kind of method and system of automatic test |
CN102880546B (en) * | 2012-09-03 | 2015-06-17 | 北大方正集团有限公司 | Software integration testing method and system based on extensible markup language (XML) database |
CN103246604B (en) * | 2013-03-29 | 2016-06-15 | 北京京东尚科信息技术有限公司 | Software testing system and method |
CN104794057B (en) * | 2015-04-29 | 2017-12-12 | 瑞斯康达科技发展股份有限公司 | A kind of crossing event automated testing method and device |
CN105354140B (en) * | 2015-11-02 | 2018-09-25 | 上海聚力传媒技术有限公司 | A kind of method and system of automatic test |
CN105608012A (en) * | 2016-03-10 | 2016-05-25 | 武汉斗鱼网络科技有限公司 | Automatic test method and automatic test system |
-
2016
- 2016-08-17 CN CN201610682292.0A patent/CN106326116B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106326116A (en) | 2017-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106326116B (en) | The method and apparatus of product test | |
CN106294171B (en) | Test macro, the method and apparatus of product automatic deployment | |
CN107704392B (en) | Test case processing method and server | |
CN108959059B (en) | Test method and test platform | |
US8799869B2 (en) | System for ensuring comprehensiveness of requirements testing of software applications | |
US20090271351A1 (en) | Rules engine test harness | |
CN106550038B (en) | Data configuration diagnosis system and method of digital control system | |
US20160217061A1 (en) | Determining test case efficiency | |
CN106776339A (en) | Automated testing method and device | |
CN105095059A (en) | Method and device for automated testing | |
CN112433944A (en) | Service testing method, device, computer equipment and storage medium | |
CN111221727B (en) | Test method, test device, electronic equipment and computer readable medium | |
CN114116496A (en) | Automatic testing method, device, equipment and medium | |
CN111522741A (en) | Interface test code generation method and device, electronic equipment and readable storage medium | |
CN111966580A (en) | Automatic testing method, device, equipment and storage medium based on artificial intelligence | |
CN112685312A (en) | Test case recommendation method and device for uncovered codes | |
US9378115B2 (en) | Base line for code analysis | |
CN112395182A (en) | Automatic testing method, device, equipment and computer readable storage medium | |
US20190362291A1 (en) | Generating and publishing a problem ticket | |
US20140281719A1 (en) | Explaining excluding a test from a test suite | |
CN112988578A (en) | Automatic testing method and device | |
CN109508204B (en) | Front-end code quality detection method and device | |
CN113360365A (en) | Flow testing method and flow testing system | |
CN112860562B (en) | Automatic test method and device | |
CN113468058B (en) | Regression testing method and device for software as service platform and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220708 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co., Ltd |