CN110196801B - Code coverage rate based test method and device - Google Patents

Code coverage rate based test method and device Download PDF

Info

Publication number
CN110196801B
CN110196801B CN201810157047.7A CN201810157047A CN110196801B CN 110196801 B CN110196801 B CN 110196801B CN 201810157047 A CN201810157047 A CN 201810157047A CN 110196801 B CN110196801 B CN 110196801B
Authority
CN
China
Prior art keywords
code
tested
codes
obtaining
source code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810157047.7A
Other languages
Chinese (zh)
Other versions
CN110196801A (en
Inventor
潘协飞
陈少杰
张文明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810157047.7A priority Critical patent/CN110196801B/en
Publication of CN110196801A publication Critical patent/CN110196801A/en
Application granted granted Critical
Publication of CN110196801B publication Critical patent/CN110196801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis

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)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a test method and a test device based on code coverage rate, wherein the method comprises the following steps: performing instrumentation monitoring on a first source code to be tested to obtain a second source code to be tested, wherein the second source code to be tested comprises a method code; testing the second source code to be tested and recording test information; obtaining a mapping relation between the method code and the corresponding function; and obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relation. The invention solves the technical problem that the existing testing method has low reliability of testing effect.

Description

Test method and device based on code coverage rate
Technical Field
The invention relates to the technical field of testing, in particular to a testing method and a testing device based on code coverage rate.
Background
In the process of developing a program, a developer usually needs to test the developed program code, including testing based on code coverage. Code coverage (Code coverage) is a measure in software testing, and describes the ratio and degree of the source Code in the program to be tested, and the ratio is called Code coverage.
In the existing method, after a program code is tested, for example, a unit test, an interface test, an automation test, a function test, and the like, coverage statistics may be performed on the tested code to obtain a code coverage, which is used as an index for measuring the quality of the test. Then, in the existing method, the code coverage rate is specific to the whole program code, and the test effect cannot be well evaluated and guided.
Therefore, the technical problem that the reliability of the test effect of the existing test method is not high is solved.
Disclosure of Invention
The embodiment of the invention provides a test method and a test device based on code coverage rate, which are used for solving or at least partially solving the technical problem that the reliability of the test effect of the existing test method is not high.
In a first aspect, the present invention provides a test method based on code coverage, where the method includes:
performing instrumentation monitoring on a first source code to be tested to obtain a second source code to be tested, wherein the second source code to be tested comprises a method code;
testing the second source code to be tested and recording test information, wherein the test information comprises code coverage rate information;
obtaining a mapping relation between the method code and the corresponding function;
and obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relation.
Optionally, in the method according to the embodiment of the present invention, instrumentation monitoring is performed on the first source code to be tested in a code deployment manner.
Optionally, in the method according to the embodiment of the present invention, a mapping relationship between the method code and the corresponding function is obtained by automatically analyzing the code annotation by using a script.
Optionally, in the method according to the embodiment of the present invention, the obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relationship includes:
counting the coverage rate information to obtain a coverage rate counting result;
analyzing the coverage rate statistical result to determine tested codes and untested codes;
obtaining the codes of the tested function points according to the mapping relation and the tested codes;
and obtaining the code of the untested function point according to the mapping relation and the untested code.
Optionally, in the method according to the embodiment of the present invention, after obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relationship, the method further includes:
and generating a coverage rate statistical report according to the test information, the codes of the tested function points and the codes of the untested function points.
Based on the same inventive concept, a second aspect of the present invention provides a code coverage based test apparatus, the apparatus comprising:
the instrumentation module is used for performing instrumentation monitoring on the first source code to be tested to obtain a second source code to be tested, wherein the second source code to be tested comprises a method code;
the test module is used for testing the second source code to be tested and recording test information, wherein the test information comprises code coverage rate information;
a first obtaining module, configured to obtain a mapping relationship between the method code and a corresponding function;
and the second obtaining module is used for obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relation.
Optionally, in the apparatus provided in the embodiment of the present invention, instrumentation monitoring is performed on the first source code to be tested in a code deployment manner.
Optionally, in the apparatus provided in the embodiment of the present invention, a mapping relationship between the method code and the corresponding function is obtained by automatically parsing a code annotation with a script.
Optionally, in the apparatus provided in the embodiment of the present invention, the second obtaining module is further configured to:
counting the coverage rate information to obtain a coverage rate counting result;
analyzing the coverage rate statistical result to determine tested codes and untested codes;
obtaining the codes of the tested function points according to the mapping relation and the tested codes;
and obtaining the code of the untested function point according to the mapping relation and the untested code.
Optionally, the apparatus provided in the embodiment of the present invention further includes a generating module, configured to, after obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relationship:
and generating a coverage rate statistical report according to the test information, the codes of the tested function points and the codes of the untested function points.
Based on the same inventive concept, a third aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
performing instrumentation monitoring on a first source code to be tested to obtain a second source code to be tested, wherein the second source code to be tested comprises a method code;
testing the second source code to be tested and recording test information, wherein the test information comprises code coverage rate information;
obtaining a mapping relation between the method code and the corresponding function;
and obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relation.
Based on the same inventive concept, a fourth aspect of the present invention provides a computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the program:
performing instrumentation monitoring on a first source code to be tested to obtain a second source code to be tested, wherein the second source code to be tested comprises a method code;
testing the second source code to be tested and recording test information, wherein the test information comprises code coverage rate information;
obtaining a mapping relation between the method code and the corresponding function;
and obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relation.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
in the method provided by the embodiment of the invention, when a second source code to be tested is tested, which is obtained after the first source code to be tested is subjected to instrumentation monitoring, the test information of the second source code to be tested is recorded; obtaining a mapping relation between the method code in the second source code to be tested and the corresponding function; and then, according to the test information and the mapping relation, the codes of the tested function points and the codes of the untested function points can be obtained, and because the tested function point codes and the untested function point codes are specific to the method codes and the functions, the test information of the specific method and function in the second source code to be tested can be obtained, so that the guidance of the complete test can be realized, the effectiveness of the test effect is improved, and the test effect is effectively evaluated and guided. The technical problem that the reliability of the test effect is not high in the existing test method is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart of a code coverage based test method according to an embodiment of the present invention;
FIG. 2 is a block diagram of a test apparatus based on code coverage according to an embodiment of the present invention;
FIG. 3 is a block diagram of a computer-readable storage medium according to an embodiment of the present invention;
fig. 4 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a test method based on code coverage rate, which is used for improving the technical problem that the reliability of the test effect of the existing test method is not high.
The technical scheme in the embodiment of the application has the following general idea:
and after the first source code to be tested is subjected to instrumentation monitoring to obtain a second source code to be tested, testing the second source code to be tested, recording test information, then obtaining a mapping relation between the method code and a corresponding function, and obtaining a code of a tested function point and a code of an untested function point according to the test information and the mapping relation. That is to say, the method in the embodiment of the present invention can determine the tested function points and the untested function points according to the second source code to be tested and the corresponding function mapping relationship thereof and the test information of the second source code to be tested, thereby performing effective and complete function coverage test and improving the effectiveness of the test effect.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Example one
The embodiment provides a test method based on code coverage, as shown in fig. 1, the method includes:
step S101 is first executed: and performing instrumentation monitoring on the first source code to be tested to obtain a second source code to be tested, wherein the second source code to be tested comprises a method code.
Specifically, the first source code to be tested may be a code or a code segment of the whole program, instrumentation monitoring is to insert some probes (also called "detectors", which are essentially code segments for information acquisition and may be assignment statements or function calls for acquiring coverage information) into the program on the basis of ensuring the original logic integrity of the program to be tested, and by executing the probes and throwing out characteristic data of program operation, through analyzing the data, control flow and data flow information of the program can be obtained, and further dynamic information such as logic coverage and the like can be obtained, thereby realizing the method for testing. The method of monitoring pile insertion may be an existing method, and is not particularly limited herein.
As an optional implementation manner, a code deployment manner may be adopted to perform instrumentation monitoring on the first source code to be tested, so as to improve accuracy and efficiency of instrumentation monitoring.
Specifically, the instrumentation monitoring can be performed by setting the trigger mechanism as a code deployment trigger mechanism and automatically triggering the code deployment.
Then, step S102 is executed: and testing the second source code to be tested and recording test information, wherein the test information comprises code coverage rate information.
Specifically, the test method may be an automation test, a functional test unit test, an interface test, a UI automation test, and the like, and the test information may include control flow, data flow information, and coverage rate information of the program, which is not specifically limited herein.
Step S103 is performed next: and obtaining the mapping relation between the method codes and the corresponding functions.
Specifically, the second source code to be tested may include a plurality of methods, and these methods all have corresponding functions, for example, the methods include A, B, C, where the method a is used to implement user login, the method B is used for user addition operation, and the method C is used for user deletion operation. Through the mapping relation, the functions of the codes can be accurately positioned. The specific method for obtaining the mapping relationship can be obtained by executing the code in the method or analyzing the annotation of the code.
In order to improve the efficiency of obtaining the mapping relationship, in an embodiment, the mapping relationship between the method code and the corresponding function may be obtained by automatically parsing a code annotation with a script, and the script language may be Ruby, python, shell, or the like.
And step S104 is executed again: and obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relation.
Specifically, the test condition may be analyzed according to test information in the test of the second source code to be tested, and then the code of the tested function point and the code of the untested function point may be determined according to the analysis result and the mapping relationship.
In an alternative embodiment, the test information includes coverage information, and the code for obtaining the tested function points and the code for obtaining the untested function points may be implemented by:
counting the coverage rate information to obtain a coverage rate counting result;
analyzing the coverage rate statistical result to determine tested codes and untested codes;
obtaining the codes of the tested function points according to the mapping relation and the tested codes;
and obtaining the code of the untested function point according to the mapping relation and the untested code.
In a specific implementation process, a coverage rate statistical tool may be used to perform statistics on the coverage rate information, so as to obtain a coverage rate statistical result, where the coverage rate statistical tool may be Jacoco corresponding to a Java language and PHPCoverage corresponding to a PHP language.
Because function testers have no code reading capability, and cannot judge whether the executed test completely covers the code after the test is passed, and cannot accurately position untested function points by using a code coverage rate tool, the embodiment of the invention provides a test method based on code coverage rate, which can automatically analyze annotations in the code by using a script, obtain the mapping relation between the method code and the function, and obtain the relevant codes of tested function points and untested function points according to the test information and the mapping relation in the test process, thereby guiding to carry out complete test, improving the effectiveness of the test effect, quickly and completely covering all function points, and achieving the effect of completely covering the test.
In order to facilitate displaying and analyzing the test result, in an optional implementation, after obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relationship, the implementation further performs the following operations:
and generating a coverage rate statistical report according to the test information, the codes of the tested function points and the codes of the untested function points.
Based on the same inventive concept, the application also provides a device corresponding to the test method based on the code coverage rate in the embodiment, which is shown in the second embodiment in detail.
Example two
The present embodiment provides a test apparatus based on code coverage, as shown in fig. 2, the apparatus includes:
the instrumentation module 201 is configured to perform instrumentation monitoring on a first source code to be tested to obtain a second source code to be tested, where the second source code to be tested includes a method code;
the test module 202 is configured to test the second source code to be tested and record test information, where the test information includes code coverage rate information;
a first obtaining module 203, configured to obtain a mapping relationship between the method code and a corresponding function;
a second obtaining module 204, configured to obtain codes of tested function points and codes of untested function points according to the test information and the mapping relationship.
As an optional implementation manner of this embodiment, in the apparatus provided in this embodiment, instrumentation monitoring is performed on the first source code to be tested in a code deployment manner.
As an optional implementation manner of this embodiment, in the apparatus provided in this embodiment, the mapping relationship between the method code and the corresponding function is obtained by automatically parsing the code annotation with a script.
As an optional implementation manner of this embodiment, in the apparatus provided in this embodiment, the second obtaining module 204 is further configured to:
counting the coverage rate information to obtain a coverage rate counting result;
analyzing the coverage rate statistical result to determine tested codes and untested codes;
obtaining the codes of the tested function points according to the mapping relation and the tested codes;
and obtaining the code of the untested function point according to the mapping relation and the untested code.
As an optional implementation manner of this embodiment, the apparatus provided in this embodiment further includes a generating module, configured to:
after obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relation:
and generating a coverage rate statistical report according to the test information, the codes of the tested function points and the codes of the untested function points.
Since the device described in the second embodiment of the present invention is a device used for implementing the testing method of the first embodiment of the present invention, based on the method described in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and the deformation of the device, and thus the details are not described herein. All the devices adopted in the method of the first embodiment of the present invention belong to the protection scope of the present invention.
Based on the same inventive concept, the application also provides a computer-readable storage medium corresponding to the code coverage based test method in the third embodiment.
EXAMPLE III
Referring to fig. 3, the present application also provides a computer readable storage medium 300, on which a computer program 311 is stored, which when executed by a processor implements a method in one embodiment.
Specifically, the program is configured to execute the steps of:
performing instrumentation monitoring on a first source code to be tested to obtain a second source code to be tested, wherein the second source code to be tested comprises a method code;
testing the second source code to be tested and recording test information, wherein the test information comprises code coverage rate information;
obtaining a mapping relation between the method code and the corresponding function;
and obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relation.
Since the computer-readable storage medium introduced in the third embodiment of the present invention is a computer-readable storage medium used for implementing the testing method in the first embodiment of the present invention, based on the method introduced in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and deformation of the computer-readable storage medium, and thus details are not described herein. Any computer readable storage medium used in the method of the first embodiment of the present invention falls within the intended scope of the present invention.
Based on the same inventive concept, the application also provides a computer device corresponding to the code coverage rate-based test method in the embodiment, which is detailed in the fourth embodiment.
Example four
The present application also provides a computer device, please refer to fig. 4, which includes a storage 401, a processor 402, and a computer program 403 stored on the storage and running on the processor, wherein the processor 402 implements the method in one embodiment when executing the program.
Specifically, the processor is configured to perform the following steps:
performing instrumentation monitoring on a first source code to be tested to obtain a second source code to be tested, wherein the second source code to be tested comprises a method code;
testing the second source code to be tested and recording test information, wherein the test information comprises code coverage rate information;
obtaining a mapping relation between the method code and the corresponding function;
and obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relation.
Since the computer device introduced in the fourth embodiment of the present invention is a computer device used for implementing the test method in the first embodiment of the present invention, based on the method introduced in the first embodiment of the present invention, persons skilled in the art can understand the computer device and variations thereof, and thus details thereof are not described herein. All the computer devices adopted by the method of the first embodiment of the present invention belong to the protection scope of the present invention
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
in the method provided by the embodiment of the invention, when a second source code to be tested is tested, which is obtained after the first source code to be tested is subjected to instrumentation monitoring, the test information of the second source code to be tested is recorded; obtaining a mapping relation between the method code in the second source code to be tested and the corresponding function; and then, according to the test information and the mapping relation, the codes of the tested function points and the codes of the untested function points can be obtained, and because the tested function point codes and the untested function point codes are specific to the method codes and the functions, the test information of the specific method and function in the second source code to be tested can be obtained, so that the guidance of the complete test can be realized, the effectiveness of the test effect is improved, and the test effect is effectively evaluated and guided. The technical problem that the reliability of the test effect is not high in the existing test method is solved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass these modifications and variations.

