CN104077232B - Testing device and method based on use case and source code two-way tracing - Google Patents

Testing device and method based on use case and source code two-way tracing Download PDF

Info

Publication number
CN104077232B
CN104077232B CN201410345813.4A CN201410345813A CN104077232B CN 104077232 B CN104077232 B CN 104077232B CN 201410345813 A CN201410345813 A CN 201410345813A CN 104077232 B CN104077232 B CN 104077232B
Authority
CN
China
Prior art keywords
block
code
program
sentence
test
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
CN201410345813.4A
Other languages
Chinese (zh)
Other versions
CN104077232A (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.)
SUZHOU DONGCHAYUN INFORMATION TECHNOLOGY CO., LTD.
Original Assignee
Assembled Information Technology Co Ltd In Shanghai 01
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 Assembled Information Technology Co Ltd In Shanghai 01 filed Critical Assembled Information Technology Co Ltd In Shanghai 01
Priority to CN201410345813.4A priority Critical patent/CN104077232B/en
Publication of CN104077232A publication Critical patent/CN104077232A/en
Application granted granted Critical
Publication of CN104077232B publication Critical patent/CN104077232B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a testing device and method which are mainly used for software testing, in particular to a testing device and method based on use case and source code two-way tracing. The device comprises a source code blocking device, a two-way relevance device and a relation presentation device. The test device and method have the advantages as follows: 1, communication smoothing: test concerned development details and development concerned test details are completely visualized and shared; 2, result visualization: logical blocks, conditions and combined executing results in a program are recorded and displayed; and 3, test normalization: stages of unit testing, function testing, integration testing and system testing are subjected to threaded relevance.

Description

