CN104077232A - 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
CN104077232A
CN104077232A CN201410345813.4A CN201410345813A CN104077232A CN 104077232 A CN104077232 A CN 104077232A CN 201410345813 A CN201410345813 A CN 201410345813A CN 104077232 A CN104077232 A CN 104077232A
Authority
CN
China
Prior art keywords
statement
code
piece
branch
program
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
Application number
CN201410345813.4A
Other languages
Chinese (zh)
Other versions
CN104077232B (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 proving installation of reviewing of source code and method
Technical field
The present invention relates to a kind of device and method of surveying, be mainly used in software test, be specifically related to a kind of based on use-case and the two-way proving installation of reviewing of source code and method.
Background technology
At present in software test procedure, between development& testing personnel, be difficult to interactive and cooperation fully, and in the time that tester carries out Black-box Testing, owing to cannot knowing structure and the situation of program internal operation, thereby cause tester and developer all cannot know that whether the use-case of oneself is abundant.In addition, on the one hand, because developer can not explain detailed programmed logic to tester conventionally, cause tester cannot design complete test case, be difficult to sufficient test; And on the other hand, tester introduces test case conventionally can to developer in detail yet, thereby cause developer and do not know the concrete corresponding program actuating logic of test case.Telecoms gap between this exploitation and tester, a lot of low staging error producing while causing developing makes tester lose the confidence and also can bring very large obstacle to test job for version quality.Make efficiency and the quality of test can not get ensureing, the software application process after being is even buried huge hidden danger.
Summary of the invention
The present invention is mainly the technical matters that solves prior art existing " developer and tester's information isolate and cause testing insufficient ", provides a kind of based on use-case and the two-way proving installation of reviewing of source code and method.Adopt this device and method, the test detail that the exploitation details that test can be concerned about and exploitation are concerned about is visual and shared completely; Can also record the also execution result of each logical block, condition and the combination thereof of display routine inside simultaneously; And can be by unit testing, each stages such as functional test, integration testing, system testing are carried out threading association.
Above-mentioned technical matters of the present invention is mainly solved by following technical proposals:
A kind of based on use-case and the two-way proving installation of reviewing of source code, comprise: source code blocking devices, analyze and obtain the code block in program to be tested, in the described code block of program to be tested, add the block identification for identifying LCP, generate a piece coding schedule for description program code block logical organization; Bi-directional association device, calls test case and carries out program to be tested, and the detecting information that contains block identification of logging program generation in service utilizes this detecting information to set up the executing data contingency table of code block and test case; Relation presents device, selects to present the related information between test case and performed test procedure according to user.
Optimize, above-mentioned is a kind of based on use-case and the two-way proving installation of reviewing of source code, also comprises that the logic of based on hierarchical layout algorithm, described code block being carried out to globality Butut according to the relation between described code block and present presents device.Wherein, " hierarchical layout algorithm " is referring to " the CHANNEL OPTIMIZATION Routing Algorithm of dynamically adjusting with program scale, Hu Kaibao etc., computer utility, 2014,33 (4), on April 1st, 2013 ".
Optimize, above-mentioned is a kind of based on use-case and the two-way proving installation of reviewing of source code, and described source code blocking devices comprises: Lexical Analysis Module, classification of type module, structural identification module, correct-by-construction module.
Lexical Analysis Module scans then identified word and statement for the character stream for the treatment of test procedure, and program statement is labeled as to branch statement, order statement.Branch statement comprises the beginning end of function and control statement, and the Rule of judgment place of control statement; Order statement is one group of continuous code segment that there is no branch statement.
The statement type of classification of type module for exporting according to Lexical Analysis Module, program code is divided into multiple code blocks, described code block comprises order piece and branch's piece, wherein: described order piece is one group of continuous code statement that there is no branch's judgement, Kuai Shi branch of described branch judges the node of statement, be used for the visual of source code, i.e. Source control process flow diagram.Process flow diagram need to be described by figure the control structure of source code, so need to identify which Kuai Shi branch piece, so just can draw out complete sufficient Source control process flow diagram.
Structural identification module, for analyzing the order piece of described classification of type module output and branch's piece at the logical place of program code, is added the mark for representation program code logic structure in block structure code.Mark is self-defining one group of constant, is a part for piece coding, for the structure of identification sources code, respectively in the beginning of program (function); The beginning of control statement; Control statement body; End's (being junction) of program (function) identifies, be characterized in coming by understandable mark the logical organization of representation program code, source code piecemeal is encoded, be stored in database with digitized form, 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 identification module obtains, generates the piece coding schedule of describing LCP.Correct-by-construction module is mainly used in the correction to some particular segment and special statement (as: break etc.), makes generated piece not only accurately but also the least possible, improves the efficiency of post-processed, finally obtains the piece coding schedule of code.Piece coding schedule is the logical organization in order to describe program, be used for explaining the structural relation of class, function, global variable, static variable and realize the dynamic binding to program, be stored in database with digitized form, and provide data supporting for source code structures visualization.
Optimize, above-mentioned is a kind of based on use-case and the two-way proving installation of reviewing of source code, and described classification of type module comprises: intermediate form storage unit, intermediate form merge cells, order piece confirmation unit, branch's piece confirmation unit.Intermediate form storage unit is used for storing intermediate form statement.Intermediate form is exactly uncertain block type, before next control statement piece generates, transforms its type.Intermediate form merge cells is non-branch statement at the statement of Lexical Analysis Module output, and the intermediate form statement in this statement and intermediate form storage unit is merged.Order piece confirmation unit, if the intermediate form statement in intermediate form storage unit be empty, and the statement of Lexical Analysis Module output is non-branch statement, this intermediate form statement is labeled as to a sequentially piece, and empties intermediate form storage unit; Branch's piece confirmation unit, if the statement of Lexical Analysis Module output is branch statement, is labeled as this statement branch's piece.
Optimize, above-mentioned is a kind of based on use-case and the two-way proving installation of reviewing of source code, described bi-directional association device comprises: code pitching pile module, implantable probe in source code blocking devices program code piece after treatment, described probe can generate the detecting information of the mark that records probe place code block in the time that program is moved; Use-case calling module, calls test case and carries out program to be tested, records the detecting information that probe produces; Associated codes module, sets up the test case and the piece contingency table that record test case and code block incidence relation according to the code block identification information in detecting information.
A kind of based on use-case and the two-way method of testing of reviewing of source code, comprise: source code piecemeal step, analyze and obtain the code block in program to be tested, in the described code block of program to be tested, add the block identification for identifying LCP, generate a piece coding schedule for description program code block logical organization; Bi-directional association step, calls test case and carries out program to be tested, and the detecting information that contains block identification of logging program generation in service utilizes this detecting information to set up the executing data contingency table of code block and test case; Be related to rendering step, select to present the related information between test case and performed test procedure according to user.
Optimize, above-mentioned a kind ofly it is characterized in that based on use-case and the two-way method of testing of reviewing of source code, also comprise the logic rendering step that based on hierarchical layout algorithm, described code block is carried out to globality Butut and presents according to the relation between described code block.
Optimize, above-mentioned is a kind of based on use-case and the two-way method of testing of reviewing of source code, described source code piecemeal step comprises: lexical analysis step, and the character stream for the treatment of test procedure scans then identified word and statement, and program statement is labeled as to branch statement, order statement; Classification of type step, according to the statement type of lexical analysis step output, program code is divided into multiple code blocks, described code block comprises order piece and branch's piece, wherein: described order piece is one group of continuous code statement that there is no branch's judgement, and Kuai Shi branch of described branch judges the node of statement; Structural identification step, analyzes order piece and the logical place of branch's piece in program code that described classification of type step is exported, 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, generates the piece coding schedule of describing LCP.
Optimize, above-mentioned is a kind of based on use-case and the two-way method of testing of reviewing of source code, and described classification of type step comprises: intermediate form storage sub-step, storage intermediate form statement; Intermediate form merges sub-step, if the statement of lexical analysis step output is non-branch statement, the intermediate form statement in this statement and intermediate form storing step is merged; Order piece is confirmed sub-step, if the intermediate form statement in intermediate form storage unit be empty, and the statement of lexical analysis step output is non-branch statement, this intermediate form statement is labeled as to a sequentially piece, and empties intermediate form storage unit; Branch's piece is confirmed sub-step, if the statement of lexical analysis step output is branch statement, this statement is labeled as to branch's piece.
Optimize, above-mentioned is a kind of based on use-case and the two-way method of testing of reviewing of source code, described bi-directional association step comprises: code pitching pile step, implantable probe in source code blocking devices program code piece after treatment, described probe can generate the detecting information of the mark that records probe place code block in the time that program is moved; Use-case invocation step, calls test case and carries out program to be tested, records the detecting information that probe produces; Associated codes step, sets up the test case and the piece contingency table that record test case and code block incidence relation according to the code block identification information in detecting information.
Therefore, tool of the present invention has the following advantages: 1, link up smooth and easyization: the test detail that the exploitation details that test is concerned about and exploitation are concerned about is visual and shared completely; 2, result visualization: the execution result of each logical block, condition and the combination thereof of record display routine inside; 3, test specification: by unit testing, functional test, integration testing, each stage of system testing are carried out threading association.
Brief description of the drawings
Fig. 1 is structural drawing of the present invention.
Fig. 2 is code and use-case associated diagram in the embodiment of the present invention.
Embodiment
Below by embodiment, and by reference to the accompanying drawings, technical scheme of the present invention is described in further detail.
Embodiment:
As shown in Figure 1 a kind of based on use-case and the two-way proving installation of reviewing of source code, comprising: source code blocking devices, bi-directional association device, relation present device.
Source code blocking devices, for analyzing and obtain the code block of program to be tested, is added the block identification for identifying LCP in the code block of program to be tested, generates a piece coding schedule for description program code block logical organization.This source code blocking devices comprises:
Lexical Analysis Module, the character stream for the treatment of test procedure scans then identified word and statement, and program statement is labeled as to branch statement, order statement;
Classification of type module, according to the statement type of Lexical Analysis Module output, program code is divided into multiple code blocks, code block comprises order piece and branch's piece, wherein: order piece is one group of continuous code statement that there is no branch's judgement, and Kuai Shi branch of branch judges the node of statement.This sort module further comprises: intermediate form storage unit, intermediate form merge cells, order piece confirmation unit, branch's piece confirmation unit.Intermediate form storage unit is used for storing intermediate form statement; Intermediate form merge cells, when the statement of Lexical Analysis Module output is non-branch statement, merges the intermediate form statement in this statement and intermediate form storage unit; Order piece confirmation unit when the intermediate form statement in middle type stores unit be empty, and the statement of Lexical Analysis Module output is non-branch statement, this intermediate form statement is labeled as to a sequentially piece, and empties intermediate form storage unit; Branch's piece confirms that the statement of Lexical Analysis Module output is branch statement, and this statement is labeled as to branch's piece.
Structural identification module, order piece and the logical place of branch's piece in program code of the output of analysis type sort module add 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 identification module obtains, generates the piece coding schedule of describing LCP.
The bi-directional association device of the present embodiment is used for calling test case and carries out program to be tested, and the detecting information that contains block identification of logging program generation in service utilizes this detecting information to set up the executing data contingency table of code block and test case.This bi-directional association device comprises: code pitching pile module, use-case calling module, associated codes module.Code pitching pile module is used at source code blocking devices program code piece after treatment implantable probe, and probe can generate the detecting information of the mark that records probe place code block in the time that program is moved; Use-case calling module is used for calling test case and carries out program to be tested, records the detecting information that probe produces; Associated codes module is for setting up the test case and the piece contingency table that record test case and code block incidence relation according to the code block identification information of detecting information.
The information format that the present embodiment probe produces is " file ID+space+piece index+space+version sequence number+space+piece is carried out number of times ".Wherein piece index is the block identification that source code blocking devices produces.Associated codes module extracts the ID of piece index and test case from information, the test case of setting up and the contingency table of piece, as shown in Figure 2.
The relation of the present embodiment presents device for select to present the related information between test case and performed test procedure according to user.
Adopt after said structure, utilize the present embodiment to carry out two-way method of testing of reviewing and comprise:
Source code piecemeal step, analyzes and obtains the code block in program to be tested, adds the block identification for identifying LCP in the code block of program to be tested, generates a piece coding schedule for description program code block logical organization; This source code piecemeal step comprises: lexical analysis step, and the character stream for the treatment of test procedure scans then identified word and statement, and program statement is labeled as to branch statement, non-branch statement and end statement; Classification of type step, according to the statement type of lexical analysis step output, program code is divided into multiple code blocks, code block comprises order piece and branch's piece, wherein: order piece is one group of continuous code statement that there is no branch's judgement, and Kuai Shi branch of branch judges the node of statement; Wherein, classification of type step comprises: intermediate form storage sub-step, storage intermediate form statement; Intermediate form merges sub-step, if the statement of lexical analysis step output is non-branch statement, the intermediate form statement in this statement and intermediate form storing step is merged; Order piece is confirmed sub-step, if the intermediate form statement in intermediate form storage unit be empty, and the statement of lexical analysis step output is non-branch statement, this intermediate form statement is labeled as to a sequentially piece, and empties intermediate form storage unit; Branch's piece is confirmed sub-step, if the statement of lexical analysis step output is branch statement, this statement is labeled as to branch's piece; Structural identification step, order piece and the logical place of branch's piece in program code of the output of analysis type classifying step add the mark for representation program code logic structure in block structure code; Correct-by-construction step, the block structure logical place that the analysis of correcting structure identification of steps obtains, generates the piece coding schedule of describing LCP.
Bi-directional association step, calls test case and carries out program to be tested, and the detecting information that contains block identification of logging program generation in service utilizes this detecting information to set up the executing data contingency table of code block and test case; Be related to rendering step, select to present the related information between test case and performed test procedure according to user.The bi-directional association step of the present embodiment comprises: code pitching pile step, and implantable probe in source code blocking devices program code piece after treatment, probe can generate the detecting information of the mark that records probe place code block in the time that program is moved; Use-case invocation step, calls test case and carries out program to be tested, records the detecting information that probe produces; Associated codes step, sets up the test case and the piece contingency table that record test case and code block incidence relation according to the code block identification information in detecting information.
Be related to rendering step, select to present the related information between test case and performed test procedure according to user.
As one optimization, can also increase in the present embodiment by a logic and present device, this device can carry out globality Butut based on hierarchical layout algorithm by code block according to the relation between code block and the logic that presents presents device.
Adopt after above structure, this embodiment can realize following functions:
1. erect the bridge of gapless communication between tester and developer; When tester moves a use-case, discovery feature is made mistakes, and developer just can use forward tracing function, removes details final definite error reason of routine analyzer operation.And traditional scene is that developer needs the detailed operating process that inquires tester and input parameter, and oneself try every possible means to reappear, this process is difficult to ensure that developer is consistent with the scene of tester's operation, and the cost of communication is very high.By two-way trace-back technique, the most detailed result that tester's use-case is carried out can be directly shared in exploitation, comprises path, the situations such as program execution conditions.Reach real-time gapless communication.Developer is in the time will modifying to code, and the use-case that can establish by tester and code corresponding relation, carry out reverse code consistance amendment, sees that certain which test case of line program code is relevant.Can utilize equally reverse reviewing from tester, determine regression tested scope, after ought seeing some code logic variation, review by reverse, determine the scope of the test use cases that need to re-execute.This point is very crucial, because provide valuable data for exploitation tester, this becomes tight and harmonious by the relation that makes the two.
2, guiding exploitation has been cooperated core key modules 100% coverage rate test with test; This technology allows developer and tester can see whether each logical block of program inside, each condition and combination thereof have execution, use-case is fully and whether have a test leakage for emphasis module, so just can effectively guide exploitation and tester can together with assessment that use-case is augmented, until reach sufficient coverage rate.The effect of this technology is the exploitation details that test can be concerned about, and the test detail that exploitation is concerned about is accomplished visual and shared completely.Allow developer and tester can share the test result of being responsible for separately the stage, the situation of the use-case that developer also can carry out tester is examined, because complex logic and the key logic place of program are known in exploitation conventionally very much, they can find by this technology the weak link that tester's use-case exists, had this result, that develops more easily active has coordinated high covering, high-quality test with tester.
3, the unit testing of paying close attention in exploitation, each stage of functional test, integration testing, system testing that test is paid close attention to is carried out threading association.Conventionally the unit testing of being dominated by developer is sightless for tester, and the precondition and the permit standard that enter professional test personnel adapter are normally tested in unit testing, tester can be by the developer's of storage unit testing use-case result, carrying out requirement developer and submit version to according to set specification, is the progress that also can ensure test to effective guarantee of this software quality to the strict demand of developer's version.Otherwise a lot of low staging error meetings cause tester to lose the confidence and also can bring very large obstacle to test job for version quality.Another angle, tester can be only in the case of sharing the result of development block test, just can carry out fast and quick test some non-key modules, because tester can think that the module of having carried out abundant unit testing for exploitation can only be paid close attention to main flow without more concern program border, by test data sharing, development& testing can be helped each other and interdepend.
Specific embodiment described herein is only to the explanation for example of the present invention's spirit.Those skilled in the art can make various amendments or supplement or adopt similar mode to substitute described specific embodiment, but can't depart from spirit of the present invention or surmount the defined scope of appended claims.

Claims (10)

1. based on use-case and the two-way proving installation of reviewing of source code, it is characterized in that, comprising:
Source code blocking devices, analyzes and obtains the code block in program to be tested, adds the block identification for identifying LCP in the described code block of program to be tested, generates a piece coding schedule for description program code block logical organization;
Bi-directional association device, calls test case and carries out program to be tested, and the detecting information that contains block identification of logging program generation in service utilizes this detecting information to set up the executing data contingency table of code block and test case;
Relation presents device, selects to present the related information between test case and performed test procedure according to user.
2. according to claim 1 a kind of based on use-case and the two-way proving installation of reviewing of source code, it is characterized in that, also comprise that the logic of based on hierarchical layout algorithm, described code block being carried out to globality Butut according to the relation between described code block and present presents device.
3. according to claim 1 a kind ofly it is characterized in that based on use-case and the two-way proving installation of reviewing of source code, described source code blocking devices comprises:
Lexical Analysis Module, the character stream for the treatment of test procedure scans then identified word and statement, and program statement is labeled as to branch statement, order statement;
Classification of type module, according to the statement type of Lexical Analysis Module output, program code is divided into multiple code blocks, described code block comprises order piece and branch's piece, wherein: described order piece is one group of continuous code statement that there is no branch's judgement, and Kuai Shi branch of described branch judges the node of statement;
Structural identification module, analyzes order piece and the logical place of branch's piece in program code that described classification of type module is exported, 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 identification module obtains, generates the piece coding schedule of describing LCP.
4. according to claim 3 a kind ofly it is characterized in that based on use-case and the two-way proving installation of reviewing of source code, described classification of type module comprises:
Intermediate form storage unit, storage intermediate form statement;
Intermediate form merge cells, if the statement of Lexical Analysis Module output is non-branch statement, merges the intermediate form statement in this statement and intermediate form storage unit;
Order piece confirmation unit, if the intermediate form statement in intermediate form storage unit be empty, and the statement of Lexical Analysis Module output is non-branch statement, this intermediate form statement is labeled as to a sequentially piece, and empties intermediate form storage unit;
Branch's piece confirmation unit, if the statement of Lexical Analysis Module output is branch statement, is labeled as this statement branch's piece.
5. according to claim 1 a kind ofly it is characterized in that based on use-case and the two-way proving installation of reviewing of source code, described bi-directional association device comprises:
Code pitching pile module, implantable probe in source code blocking devices program code piece after treatment, described probe can generate the detecting information of the mark that records probe place code block in the time that program is moved;
Use-case calling module, calls test case and carries out program to be tested, records the detecting information that probe produces;
Associated codes module, sets up the test case and the piece contingency table that record test case and code block incidence relation according to the code block identification information in detecting information.
6. based on use-case and the two-way method of testing of reviewing of source code, it is characterized in that, comprising:
Source code piecemeal step, analyzes and obtains the code block in program to be tested, adds the block identification for identifying LCP in the described code block of program to be tested, generates a piece coding schedule for description program code block logical organization;
Bi-directional association step, calls test case and carries out program to be tested, and the detecting information that contains block identification of logging program generation in service utilizes this detecting information to set up the executing data contingency table of code block and test case;
Be related to rendering step, select to present the related information between test case and performed test procedure according to user.
7. according to claim 6 a kind of based on use-case and the two-way method of testing of reviewing of source code, it is characterized in that, also comprise the logic rendering step that based on hierarchical layout algorithm, described code block is carried out to globality Butut and presents according to the relation between described code block.
8. according to claim 6 a kind ofly it is characterized in that based on use-case and the two-way method of testing of reviewing of source code, described source code piecemeal step comprises:
Lexical analysis step, the character stream for the treatment of test procedure scans then identified word and statement, and program statement is labeled as to branch statement, order statement;
Classification of type step, according to the statement type of lexical analysis step output, program code is divided into multiple code blocks, described code block comprises order piece and branch's piece, wherein: described order piece is one group of continuous code statement that there is no branch's judgement, and Kuai Shi branch of described branch judges the node of statement;
Structural identification step, analyzes order piece and the logical place of branch's piece in program code that described classification of type step is exported, 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, generates the piece coding schedule of describing LCP.
9. according to claim 3 a kind ofly it is characterized in that based on use-case and the two-way proving installation of reviewing of source code, described classification of type step comprises:
Intermediate form storage sub-step, storage intermediate form statement;
Intermediate form merges sub-step, if the statement of lexical analysis step output is non-branch statement and non-end statement, the intermediate form statement in this statement and intermediate form storing step is merged;
Order piece is confirmed sub-step, if the intermediate form statement in intermediate form storage unit be empty, and the statement of lexical analysis step output is non-branch statement, this intermediate form statement is labeled as to a sequentially piece, and empties intermediate form storage unit;
Branch piece is confirmed sub-step, if the intermediate form statement in intermediate form storage unit be empty, and the statement that lexical analysis step is exported is branch statement, this statement is labeled as to branch's piece.
10. according to claim 1 a kind ofly it is characterized in that based on use-case and the two-way proving installation of reviewing of source code, described bi-directional association step comprises:
Code pitching pile step, implantable probe in source code blocking devices program code piece after treatment, described probe can generate the detecting information of the mark that records probe place code block in the time that program is moved;
Use-case invocation step, calls test case and carries out program to be tested, records the detecting information that probe produces;
Associated codes step, sets up the test case and the piece contingency table that record test case and code block incidence relation according to the code block identification information in detecting information.
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 true CN104077232A (en) 2014-10-01
CN104077232B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699605A (en) * 2015-03-02 2015-06-10 清华大学 Measuring method and device for code coverage rate of driving program
CN104915296A (en) * 2015-06-29 2015-09-16 北京金山安全软件有限公司 Buried point testing method, data query method and device
CN105528293A (en) * 2015-12-14 2016-04-27 苏州洞察云信息技术有限公司 System and method for selecting test case for regression test
CN107967216A (en) * 2017-12-18 2018-04-27 网易(杭州)网络有限公司 Code detection method and device, equipment, computer-readable recording medium
CN109710508A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Test method, test device, test equipment and computer readable storage medium
CN110750459A (en) * 2019-10-23 2020-02-04 天津汇缘诚信科技有限公司 White box analysis-based method for automatically generating test cases and managing test processes
CN112613894A (en) * 2020-12-31 2021-04-06 中国农业银行股份有限公司 Method and device for associating source code and product
CN113032240A (en) * 2019-12-09 2021-06-25 中车时代电动汽车股份有限公司 Software test automation management system and method

Citations (6)

* 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
US20130227528A1 (en) * 2012-02-29 2013-08-29 International Business Machines Corporation Paradigm for concurrency testcase generation
CN103473171A (en) * 2013-08-28 2013-12-25 北京信息科技大学 Coverage rate dynamic tracking method and device based on function call paths

Patent Citations (6)

* 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
US20130227528A1 (en) * 2012-02-29 2013-08-29 International Business Machines Corporation Paradigm for concurrency testcase generation
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

Cited By (15)

* 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
CN104699605A (en) * 2015-03-02 2015-06-10 清华大学 Measuring method and device for code coverage rate of driving program
CN104915296B (en) * 2015-06-29 2018-07-10 北京金山安全软件有限公司 Buried point testing method, data query method and device
CN104915296A (en) * 2015-06-29 2015-09-16 北京金山安全软件有限公司 Buried point testing method, data query method and device
CN105528293A (en) * 2015-12-14 2016-04-27 苏州洞察云信息技术有限公司 System and method for selecting test case for regression test
CN105528293B (en) * 2015-12-14 2018-01-16 苏州洞察云信息技术有限公司 A kind of system and method that test case is chosen for regression test
CN107967216A (en) * 2017-12-18 2018-04-27 网易(杭州)网络有限公司 Code detection method and device, equipment, computer-readable recording medium
CN107967216B (en) * 2017-12-18 2020-07-10 网易(杭州)网络有限公司 Code detection method and device, equipment and computer readable storage medium
CN109710508A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Test method, test device, test 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
CN110750459A (en) * 2019-10-23 2020-02-04 天津汇缘诚信科技有限公司 White box analysis-based method for automatically generating test cases and managing test processes
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
CN112613894A (en) * 2020-12-31 2021-04-06 中国农业银行股份有限公司 Method and device for associating source code and product
CN112613894B (en) * 2020-12-31 2024-04-16 中国农业银行股份有限公司 Method and device for associating source code with product

Also Published As

Publication number Publication date
CN104077232B (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN104077232A (en) Testing device and method based on use case and source code two-way tracing
US8627290B2 (en) Test case pattern matching
CN104407973B (en) A kind of implementation method and device of automation cell test
US7721252B2 (en) Apparatus and method for product-line architecture description and verification
Lin et al. A testing framework for model transformations
CN108509339A (en) Method for generating test case, device based on browser and mind map and equipment
WO2012032890A1 (en) Source code conversion method and source code conversion program
CA2774575A1 (en) System and method for display of software quality
CN107506300A (en) A kind of ui testing method, apparatus, server and storage medium
CN107665168A (en) A kind of embedded software GUI automated test devices
CN103294596A (en) Early warning method for contract-type software fault based on program invariants
CN106407112A (en) Automatic testing method based on Selenium and TestNG
CN106294148A (en) C programmer software verification method based on escape character transition system and device
CN106201859A (en) A kind of regression testing method and system
JP6568017B2 (en) Test support apparatus and test support method
CN109800147B (en) Test case generation method and terminal equipment
CN109947642A (en) Automated hierarchical test method based on case classification, apparatus and system
CN104331361A (en) A test device and method for performing white-box testing on coverage calculation visualization
CN110399284A (en) A kind of test case writes and executes method and device
CN115080448B (en) Method and device for automatically detecting inaccessible path of software code
Gerlitz et al. Flow sensitive slicing for matlab/simulink models
CN109670011A (en) A kind of more figure source Map Services engines
Rudakov et al. Harmonization of IEEE 1012 and IEC 60880 standards regarding verification and validation of nuclear power plant safety systems software using model-based methodology
CN113805861A (en) Code generation method based on machine learning, code editing system and storage medium
US20210065016A1 (en) Automatic generation of computing artifacts for data analysis

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