CN103425569A - Method and device for acquiring reuse degree of software module - Google Patents

Method and device for acquiring reuse degree of software module Download PDF

Info

Publication number
CN103425569A
CN103425569A CN 201210147181 CN201210147181A CN103425569A CN 103425569 A CN103425569 A CN 103425569A CN 201210147181 CN201210147181 CN 201210147181 CN 201210147181 A CN201210147181 A CN 201210147181A CN 103425569 A CN103425569 A CN 103425569A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
module
tested
test
reuse
degree
Prior art date
Application number
CN 201210147181
Other languages
Chinese (zh)
Other versions
CN103425569B (en )
Inventor
戴康
吴金坛
吕苏
尹祥龙
翟威
何欣娟
刘弋
黄文蓓
章春芳
Original Assignee
中国银联股份有限公司
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

Links

Abstract

The invention discloses a method and a device for acquiring reuse degree of a software module. The method includes the steps: inserting a pin into a tested module to insert a test code which is used for calculating the reuse degree of the tested module into the tested module, configuring test cases, and executing the test cases. When the test cases are executed, the number of triggered times of the tested module is recorded by the test code in the tested module inserted with the pin and is used as the reuse degree of the tested module.

Description

一种获取软件模块复用度的方法和装置 A method for the reusability of software modules and means acquires

技术领域 FIELD

[0001] 本发明涉及软件工程,并且尤其涉及一种获取软件模块复用度的方法和装置。 [0001] The present invention relates to software engineering, and more particularly to a method and apparatus for obtaining a software module reusability.

背景技术 Background technique

[0002] 现有技术中,为了提高软件工程质量和软件执行的效率,通常只对软件模块的覆盖度进行测试统计,并且根据覆盖度测试统计的结果修改相应的软件模块。 [0002] In the prior art, in order to improve the efficiency and quality of software engineering software executed normally only coverage testing statistical software modules, software modules and modify the coverage according to the results of the test statistics. 然而,这种方式仅仅关心软件模块是否被执行,测试统计的结果仅仅在有限的范围内为软件模块的设计的优化提供支持。 However, this approach only concerned whether the software module is executed, the results of the test statistic only optimized software modules designed to provide support within a limited range.

发明内容 SUMMARY

[0003] 根据本发明的一个目的,提供一种获取软件模块复用度的方法,包括以下步骤:对被测模块进行插针,以在该被测模块中插入用于计算该被测模块的复用度的测试代码;配置测试案例;执行测试案例,其中,在执行测试案例时,被插针的被测模块中的测试代码记录所述被测模块被触发的次数,该次数作为所述被测模块的复用度。 [0003] According to one object of the present invention, there is provided a method for obtaining the reusability of software modules, comprising the steps of: pins for the module under test, the test module in order to insert a module under test is calculated reusability of test code; configured test case; execute test cases, wherein, when executing the test case, the test pins of the test code module records the number of times the module under test is triggered, as the number of times the multiplicity of the module under test.

[0004] 优选地,根据监控模块范围确定被测模块,其中监控模块范围包括三类插针级别,分别是文件级别、函数级别和自定义模块级别,其中,当监控模块范围是文件级别时,将特定文件的所有函数都作为被测模块进行插针,当监控模块范围是函数级别时,将特定的函数作为被测模块进行插针,当监控模块范围自定义模块级别时,将自定义模块作为被测模块进行插针。 [0004] Preferably, the module under test is determined according to the range of the monitoring module, wherein the monitoring module level include three pins, namely, file level, function level, and the level of custom modules, wherein, when the monitoring module when the range of the file level, the function of the particular documents are all carried out pin as a test module, the module when the monitoring function is a range level, the function of the particular module under test pin, when the monitoring module level range custom module, a custom module a pin for the module under test.

[0005] 优选地,进一步根据外部命令语句确定被测模块,其中所述外部命令语句被执行语法分析,从而确定被测模块。 [0005] Preferably, according to an external command statement further determine the module under test, wherein said external command parsing statement is executed to determine the module under test.

[0006] 优选地,所述语法分析确定外部命令语句中包括的软件接口名称,所述被确定的被测模块是实现了该软件接口的函数。 [0006] Preferably, determining the parsing software interface name included in the external command statement, the module under test is determined to achieve the function of the software interface.