A kind of based on use-case and the two-way test device reviewed of source code and method
Technical field
The present invention relates to a kind of survey device and method, it is mainly used in software test and in particular to a kind of be based on use-case and source The two-way test device reviewed of code and method.
Background technology
At present in software test procedure, between exploitation and tester, it is difficult to sufficiently interactive and cooperation, and in test Personnel execution Black-box Testing when, due to structure and the situation of program internal operation cannot be known, thus lead to tester and Developer cannot know whether the use-case of oneself is abundant.In addition, on the one hand, because developer generally will not give tester The detailed programmed logic of member's explanation, leads to tester cannot design complete test case it is difficult to complete sufficiently to test;And On the other hand, tester generally also will not be discussed in detail test case to developer, thus leading to developer unclear Chu's test case specifically corresponding program execution logic.Telecoms gap between this exploitation and tester, when leading to exploitation The a lot of lower level error producing make tester lose the confidence for version quality and also can bring very big barrier to test job Hinder.So that test efficiency and quality cannot ensure, even after software application process bury huge hidden danger.
Content of the invention
The present invention be mainly solve existing for prior art " developer and tester's information isolate and lead to test Insufficient " technical problem, there is provided a kind of based on use-case and the two-way test device reviewed of source code and method.Using this device And method, the test detail of the exploitation details of test care and exploitation care completely can be visualized and share;Simultaneously Can also record and show the implementing result of each logical block within program, condition and combinations thereof;And can be by unit testing, work( Each stage such as test, integration testing, system testing can carry out threading association.
The above-mentioned technical problem of the present invention is mainly addressed by following technical proposals:
A kind of based on use-case and the two-way test device reviewed of source code, including:Source code blocking devices, analyze and obtain to be measured Code block in examination program, adds the block identification for identifying LCP in the described code block of program to be tested, Generate a block coding schedule being used for code block logical construction in description program;Bi-directional association device, calls test case to execute Program to be tested, the test information containing block identification that logging program produces in running, set up code block using this test information Execution data correlation table with test case;Relation assumes device, selects to assume test case and performed survey according to user Related information between examination program.
Optimize, above-mentioned a kind of based on use-case and the two-way test device reviewed of source code, also include according to described code The logic that described code block carries out globality Butut and presents is assumed device based on hierarchical layout algorithm by the relation between block.Its In, " hierarchical layout algorithm " is referring to " with the CHANNEL OPTIMIZATION Routing Algorithm of the dynamic adjustment of program scale, Hu Kaibao etc., computer should With, 2014,33 (4), on April 1st, 2013 ".
Optimize, above-mentioned a kind of based on use-case and the two-way test device reviewed of source code, described source code blocking devices bag Include:Lexical Analysis Module, classification of type module, structural identification module, correct-by-construction module.
Lexical Analysis Module is used for treating the character stream of test program and is scanned and then identifies word and sentence, and by journey Sequence sentence is labeled as branch statement, sequential statement.What branch statement included function and control statement starts over place, and control At the Rule of judgment of sentence processed;Sequential statement is one group does not have the continuous code segment of branch statement.
Classification of type module is used for the statement type according to Lexical Analysis Module output, and program code is divided into multiple generations Code block, described code block includes order block and branch's block, wherein:Described order block is one group of continuous code not having branch to judge Sentence, Kuai Shi branch of described branch judges the node of sentence, for the visualization of source code, i.e. Source control flow chart.Flow chart Needing to describe the control structure of source code by figure, so needing identified which Kuai Shi branch block, so just can draw out Standby sufficient Source control flow chart.
Structural identification module is used for analyzing the order block of described classification of type module output and branch's block in program code In logical place, block structure code adds the mark for representation program code logic structure.Mark is self-defining One group of constant, is a part for block coding, for identifying the structure of source code, respectively in the beginning of program (function);Control The beginning of sentence;Control statement body;At the end of program (function), (i.e. junction) is identified, and is characterized in by being easy to The mark understanding carrys out the logical construction of representation program code, source code piecemeal is encoded, is stored in digitized form In database, and provide data supporting for source code structures visualization.
Correct-by-construction module, the described block structure logical place that the analysis of correcting structure mark module obtains, generate description journey The block coding schedule of sequence logical construction.Correct-by-construction module is mainly used in some particular segment and special sentence (such as:Break etc.) Correction, make generated block not only accurately again as few as possible, improve the efficiency that the later stage processes, the block finally giving code encodes Table.Block coding schedule is the logical construction in order to describe program, for stating the structure pass of class, function, global variable, static variable The system and realization dynamic binding to program, is stored in database with digitized form, and provides for source code structures visualization Data supporting.
Optimize, above-mentioned a kind of based on use-case and the two-way test device reviewed of source code, described classification of type module bag Include:Intermediate form memory cell, intermediate form combining unit, order block confirmation unit, branch's block confirmation unit.Intermediate form is deposited Storage unit is used for storing intermediate form sentence.Intermediate form is exactly uncertain block type, generates in next control statement block Come to transform its type.The sentence that intermediate form combining unit exports in Lexical Analysis Module is non-branch statement, by this language Sentence is merged with the intermediate form sentence in intermediate form memory cell.Order block confirmation unit, if in intermediate form memory cell Intermediate form sentence be not empty, and the sentence of Lexical Analysis Module output is non-branch statement, then by this intermediate form language Sentence is labeled as an order block, and empties intermediate form memory cell;Branch's block confirmation unit, if Lexical Analysis Module output Sentence is branch statement, then this sentence is labeled as branch's block.
Optimize, above-mentioned a kind of based on use-case and the two-way test device reviewed of source code, described bi-directional association device bag Include:Code pitching pile module, implantable probe in the program code block after source code blocking devices are processed, described probe runs in program When can generate record have probe place code block mark test information;Use-case calling module, calls test case to execute Program to be tested, the test information that record probe produces;Associated codes module, according to the code block identification information in test information Set up the test case recording test case and code block incidence relation and block contingency table.
A kind of based on use-case and the two-way method of testing reviewed of source code, including:Source code blocking step, analyzes and obtains to be measured Code block in examination program, adds the block identification for identifying LCP in the described code block of program to be tested, Generate a block coding schedule being used for code block logical construction in description program;Bi-directional association step, calls test case to execute Program to be tested, the test information containing block identification that logging program produces in running, set up code block using this test information Execution data correlation table with test case;Relation rendering step, selects to assume test case and performed survey according to user Related information between examination program.
Optimize, above-mentioned a kind of based on use-case with the two-way method of testing reviewed of source code it is characterised in that also including root According to the relation between described code block, described code block is carried out by globality Butut the logic presenting based on hierarchical layout algorithm Rendering step.
Optimize, above-mentioned a kind of based on use-case and the two-way method of testing reviewed of source code, described source code blocking step bag Include:Morphological analysis step, the character stream treating test program is scanned and then identifies word and sentence, and by program statement mark It is designated as branch statement, sequential statement;Classification of type step, according to the statement type of morphological analysis step output, by program code It is divided into multiple code blocks, described code block includes order block and branch's block, wherein:Described order block is one group does not have branch to sentence Disconnected continuous code statement, Kuai Shi branch of described branch judges the node of sentence;Structural identification step, analyzes described classification of type Logical place in program code for the order block and branch's block of step output, adds for representing journey in block structure code The mark of sequence code logic structure;Correct-by-construction step, the described block structure logical bit that the analysis of correcting structure identification of steps obtains Put, generate the block coding schedule of description LCP.
Optimize, above-mentioned a kind of based on use-case and the two-way method of testing reviewed of source code, described classification of type step bag Include:Intermediate form stores sub-step, stores intermediate form sentence;Intermediate form merges sub-step, if the output of morphological analysis step Sentence be non-branch statement, then this sentence is merged with the intermediate form sentence in intermediate form storing step;Order block is true Recognize sub-step, if the intermediate form sentence in intermediate form memory cell is not empty, and the sentence of morphological analysis step output It is non-branch statement, then this intermediate form sentence is labeled as an order block, and empties intermediate form memory cell;Branch's block Confirm sub-step, if the sentence of morphological analysis step output is branch statement, this sentence is labeled as branch's block.
Optimize, above-mentioned a kind of based on use-case and the two-way method of testing reviewed of source code, described bi-directional association step bag Include:Code pitching pile step, implantable probe in the program code block after source code blocking devices are processed, described probe runs in program When can generate record have probe place code block mark test information;Use-case invocation step, calls test case to execute Program to be tested, the test information that record probe produces;Associated codes step, according to the code block identification information in test information Set up the test case recording test case and code block incidence relation and block contingency table.
Therefore, the invention has the advantages that:1st, link up smoothization:The exploitation details that be concerned about test and exploitation are concerned about Test detail completely visualize and share;2nd, result visualization:Record and show each logical block within program, condition And combinations thereof implementing result;3rd, test specification:By unit testing, functional test, integration testing, system testing each stage enter Row threading associates.
Brief description
Fig. 1 is the structure chart of the present invention.
Fig. 2 is code and use-case associated diagram in the embodiment of the present invention.
Specific embodiment
Below by embodiment, and combine accompanying drawing, technical scheme is described in further detail.
Embodiment:
As shown in Figure 1 a kind of based on use-case and the two-way test device reviewed of source code, including:Source code blocking devices, double Assume device to associated apparatus, relation.
Source code blocking devices are used for analyzing and obtaining the code block in program to be tested, in the code block of program to be tested Add the block identification for identifying LCP, generate a block coding being used for code block logical construction in description program Table.This source code blocking devices includes:
Lexical Analysis Module, the character stream treating test program is scanned and then identifies word and sentence, and by program Sentence is labeled as branch statement, sequential statement;
Classification of type module, according to the statement type of Lexical Analysis Module output, program code is divided into multiple codes Block, code block includes order block and branch's block, wherein:Order block is one group of continuous code statement not having branch to judge, branch Kuai Shi branch judges the node of sentence.This sort module further includes:Intermediate form memory cell, intermediate form merge single Unit, order block confirmation unit, branch's block confirmation unit.Intermediate form memory cell is used for storing intermediate form sentence;Intermediate The sentence that type combining unit works as Lexical Analysis Module output is non-branch statement, by this sentence and intermediate form memory cell Intermediate form sentence merges;Order block confirmation unit is not empty when the intermediate form sentence in middle type storage unit, and The sentence of Lexical Analysis Module output is non-branch statement, this intermediate form sentence is labeled as an order block, and empties Between type storage unit;Branch's block confirms that the sentence of Lexical Analysis Module output is branch statement, and this sentence is labeled as one Branch's block.
Structural identification module, logic in program code for the order block and branch's block that analysis type sort module exports Position, adds the mark for representation program code logic structure in block structure code;
Correct-by-construction module, the block structure logical place that the analysis of correcting structure mark module obtains, generate description program and patrol Collect the block coding schedule of structure.
The bi-directional association device of the present embodiment is used for calling test case to execute program to be tested, and logging program produces in running The raw test information containing block identification, sets up the execution data correlation table of code block and test case using this test information. This bi-directional association device includes:Code pitching pile module, use-case calling module, associated codes module.Code pitching pile module is used for Implantable probe in program code block after the process of source code blocking devices, probe can generate record when program is run probe institute Test information in the mark of code block;Use-case calling module is used for calling test case to execute program to be tested, records probe The test information producing;Associated codes module is used for setting up record test case according to the code block identification information in test information Test case and block contingency table with code block incidence relation.
The information format that the present embodiment probe produces is " file ID+space+block index+space+version sequence number+space+block Execution number of times ".Wherein block index is the block identification that source code blocking devices produce.Associated codes module extracts block rope from information Draw ID with test case it is established that test case and block contingency table, as shown in Figure 2.
The relation of the present embodiment assumes device for selecting to assume test case and performed test program according to user Between related information.
After said structure, carry out the two-way method of testing reviewed using the present embodiment and include:
Source code blocking step, analyzes and obtains the code block in program to be tested, adds in the code block of program to be tested Plus for identifying the block identification of LCP, generate a block coding being used for code block logical construction in description program Table;This source code blocking step includes:Morphological analysis step, treat test program character stream be scanned then identify word and Sentence, and program statement is labeled as branch statement, non-branch sentence and END;Classification of type step, divides according to morphology The statement type of analysis step output, program code is divided into multiple code blocks, code block includes order block and branch's block, its In:Order block is one group of continuous code statement not having branch to judge, Kuai Shi branch of branch judges the node of sentence;Wherein, class Type classifying step includes:Intermediate form stores sub-step, stores intermediate form sentence;Intermediate form merges sub-step, if morphology The sentence of analytical procedure output is non-branch statement, then close this sentence with the intermediate form sentence in intermediate form storing step And;Order block confirms sub-step, if the intermediate form sentence in intermediate form memory cell is not empty, and morphological analysis step The sentence of output is non-branch statement, then this intermediate form sentence is labeled as an order block, and empties intermediate form storage Unit;Branch's block confirms sub-step, if the sentence of morphological analysis step output is branch statement, this sentence is labeled as one Branch's block;Structural identification step, logic in program code for the order block and branch's block that analysis type classifying step exports Position, adds the mark for representation program code logic structure in block structure code;Correct-by-construction step, correcting structure mark Know the block structure logical place that step analysis obtains, generate the block coding schedule of description LCP.
Bi-directional association step, call test case execute program to be tested, logging program run in produce containing block mark The test information known, sets up the execution data correlation table of code block and test case using this test information;Relation rendering step, Select to assume the related information between test case and performed test program according to user.The bi-directional association step of the present embodiment Rapid inclusion:Code pitching pile step, implantable probe in the program code block after source code blocking devices are processed, probe runs in program When can generate record have probe place code block mark test information;Use-case invocation step, calls test case to execute Program to be tested, the test information that record probe produces;Associated codes step, according to the code block identification information in test information Set up the test case recording test case and code block incidence relation and block contingency table.
Relation rendering step, selects to present to associate letter between test case and performed test program according to user Breath.
Optimize as a kind of, can also increase by a logic in the present embodiment and assume device, this device can be according to code The logic that code block carries out globality Butut and presents is assumed device based on hierarchical layout algorithm by the relation between block.
After above structure, this embodiment can realize following functions:
1. erect the bridge of gapless communication between tester and developer;Tester run a use-case when Wait, discovery feature malfunctions, developer just with positive tracing function, can go the details of analysis program operation and finally determine wrong Reason by mistake.And classical scenario, it is that developer needs the detailed operating process and the |input paramete that inquire tester, and Oneself try every possible means to reappear, it is difficult to ensure that developer is consistent with the scene that tester runs, the cost of communication is very for this process High.By two-way trace-back technique, the result the most detailed of tester's use-case execution can be directly shared in exploitation, including path, Situations such as program execution conditions.Reach real-time gapless communication.Developer, when code will be modified, can pass through The use-case that tester establishes and code corresponding relation, to execute reverse code uniformity modification, that is, to see certain line program Which test case of code is related.Equally regression tested scope can be determined from tester using inversely reviewing, that is, when seeing After changing, by inversely reviewing, determine the scope of the test use cases needing to re-execute to some code logic.This point Very crucial, because tester provides valuable data for exploitation, the relation making the two is become tight by this Close and harmonious.
2nd, guiding exploitation and test cooperation complete key module 100% coverage rate test;This technology allows developer With tester it can be seen that whether each logical block within program, each condition and combinations thereof have execution, emphasis mould Use-case fully and whether there is test leakage to block, thus can effectively guide exploitation and tester can together with to The assessment that example is augmented, until reaching sufficient coverage rate.The effect of this technology is exploitation details test being concerned about, And exploitation be concerned about test detail accomplish completely to visualize and share.Developer and tester can be shared and be each responsible for The test result in stage, developer can also examine to the situation of the use-case of tester's execution, because exploitation is generally The complex logic of very clear program and key logic are located, and they are existed by the use-case that this technology can be found that tester Weak link, have this result, exploitation is easier active and tester's cooperation completes high covering, high-quality survey Examination.
3rd, in the unit testing of exploitation concern, the functional test of test concern, integration testing, system testing each stage are carried out Threading associates.The unit testing generally dominated by developer is sightless for tester, and unit testing is typically Test enters precondition and the permit standard of professional test personnel adapter, and tester can be by the developer of storage Unit testing use-case result, carry out requirement developer to submit version to according to set specification, tight to developer's version Lattice require to be to be effectively ensured, to this software quality, the progress that also ensure that test.Otherwise a lot of lower level error can lead to survey Examination personnel lose the confidence for version quality and also can bring very big obstacle to test job.Another angle, tester Can just some non-key modules can be carried out quick and quick only in the case of the result of shared development block test Test, because tester can consider that the module abundant unit testing having been carried out for exploitation can be solely focused on main flow Journey and need not more pay close attention to procedure boundaries, by test data sharing, exploitation and test can be helped each other and be interdepended.
Specific embodiment described herein is only explanation for example to present invention spirit.The affiliated technology of the present invention is led The technical staff in domain can be made various modifications or supplement or replaced using similar mode to described specific embodiment Generation, but the spirit without departing from the present invention or surmount scope defined in appended claims.

Claims (8)

1. a kind of based on use-case and the two-way test device reviewed of source code it is characterised in that including:
Source code blocking devices, analyze and obtain the code block in program to be tested, add in the described code block of program to be tested Plus for identifying the block identification of LCP, generate a block coding being used for code block logical construction in description program Table;
Bi-directional association device, call test case to execute program to be tested, logging program produce in running containing block identification Test information, sets up the execution data correlation table of code block and test case using this test information;
Relation assumes device, selects to assume the related information between test case and performed test program according to user;
Described source code blocking devices include:
Lexical Analysis Module, the character stream treating test program is scanned and then identifies word and sentence, and by program statement It is labeled as branch statement, non-branch sentence and END;
Classification of type module, according to the statement type of Lexical Analysis Module output, program code is divided into multiple code blocks, institute State code block and include continuous blocks and branch's block, wherein:Described continuous blocks are one group of continuous code statements not having branch to judge, institute State the node that Kuai Shi branch of branch judges sentence;
Structural identification module, logic in program code for the continuous blocks and branch's block that the described classification of type module of analysis exports Position, adds the mark for representation program code logic structure in block structure code;
Correct-by-construction module, the described block structure logical place that the analysis of correcting structure mark module obtains, generate description program and patrol Collect the block coding schedule of structure.
2. according to claim 1 a kind of based on the two-way test device reviewed of use-case and source code it is characterised in that also wrapping Described code block is carried out globality Butut based on hierarchical layout algorithm and presents by the relation between including according to described code block Logic assumes device.
3. according to claim 1 a kind of based on the two-way test device reviewed of use-case and source code it is characterised in that described Classification of type module includes:
Intermediate form memory cell, stores intermediate form sentence;
Intermediate form combining unit, if the sentence of Lexical Analysis Module output is non-branch statement and non-END, should Sentence is merged with the intermediate form sentence in intermediate form memory cell;
Continuous blocks confirmation unit, if the intermediate form sentence in intermediate form memory cell is not empty, and Lexical Analysis Module The sentence of output is branch statement or END, then this intermediate form sentence is labeled as continuous blocks, and empties centre Type storage unit;
Branch's block confirmation unit, if the intermediate form sentence in intermediate form memory cell is sky, and Lexical Analysis Module is defeated The sentence going out is branch statement, then this sentence is labeled as branch's block.
4. according to claim 1 a kind of based on the two-way test device reviewed of use-case and source code it is characterised in that described Bi-directional association device includes:
Code pitching pile module, implantable probe in the program code block after source code blocking devices are processed, described probe is transported in program The test information that record has the mark of probe place code block can be generated during row;
Use-case calling module, calls test case to execute program to be tested, the test information that record probe produces;
Associated codes module, is set up record test case according to the code block identification information in test information and is associated with code block The test case of system and block contingency table.
5. a kind of based on use-case and the two-way method of testing reviewed of source code it is characterised in that including:
Source code blocking step, analyzes and obtains the code block in program to be tested, adds in the described code block of program to be tested Plus for identifying the block identification of LCP, generate a block coding being used for code block logical construction in description program Table;
Bi-directional association step, call test case to execute program to be tested, logging program produce in running containing block identification Test information, sets up the execution data correlation table of code block and test case using this test information;
Relation rendering step, selects to assume the related information between test case and performed test program according to user;
Described source code blocking step includes:
Morphological analysis step, the character stream treating test program is scanned and then identifies word and sentence, and by program statement It is labeled as branch statement, non-branch sentence and END;
Classification of type step, according to the statement type of morphological analysis step output, program code is divided into multiple code blocks, institute State code block and include continuous blocks and branch's block, wherein:Described continuous blocks are one group of continuous code statements not having branch to judge, institute State the node that Kuai Shi branch of branch judges sentence;
Structural identification step, logic in program code for the continuous blocks and branch's block that the described classification of type step of analysis exports Position, adds the mark for representation program code logic structure in block structure code;
Correct-by-construction step, the described block structure logical place that the analysis of correcting structure identification of steps obtains, generate description program and patrol Collect the block coding schedule of structure.
6. according to claim 5 a kind of based on the two-way method of testing reviewed of use-case and source code it is characterised in that also wrapping Described code block is carried out globality Butut based on hierarchical layout algorithm and presents by the relation between including according to described code block Logic rendering step.
7. according to claim 5 a kind of based on the two-way method of testing reviewed of use-case and source code it is characterised in that described Classification of type step includes:
Intermediate form stores sub-step, stores intermediate form sentence;
Intermediate form merges sub-step, if the sentence of morphological analysis step output is non-branch statement and non-END, will This sentence is merged with the intermediate form sentence in intermediate form storing step;
Continuous blocks confirm sub-step, if the intermediate form sentence in intermediate form memory cell is not empty, and morphological analysis step The sentence of rapid output is branch statement or END, then this intermediate form sentence is labeled as continuous blocks, and empties Between type storage unit;
Branch's block confirms sub-step, if the intermediate form sentence in intermediate form memory cell is sky, and morphological analysis step The sentence of output is branch statement, then this sentence is labeled as branch's block.
8. according to claim 5 a kind of based on the two-way method of testing reviewed of use-case and source code it is characterised in that described Bi-directional association step includes:
Code pitching pile step, implantable probe in the program code block after source code blocking devices are processed, described probe is transported in program The test information that record has the mark of probe place code block can be generated during row;
Use-case invocation step, calls test case to execute program to be tested, the test information that record probe produces;
Associated codes step, is set up record test case according to the code block identification information in test information and is associated with code block The test case of system and block contingency table.
CN201410345813.4A 2014-07-21 2014-07-21 Testing device and method based on use case and source code two-way tracing Active CN104077232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410345813.4A CN104077232B (en) 2014-07-21 2014-07-21 Testing device and method based on use case and source code two-way tracing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410345813.4A CN104077232B (en) 2014-07-21 2014-07-21 Testing device and method based on use case and source code two-way tracing

Publications (2)

Publication Number Publication Date
CN104077232A CN104077232A (en) 2014-10-01
CN104077232B true CN104077232B (en) 2017-02-22

Family

ID=51598500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410345813.4A Active CN104077232B (en) 2014-07-21 2014-07-21 Testing device and method based on use case and source code two-way tracing

Country Status (1)

Country Link
CN (1) CN104077232B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699605B (en) * 2015-03-02 2017-11-17 清华大学 The code coverage measuring method and device of a kind of driver
CN104915296B (en) * 2015-06-29 2018-07-10 北京金山安全软件有限公司 Buried point testing method, data query method and device
CN105528293B (en) * 2015-12-14 2018-01-16 苏州洞察云信息技术有限公司 A kind of system and method that test case is chosen for regression test
CN107967216B (en) * 2017-12-18 2020-07-10 网易(杭州)网络有限公司 Code detection method and device, equipment and computer readable storage medium
CN109710508B (en) * 2018-08-20 2024-03-15 天航长鹰(江苏)科技有限公司 Test method, test device, test apparatus, and computer-readable storage medium
CN110750459B (en) * 2019-10-23 2023-10-20 天津汇缘诚信科技有限公司 Automatic test case generation and test process management method based on white box analysis
CN113032240A (en) * 2019-12-09 2021-06-25 中车时代电动汽车股份有限公司 Software test automation management system and method
CN112613894B (en) * 2020-12-31 2024-04-16 中国农业银行股份有限公司 Method and device for associating source code with product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908892A (en) * 2005-08-01 2007-02-07 王彤 System and method for test examples design
CN1908893A (en) * 2005-08-01 2007-02-07 王彤 Programmed logic structure graphic method and program track static method
CN102419728A (en) * 2011-11-01 2012-04-18 北京邮电大学 Method for determining software test process sufficiency based on coverage rate quantitative indicators
CN103218299A (en) * 2013-05-17 2013-07-24 网宿科技股份有限公司 Automatic generating method and system of optimized ant colony algorithm test case
CN103473171A (en) * 2013-08-28 2013-12-25 北京信息科技大学 Coverage rate dynamic tracking method and device based on function call paths

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8813035B2 (en) * 2012-02-29 2014-08-19 International Business Machines Corporation Paradigm for concurrency testcase generation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908892A (en) * 2005-08-01 2007-02-07 王彤 System and method for test examples design
CN1908893A (en) * 2005-08-01 2007-02-07 王彤 Programmed logic structure graphic method and program track static method
CN102419728A (en) * 2011-11-01 2012-04-18 北京邮电大学 Method for determining software test process sufficiency based on coverage rate quantitative indicators
CN103218299A (en) * 2013-05-17 2013-07-24 网宿科技股份有限公司 Automatic generating method and system of optimized ant colony algorithm test case
CN103473171A (en) * 2013-08-28 2013-12-25 北京信息科技大学 Coverage rate dynamic tracking method and device based on function call paths

Also Published As

Publication number Publication date
CN104077232A (en) 2014-10-01

Similar Documents

Publication Publication Date Title
CN104077232B (en) Testing device and method based on use case and source code two-way tracing
CN110764753B (en) Business logic code generation method, device, equipment and storage medium
CN102331967B (en) Method for managing chip verification test cases
US7721252B2 (en) Apparatus and method for product-line architecture description and verification
US8627290B2 (en) Test case pattern matching
CN103336760B (en) A kind of method and device based on reverse-engineering automatic generating software document
CN107506300A (en) A kind of ui testing method, apparatus, server and storage medium
CN105302719B (en) A kind of mutation testing method and device
CN106415504B (en) Test cases technology system and the recording medium for recording test case
CN110458168A (en) Processing method, device, computer equipment and the storage medium of vehicle detection report
CN107665168A (en) A kind of embedded software GUI automated test devices
CN109992498A (en) Generation method and system, the computer system of test case
CN104035873A (en) Method and device for generating testing codes
CN106445801A (en) Method for positioning software defects on basis of frequency spectrum positioning and visualization
CN103294596A (en) Early warning method for contract-type software fault based on program invariants
CN106407112A (en) Automatic testing method based on Selenium and TestNG
CN115080448B (en) Method and device for automatically detecting inaccessible path of software code
CN103218297B (en) The screening technique and device of test data
US8468512B2 (en) Abstracting benefit rules from computer code
CN106598843B (en) A kind of software log behavior automatic identifying method based on program analysis
CN104331361B (en) A kind of test device and method for white-box testing coverage rate calculation visualization
CN109947642A (en) Automated hierarchical test method based on case classification, apparatus and system
CN106681909A (en) Online transaction fault locating method and device
CN110399284A (en) A kind of test case writes and executes method and device
CN104077669B (en) The universal method that a kind of autonomous customization of computer operation stream is performed with driving

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20170224

Address after: 215129 Jiangsu province Suzhou Jinfeng Road No. 216 East Technology Park building B2 room 706

Patentee after: SUZHOU DONGCHAYUN INFORMATION TECHNOLOGY CO., LTD.

Address before: 201203 Shanghai City, Pudong New Area Zhangjiang hi tech park fanchun Road No. 400 Building 1 room 301-68

Patentee before: The assembled Information Technology Co., Ltd in Shanghai 01