Claims (10)

1. A test method based on code coverage rate is characterized by comprising the following steps:
performing instrumentation monitoring on a first source code to be tested to obtain a second source code to be tested, wherein the second source code to be tested comprises a method code;
testing the second source code to be tested and recording test information, wherein the test information comprises code coverage rate information;
obtaining a mapping relation between the method code and the corresponding function, including: obtaining the mapping relation by executing the method code or analyzing the annotation of the method code;
and obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relation.
2. The method of claim 1, wherein instrumentation monitoring is performed on the first source code to be tested by way of code deployment.
3. The method of claim 1, wherein the mapping relationship between the method code and the corresponding function is obtained by automatically parsing a code annotation by a script.
4. The method of claim 1, wherein obtaining codes of tested function points and codes of untested function points according to the test information and the mapping relationship comprises:
counting the coverage rate information to obtain a coverage rate counting result;
analyzing the coverage rate statistical result to determine tested codes and untested codes;
obtaining the codes of the tested function points according to the mapping relation and the tested codes;
and obtaining the code of the untested function point according to the mapping relation and the untested code.
5. The method as claimed in claim 1, wherein after obtaining the codes of the tested functional points and the codes of the untested functional points according to the test information and the mapping relationship, the method further comprises:
and generating a coverage rate statistical report according to the test information, the codes of the tested function points and the codes of the untested function points.
6. A code coverage based test apparatus, comprising:
the instrumentation module is used for performing instrumentation monitoring on the first source code to be tested to obtain a second source code to be tested, wherein the second source code to be tested comprises a method code;
the test module is used for testing the second source code to be tested and recording test information, wherein the test information comprises code coverage rate information;
a first obtaining module, configured to obtain a mapping relationship between the method code and a corresponding function, including: obtaining the mapping relation by executing the method code or analyzing the annotation of the method code;
and the second obtaining module is used for obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relation.
7. The apparatus of claim 6, wherein instrumentation monitoring is performed on the first source code to be tested by way of code deployment.
8. The apparatus of claim 6, wherein the mapping relationship between the method code and the corresponding function is obtained by automatically parsing a code annotation by a script.
9. A computer-readable storage medium having a computer program stored thereon, the program when executed implementing the steps of:
performing instrumentation monitoring on a first source code to be tested to obtain a second source code to be tested, wherein the second source code to be tested comprises a method code;
testing the second source code to be tested and recording test information, wherein the test information comprises code coverage rate information;
obtaining a mapping relation between the method code and the corresponding function, including: obtaining the mapping relation by executing the method code or analyzing the annotation of the method code;
and obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relation.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of:
performing instrumentation monitoring on a first source code to be tested to obtain a second source code to be tested, wherein the second source code to be tested comprises a method code;
testing the second source code to be tested and recording test information, wherein the test information comprises code coverage rate information;
obtaining a mapping relation between the method code and the corresponding function, including: obtaining the mapping relation by executing the method code or analyzing the annotation of the method code;
and obtaining the codes of the tested function points and the codes of the untested function points according to the test information and the mapping relation.
CN201810157047.7A 2018-02-24 2018-02-24 Code coverage rate based test method and device Active CN110196801B (en)

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 CN110196801A (en) 2019-09-03
CN110196801B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN111221737B (en) * 2020-01-09 2023-11-14 苏州洞察云信息技术有限公司 Coverage rate determining method, coverage rate determining device and storage medium
CN112597008A (en) * 2020-12-15 2021-04-02 平安普惠企业管理有限公司 Function point marking method and device based on webpage code test
CN116627973B (en) * 2023-05-25 2024-02-09 成都融见软件科技有限公司 Data positioning system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426551A (en) * 2011-11-04 2012-04-25 百度在线网络技术(北京)有限公司 Test data screening method and device, and test data construction method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7849394B2 (en) * 2001-10-25 2010-12-07 The Math Works, Inc. Linked code generation report
CN102243609A (en) * 2011-06-15 2011-11-16 惠州运通信息技术有限公司 Embedded software-based test analysis method and system
CN106155897B (en) * 2015-04-16 2020-12-08 腾讯科技(深圳)有限公司 Service processing method and device
CN106557413A (en) * 2015-09-25 2017-04-05 伊姆西公司 Based on the method and apparatus that code coverage obtains test case

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426551A (en) * 2011-11-04 2012-04-25 百度在线网络技术(北京)有限公司 Test data screening method and device, and test data construction method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
代码覆盖与功能覆盖映射方法探究;董昕等;《数据通信》;20160331;第1-9页 *

Also Published As

Publication number Publication date
CN110196801A (en) 2019-09-03

Similar Documents

Publication Publication Date Title
CN110196801B (en) Code coverage rate based test method and device
US10061685B1 (en) System, method, and computer program for high volume test automation (HVTA) utilizing recorded automation building blocks
CN106776338B (en) Test method, test device and server
CN106874187B (en) Code coverage rate collection method and device
US9317400B2 (en) Code coverage rate determination method and system
US9946638B1 (en) System and method for end to end performance response time measurement based on graphic recognition
CN108804305A (en) A kind of method and device of automatic test
CN104021072A (en) Machine and methods for evaluating failing software programs
US20130179867A1 (en) Program Code Analysis System
CN109857637B (en) Java language method coverage rate and method input and output statistical method based on annotation
CN111427771A (en) Code coverage rate analysis method, equipment, server and readable storage medium
Zhao et al. The game of twenty questions: Do you know where to log?
CN104699617A (en) Automated testing method for games
Schuler et al. Examining the energy impact of sorting algorithms on android: an empirical study
CN106294109B (en) Method and device for acquiring defect code
CN110688173A (en) Positioning method and device of components in cross-platform interface framework and electronic equipment
CN111124894A (en) Code coverage rate processing method and device and computer equipment
CN116909800B (en) Method and device for locating crash information and storage medium
JP2016149123A (en) Method of determining valid input for unknown binary module and non-transitory computer-readable medium
CN112416733B (en) Memory detection method, memory detection device and intelligent device
CN112084108A (en) Test script generation method and device and related components
US10579761B1 (en) Method and system for reconstructing a graph presentation of a previously executed verification test
CN109189673B (en) Software test scheme, and method and device for determining test cases
CN107402883B (en) A kind of data test treating method and apparatus
KR102117905B1 (en) Credibility test result management data auto generation method and credibility test result management data auto generation apparatus

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