[0007] 根据本发明的另一个目的,提供一种获取软件模块复用度的装置,其特征在于,包括以下单元:插针单元,该单元用于在被测模块中插入用于计算该被测模块的复用度的测试代码;配置单元,该单元用于测试案例;执行单元,该单元用于测试案例,其中,执行单元在执行测试案例时,被插针的被测模块中的测试代码记录所述被测模块被触发的次数,该次数作为所述被测模块的复用度。 [0007] According to another object of the present invention, there is provided an apparatus for acquiring reusability of software modules, wherein the unit comprising: pin means, the test unit is used for calculating the module is inserted multiplicity of sensing module test code; configuration unit, a unit for the test case; execution unit, a unit for the test case, wherein the module under test execution unit for performing test case, the test pins is recording the number of times the code module under test is triggered, as the number of the multiplicity of the module under test.

[0008] 优选地,插针单元根据监控模块范围确定被测模块,其中监控模块范围包括三类插针级别,分别是文件级别、函数级别和自定义模块级别,其中,当监控模块范围是文件级别时,所述插针单元将特定文件的所有函数都作为被测模块进行插针,当监控模块范围是函数级别时,所述插针单元将特定的函数作为被测模块进行插针,当监控模块范围是自定义模块级别时,所述插针单元将自定义模块作为被测模块进行插针。 [0008] Preferably, the pin unit is determined according to the module under test range monitoring module, wherein the monitoring module level include three pins, namely, file level, function level, and the level of custom modules, wherein, when the range of the file monitoring module when the level of the pin unit are all functions for a particular file pin as a test module, the module when the monitoring range is a function of the level, said pin means as a function of the particular module under test pin, when range monitoring module is custom module level, the pin unit custom module pin as a test module.

[0009] 优选地,插针单元根据外部命令语句确定被测模块,其中,插针单元对所述外部命令语句执行语法分析,从而确定被测模块。 [0009] Preferably, the pin unit is determined according to an external command statement module under test, wherein the pin means to the external command statement parsing performed to determine the module under test.

[0010] 优选地,所述语法分析确定外部命令语句中包括的软件接口名称,所述被确定的被测模块是实现了该软件接口的函数。 [0010] Preferably, determining the parsing software interface name included in the external command statement, the module under test is determined to achieve the function of the software interface.

[0011] 根据本发明的另一个目的,提供一种修改软件系统的方法,所述软件系统包括一个或多个被测模块,该方法包括以下步骤:对被测模块进行插针,以在该被测模块中插入用于计算该被测模块的复用度的测试代码;配置测试案例;执行测试案例,其中,在执行测试案例时,被插针的被测模块中的测试代码记录所述被测模块被触发的次数,该次数作为所述被测模块的复用度;根据所述复用度修改所述软件系统。 [0011] According to another object of the present invention, there is provided a method of modifying a software system, said software system comprising one or more of the module under test, the method comprising the steps of: pins for the module under test, to the inserting the module under test is used to calculate the reusability test code module under test; test case configuration; execute test cases, wherein, when executing test case, the test code is recorded in the pin of the module under test number of times the module under test is triggered, the number of times as the degree of multiplexing of the module under test; modifying the software system in accordance with the degree of multiplexing.

附图说明 BRIEF DESCRIPTION

[0012] 在参照附图阅读了本发明的具体实施方式以后,本领域技术人员将会更清楚地了解本发明的各个方面。 [0012] In the accompanying drawings with reference to specific embodiments of the present invention after skilled in the art will be more clearly understand the various aspects of the invention. 本领域技术人员应当理解的是,这些附图仅仅用于配合具体实施方式说明本发明的技术方案,而并非意在对本发明的保护范围构成限制。 Those skilled in the art will appreciate that these drawings are for the techniques described with particular embodiments of the invention, and are not intended to limit the scope of protection of the present invention.

[0013] 图1是根据本发明实施例的获取软件模块复用度的方法的步骤示意图。 [0013] FIG. 1 is a schematic diagram of software modules according to the degree of multiplexing acquiring step of a method of an embodiment of the present invention.

[0014] 图2是根据本发明实施例的获取软件模块复用度的方法的装置示意图。 [0014] FIG. 2 is a schematic view of apparatus according to the method of obtaining the software module reusability embodiment of the present invention.

具体实施方式 detailed description

[0015] 下面参照附图,对本发明的具体实施方式作进一步的详细描述。 [0015] Referring to the drawings, specific embodiments of the present invention will be further described in detail.

[0016] 图1是根据本发明实施例的获取软件模块复用度的方法的步骤示意图。 [0016] FIG. 1 is a schematic diagram of software modules according to the degree of multiplexing acquiring step of a method of an embodiment of the present invention. 如图1所述,在步骤I中,对被测模块进行插针,以在该被测模块中插入用于计算该被测模块的复用度的测试代码。 As shown in Figure 1, in step I, the tested module pin to the module under test is inserted in the multiplicity for calculating the module under test code. 在步骤2中,配置测试案例。 In step 2, configure test cases. 在步骤3中,执行测试案例,其中,在执行测试案例时,被插针的被测模块中的测试代码记录所述被测模块被触发的次数,该次数作为所述被测模块的复用度。 In step 3, a test case in which, when performing a test case, the test pins of the test code module records the number of times the module under test is triggered, the module under test, as the number of multiplexing degree.

[0017] 在一个实施例中,获取软件模块复用度的方法根据监控模块范围确定被测模块,其中监控模块范围包括三类插针级别,分别是文件级别、函数级别和自定义模块级别。 [0017] In one embodiment, the method of obtaining the reusability of software modules according to the module under test to determine the scope of the monitoring module, wherein the monitoring module level include three pins, namely, file level, function level, and the level of custom modules. 当监控模块范围是文件级别时,将特定文件的所有函数都作为被测模块进行插针,当监控模块范围是函数级别时,将特定的函数作为被测模块进行插针,当监控模块范围自定义模块级别时,将自定义模块作为被测模块进行插针。 When the file monitoring module range level, the function of all the files are specific for the pin as a test module, the module when the monitoring range is a function level, a specific pin functions as a test module, when the monitoring module from the range of when the level definition module, the custom module pin as a test module.

[0018] 在一个实施例中,可以进一步根据外部命令语句确定被测模块,其中所述外部命令语句被执行语法分析,从而确定被测模块。 [0018] In one embodiment, may be further determined according to an external command statement module under test, wherein said external command parsing statement is executed to determine the module under test. 在一个示例中,利用语法分析确定外部命令语句中包括的软件接口名称,所述被确定的被测模块是实现了该软件接口的函数。 In one example, the syntax analysis determined using external software interface name included in the command statement, the module under test is determined to achieve the function of the software interface. 如果确定多个被测模块,则形成被测模块列表。 Determining if a plurality of the module under test, the test module list is formed.

[0019] 图2是根据本发明实施例的获取软件模块复用度的方法的装置示意图。 [0019] FIG. 2 is a schematic view of apparatus according to the method of obtaining the software module reusability embodiment of the present invention. 如图2所示,获取软件模块复用度的装置包括以下单元:插针单元,该单元用于在被测模块中插入用于计算该被测模块的复用度的测试代码;配置单元,该单元用于测试案例;执行单元,该单元用于测试案例,其中,执行单元在执行测试案例时,被插针的被测模块中的测试代码记录所述被测模块被触发的次数,该次数作为所述被测模块的复用度。 As shown, the apparatus acquires the software module 2 comprises a multiplicity of the units: pin unit that is used for calculating the module under test is inserted into the test module reusability test code; configuration unit, the means for test case; execution unit, a unit for the test case, wherein the execution unit when executing the test case, the test pins of the test code module records the number of times the module under test is triggered, the as the number of the multiplicity of the module under test.

[0020] 在一个实施例中,插针单元根据监控模块范围确定被测模块,其中监控模块范围包括三类插针级别,分别是文件级别、函数级别和自定义模块级别。 [0020] In one embodiment, the module under test pin unit according to the monitoring module determines the range in which the monitoring module level include three pins, namely, file level, function level, and the level of custom modules. 当监控模块范围是文件级别时,所述插针单元将特定文件的所有函数都作为被测模块进行插针,当监控模块范围是函数级别时,所述插针单元将特定的函数作为被测模块进行插针,当监控模块范围是自定义模块级别时,所述插针单元将自定义模块作为被测模块进行插针。 When the monitoring module file level range when the pin unit are all functions for a particular file pin as a test module, the module when the monitoring range is a function of the level, said pin means as a function of the particular test pin module, the module when the monitoring range is custom module level, a custom module pin unit as a test module pins.

[0021] 在一个实施例中,插针单元根据外部命令语句确定被测模块,其中,插针单元对所述外部命令语句执行语法分析,从而确定被测模块。 [0021] In one embodiment, the determination module under test pin unit according to the external command statement, wherein the pin means to the external command statement parsing performed to determine the module under test. 在一个示例中,利用语法分析确定外部命令语句中包括的软件接口名称,所述被确定的被测模块是实现了该软件接口的函数。 In one example, the syntax analysis determined using external software interface name included in the command statement, the module under test is determined to achieve the function of the software interface.

[0022] 根据所述一个或多个实施例获取的软件模块的复用度,可以被用来改进软件设计,提高软件质量。 [0022] The multiplicity of the one or more software modules according to acquired embodiment, software may be used to improve design, improved software quality. 例如,在一个改进软件设计的示例中,通过执行测试案例,可以对复用度低(例如,仅被触发一次,复用度为I)的多个软件模块进行共通逻辑的抽取,该共通逻辑可以是执行相同操作的程序单元;对于复用度高(例如,被触发两次以上,复用度大于2)的软件模块,保持其独立性,并且采用组合复用度高的软件模块的方式来实现业务逻辑。 For example, in the example of an improved design of software, by executing test case may multiplicity low (e.g., only once triggered, multiplicity of I) a plurality of software modules common logic extraction, the common logic may be a program unit performs the same operation; for multiplexing with high (e.g., can be triggered twice or more, the degree of multiplicity greater than 2) software modules, to maintain their independence, and are multiplexed in a combination of high software module to implement the business logic.

[0023] 本发明将在下文中阐述根据复用度改进软件质量的示例,但本领域技术人员可以理解的是,本发明的保护范围不限于该特定示例。 [0023] The present invention will be explained according to an example multiplicity improved software quality Hereinafter, those skilled in the art will be appreciated that the scope of the present invention is not limited to this particular example. 在该示例的系统中,使用三个方法add,modify, delete来处理数据的录入、修改和删除。 In the system of this example, three methods add, modify, delete entry to process, modify, and delete data. 在一次录入、修改和删除的业务场景测试执行过程中,add, modify, delete三个方法都被执行I次,即add, modify, delete三个软件模块的复用度为I。 In one entry, modify, and delete business process scenarios test execution, add, modify, delete three methods have been executed I times, that add, modify, delete reusability of software modules for the three I. 在软件系统设计后期,增加审核信息的业务场景,此时再增加一个方法audit来处理审核。 In the latter part of the software system designed to increase business scenarios audit information, this time to add a method to handle the audit review. 在一次录入、修改、删除和审核的业务场景测试执行过程中,add,modify, delete, audit四个方法都被执行I次,即add, modify, delete, audit四个软件模块的复用度都为I。 In one entry, modify, delete and review the implementation of business process scenario testing, add, modify, delete, audit methods are executed four times I, that add, modify, delete, re-audit costs are four software modules is I. 上述四个业务场景中,对数据库的操作是有共通部分的,以修改和审核这两个操作来说,它们都需要先从数据库里查询出一条记录,再进行修改或者审核。 The four business scenario, there is a database of the operation of the common part, to review and modify these two operations, they need to start a record out of the database query, then the review or modification. 因此,可以对修改模块和审核模块进行共通逻辑的抽取,该共通逻辑可以是执行相同操作的程序单元,查询模块。 Accordingly, extraction can be performed on a common logical and audit module modification module, the common logic unit may be a program to perform the same operation, a query module. 根据上述针对复用度的分析,设计数据库操作接口可以包括四个方法:db_add, db_update, db_query, db_delete,业务逻辑接口可以包括三个方法:add, update,delete。 The above analysis for the reusability of the database design user interface may include four methods: db_add, db_update, db_query, db_delete, business logic interface may include three methods: add, update, delete. 其中,add方法调用db_add完成操作,同理,update调用db_query, db_update两个方法,delete方法调用db_query, db_delete两个方法。 Wherein, the Add db_add method call to complete the operation, similarly, update call db_query, db_update two methods, delete methods call db_query, db_delete two methods. 在录入、修改和删除的业务场景测试执行过程中db_query会被执行2次,其它方法各执行I次。 db_query will be executed twice during entry, modification and deletion business scenarios test execution, other methods of implementing I times. 在后期再加入审核业务时,只需添加业务方法audit,而数据库接口则可以复用,不需要做变更,audit方法将调用db_query, db_update两个方法完成操作。 When the late addition of the audit business, just add business methods audit, and database interface can reuse, you do not need to change, audit method will call db_query, db_update two methods to complete the operation. 这样,一次录入、修改、删除和审核的业务场景测试执行过程中,db_query方法将被执行3次,db_update方法执行2次,其它方法执行I次。 In this way, once input, modify, delete and review the implementation of business process scenario testing, db_query method will be executed three times, db_update method executes twice, other methods of performing I times. 由此,提高了软件系统的设计和执行的效率。 This improves the efficiency of the design and implementation of software systems.

[0024] 对于设计较好的软件系统,应该保持复用度高的软件模块的独立性,通过对复用度高的软件模块采用组合而不是合并的方式来完成新的需求。 [0024] For well-designed software systems, we should maintain a high degree of independence reuse of software modules, software modules by using a combination of a high degree of reuse rather than merging way to complete the new requirements. 例如,提供给用户的输入构件有单选按钮,多选按钮,文本输入域等,但是,若尝试将这些输入构件合并,将是不合适的,因为,合并出来的构件只适合特定的应用场景。 For example, the input member is provided to the user are the radio button, radio button, text entry fields, etc. However, if these attempts to merge the input member, will be inappropriate, since, out of the combined member is only suitable for the particular application scenario . 相反,将这些构件做组合来完成要求的功能是合适的,因为对组合的成员构件做替换或修改要相对容易,而且,相比于构件合成,组合而成的构件复用和维护也相对容易,因为组件的各个部分的设计都有较高的复用性。 Instead, a combination of these members do perform the required function is appropriate, because the members of the combination member made relatively easy to replace or modify, and compared to synthetic component, combination of components multiplexed and maintenance is relatively easy , because each part of the design components have a higher reusability. 根据本发明实施例的获取软件模块复用度的方法和装置得到的软件模块的复用度,对复用度低的软件模块进行共性的抽取,对复用度高的软件模块进行组合,能够使软件朝更好的设计方向进化,软件的维护和扩展更加容易,并提高软件的质量。 The multiplicity of software modules method and apparatus for obtaining a software module reusability embodiment of the present invention is obtained, a low multiplicity of software modules common extraction, high multiplexing of software modules are combined, it is possible the design direction for the better software evolution, software maintenance and expansion easier, and improve software quality.

[0025] 根据本发明的另一个目的,提供一种修改软件系统的方法,所述软件系统包括一个或多个被测模块,该方法包括以下步骤:对被测模块进行插针,以在该被测模块中插入用于计算该被测模块的复用度的测试代码;配置测试案例;执行测试案例,其中,在执行测试案例时,被插针的被测模块中的测试代码记录所述被测模块被触发的次数,该次数作为所述被测模块的复用度;根据所述复用度修改所述软件系统。 [0025] According to another object of the present invention, there is provided a method of modifying a software system, said software system comprising one or more of the module under test, the method comprising the steps of: pins for the module under test, to the inserting the module under test is used to calculate the reusability test code module under test; test case configuration; execute test cases, wherein, when executing test case, the test code is recorded in the pin of the module under test number of times the module under test is triggered, the number of times as the degree of multiplexing of the module under test; modifying the software system in accordance with the degree of multiplexing.

[0026] 通过以上实施方式的描述,本领域中的普通技术人员能够理解,在不偏离本发明的精神和范围的情况下,还可以对本发明的具体实施方式作各种变更和替换。 [0026] By the above described embodiments, the present art can be understood by one of ordinary skill in the art, without departing from the spirit and scope of the present invention, and various modifications may be made to the alternative embodiment of the present invention. 这些变更和替换都落在本发明权利要求书所限定的范围内。 These modifications and variations fall within the claims of the present invention as defined by the scope of the claims.

Claims (9)

  1. 1.一种获取软件模块复用度的方法,其特征在于,包括以下步骤: 对被测模块进行插针,以在该被测模块中插入用于计算该被测模块的复用度的测试代码; 配置测试案例; 执行测试案例,其中,在执行测试案例时,被插针的被测模块中的测试代码记录所述被测模块被触发的次数,该次数作为所述被测模块的复用度。 A software module reusability acquisition method, characterized by comprising the steps of: pins for the module under test to the test module for calculating a multiplicity of insertion of the module under test Code; configuration test case; execute test cases, wherein, when executing the test case, the test pins of the test code module records the number of times the module under test is triggered, as the number of the multiplexing module under test expense.
  2. 2.根据权利要求1所述的方法,其特征在于, 根据监控模块范围确定被测模块,其中监控模块范围包括三类插针级别,分别是文件级别、函数级别和自定义模块级别,其中, 当监控模块范围是文件级别时,将特定文件的所有函数都作为被测模块进行插针, 当监控模块范围是函数级别时,将特定的函数作为被测模块进行插针, 当监控模块范围自定义模块级别时,将自定义模块作为被测模块进行插针。 2. The method according to claim 1, wherein the monitoring module is determined according to the module under test range, wherein the monitoring module level include three pins, namely, file level, function level, and the level of custom modules, wherein when the file monitoring module range level, the function of all the files are specific for the pin as a test module, the module when the monitoring range is a function level, a specific pin functions as a test module, when the monitoring module from the range of when the level definition module, the custom module pin as a test module.
  3. 3.根据权利要求2所述的方法,其特征在于,进一步根据外部命令语句确定被测模块,其中所述外部命令语句被执行语法分析,从而确定被测模块。 3. The method according to claim 2, wherein the test module is further determined according to an external command statement, wherein said external command parsing statement is executed to determine the module under test.
  4. 4.根据权利要求3所述的方法,其特征在于,所述语法分析确定外部命令语句中包括的软件接口名称,所述被确定的被测模块是实现了该软件接口的函数。 4. The method according to claim 3, wherein, said software interface name parsing determines that the external command statement included in the module under test is determined to achieve the function of the software interface.
  5. 5.一种获取软件模块复用度的装置,其特征在于,包括以下单元:` 插针单元,该单元用于在被测模块中插入用于计算该被测模块的复用度的测试代码; 配置单元,该单元用于测试案例; 执行单元,该单元用于测试案例,其中,执行单元在执行测试案例时,被插针的被测模块中的测试代码记录所述被测模块被触发的次数,该次数作为所述被测模块的复用度。 A software module reusability apparatus acquiring, characterized by comprising the following units: `pin unit that is used in a test module for calculating a multiplicity of insertion of the module under test code ; configuration unit, a unit for the test case; execution unit, a unit for the test case, wherein the execution unit when executing the test case, the test pins of the test code module the module under test recording is triggered the frequency and the number of times as the degree of multiplexing of the module under test.
  6. 6.根据权利要求5所述的装置,其特征在于, 插针单元根据监控模块范围确定被测模块,其中监控模块范围包括三类插针级别,分别是文件级别、函数级别和自定义模块级别,其中, 当监控模块范围是文件级别时,所述插针单元将特定文件的所有函数都作为被测模块进行插针, 当监控模块范围是函数级别时,所述插针单元将特定的函数作为被测模块进行插针,当监控模块范围是自定义模块级别时,所述插针单元将自定义模块作为被测模块进行插针。 6. The apparatus as claimed in claim 5, characterized in that the pin unit is determined according to the module under test range monitoring module, wherein the monitoring module level include three pins, namely, file level, function level, and level definition module from wherein, when the monitoring module file level range when the pin unit are all functions for a particular file pin as a test module, the module when the monitoring range is a function of the level when the specific pin function unit pin as a test module for, when the monitoring range is custom module level module, a custom module pin unit as a test module pins.
  7. 7.根据权利要求6所述的装置,其特征在于,插针单元根据外部命令语句确定被测模块,其中,插针单元对所述外部命令语句执行语法分析,从而确定被测模块。 7. The device according to claim 6, characterized in that the pin unit is determined according to an external command statement module under test, wherein the pin means to the external command statement parsing performed to determine the module under test.
  8. 8.根据权利要求7所述的装置,其特征在于,所述语法分析确定外部命令语句中包括的软件接口名称,所述被确定的被测模块是实现了该软件接口的函数。 8. The apparatus according to claim 7, wherein, said software interface name parsing determines that the external command statement included in the module under test is determined to achieve the function of the software interface.
  9. 9.一种修改软件系统的方法,所述软件系统包括一个或多个被测模块,其特征在于,包括以下步骤: 对被测模块进行插针,以在该被测模块中插入用于计算该被测模块的复用度的测试代码; 配置测试案例; 执行测试案例,其中,在执行测试案例时,被插针的被测模块中的测试代码记录所述被测模块被触发的次数,该次数作为所述被测模块的复用度; 根据所述复用度修改所述软件系统。 A method of modifying a software system, said software system comprising one or more of the module under test, characterized by comprising the steps of: pins for the module under test, the test module to be used to calculate insertion the multiplicity of the module under test code; configured test case; execute test cases, wherein, when executing the test case, the test module in the test code pins recording the number of times the module under test is triggered, the number of times as the degree of multiplexing of the module under test; modifying the software system in accordance with the degree of multiplexing.
CN 201210147181 2012-05-14 2012-05-14 A method for the reusability of software modules and means acquires CN103425569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210147181 CN103425569B (en) 2012-05-14 2012-05-14 A method for the reusability of software modules and means acquires

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210147181 CN103425569B (en) 2012-05-14 2012-05-14 A method for the reusability of software modules and means acquires

Publications (2)

Publication Number Publication Date
CN103425569A true true CN103425569A (en) 2013-12-04
CN103425569B CN103425569B (en) 2016-09-28

Family

ID=49650354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210147181 CN103425569B (en) 2012-05-14 2012-05-14 A method for the reusability of software modules and means acquires

Country Status (1)

Country Link
CN (1) CN103425569B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020199016A1 (en) * 2001-06-22 2002-12-26 Freedman Avraham T. Automated control of outbound transist links in a multi-homed BGP routing environment
CN101436128A (en) * 2007-11-16 2009-05-20 北京邮电大学 Software test case automatic generating method and system
CN101510115A (en) * 2009-03-26 2009-08-19 浙江大学 Method for controlling processor frequency when program operation by using dynamic compiler
CN101551842A (en) * 2009-05-05 2009-10-07 天津大学 Safety test method based on model driving

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020199016A1 (en) * 2001-06-22 2002-12-26 Freedman Avraham T. Automated control of outbound transist links in a multi-homed BGP routing environment
CN101436128A (en) * 2007-11-16 2009-05-20 北京邮电大学 Software test case automatic generating method and system
CN101510115A (en) * 2009-03-26 2009-08-19 浙江大学 Method for controlling processor frequency when program operation by using dynamic compiler
CN101551842A (en) * 2009-05-05 2009-10-07 天津大学 Safety test method based on model driving

Also Published As

Publication number Publication date Type
CN103425569B (en) 2016-09-28 grant

Similar Documents

Publication Publication Date Title
US20110173643A1 (en) USING TRANSIENT PCRs TO REALISE TRUST IN APPLICATION SPACE OF A SECURE PROCESSING SYSTEM
US6718521B1 (en) Method and system for measuring and reporting test coverage of logic designs
US20050114838A1 (en) Dynamically tunable software test verification
US20070094541A1 (en) Method and apparatus for generating test execution sequences automatically for a software testing process
Lochau et al. Incremental model-based testing of delta-oriented software product lines
US20120060148A1 (en) Assigning runtime artifacts to software components
US20150007325A1 (en) System and Method for Detecting Malicious Software Using Malware Trigger Scenarios
US20110145643A1 (en) Reproducible test framework for randomized stress test
US20130179865A1 (en) Automated error checking system for a software application and method therefor
US20110016452A1 (en) Method and system for identifying regression test cases for a software
CN103136471A (en) Method and system for testing malicious Android application programs
CN103186740A (en) Automatic detection method for Android malicious software
CN102831060A (en) Modification influence analysis based regression test case updating method of part software
US20140006358A1 (en) Creation and replay of a simulation workload using captured workloads
US8386419B2 (en) Data extraction and testing method and system
US20120143588A1 (en) Concurrent workload simulation for application performance testing
US20150154283A1 (en) Pluggable architecture for embedding analytics in clustered in-memory databases
US20130263090A1 (en) System and method for automated testing
US20100153780A1 (en) Techniques for generating a reusable test script for a multiple user performance test
US7673288B1 (en) Bypassing execution of a software test using a file cache
US20090327824A1 (en) Techniques for performing a logic built-in self-test in an integrated circuit device
US20140096181A1 (en) Event integration frameworks
KR101246623B1 (en) Apparatus and method for detecting malicious applications
US20110178971A1 (en) Portable data management
US8265918B1 (en) Simulation and emulation of a circuit design

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model