CN105930271A - Java program running code coverage rate test method and system - Google Patents
Java program running code coverage rate test method and system Download PDFInfo
- Publication number
- CN105930271A CN105930271A CN201610254632.XA CN201610254632A CN105930271A CN 105930271 A CN105930271 A CN 105930271A CN 201610254632 A CN201610254632 A CN 201610254632A CN 105930271 A CN105930271 A CN 105930271A
- Authority
- CN
- China
- Prior art keywords
- code
- program
- code line
- function
- java
- 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
- G06F11/3672—Test management
- G06F11/3676—Test 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 invention discloses a Java program running code coverage rate test method and system. The method comprises the following steps: S1, presetting a code line monitoring item and a callback functions, obtaining an effective code line table in a corresponding function according to the code line monitoring item, obtaining positions of effective code lines in the effective code line table, storing the positions of the effective code lines in a database, and setting an interruption; S2, when the interruption is triggered in a running process of a program, calling the callback functions, obtaining the current running position of the program, searching a corresponding code line position in the database according to the current running position of the program, updating running frequency of the corresponding code line position, and returning to continue the program running; S3, when the running of the program is finished, counting quantity of all the effective code lines and quantity of all the code lines, the running frequencies of which are greater than 0, in the database, and carrying out calculation to obtain a program running code coverage rate. According to the method and system disclosed in the invention, a relatively good running code coverage rate test manner is provided for the Java program development process.
Description
Technical field
The present invention relates to java applet technical field of measurement and test, particularly relate to the survey of a kind of java applet operation code coverage rate
Method for testing and system.
Background technology
At present, in java applet development process, when programmer does self-test or the unit testing of java applet, special
It not that java applet designs and develops the white-box testing used in software process, in order to ensure that code can be entered by the test case of exploitation
Row sufficiently tests checking, it is often necessary to analyzes which code line and is not carried out, then separately writes survey for unenforced code
Example on probation, and in this process, the code coverage that program is run is that assessment test verifies whether that sufficient one important depends on
According to.Such as, when Android phone software development, in order to ensure software quality, need to ask engineer that the code of amendment is done and fill
Divide test checking.On the other hand, in software outsourcing industry, such as arcade game machine manufacturing industry, it is also possible to code coverage is used
The software making assessment third party's exploitation is verified fully the most after tested.But, whether program testing results is filled by prior art
Divide and where test checking and do not repeat, but there is no good instrument.
In view of this, prior art haves much room for improvement and improves.
Summary of the invention
In view of the deficiencies in the prior art, present invention aim at providing the test of a kind of java applet operation code coverage rate
Method and system.The present invention tests the method for code coverage, it is intended to do not possess in software development process in solution prior art
The problem that preferably test mode or instrument statistics java applet run coverage rate.
Technical scheme is as follows:
The method of testing of a kind of java applet operation code coverage rate, wherein, comprises the following steps:
S1, pre-set code line monitored item, call back function;According to described code line monitored item obtain in respective function effective
Code line table, obtains the position of valid code row in valid code table;The position of described valid code row is preserved to data base
In, and interruption is set;
S2, when in program operation process trigger interrupt, then call described call back function, the current run location of acquisition program;According to
The current run location of program, finds corresponding code line position in the database, updates described corresponding code line position
Number of run, and return continue executing with program run;
S3, run complete when program, all valid code row numbers and all number of run code more than 0 in staqtistical data base
Row number, is calculated program fortune according to described all valid code row numbers, all number of run code line number more than 0
Line code coverage rate.
The method of testing of described java applet operation code coverage rate, wherein, described code line monitored item is set to
" java class name+function name " or " Java file path+code line number ";Code line position in described valid code table comprises
Java class name, function name and code line number.
The method of testing of described java applet operation code coverage rate, wherein, when arranging by " java class name+function name "
During code line monitored item, described step S1 may include that
S111, according to described code line monitored item obtain respective function valid code row table;
S112, in the valid code row table of described respective function inquire about valid code row position, inquiry obtained is effective
The position of code line is saved in data base;
S113, arrange described respective function interrupt, interrupt mode is set to function enter interrupt.
The method of testing of described java applet operation code coverage rate, wherein, when by " Java file path+code line
Number " when arranging code line monitored item, described step S1 can also include:
S121, according to described Java file path resolve Java source file, it is thus achieved that the java class name of this Java source file;By obtaining
The java class name of Java source file, obtain the valid code row table of corresponding function;
Whether S122, the code line number judged in described code line monitored item be in the valid code table acquired;
S123 if it is determined that described code line number does not has in described valid code table, then judges that the code line monitored item arranged is invalid,
Code line monitored item need to be reset;
S124 is if it is determined that described code line number is in described valid code table, then according to corresponding the having of inquiry of described code line number
The position of effect code line, the position of valid code row inquiry obtained is saved in data base;And press the effective of described correspondence
The position of code line arranges interruption, and interrupt mode is set to row interruption.
The method of testing of described java applet operation code coverage rate, wherein, described step S2 specifically includes:
S21, when program operation process triggers described function enter interrupt, code line interrupt, or perform single step run, then adjust
With described call back function, obtain the current run location of program;
S22, judge whether the function that described current run location is corresponding is monitored according to described code line monitored item;
If S23 judges that the function that described current run location is corresponding is not monitored, then directly return and continue executing with program fortune
OK;
If S24 judges that the function that described current run location is corresponding has monitored, then according to the current run location of program,
Described data base finds corresponding code line position, updates the number of run of described corresponding code line position, and return continuation
Execution program is run.
The method of testing of described java applet operation code coverage rate, wherein, described step S3 also includes:
S31, running complete when program, in inquiry data base, all number of run are the code line of 0, and press by affiliated respective function
Order display is listed.
The present invention also provides for the test system of a kind of java applet operation code coverage rate, wherein, and including:
Supervision arranges module, for pre-setting code line monitored item, call back function;It is right to obtain according to described code line monitored item
Answer the valid code row table in function, obtain the position of valid code row in valid code table;Position by described valid code row
Put and preserve to data base, and interruption is set;
Program operation control module, for when in program operation process trigger interrupt, then call described call back function, acquisition program
Current run location;According to the current run location of program, find in the database described in corresponding code line position, renewal
The number of run of corresponding code line position, and return the program that continues executing with and run;
Coverage rate statistical module, for running complete when program, all valid code row numbers and all fortune in staqtistical data base
The places number code line number more than 0, according to described all valid code row numbers, all number of run code line more than 0
Number is calculated program operation code coverage rate.
The test system of described java applet operation code coverage rate, wherein, described system also includes:
Be not carried out code line display module, for when program run complete, inquiry data base in all number of run be the code of 0
OK, and by affiliated respective function show in order and list.
The test system of described java applet operation code coverage rate, wherein, described system also includes:
JDWP program debugging link block, is used for being responsible for and is test for operation program and directly communicates, by JDWP protocol integrated test system
The interruption of tested operation program and operation.
The test system of described java applet operation code coverage rate, wherein, described code line monitored item is set to
" java class name+function name " or " Java file path+code line number ";Code line position in described valid code table comprises
Java class name, function name and code line number.
Beneficial effect: the method for testing of a kind of java applet operation code coverage rate of the application and system, for Java journey
Sequence exploitation software process, it is provided that the analysis test mode of a kind of operation code coverage rate, programmer can obtain software accordingly
The code coverage of test checking, and find out capable code line.The method of the invention can be used for assessing whether code does
Abundant test checking, to ensure software quality, and this coverage rate test method can also be as assessment third party's exploitation
Software quality, provides preferably coverage rate test instrument for software engineer.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for testing preferred embodiment of the java applet operation code coverage rate of the present invention.
Fig. 2 be the java applet operation code coverage rate of the present invention method of testing in monitor setting up procedure first more real
Execute the flow chart of example.
Fig. 3 be the java applet operation code coverage rate of the present invention method of testing in monitor setting up procedure second more real
Execute the flow chart of example.
Fig. 4 is that the program in the method for testing preferred embodiment of the java applet operation code coverage rate of the present invention runs control
The flow chart of process processed.
Fig. 5 is the module frame chart of the test system preferred embodiment of the java applet operation code coverage rate of the present invention.
Detailed description of the invention
The present invention provides method of testing and the system of a kind of java applet operation code coverage rate, for making the mesh of the present invention
, technical scheme and effect clearer, clear and definite, the present invention is described in more detail below.Should be appreciated that described herein
Specific embodiment only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, the flow chart of the method for testing preferred embodiment of the java applet operation code coverage rate of the present invention.
As it can be seen, the method for testing of described java applet operation code coverage rate comprises the following steps:
S1, pre-set code line monitored item, call back function;According to described code line monitored item obtain in respective function effective
Code line table, obtains the position of valid code row in valid code table;The position of described valid code row is preserved to data base
In, and interruption is set.
In code coverage test process, generation in java applet can be monitored by the code line monitored item pre-set
Code row is run the situation of execution, and when the present invention is embodied as, described code line monitored item is set to " java class name+function name "
Or " Java file path+code line number ".Further, in program operation process, can obtain according to the code line monitored item arranged
Taking the valid code row table in respective function, valid code row table, valid code row table refers in the java applet code of source
The set of executable code, does not all include such as annotated code row or blank line etc., and valid code row is used for generating object code.
In the present invention, the valid code in program operation process to be counted rapidly by the code line monitored item arranged
OK, it is desirable to depositing to follow and consistent deposit rule at software project code, such as, main line, branch, label etc. must be by divisions
Rule and catalogue deposit, thus code is on stream before being submitted to main line, must be through strict code inspection.With
It is easy to when the present invention implements to count rapidly rapidly valid code row by monitored item.
According to the valid code row found, obtain the position of valid code row in valid code table;By described effective generation
The position of code row preserves to data base, and arranges interruption.Code line position in described valid code table comprise java class name,
Function name and code line number, therefore by inquiry code line position can obtain code line institute membership fuction, affiliated Java inner classes, with
And code line place line number.Wherein, if the interruption that is disposed in program operation process of interruption is triggered, then call in advance
The call back function arranged returns main operation program and processes or complete certain operation, such as, updates the operation of code line position
Number of times etc. process.When the present invention is embodied as, interrupt mode can be that function enters interruption, code line interrupts, further,
When program performs single step run code in running, also can trigger interruption.Preferably, the present invention is according to different code line monitored item
Corresponding interrupt mode is set, i.e. uses different supervision to arrange, specifically comprise the following steps that
When arranging code line monitored item by " java class name+function name ", described step S1 can include, as shown in Figure 2:
S111, " java class name+function name " is arranged code line monitored item, the supervision project during function operation is i.e. set.
S111, according to described code line monitored item obtain respective function valid code row table.
S112, in the valid code row table of described respective function inquire about valid code row position, inquiry is obtained
The position of valid code row is saved in data base.
S113, arrange described respective function interrupt, interrupt mode is set to function enter interrupt.
When arranging code line monitored item by " Java file path+code line number ", described step S1 can also include, as
Shown in Fig. 3:
S120, " Java file path+code line number " is arranged code line monitored item, the supervision during function operation is i.e. set
Project.
S121, according to described Java file path resolve Java source file, it is thus achieved that the java class name of this Java source file;
S122, by the java class name of Java source file obtained, obtain the valid code row table of corresponding function.
Whether S123, the code line number judged in described code line monitored item be in the valid code table acquired.I.e.
Judge whether the code line in monitored item is to perform valid code row, if otherwise proceeding to step S124, if then proceeding to step
S125。
S124 if it is determined that described code line number is not in described valid code table, then judges that the code line arranged monitors
Item is invalid, need to reset code line monitored item.
S125 is if it is determined that described code line number is in described valid code table, then according to described code line number inquiry correspondence
The position of valid code row, proceed to next step S126.
S126, the position of valid code row inquiry obtained are saved in data base, proceed to next step S127.
S127, interruption is set by the position of the valid code row of described correspondence, interrupt mode is set to row interruption.
The present invention arranges corresponding down trigger bar primary according to the concrete condition arranging function monitored item, makes test code cover
Lid rate adds selectable two kinds and monitors set-up mode.
S2, when in program operation process trigger interrupt, then call described call back function, the current run location of acquisition program;
According to the current run location of program, find corresponding code line position in the database, update described corresponding code line position
The number of run put, and return continue executing with program run.
This step is that program runs control process, specifically includes following steps, as shown in Figure 4:
S21, when program operation process triggers described function enter interrupt, code line interrupt, or perform single step run, then adjust
With described call back function, obtain the current run location of program.
S22, judge whether the function that described current run location is corresponding is monitored according to described code line monitored item;I.e. sentence
Whether the code line of disconnected function corresponding to current run location is in code line monitored item, to judge that it is the most monitored;If
Otherwise proceed to step S23;If then proceeding to step S24.
If S23 judges that the function that described current run location is corresponding is not monitored, then directly return and continue executing with journey
Sort run, even function are not monitored, then interrupt clear, return and continue to run with program.
If S24 judges that the function that described current run location is corresponding has monitored, then currently run position according to program
Put, find corresponding code line position in the database, update the number of run of described corresponding code line position.
S25, interrupt clear, return the program that continues executing with and run;If single step performs program, then return single step and perform journey
Sequence.
The present invention completes whole test run by above-mentioned steps S20 ~ S25 and controls process, have updated valid code row
It is run the number of times of execution, provides condition for next step statistical computation code coverage.
S3, running complete when program, in staqtistical data base, all valid code row numbers and all number of run are more than 0
Code line number, is calculated journey according to described all valid code row numbers, all number of run code line number more than 0
Sort run code coverage.
When the present invention is embodied as, described step S3 also includes:
S31, running complete when program, in inquiry data base, all number of run are the code line of 0, and press by affiliated respective function
Order display is listed.Will show by unenforced code line, the source generation of the most tested execution can be counted on by which
Code.Unenforced code line obtained by analysis, can write corresponding test case pointedly, tests improving code tester
Card.
Therefore, the analysis test method of the operation code coverage rate that the present invention provides, programmer can obtain accordingly
The code coverage of software test checking, and find out capable code line, and this coverage rate test method can also conduct
The software quality of assessment third party's exploitation, provides preferably coverage rate test instrument for software engineer.
Further, the present invention also provides for the test system of a kind of java applet operation code coverage rate, as it is shown in figure 5,
Including JDWP program debugging link block 100, monitor that arranging module 110, program operation control module 120 and coverage rate adds up mould
Block 130, it is not carried out code line display module 140:
Supervision arranges module 110, for pre-setting code line monitored item, call back function;Obtain according to described code line monitored item
Take the valid code row table in respective function, obtain the position of valid code row in valid code table;By described valid code row
Position preserve in data base, and interruption is set;Specifically as described in above-mentioned embodiment of the method, do not repeat.
Program operation control module 120, for when in program operation process trigger interrupt, then call described call back function,
The current run location of acquisition program;According to the current run location of program, find in the database corresponding code line position,
Update the number of run of described corresponding code line position, and return continues executing with program and runs;Concrete such as above-mentioned embodiment of the method
Described, do not repeat.
Coverage rate statistical module 130, for when program run complete, in staqtistical data base all valid code row numbers with
All number of run code line number more than 0, is more than 0 according to described all valid code row numbers, all number of run
Code line number is calculated program operation code coverage rate.Specifically as described in above-mentioned embodiment of the method, do not repeat.
Described system also includes:
Be not carried out code line display module 140, for when program run complete, inquiry data base in all number of run be 0
Code line, and show in order by affiliated respective function and list.Specifically as described in above-mentioned embodiment of the method.
Further, for coordinating the code tester process of whole program, native system also includes:
JDWP program debugging link block 100, is used for being responsible for and is test for operation program and directly communicates, by JDWP agreement
Control interruption and the operation of tested operation program.JPDA (Java Platform Debugger Architecture) is
The abbreviation of Java platform debugging architecture, the API provided by JPDA, what developer can be convenient, flexible builds Java tune
Examination application program.The present invention controls interruption and the operation of tested operation program by Java debugging wire protocol (i.e. JDWP).
In described system, described code line monitored item is set to " java class name+function name " or " Java file path+generation
Code line number ";Code line position in described valid code table comprises java class name, function name and code line number.
When arranging code line monitored item by " java class name+function name ", described step monitors that arranging module 110 can wrap
Include:
First valid code row table acquiring unit, for according to described code line monitored item obtain respective function valid code row
Table;Specifically as described in above-mentioned embodiment of the method.
First inquiry and storage unit, for inquiring about valid code row in the valid code row table of described respective function
Position, the position of valid code row inquiry obtained is saved in data base;Specifically as described in above-mentioned embodiment of the method.
First interrupt arrange unit, for arrange described respective function interrupt, interrupt mode is set to function enter in
Disconnected.Specifically as described in above-mentioned embodiment of the method.
When arranging code line monitored item by " Java file path+code line number ", described step monitors and arranges module 110
May include that
Second valid code row table acquiring unit, for according to described Java file path resolve Java source file, it is thus achieved that should
The java class name of Java source file;By the java class name of the Java source file obtained, obtain the valid code row of corresponding function
Table;Specifically as described in above-mentioned embodiment of the method.
Code line Effective judgement unit, for judging whether the code line number in described code line monitored item is obtaining
To valid code table in;Specifically as described in above-mentioned embodiment of the method.
Code line invalidation unit, for if it is determined that described code line number does not has in described valid code table, then to judge
The code line monitored item arranged is invalid, need to reset code line monitored item;Specifically as described in above-mentioned embodiment of the method.
Second interrupts arranging unit, for if it is determined that described code line number is in described valid code table, then according to described
The position of the valid code row that the inquiry of code line number is corresponding, the position of valid code row inquiry obtained is saved in data base
In;And interruption is set by the position of the valid code row of described correspondence, interrupt mode is set to row interruption.Concrete such as above-mentioned side
Described in method embodiment.
Further, described in native system, program operation control module 120 specifically includes:
Trigger with call unit, for when program operation process triggers described function enter interrupt, code line interrupts, or hold
Row single step run, then call described call back function, the current run location of acquisition program;Specifically as described in above-mentioned embodiment of the method.
Function monitors judging unit, for judging, according to described code line monitored item, the letter that described current run location is corresponding
Whether number is monitored;Specifically as described in above-mentioned embodiment of the method.
If first recovers to perform program unit, for judging that the function that described current run location is corresponding is not supervised
Depending on, then directly return the program that continues executing with and run;Specifically as described in above-mentioned embodiment of the method.
If second recovers to perform program unit, be used for judging that the function that described current run location is corresponding has monitored,
Then according to the current run location of program, find corresponding code line position in the database, update described corresponding code line
The number of run of position, and return continue executing with program run.If single step performs program, then return single step and perform program.Tool
Body is as described in above-mentioned embodiment of the method.
In sum, the method for testing of the java applet operation code coverage rate of the present invention and system, open for java applet
Send out software process, it is provided that the analysis test mode of a kind of operation code coverage rate, programmer can obtain software test accordingly
The code coverage of checking, and find out capable code line.The method of the invention can be used for assessing whether code fills
Dividing test checking, to ensure software quality, and this coverage rate test method can also be as the software of assessment third party's exploitation
Quality, provides preferably coverage rate test instrument for software engineer.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved according to the above description or to convert, all these modifications and variations all should belong to the guarantor of claims of the present invention
Protect scope.
Claims (10)
1. the method for testing of a java applet operation code coverage rate, it is characterised in that comprise the following steps:
S1, pre-set code line monitored item, call back function;According to described code line monitored item obtain in respective function effective
Code line table, obtains the position of valid code row in valid code table;The position of described valid code row is preserved to data base
In, and interruption is set;
S2, when in program operation process trigger interrupt, then call described call back function, the current run location of acquisition program;According to
The current run location of program, finds corresponding code line position in the database, updates described corresponding code line position
Number of run, and return continue executing with program run;
S3, run complete when program, all valid code row numbers and all number of run code more than 0 in staqtistical data base
Row number, is calculated program fortune according to described all valid code row numbers, all number of run code line number more than 0
Line code coverage rate.
The method of testing of java applet operation code coverage rate the most according to claim 1, it is characterised in that described code
Row monitored item is set to " java class name+function name " or " Java file path+code line number ";Generation in described valid code table
Code line position comprises java class name, function name and code line number.
The method of testing of java applet operation code coverage rate the most according to claim 2, it is characterised in that when pressing
When " java class name+function name " arranges code line monitored item, described step S1 may include that
S111, according to described code line monitored item obtain respective function valid code row table;
S112, in the valid code row table of described respective function inquire about valid code row position, inquiry obtained is effective
The position of code line is saved in data base;
S113, arrange described respective function interrupt, interrupt mode is set to function enter interrupt.
The method of testing of java applet operation code coverage rate the most according to claim 2, it is characterised in that when pressing
When " Java file path+code line number " arranges code line monitored item, described step S1 can also include:
S121, according to described Java file path resolve Java source file, it is thus achieved that the java class name of this Java source file;By obtaining
The java class name of Java source file, obtain the valid code row table of corresponding function;
Whether S122, the code line number judged in described code line monitored item be in the valid code table acquired;
S123 if it is determined that described code line number is not in described valid code table, then judge the code line monitored item that arranges without
Effect, need to reset code line monitored item;
S124 is if it is determined that described code line number is in described valid code table, then according to corresponding the having of inquiry of described code line number
The position of effect code line, the position of valid code row inquiry obtained is saved in data base;And press the effective of described correspondence
The position of code line arranges interruption, and interrupt mode is set to row interruption.
5. according to the method for testing of the java applet operation code coverage rate described in claim 3 or 4, it is characterised in that described
Step S2 specifically includes:
S21, when program operation process triggers described function enter interrupt, code line interrupt, or perform single step run, then adjust
With described call back function, obtain the current run location of program;
S22, judge whether the function that described current run location is corresponding is monitored according to described code line monitored item;
If S23 judges that the function that described current run location is corresponding is not monitored, then directly return and continue executing with program fortune
OK;
If S24 judges that the function that described current run location is corresponding has monitored, then according to the current run location of program,
Described data base finds corresponding code line position, updates the number of run of described corresponding code line position, and return continuation
Execution program is run.
The method of testing of java applet operation code coverage rate the most according to claim 1, it is characterised in that described step
S3 also includes:
S31, running complete when program, in inquiry data base, all number of run are the code line of 0, and press by affiliated respective function
Order display is listed.
7. the test system of a java applet operation code coverage rate, it is characterised in that including:
Supervision arranges module, for pre-setting code line monitored item, call back function;It is right to obtain according to described code line monitored item
Answer the valid code row table in function, obtain the position of valid code row in valid code table;Position by described valid code row
Put and preserve to data base, and interruption is set;
Program operation control module, for when in program operation process trigger interrupt, then call described call back function, acquisition program
Current run location;According to the current run location of program, find in the database described in corresponding code line position, renewal
The number of run of corresponding code line position, and return the program that continues executing with and run;
Coverage rate statistical module, for running complete when program, all valid code row numbers and all fortune in staqtistical data base
The places number code line number more than 0, according to described all valid code row numbers, all number of run code line more than 0
Number is calculated program operation code coverage rate.
The test system of java applet operation code coverage rate the most according to claim 7, it is characterised in that described system
Also include:
Be not carried out code line display module, for when program run complete, inquiry data base in all number of run be the code of 0
OK, and by affiliated respective function show in order and list.
The test system of java applet operation code coverage rate the most according to claim 7, it is characterised in that described system
Also include:
JDWP program debugging link block, is used for being responsible for and is test for operation program and directly communicates, by JDWP protocol integrated test system
The interruption of tested operation program and operation.
The test system of java applet operation code coverage rate the most according to claim 7, it is characterised in that described generation
Code row monitored item is set to " java class name+function name " or " Java file path+code line number ";In described valid code table
Code line position comprises java class name, function name and code line number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610254632.XA CN105930271B (en) | 2016-04-21 | 2016-04-21 | A kind of test method and system of java applet operation code coverage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610254632.XA CN105930271B (en) | 2016-04-21 | 2016-04-21 | A kind of test method and system of java applet operation code coverage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105930271A true CN105930271A (en) | 2016-09-07 |
CN105930271B CN105930271B (en) | 2019-06-04 |
Family
ID=56838753
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610254632.XA Active CN105930271B (en) | 2016-04-21 | 2016-04-21 | A kind of test method and system of java applet operation code coverage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105930271B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106776290A (en) * | 2016-11-28 | 2017-05-31 | 北京铭铭鑫软件有限公司 | A kind of intelligent continuous integrating method of testing of incremental learning |
CN108073512A (en) * | 2016-11-15 | 2018-05-25 | 平安科技(深圳)有限公司 | A kind of test method and terminal |
CN108241571A (en) * | 2016-12-23 | 2018-07-03 | 联芯科技有限公司 | A kind of program testing method and device |
CN114168142A (en) * | 2021-10-12 | 2022-03-11 | 芯华章科技股份有限公司 | Code coverage rate calculation method, electronic device and storage medium |
CN117171057A (en) * | 2023-11-02 | 2023-12-05 | 沐曦集成电路(上海)有限公司 | System for determining software code coverage rate of chip software and hardware joint simulation stage |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101464829A (en) * | 2007-12-18 | 2009-06-24 | 珠海金山软件股份有限公司 | Method and test device for confirming code coverage rate |
US20100146340A1 (en) * | 2008-12-09 | 2010-06-10 | International Business Machines Corporation | Analyzing Coverage of Code Changes |
CN103699476A (en) * | 2012-09-27 | 2014-04-02 | 腾讯科技(深圳)有限公司 | Coverage rate testing method and system |
-
2016
- 2016-04-21 CN CN201610254632.XA patent/CN105930271B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101464829A (en) * | 2007-12-18 | 2009-06-24 | 珠海金山软件股份有限公司 | Method and test device for confirming code coverage rate |
US20100146340A1 (en) * | 2008-12-09 | 2010-06-10 | International Business Machines Corporation | Analyzing Coverage of Code Changes |
CN103699476A (en) * | 2012-09-27 | 2014-04-02 | 腾讯科技(深圳)有限公司 | Coverage rate testing method and system |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108073512A (en) * | 2016-11-15 | 2018-05-25 | 平安科技(深圳)有限公司 | A kind of test method and terminal |
CN106776290A (en) * | 2016-11-28 | 2017-05-31 | 北京铭铭鑫软件有限公司 | A kind of intelligent continuous integrating method of testing of incremental learning |
CN108241571A (en) * | 2016-12-23 | 2018-07-03 | 联芯科技有限公司 | A kind of program testing method and device |
CN114168142A (en) * | 2021-10-12 | 2022-03-11 | 芯华章科技股份有限公司 | Code coverage rate calculation method, electronic device and storage medium |
CN117171057A (en) * | 2023-11-02 | 2023-12-05 | 沐曦集成电路(上海)有限公司 | System for determining software code coverage rate of chip software and hardware joint simulation stage |
CN117171057B (en) * | 2023-11-02 | 2024-01-26 | 沐曦集成电路(上海)有限公司 | System for determining software code coverage rate of chip software and hardware joint simulation stage |
Also Published As
Publication number | Publication date |
---|---|
CN105930271B (en) | 2019-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105930271A (en) | Java program running code coverage rate test method and system | |
US20190114436A1 (en) | Method for automatically detecting security vulnerability based on hybrid fuzzing, and apparatus thereof | |
US10437702B2 (en) | Data-augmented software diagnosis method and a diagnoser therefor | |
US6356858B1 (en) | Coverage measurement tool for user defined coverage models | |
US20090055804A1 (en) | Method and device for automatically evaluating the quality of a software source code | |
Cai et al. | A comprehensive study of the predictive accuracy of dynamic change-impact analysis | |
CN107341104A (en) | A kind of test result processing method and system based on cloud test | |
TW202111591A (en) | Recipe information presentation system and recipe error inference system | |
CN102214141B (en) | Real-time stack-based program slicing method | |
CN112559348B (en) | Test analysis method, system, equipment and medium based on jacoco | |
Kranzlmüller et al. | A brief overview of the MAD debugging activities | |
CN110737590A (en) | off-line debugging method | |
Wernick et al. | The impact of using pair programming on system evolution a simulation-based study | |
CN110647467B (en) | Target code coverage rate testing method, system and medium based on single step exception | |
CN109634851A (en) | A kind of system-level real-time method for obtaining tested program internal operation data | |
CN111427762A (en) | Automatic calling tool analysis techniques | |
CN107911264A (en) | Programmable route exchange device on-line debugging device and method | |
Kazmi et al. | A Test Case Selection Framework and Technique: Weighted Average Scoring Method | |
Benac Earle et al. | A property-based testing framework for multi-agent systems | |
Jiang et al. | FLOMA: Statistical fault localization for mobile embedded system | |
CN111984537A (en) | WebIDE-based software testing method, storage medium and device | |
CN116701164B (en) | Test method and electronic equipment | |
CN110781079A (en) | Data processing flow debugging method and device and electronic equipment | |
CN110941537A (en) | Process detection method and detection device based on behavior state | |
CN114780444B (en) | Code optimization method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |