CN110196801A - A kind of test method and device based on code coverage - Google Patents
A kind of test method and device based on code coverage Download PDFInfo
- Publication number
- CN110196801A CN110196801A CN201810157047.7A CN201810157047A CN110196801A CN 110196801 A CN110196801 A CN 110196801A CN 201810157047 A CN201810157047 A CN 201810157047A CN 110196801 A CN110196801 A CN 110196801A
- Authority
- CN
- China
- Prior art keywords
- code
- test
- measured
- mapping relations
- information
- 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
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
-
- 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/3676—Test management for coverage analysis
Abstract
The embodiment of the invention provides test method and device based on code coverage, method therein includes: to carry out pitching pile monitoring to the first source code to be measured to obtain the second source code to be measured, wherein includes method code in second source code to be measured;Described second source code to be measured is tested, and records test information;Obtain the mapping relations between the method code and corresponding function;According to the test information and the mapping relations, the code of the code of test function point and non-test function point is obtained.The present invention solves the not high technical problem of reliability that existing test method deposits test effect.
Description
Technical field
The present invention relates to the field of test technology more particularly to a kind of test methods and device based on code coverage.
Background technique
In developer during carrying out program development, it usually needs surveyed to the program code developed
Examination, includes the test based on code coverage.Wherein, code coverage (Code coverage) is one of software test degree
Amount, describes source code is tested in formula ratio and degree, and gained ratio is known as code coverage.
In existing method, after testing program code, such as unit testing, interface testing, automatic test, function
Test etc. can carry out coverage rate statistics to the code of test, obtain code coverage, and test quality as measuring
Index.Then in existing method, code coverage can not carry out test effect for whole section of program code
It assesses and instructs well.
It can be seen that the technical problem that the reliability of the test effect of existing test method is not high.
Summary of the invention
The embodiment of the invention provides a kind of test method and device based on code coverage, to solve or at least
The technical problem that part solves or the reliability of the test effect of existing test method is not high.
In a first aspect, the present invention provides a kind of test methods based on code coverage, which comprises
Pitching pile monitoring is carried out to the first source code to be measured and obtains the second source code to be measured, wherein the second source generation to be measured
It include method code in code;
Described second source code to be measured is tested, and records test information, wherein the test information includes code
Coverage rate information;
Obtain the mapping relations between the method code and corresponding function;
According to the test information and the mapping relations, the code of test function point and non-test function point are obtained
Code.
Optionally, in the method for the embodiment of the present invention, using code deployment by the way of to the described first source code to be measured into
The monitoring of row pitching pile.
Optionally, in the method for the embodiment of the present invention, the side is obtained in such a way that script automatically parses code annotation
Mapping relations between method code and corresponding function.
Optionally, in the method for the embodiment of the present invention, the test information includes coverage rate information, described according to the survey
Information and the mapping relations are tried, the code of the code of test function point and non-test function point is obtained, comprising:
Statistics is carried out to the coverage rate information and obtains coverage rate statistical result;
The coverage rate statistical result is analyzed, determines the code tested and the code that do not test;
According to the mapping relations and the code tested, the code for the function point tested is obtained;
According to the mapping relations and the code that do not test, the code for the function point that do not test is obtained.
Optionally, it in the method for the embodiment of the present invention, described according to the test information and the mapping relations, obtains
After the code of the code of test function point and non-test function point, the method also includes:
It is raw according to test information, the code of the point of test function and the code of the non-test function point
At coverage rate statistical report.
Based on same inventive concept, second aspect of the present invention provides a kind of test device based on code coverage,
Described device includes:
Pitching pile module obtains the second source code to be measured for carrying out pitching pile monitoring to the first source code to be measured, wherein described
It include method code in second source code to be measured;
Test module for testing the described second source code to be measured, and records test information, wherein the survey
Trying information includes code coverage information;
First obtains module, for obtaining the mapping relations between the method code and corresponding function;
Second obtains module, for obtaining the generation of test function point according to the test information and the mapping relations
The code of code and non-test function point.
Optionally, in device provided in an embodiment of the present invention, to the described first source to be measured by the way of code deployment
Code carries out pitching pile monitoring.
Optionally, it in device provided in an embodiment of the present invention, is obtained in such a way that script automatically parses code annotation
Mapping relations between the method code and corresponding function.
Optionally, in device provided in an embodiment of the present invention, the second acquisition module is also used to:
Statistics is carried out to the coverage rate information and obtains coverage rate statistical result;
The coverage rate statistical result is analyzed, determines the code tested and the code that do not test;
According to the mapping relations and the code tested, the code for the function point tested is obtained;
According to the mapping relations and the code that do not test, the code for the function point that do not test is obtained.
Optionally, further include generation module in device provided in an embodiment of the present invention, be used for described according to the test
Information and the mapping relations, acquisition is after the code of the code of test function point and non-test function point:
It is raw according to test information, the code of the point of test function and the code of the non-test function point
At coverage rate statistical report.
Based on same inventive concept, third aspect present invention provides a kind of computer readable storage medium, deposits thereon
Computer program is contained, which realizes following steps when being executed by processor:
Pitching pile monitoring is carried out to the first source code to be measured and obtains the second source code to be measured, wherein the second source generation to be measured
It include method code in code;
Described second source code to be measured is tested, and records test information, wherein the test information includes code
Coverage rate information;
Obtain the mapping relations between the method code and corresponding function;
According to the test information and the mapping relations, the code of test function point and non-test function point are obtained
Code.
Based on same inventive concept, fourth aspect present invention provides a kind of computer equipment, including memory, processing
On a memory and the computer program that can run on a processor, when processor execution described program, is realized for device and storage
Following steps:
Pitching pile monitoring is carried out to the first source code to be measured and obtains the second source code to be measured, wherein the second source generation to be measured
It include method code in code;
Described second source code to be measured is tested, and records test information, wherein the test information includes code
Coverage rate information;
Obtain the mapping relations between the method code and corresponding function;
According to the test information and the mapping relations, the code of test function point and non-test function point are obtained
Code.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects
Fruit:
In method provided in an embodiment of the present invention, obtained after carrying out pitching pile monitoring to the first source code to be measured second
When source code to be measured is tested, the test information of the second source code to be measured is had recorded;And it obtains in the second source code to be measured
Mapping relations between method code and corresponding function;Then according to test information and mapping relations, it is hereby achieved that having surveyed
The code of function point and the code of non-test function point are tried, due to the function point code tested and the function point code that do not test
It is for method code and function itself, thus the survey of the specific method and function in available second source code to be measured
It tries information and improves the validity of test effect, and have to test effect so as to realize the guidance to completely testing
Effect assessment and guidance.Solves the not high technical problem of reliability that existing test method deposits test effect.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is 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 these attached drawings.
Fig. 1 is a kind of flow chart of the test method based on code coverage in the embodiment of the present invention;
Fig. 2 is a kind of structural block diagram of the test device based on code coverage in the embodiment of the present invention;
Fig. 3 is a kind of structural block diagram of computer readable storage medium in the embodiment of the present invention;
Fig. 4 is a kind of structural block diagram of computer equipment in the embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of test methods based on code coverage, to improve existing test method
Deposit the not high technical problem of the reliability of test effect.
Technical solution in the embodiment of the present application, general thought are as follows:
After carrying out pitching pile monitoring the second source code to be measured of acquisition to the first source code to be measured, the second source code to be measured is carried out
Test, and test information is recorded, the mapping relations between the method code and corresponding function are then obtained, and according to the survey
Information and the mapping relations are tried, the code of the code of test function point and non-test function point is obtained.That is this hair
Method in bright embodiment can be according to the corresponding function mapping relations of the second source code to be measured and the second source code to be measured
Test information, determine test function point and non-test function point, surveyed to carry out effectively complete functional coverage, improve survey
Try the validity of effect.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Embodiment one
The present embodiment provides a kind of test methods based on code coverage, as shown in Figure 1, this method comprises:
Step S101 is first carried out: pitching pile monitoring being carried out to the first source code to be measured and obtains the second source code to be measured, wherein
It include method code in second source code to be measured.
Specifically, the first source code to be measured can be the code of entire program, one section of code, and pitching pile monitoring is to guarantee
Being inserted into some probes on the basis of the original logic integrality of tested program in a program, (also known as " survey meter " be substantially exactly
The code segment for carrying out information collection can be assignment statement or acquire the function call of coverage information), simultaneously by the execution of probe
The characteristic of program of dishing out operation can obtain the control stream and traffic flow information of program by the analysis to these data,
And then the multidate informations such as Logic coverage are obtained, thus the method for realizing test purpose.The method of pitching pile monitoring can use existing
Method, be not specifically limited herein.
As a kind of optional embodiment, the described first source code to be measured can be carried out by the way of code deployment slotting
Stake monitoring, to improve the accuracy and efficiency of pitching pile monitoring.
Specifically, automatic when can dispose trigger mechanism by setting trigger mechanism for code, and be disposed by code
Triggering carries out pitching pile monitoring.
Then it executes step S102: the described second source code to be measured being tested, and records test information, wherein institute
Stating test information includes code coverage information.
Specifically, above-mentioned test method can be automatic test, functional test unit testing, and interface testing, UI is certainly
The modes such as dynamicization test, are not specifically limited herein, and test information may include control stream, traffic flow information and the covering of program
Rate information.
Next it executes step S103: obtaining the mapping relations between the method code and corresponding function.
Specifically, multiple methods be may include in the second source code to be measured, these methods all have corresponding function, example
It such as include tri- methods of A, B, C, A method adds operation, C method user user for user for realizing user's login, B method
Delete operation etc..By the mapping relations, the function that code has can be accurately positioned.The specific side for obtaining mapping relations
Method can be obtained by the annotation of code or parsing code in execution method.
In order to improve the efficiency for obtaining mapping relations, in one embodiment, code can be automatically parsed using script
The mode of annotation obtains the mapping relations between the method code and corresponding function, the scripting language used can for Ruby,
Python, Shell etc..
Step S104 is executed again: according to the test information and the mapping relations, obtaining the code of test function point
The code of non-test function point.
Specifically, test case can be divided according to the test information in the test to the second source code to be measured
Analysis, and then the code of the code of test function point and non-test function point is determined with mapping relations based on the analysis results.
In a kind of optional embodiment, test information include coverage rate information, obtain the code of test function point and
The code of non-test function point can be realized by following manner:
Statistics is carried out to the coverage rate information and obtains coverage rate statistical result;
The coverage rate statistical result is analyzed, determines the code tested and the code that do not test;
According to the mapping relations and the code tested, the code for the function point tested is obtained;
According to the mapping relations and the code that do not test, the code for the function point that do not test is obtained.
In the specific implementation process, coverage rate information can be counted using coverage rate statistical tool, to obtain
Coverage rate statistical result is obtained, coverage rate statistical tool can be the corresponding Jacoco of Java language, and PHP language is corresponding
PHPCoverage。
Since functional test personnel are without code reading ability, and by that can not judge performed test whether to generation after test
Code is completely covered, and can not be accurately positioned by the function point that code coverage tool is not tested merely, this hair
Bright embodiment can use script and automatically parse note in code by providing a kind of test method based on code coverage
Release, and the mapping relations between preparation method code and function, and according in test process test information and mapping relations obtain
The correlative code for obtaining test function point and non-test function point improves test effect to instruct completely to be tested
Validity quickly can completely cover all function points, achieve the effect that test is completely covered.
For the ease of the result of test is shown and is analyzed, in a kind of optional embodiment, according to the survey
Information and the mapping relations are tried, after obtaining the code of the code of test function point and non-test function point, this embodiment party
Formula also executes operations described below:
It is raw according to test information, the code of the point of test function and the code of the non-test function point
At coverage rate statistical report.
Based on the same inventive concept, present invention also provides a kind of with the test method based on code coverage with embodiment
Corresponding device, detailed in Example two.
Embodiment two
The present embodiment provides a kind of test devices based on code coverage, as shown in Fig. 2, the device includes:
Pitching pile module 201 obtains the second source code to be measured for carrying out pitching pile monitoring to the first source code to be measured, wherein
It include method code in second source code to be measured;
Test module 202 for testing the described second source code to be measured, and records test information, wherein described
Testing information includes code coverage information;
First obtains module 203, for obtaining the mapping relations between the method code and corresponding function;
Second obtains module 204, for according to the test information and the mapping relations, acquisition test function point
The code of code and non-test function point.
As a kind of optional embodiment of the present embodiment, in device provided in this embodiment, using code deployment
Mode carries out pitching pile monitoring to the described first source code to be measured.
As a kind of optional embodiment of the present embodiment, in device provided in this embodiment, solved automatically using script
The mode of analysis code annotation obtains the mapping relations between the method code and corresponding function.
As a kind of optional embodiment of the present embodiment, in device provided in this embodiment, above-mentioned second obtains mould
Block 204 is also used to:
Statistics is carried out to the coverage rate information and obtains coverage rate statistical result;
The coverage rate statistical result is analyzed, determines the code tested and the code that do not test;
According to the mapping relations and the code tested, the code for the function point tested is obtained;
According to the mapping relations and the code that do not test, the code for the function point that do not test is obtained.
As a kind of optional embodiment of the present embodiment, device provided in this embodiment further includes generation module, is used for:
Described according to the test information and the mapping relations, obtain the code of test function point and do not test function
After the code that can be put:
It is raw according to test information, the code of the point of test function and the code of the non-test function point
At coverage rate statistical report.
By the device that the embodiment of the present invention two is introduced, the test method to implement the embodiment of the present invention one is used
Device, so the affiliated personnel in this field can understand the specific of the device based on the method that the embodiment of the present invention one is introduced
Structure and deformation, so details are not described herein.Device used by the method for all embodiment of the present invention one belongs to the present invention
The range to be protected.
Based on the same inventive concept, present invention also provides a kind of with the test method based on code coverage with embodiment
Corresponding computer readable storage medium, detailed in Example three.
Embodiment three
Fig. 3 is referred to, present invention also provides a kind of computer readable storage mediums 300, are stored thereon with computer journey
Sequence 311 realizes the method implemented in one when the program is executed by processor.
Specifically, above procedure is configured as that following step can be executed:
Pitching pile monitoring is carried out to the first source code to be measured and obtains the second source code to be measured, wherein the second source generation to be measured
It include method code in code;
Described second source code to be measured is tested, and records test information, wherein the test information includes code
Coverage rate information;
Obtain the mapping relations between the method code and corresponding function;
According to the test information and the mapping relations, the code of test function point and non-test function point are obtained
Code.
By the computer readable storage medium that the embodiment of the present invention three is introduced, to implement the embodiment of the present invention one
Computer readable storage medium used by test method, so based on the method that the embodiment of the present invention one is introduced, this field
Affiliated personnel can understand specific structure and the deformation of the computer readable storage medium, so details are not described herein.All
Computer readable storage medium used by the method for inventive embodiments one belongs to the range of the invention to be protected.
Based on the same inventive concept, present invention also provides a kind of with the test method based on code coverage with embodiment
A kind of corresponding computer equipment of computer, detailed in Example four.
Example IV
Present invention also provides a kind of computer equipments, refer to Fig. 4, including store 401, processor 402 and be stored in
On memory and the computer program 403 that can run on a processor, the processor 402 is realized when executing described program to be implemented
Method in one.
Specifically, above-mentioned processor is configured as that following step can be executed:
Pitching pile monitoring is carried out to the first source code to be measured and obtains the second source code to be measured, wherein the second source generation to be measured
It include method code in code;
Described second source code to be measured is tested, and records test information, wherein the test information includes code
Coverage rate information;
Obtain the mapping relations between the method code and corresponding function;
According to the test information and the mapping relations, the code of test function point and non-test function point are obtained
Code.
By the computer equipment that the embodiment of the present invention four is introduced, for the test method for implementing the embodiment of the present invention one
Used computer equipment, so based on the method that the embodiment of the present invention one is introduced, the affiliated personnel in this field can understand
The computer equipment and deformation, so details are not described herein.Computer used by the method for all embodiment of the present invention one is set
It is standby to belong to the range of the invention to be protected
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects
Fruit:
In method provided in an embodiment of the present invention, obtained after carrying out pitching pile monitoring to the first source code to be measured second
When source code to be measured is tested, the test information of the second source code to be measured is had recorded;And it obtains in the second source code to be measured
Mapping relations between method code and corresponding function;Then according to test information and mapping relations, it is hereby achieved that having surveyed
The code of function point and the code of non-test function point are tried, due to the function point code tested and the function point code that do not test
It is for method code and function itself, thus the survey of the specific method and function in available second source code to be measured
It tries information and improves the validity of test effect, and have to test effect so as to realize the guidance to completely testing
Effect assessment and guidance.Solves the not high technical problem of reliability that existing test method deposits test effect.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention
The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of test method based on code coverage characterized by comprising
Pitching pile monitoring is carried out to the first source code to be measured and obtains the second source code to be measured, wherein in second source code to be measured
Including method code;
Described second source code to be measured is tested, and records test information, wherein the test information includes code coverage
Rate information;
Obtain the mapping relations between the method code and corresponding function;
According to the test information and the mapping relations, the generation of the code of test function point and non-test function point is obtained
Code.
2. the method as described in claim 1, which is characterized in that the described first source code to be measured by the way of code deployment
Carry out pitching pile monitoring.
3. the method as described in claim 1, which is characterized in that obtained in such a way that script automatically parses code annotation described
Mapping relations between method code and corresponding function.
4. the method as described in claim 1, which is characterized in that it is described according to the test information and the mapping relations, it obtains
Obtain the code of the code of test function point and non-test function point, comprising:
Statistics is carried out to the coverage rate information and obtains coverage rate statistical result;
The coverage rate statistical result is analyzed, determines the code tested and the code that do not test;
According to the mapping relations and the code tested, the code for the function point tested is obtained;
According to the mapping relations and the code that do not test, the code for the function point that do not test is obtained.
5. the method as described in claim 1, which is characterized in that described according to the test information and the mapping relations,
After obtaining the code of the code of test function point and non-test function point, the method also includes:
According to test information, the code of the point of test function and the code of the non-test function point, generation is covered
Lid rate statistical report.
6. a kind of test device based on code coverage characterized by comprising
Pitching pile module obtains the second source code to be measured for carrying out pitching pile monitoring to the first source code to be measured, wherein described second
It include method code in source code to be measured;
Test module for testing the described second source code to be measured, and records test information, wherein the test letter
Breath includes code coverage information;
First obtains module, for obtaining the mapping relations between the method code and corresponding function;
Second obtains module, for according to the test information and the mapping relations, obtain the code of test function point with
The code of non-test function point.
7. device as claimed in claim 6, which is characterized in that the described first source code to be measured by the way of code deployment
Carry out pitching pile monitoring.
8. device as claimed in claim 6, which is characterized in that obtained in such a way that script automatically parses code annotation described
Mapping relations between method code and corresponding function.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is performed reality
Existing following steps:
Pitching pile monitoring is carried out to the first source code to be measured and obtains the second source code to be measured, wherein in second source code to be measured
Including method code;
Described second source code to be measured is tested, and records test information, wherein the test information includes code coverage
Rate information;
Obtain the mapping relations between the method code and corresponding function;
According to the test information and the mapping relations, the generation of the code of test function point and non-test function point is obtained
Code.
10. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that the processor performs the steps of when executing described program
Pitching pile monitoring is carried out to the first source code to be measured and obtains the second source code to be measured, wherein in second source code to be measured
Including method code;
Described second source code to be measured is tested, and records test information, wherein the test information includes code coverage
Rate information;
Obtain the mapping relations between the method code and corresponding function;
According to the test information and the mapping relations, the generation of the code of test function point and non-test function point is obtained
Code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810157047.7A CN110196801B (en) | 2018-02-24 | 2018-02-24 | Code coverage rate based test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810157047.7A CN110196801B (en) | 2018-02-24 | 2018-02-24 | Code coverage rate based test method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110196801A true CN110196801A (en) | 2019-09-03 |
CN110196801B CN110196801B (en) | 2022-11-11 |
Family
ID=67744034
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810157047.7A Active CN110196801B (en) | 2018-02-24 | 2018-02-24 | Code coverage rate based test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110196801B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110674044A (en) * | 2019-09-24 | 2020-01-10 | 携程旅游网络技术(上海)有限公司 | Method, system, device and medium for acquiring coverage rate of function automation test |
CN111104319A (en) * | 2019-12-13 | 2020-05-05 | 北京同邦卓益科技有限公司 | Code coverage rate testing method and device, electronic equipment and storage medium |
CN111221737A (en) * | 2020-01-09 | 2020-06-02 | 苏州洞察云信息技术有限公司 | Coverage rate determining method and device and storage medium |
CN112597008A (en) * | 2020-12-15 | 2021-04-02 | 平安普惠企业管理有限公司 | Function point marking method and device based on webpage code test |
CN116627973A (en) * | 2023-05-25 | 2023-08-22 | 成都融见软件科技有限公司 | Data positioning system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040205507A1 (en) * | 2001-10-25 | 2004-10-14 | Kai Tuschner | Linked code generation reports |
CN102243609A (en) * | 2011-06-15 | 2011-11-16 | 惠州运通信息技术有限公司 | Embedded software-based test analysis method and system |
CN102426551A (en) * | 2011-11-04 | 2012-04-25 | 百度在线网络技术(北京)有限公司 | Test data screening method and device, and test data construction method and device |
CN106155897A (en) * | 2015-04-16 | 2016-11-23 | 腾讯科技(深圳)有限公司 | A kind of method for processing business and device |
US20170132119A1 (en) * | 2015-09-25 | 2017-05-11 | EMC IP Holding Company LLC | Method and device for retrieving test case based on code coverage |
-
2018
- 2018-02-24 CN CN201810157047.7A patent/CN110196801B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040205507A1 (en) * | 2001-10-25 | 2004-10-14 | Kai Tuschner | Linked code generation reports |
CN102243609A (en) * | 2011-06-15 | 2011-11-16 | 惠州运通信息技术有限公司 | Embedded software-based test analysis method and system |
CN102426551A (en) * | 2011-11-04 | 2012-04-25 | 百度在线网络技术(北京)有限公司 | Test data screening method and device, and test data construction method and device |
CN106155897A (en) * | 2015-04-16 | 2016-11-23 | 腾讯科技(深圳)有限公司 | A kind of method for processing business and device |
US20170132119A1 (en) * | 2015-09-25 | 2017-05-11 | EMC IP Holding Company LLC | Method and device for retrieving test case based on code coverage |
Non-Patent Citations (2)
Title |
---|
我_是好人: "函数和方法的区别", 《HTTPS://BLOG.CSDN.NET/QQ_34952846/ARTICLE/DETAILS/78943800》 * |
董昕等: "代码覆盖与功能覆盖映射方法探究", 《数据通信》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110674044A (en) * | 2019-09-24 | 2020-01-10 | 携程旅游网络技术(上海)有限公司 | Method, system, device and medium for acquiring coverage rate of function automation test |
CN110674044B (en) * | 2019-09-24 | 2023-09-01 | 携程旅游网络技术(上海)有限公司 | Coverage rate acquisition method, system, equipment and medium for function automation test |
CN111104319A (en) * | 2019-12-13 | 2020-05-05 | 北京同邦卓益科技有限公司 | Code coverage rate testing method and device, electronic equipment and storage medium |
CN111221737A (en) * | 2020-01-09 | 2020-06-02 | 苏州洞察云信息技术有限公司 | Coverage rate determining method and device and storage medium |
CN112597008A (en) * | 2020-12-15 | 2021-04-02 | 平安普惠企业管理有限公司 | Function point marking method and device based on webpage code test |
CN116627973A (en) * | 2023-05-25 | 2023-08-22 | 成都融见软件科技有限公司 | Data positioning system |
CN116627973B (en) * | 2023-05-25 | 2024-02-09 | 成都融见软件科技有限公司 | Data positioning system |
Also Published As
Publication number | Publication date |
---|---|
CN110196801B (en) | 2022-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110196801A (en) | A kind of test method and device based on code coverage | |
US20150363296A1 (en) | Function test apparatus based on unit test cases reusing and function test method thereof | |
CN104391795B (en) | Method and system for automatically testing coverage rate in distributed system | |
CN107480039B (en) | Small file read-write performance test method and device for distributed storage system | |
CN104407980B (en) | Mobile solution automatic test device and method | |
CN104699601B (en) | For the method and system for the injection for performing state machine driving | |
CN106874187A (en) | code coverage collection method and device | |
JP2015528612A (en) | Method and system for monitoring the execution of user requests in a distributed system | |
CN106776338B (en) | Test method, test device and server | |
US10771994B2 (en) | Method and test system for mobile network testing as well as a network testing system | |
CN104133771B (en) | A kind of test method and device | |
KR20080050331A (en) | Debug information collecting method and debug information collecting system | |
CN106155900A (en) | A kind of code tester monitoring method, device and equipment | |
CN110457211A (en) | Script performance test methods, device and equipment and computer storage medium | |
CN107145429A (en) | A kind of log analysis method and system | |
CN108780048A (en) | A kind of method, detection device and the readable storage medium storing program for executing of determining detection device | |
CN110032504A (en) | Software quality determines that equipment, software quality determine that method and software quality determine program | |
CN109495340A (en) | A kind of Android application performance monitoring statisticss method and system | |
CN109635031A (en) | A kind of data quality checking method, apparatus, system and storage medium | |
CN109784060A (en) | Vulnerability Management report-generating method, device and storage medium, server | |
CN110032505A (en) | Software quality determining device, software quality determine that method and software quality determine program | |
CN107562621A (en) | The method and apparatus for determining manual test use-case and tested code incidence relation | |
Schuler et al. | Examining the energy impact of sorting algorithms on android: an empirical study | |
CN108255687A (en) | Application program internal memory monitoring test method, device and the electronic equipment of terminal | |
CN106557412A (en) | A kind of method and device of fuzz testing |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |