JP2012247881A - Influence analysis method and influence analysis program - Google Patents

Influence analysis method and influence analysis program Download PDF

Info

Publication number
JP2012247881A
JP2012247881A JP2011117547A JP2011117547A JP2012247881A JP 2012247881 A JP2012247881 A JP 2012247881A JP 2011117547 A JP2011117547 A JP 2011117547A JP 2011117547 A JP2011117547 A JP 2011117547A JP 2012247881 A JP2012247881 A JP 2012247881A
Authority
JP
Japan
Prior art keywords
module
unit
input
modules
influence
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
JP2011117547A
Other languages
Japanese (ja)
Other versions
JP5325931B2 (en
Inventor
Fumiaki Matsuoka
史晃 松岡
Toru Uzawa
亨 鵜澤
Naofumi Taguchi
直文 田口
Hirobumi Araya
博文 新家
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2011117547A priority Critical patent/JP5325931B2/en
Publication of JP2012247881A publication Critical patent/JP2012247881A/en
Application granted granted Critical
Publication of JP5325931B2 publication Critical patent/JP5325931B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To extract only influenced execution paths, and further extracts the execution paths by narrowing down an influence range to reduce the number of operation steps for verification.SOLUTION: An influence analysis method includes the steps of: searching an influence analysis table 114 on the basis of a module name of a changing module acquired via an input unit 103; collating a unit test result and a combination test result of a module of a corresponding record; when both results do not match with each other, identifying a record which has the same check list number as the corresponding record and stores execution order greater than execution order of the corresponding record in the influence analysis table 114; extracting the module name from the identified record; and displaying the extracted module name as a module name of a module to be influenced by module change on a display unit 102.

Description

本発明は、プログラム変更に伴う影響分析を行う方法およびプログラムに関する。   The present invention relates to a method and a program for performing an impact analysis accompanying a program change.

あるモジュールを修正する際に、修正の影響範囲を調べる影響分析においては通常、静的解析の結果を基にしたツールが用いられる。しかし、静的解析の結果を基にした影響分析では、抽出される影響範囲が膨大となってしまうことが多く、本当に影響があるかを検証する工数が大きくなってしまう。   A tool based on the result of a static analysis is usually used in the impact analysis for examining the impact range of a modification when a certain module is modified. However, in the influence analysis based on the result of the static analysis, the extracted influence range is often enormous, and the man-hour for verifying whether there is a real influence becomes large.

このような影響範囲の抽出が膨大なり検証するための工数が大きくならないようにする技術として、前提条件の変更を検知して変更が影響するモジュールを特定し、静的解析の結果をもとに特定したモジュールを基点とした影響範囲のみを絞り込んで抽出できるようにし、従来の影響範囲を検証する工数が大きくなる課題を解決する方法が知られている(例えば、特許文献1参照)。   As a technology that prevents the amount of man-hours for verification from becoming enormous due to the extraction of such an influence range, a module affected by the change is identified by detecting a change in the precondition, and the result of the static analysis is used. A method is known in which only the influence range based on the identified module can be narrowed down and extracted, thereby solving the problem of increasing the number of steps for verifying the conventional influence range (for example, see Patent Document 1).

特開2008−191963号公報JP 2008-191963 A

上記特許文献1に開示の技術では、変更に対して直接影響を受けるモジュールを特定し、特定したモジュールおよび特定したモジュールを呼び出しているモジュールのみを基点として、静的解析によって得られる結果から関連のあるモジュールを影響範囲とすることで、従来の影響の有無を検証する工数が大きくなることを抑えることができる。しかしながら、基点としたモジュールから直接呼出し関係を持つモジュールが多数存在した場合、影響範囲として抽出された範囲は大きくなり、検証の工数を大きくしてしまうことがある。また、抽出した影響範囲が小さい場合でも実際に修正の必要のない実効パスに対しても検証を行う必要性がある。   In the technique disclosed in Patent Document 1, a module that is directly affected by a change is identified, and only the identified module and the module that calls the identified module are used as the base points, and related results are obtained from the results obtained by static analysis. By setting a certain module as the influence range, it is possible to suppress an increase in the number of steps for verifying the presence or absence of the conventional influence. However, when there are a large number of modules having a direct call relationship from the base module, the range extracted as the influence range becomes large, and the verification man-hour may be increased. In addition, even when the extracted influence range is small, it is necessary to verify an effective path that does not actually need correction.

本発明の目的は、影響のある実行パスのみを抽出することで従来よりさらに影響範囲を絞り込んだ形で抽出でき、検証の作業工数を小さくすることのできる技術を提供することにある。   It is an object of the present invention to provide a technique that can extract only the execution paths that have an influence and extract the influence range more narrowly than in the past, and reduce the number of verification work steps.

上記課題を解決するための一手段について説明する。すなわち、本発明は、モジュール(プログラム)の変更に伴う影響を分析する影響分析装置における影響分析方法である。前記影響分析装置は、入力部、記憶部、制御部及び表示部を具備し、前記記憶部には、モジュール名と、複数の前記モジュールを組合わせてテストした結果である組合せテスト結果と、前記組合わせテスト時の前記モジュールの実行順序と、前記複数のモジュールのうち変更モジュールを単体でテストした結果である単体テスト結果と、組合わせて実行するも前記モジュールのモジュール名およびこれらモジュールの前記実行順序と、前記組合わせて実行する前記モジュールのモジュール名およびこれらモジュールの実行順序の組み合わせを一意に識別するチェックリスト番号と、がそれぞれ対応付けて記憶されている。そして、前記制御部により、前記入力部を介して、前記変更モジュールのモジュール名を取得し、前記取得したモジュール名に基づき前記記憶部を検索し、該当レコードのモジュールの前記組合せテスト結果と前記単体テスト結果とを照合し、前記照合の結果、双方の結果が一致しない場合に、前記記憶部から、前記該当レコードのチェックリスト番号が同一で、かつ前記該当レコードの前記実行順序より大きい実行順序が格納されたレコードを特定し、前記特定したレコードから前記モジュール名を抽出し、前記抽出したモジュール名を、前記モジュール変更に伴い影響するモジュールのモジュール名として前記表示部に表示する。   One means for solving the above problem will be described. That is, the present invention is an influence analysis method in an influence analysis apparatus that analyzes an influence accompanying a change of a module (program). The impact analysis apparatus includes an input unit, a storage unit, a control unit, and a display unit, and the storage unit has a module name, a combination test result that is a result of a combination test of the plurality of modules, and the The execution order of the modules at the time of the combination test, the unit test result that is the result of testing the changed module alone among the plurality of modules, the module names of the modules that are executed in combination, and the execution order of these modules And a check list number that uniquely identifies a combination of the module names of the modules to be executed in combination and the execution order of these modules are stored in association with each other. Then, the control unit acquires the module name of the change module via the input unit, searches the storage unit based on the acquired module name, and the combination test result and the unit test of the module of the corresponding record. The result is collated, and when the result of the collation is that both the results do not match, the storage unit stores the execution order in which the checklist number of the corresponding record is the same and is larger than the execution order of the corresponding record The identified record is identified, the module name is extracted from the identified record, and the extracted module name is displayed on the display unit as the module name of the module that is affected by the module change.

本発明によれば、モジュール修正時の影響範囲を従来より絞り込んだ形で抽出でき、検証に対する工数の更なる削減ができる。   According to the present invention, the influence range at the time of module correction can be extracted in a narrower form than before, and the man-hours for verification can be further reduced.

影響分析装置1のハードウェア構成例を示す図である。2 is a diagram illustrating a hardware configuration example of an influence analysis apparatus 1. FIG. 影響分析装置1が具備する影響分析テーブル114のデータ構成例を示す図である。It is a figure which shows the example of a data structure of the impact analysis table 114 which the impact analysis apparatus 1 comprises. 影響分析装置1が具備する組合せテスト実行機能111の処理を示すフローチャートである。It is a flowchart which shows the process of the combination test execution function 111 which the influence analysis apparatus 1 comprises. 影響分析装置1が具備する単体テスト実行機能112の処理を示すフローチャートである。It is a flowchart which shows the process of the unit test execution function 112 with which the influence analysis apparatus 1 is provided. 影響分析装置1が具備する影響範囲分析機能113の処理概要を示すフローチャートである。It is a flowchart which shows the process outline | summary of the influence range analysis function 113 which the influence analysis apparatus 1 comprises. 影響分析装置1が具備する影響分析機能113の影響範囲抽出処理S504の処理を示すフローチャートである。It is a flowchart which shows the process of influence range extraction process S504 of the influence analysis function 113 which the influence analysis apparatus 1 comprises. 影響分析装置1の表示部102に表示されるメニュー画面例を示す図である。6 is a diagram illustrating an example of a menu screen displayed on the display unit 102 of the influence analysis apparatus 1. FIG. 影響分析装置1の表示部102に表示される組合せテスト実行機能画面例を示す図である。It is a figure which shows the example of a combination test execution function screen displayed on the display part 102 of the influence analysis apparatus 1. FIG. 影響分析装置1が具備する制御ファイル115の内容例を示す図である。It is a figure which shows the example of the content of the control file 115 which the influence analysis apparatus 1 comprises. 影響分析装置1の表示部102に表示される単体テスト実行機能画面例を示す図である。It is a figure which shows the example of a unit test execution function screen displayed on the display part 102 of the influence analysis apparatus 1. FIG. 影響分析装置1の表示部102に表示される影響範囲分析機能画面例を示す図である。It is a figure which shows the example of an influence range analysis function screen displayed on the display part 102 of the influence analysis apparatus 1. FIG. 影響分析テーブル114に格納されている実行順序203およびモジュール名204を基に作成したフローチャートである。It is a flowchart created based on the execution order 203 and the module name 204 stored in the impact analysis table 114.

以下、本発明の一実施例について、図面を参照して詳細に説明する。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

図1は、本実施例に係わる影響分析装置1のハードウェア構成例を示す図である。影響分析装置1は、記憶部101、表示部102と、入力部103と、CPU等の制御部104とを具備する。各部は、バス(BUS)によって接続されている。記憶部101には、テストとして複数のモジュール(プログラム)を連続して実行する組合せテスト実行機能111、テストとして1つのモジュールを実行する単体テスト実行機能112および影響範囲分析機能113からなるプログラム110と、影響分析テーブル114と、制御ファイル115と、モジュール格納領域116が格納されている。制御部104は、プログラム110の実行時、必要に応じて、モジュール格納領域116からモジュールを読み出し実行する。なお、単体テストは、1つのモジュールを実行する場合、組合せテストは、複数のモジュールを連続して実行する。 図2は、影響分析装置1が具備する影響分析テーブル114のデータ構成例を示す図である。   FIG. 1 is a diagram illustrating a hardware configuration example of an influence analysis apparatus 1 according to the present embodiment. The influence analysis apparatus 1 includes a storage unit 101, a display unit 102, an input unit 103, and a control unit 104 such as a CPU. Each unit is connected by a bus (BUS). The storage unit 101 includes a combination test execution function 111 that continuously executes a plurality of modules (programs) as a test, a unit test execution function 112 that executes one module as a test, and a program 110 that includes an influence range analysis function 113; An impact analysis table 114, a control file 115, and a module storage area 116 are stored. When the program 110 is executed, the control unit 104 reads a module from the module storage area 116 and executes it as necessary. In the unit test, one module is executed. In the combination test, a plurality of modules are executed successively. FIG. 2 is a diagram illustrating a data configuration example of the impact analysis table 114 included in the impact analysis apparatus 1.

影響分析テーブル114は、組合せテスト実行時に実行されたモジュール名、実行順序、各モジュールの入力情報および出力情報および単体テスト実行時に実行されたモジュールの出力情報を格納するテーブルであり、組合せテスト実行機能111が実行された際、および単体テスト実行機能112が実行された際に更新される。図2に示すように、影響分析テーブル114は、通番201と、チェックリスト番号202と、実行順序203と、モジュール名204と、入力情報205と、出力情報206と、単体テスト出力情報207とをそれぞれ対応付けて記憶する。ここで、通番には、影響分析テーブル114にレコードが追加される度に採番された値で、レコードを一意に識別する情報が格納される。チェックリスト番号202には、組合せテスト実行機能111の実行時に利用者により入力部103を用いて入力されたチェックリスト番号が格納される。このチェックリスト番号は、組合わせて実行するモジュールのモジュール名およびこれらモジュールの実行順序の組み合わせを一意に識別する情報である。実行順序203には、組合せテスト実行機能111で1回の組合せテストで実行したモジュールの実行順序が格納される。モジュール名204には、組合せテスト実行機能111で実行したモジュールの名称が格納される。入力情報205には、組合せテスト実行機能111でモジュールを実行する際に入力する入力情報が格納され、出力情報206には、組合せテスト実行後に出力される出力情報が格納される。単体テスト出力情報207には、単体テスト実行機能112で実行したモジュールの実行後に出力される出力情報が格納される。   The impact analysis table 114 is a table that stores module names executed during combination test execution, execution order, input information and output information of each module, and output information of modules executed during unit test execution. Is updated when the unit test execution function 112 is executed. As shown in FIG. 2, the impact analysis table 114 includes a serial number 201, a check list number 202, an execution order 203, a module name 204, input information 205, output information 206, and unit test output information 207, respectively. Store in association with each other. Here, the serial number stores information that uniquely identifies a record with a value that is numbered each time a record is added to the impact analysis table 114. The check list number 202 stores the check list number input by the user using the input unit 103 when the combination test execution function 111 is executed. This check list number is information that uniquely identifies the combination of the module names of modules to be executed in combination and the execution order of these modules. The execution order 203 stores the execution order of modules executed in one combination test by the combination test execution function 111. The module name 204 stores the name of the module executed by the combination test execution function 111. Input information 205 stores input information input when the module is executed by the combination test execution function 111, and output information 206 stores output information output after the combination test is executed. The unit test output information 207 stores output information output after the module executed by the unit test execution function 112 is executed.

図3は、影響分析装置1が具備する組合せテスト実行機能111の処理を示すフローチャートである。   FIG. 3 is a flowchart showing processing of the combination test execution function 111 provided in the impact analysis apparatus 1.

組合せテスト実行機能111は、利用者により入力部103を用いて図7に示すメニュー画面700で組合せテスト実行機能701が選択されることで起動し(ステップS301)、図8に示す組合せテスト実行機能画面800を表示する(ステップS302)。組合せテスト実行機能111は、利用者により入力部103を用いて組合せテスト実行機能画面800に入力された、チェックリスト番号(今回の例ではCCL001とする)、初期投入データ(今回の例では1とする)を取得する(ステップS303)。次に、組合せテスト実行機能111は、図9に示す制御ファイル115を読み込み(ステップS304)、S303で取得したチェックリスト番号(今回の例ではCCL001とする)とS304で読み込んだ制御ファイル115内のチェックリスト番号とを照合し、制御ファイル115に記載されたモジュールの実行順序(今回の例ではモジュールA、モジュールB、モジュールCとする)に従い、ステップS303で取得した初期投入データ(今回の例では1とする)を最初に実行するモジュールAの入力情報として取得し、実行順序を1としてモジュール格納領域116にあるモジュールAを実行し、実行結果を出力情報として取得する。次に実行するモジュールBに入力するモジュールAの出力情報をモジュールBの入力情報として取得し、実行順序を2としてモジュール格納領域116にあるモジュールBを実行し、実行結果を出力情報として取得する。次に実行するモジュールCに入力するモジュールBの出力情報をモジュールCの入力情報として取得し、実行順序を3としてモジュール格納領域116にあるモジュールCを実行し、実行結果を出力情報として取得する(ステップS305)。組合せテスト実行機能111は、すべてのモジュールを実行後、影響分析テーブル114のチェックリスト番号202、実行順序203、モジュール名204、入力情報205、出力情報206に、図8に示す組合せテスト実行機能画面800より取得したチェックリスト番号(今回の例ではCCL001とする)、モジュールの実行前後に取得した実行順序(今回の例では1、2、3とする)、モジュール名(今回の例ではモジュールA、モジュールB、モジュールCとする)、入力情報(今回の例では1、2、3とする)、出力情報(今回の例では2、3、4とする)を格納し(ステップS306)、終了する。   The combination test execution function 111 is activated by the user selecting the combination test execution function 701 on the menu screen 700 shown in FIG. 7 using the input unit 103 (step S301), and the combination test execution function shown in FIG. A screen 800 is displayed (step S302). The combination test execution function 111 includes a check list number (in this example, CCL001), initial input data (in this example, 1 and the like) input to the combination test execution function screen 800 by using the input unit 103 by the user. Is acquired (step S303). Next, the combination test execution function 111 reads the control file 115 shown in FIG. 9 (step S304), the checklist number acquired in S303 (in this example, CCL001) and the control file 115 read in S304. The checklist number is collated, and the initial input data (in this example, in this example) obtained in step S303 in accordance with the execution order of modules described in the control file 115 (in this example, module A, module B, and module C). 1) is acquired as input information of the module A to be executed first, the execution order is set to 1, the module A in the module storage area 116 is executed, and the execution result is acquired as output information. Next, the output information of the module A input to the module B to be executed is acquired as the input information of the module B, the execution order is set to 2, the module B in the module storage area 116 is executed, and the execution result is acquired as the output information. Next, the output information of the module B input to the module C to be executed is acquired as the input information of the module C, the module C in the module storage area 116 is executed with the execution order set to 3, and the execution result is acquired as the output information ( Step S305). After executing all the modules, the combination test execution function 111 displays the check list number 202, the execution order 203, the module name 204, the input information 205, and the output information 206 of the impact analysis table 114 in the combination test execution function screen shown in FIG. Checklist number acquired from 800 (in this example, CCL001), execution order acquired before and after execution of modules (in this example, 1, 2, and 3), module name (in this example, module A, Module B and module C), input information (1, 2, 3 in this example), output information (2, 3, 4 in this example) are stored (step S306), and the process ends. .

図4は影響分析装置1が具備する単体テスト実行機能112の処理を示すフローチャートである。   FIG. 4 is a flowchart showing the processing of the unit test execution function 112 provided in the impact analysis apparatus 1.

単体テスト実行機能112は、利用者により入力部103を用いて図7に示すメニュー画面700で単体テスト実行機能112が選択されることで起動し(ステップS401)、図10に示す単体テスト実行機能画面1000を表示する(ステップS402)。単体テスト実行機能112は、利用者により入力部103を用いて単体テスト実行機能画面1000に入力されたモジュール名(今回の例ではモジュールAとする)を取得し(ステップS403)、取得したモジュール名をキー(今回の例ではモジュールAとする)に影響分析テーブル114のモジュール名204を検索し、該当するレコードからチェックリスト番号202(今回の例ではCCL001、CCL002、CCL003とする)、入力情報205(今回の例では1、10、200とする)、単体テスト出力情報207(今回の例では、値無しとする)を抽出し(ステップS404)、ステップS403で取得したモジュール名(今回の例ではモジュールAとする)と影響分析テーブル114から抽出したチェックリスト番号202(今回の例ではCCL001、CCL002、CCL003とする)、入力情報205(今回の例では1、10、200とする)を、単体テスト入力条件として、図10に示す単体テスト実行機能画面1000に表示する(ステップS405)。次に、利用者により入力部103を用いて単体テスト実行機能画面1000の実行ボタン1006が押下される操作が行われることで、単体テスト実行機能112は、モジュール格納領域116にあるモジュールのうち、単体テスト実行機能画面1000より取得したモジュール名のモジュールに対して、影響分析テーブル114から抽出した入力情報205(今回の例では1とする)を入力とした単体テストを実行し、出力情報(今回の例では2とする)を取得し(ステップS406)、取得した出力情報を、チェックリスト番号1003、モジュール名1004、入力情報1005と一致する影響分析テーブル114のレコードの単体テスト出力情報207に格納(更新含む)する(ステップS407)。   The unit test execution function 112 is activated by the user selecting the unit test execution function 112 on the menu screen 700 shown in FIG. 7 using the input unit 103 (step S401), and the unit test execution function screen 1000 shown in FIG. 10 is displayed. It is displayed (step S402). The unit test execution function 112 acquires the module name (in this example, module A) input by the user on the unit test execution function screen 1000 using the input unit 103 (step S403), and uses the acquired module name as a key. The module name 204 of the impact analysis table 114 is searched for (in this example, module A), checklist number 202 (in this example, CCL001, CCL002, CCL003) and input information 205 (this time). In this example, the unit test output information 207 (with no value in this example) is extracted (step S404), and the module name obtained in step S403 (in this example, module A and Checklist number 2 extracted from the impact analysis table 114 2 (CCL001, CCL002, and CCL003 in this example) and input information 205 (1, 10, and 200 in this example) are displayed on the unit test execution function screen 1000 shown in FIG. 10 as unit test input conditions. (Step S405). Next, when the user performs an operation of pressing the execution button 1006 on the unit test execution function screen 1000 using the input unit 103, the unit test execution function 112 among the modules in the module storage area 116 performs unit test execution. For the module with the module name acquired from the function screen 1000, a unit test is executed with the input information 205 (1 in this example) extracted from the impact analysis table 114 as an input, and output information (2 in this example). (Step S406), and the acquired output information is stored (including updated) in the unit test output information 207 of the record of the impact analysis table 114 that matches the check list number 1003, the module name 1004, and the input information 1005. (Step S407).

次に、単体テスト実行機能112は、取得した入力情報すべてに対して単体テストを実施したかを判定し(ステップS408)、実施していない場合、ステップS406の処理へ戻り、実施している場合、処理を終了する。   Next, the unit test execution function 112 determines whether or not the unit test has been performed on all of the acquired input information (step S408), and if not, returns to the process of step S406. Exit.

図5は影響分析装置1が具備する影響範囲分析機能113の処理概要を示すフローチャートである。   FIG. 5 is a flowchart showing a processing outline of the influence range analysis function 113 provided in the influence analysis apparatus 1.

影響範囲分析機能113は、利用者により入力部103を用いて図7に示すメニュー画面700で影響範囲分析機能が選択されることで起動し(ステップS501)、図11に示す影響範囲分析機能画面1100を表示する(ステップS502)。利用者により入力部103を用いて影響範囲分析機能画面1100に入力された、モジュール名(今回の例ではモジュールAとする)を取得し(ステップS503)、影響範囲抽出処理を実行する(ステップS504)。   The influence range analysis function 113 is activated by the user selecting the influence range analysis function on the menu screen 700 shown in FIG. 7 using the input unit 103 (step S501), and the influence range analysis function screen shown in FIG. 1100 is displayed (step S502). The module name (referred to as module A in this example) input to the influence range analysis function screen 1100 by the user using the input unit 103 is acquired (step S503), and the influence range extraction process is executed (step S504). ).

図6は影響分析装置1が具備する影響範囲分析機能113が実行する影響範囲抽出処理の処理を示すフローチャートである。   FIG. 6 is a flowchart showing the influence range extraction process performed by the influence range analysis function 113 included in the influence analysis apparatus 1.

影響範囲抽出処理S504はS503で取得したモジュール名をキー(今回の例ではモジュールAとする)に影響分析テーブル114のモジュール名204を検索し、該当するレコードの情報を取得する(ステップS601)。次に、モジュールの修正前後での同一入力情報に対する出力情報の変化を調べて、影響のある実行パスを抽出するために、取得したレコードの出力情報206(今回の例では2とする)と単体テスト出力情報207(今回の例では2とする)を突合する(ステップS602)。   The influence range extraction process S504 searches the module name 204 in the influence analysis table 114 using the module name acquired in S503 as a key (in this example, module A), and acquires information of the corresponding record (step S601). Next, in order to examine the change of the output information for the same input information before and after the modification of the module and to extract the execution path that is affected, the output information 206 of the acquired record (in this example, 2) and the unit test The output information 207 (2 in this example) is collated (step S602).

次に、影響範囲抽出処理S504は、突合の結果を判定し(ステップS603)、突合が一致する場合、ステップS606の処理を実施する。一方、突合が一致しない場合、影響分析テーブル114から、突合したレコードのチェックリスト番号202(今回の例ではCCL002、CCL003とする)が同一で、かつステップS601で検索した該当レコードの実行順序203(今回の例では1、2とする)より大きい実行順序が格納されたレコードを特定し、特定したレコードからモジュール名204(今回の例ではモジュールD、モジュールE、モジュールGとする)を抽出する(ステップS604)。実行順序が大きいレコードを特定するのは、図12に示されるように突合せしたモジュール(今回の例ではモジュールAとする)の後続で実行されるモジュール(今回の例ではモジュールB、モジュールC、モジュールD、モジュールE、モジュールGとする)は突合せしたモジュール(今回の例ではモジュールAとする)の出力情報を入力情報とするため影響を受けるかどうかを検証する必要があるためである。抽出したモジュール名を影響分析結果一覧として保持する(ステップS605)。   Next, the influence range extraction process S504 determines the result of the match (step S603), and when the match matches, executes the process of step S606. On the other hand, if the matches do not match, the check list number 202 (in this example, CCL002 and CCL003) of the matched records is the same from the impact analysis table 114, and the execution order 203 of the corresponding records searched in step S601 ( A record storing a larger execution order is specified (in this example, 1 and 2), and a module name 204 (in this example, module D, module E, and module G) is extracted from the specified record ( Step S604). A record having a large execution order is identified by modules (module B, module C, and module in this example) that are executed after the matched module (module A in this example) as shown in FIG. This is because the output information of the matched module (in this example, module A) is used as input information, and it is necessary to verify whether it is affected. The extracted module name is held as an impact analysis result list (step S605).

次に、影響範囲抽出処理ステップS504は取得したレコードすべてに対して、出力情報206と単体テスト出力情報207の突合をしたかを判定し(ステップS606)、突合していない場合、ステップS602の処理へ戻る。一方、取得したレコードすべてに対して、出力情報206と単体テスト出力情報207を突合している場合、保持した影響分析結果一覧を図11に示す影響範囲分析機能画面1100に表示する(ステップS607)。   Next, in the influence range extraction processing step S504, it is determined whether or not the output information 206 and the unit test output information 207 have been matched with respect to all the acquired records (step S606), and if not, the process returns to the process of step S602. . On the other hand, when the output information 206 and the unit test output information 207 are matched with respect to all the acquired records, the held influence analysis result list is displayed on the influence range analysis function screen 1100 shown in FIG. 11 (step S607).

図7に示すメニュー画面700には、影響分析装置1の表示部102に表示される、利用者が開始したい機能を選択するメニュー画面の例を示す。図7に示すメニュー画面700において、利用者が入力部103を用いて、組合せテスト実行機能701を選択し押下する操作を行うことによって、図3に示す、組合せテスト実行機能111による処理が開始され、図8に示す、組合せテスト実行機能画面800に遷移する。また、利用者が入力部103を用いて、単体テスト実行機能702を選択し押下する操作を行うことによって、図4に示す、単体テスト実行機能112による処理が開始され、図10に示す、単体テスト実行機能画面1000に遷移する。また、利用者が入力部103を用いて、影響範囲分析機703を選択し押下する操作を行うことによって、図5に示す、影響範囲分析機能113による処理が開始され、図11に示す、影響範囲分析機能画面1100に遷移する。   A menu screen 700 shown in FIG. 7 shows an example of a menu screen for selecting a function that the user wants to start displayed on the display unit 102 of the impact analysis apparatus 1. In the menu screen 700 shown in FIG. 7, when the user performs an operation of selecting and pressing the combination test execution function 701 using the input unit 103, the processing by the combination test execution function 111 shown in FIG. 3 is started. , Transition to the combination test execution function screen 800 shown in FIG. Further, when the user performs an operation of selecting and pressing the unit test execution function 702 using the input unit 103, processing by the unit test execution function 112 shown in FIG. 4 is started, and the unit test execution function shown in FIG. 10 is started. Transition to screen 1000. Further, when the user performs an operation of selecting and pressing the influence range analyzer 703 using the input unit 103, the processing by the influence range analysis function 113 shown in FIG. 5 is started, and the influence shown in FIG. A transition is made to the range analysis function screen 1100.

図8に示す組合せテスト実行機能画面800には、影響分析装置1の表示部102に表示される、組合せテストのチェックリスト番号と初期投入データを入力する画面の例を示す。図8に示す組合せテスト実行機能画面800において、利用者が入力部103を用いて、チェックリスト番号(今回の例ではCCL001とする)801、初期投入データ(今回の例では1とする)802を入力し、実行ボタン803を押下する操作を行うことによって、組合せテストの実行が開始される。   The combination test execution function screen 800 shown in FIG. 8 shows an example of a screen for inputting a combination test checklist number and initial input data displayed on the display unit 102 of the impact analysis apparatus 1. In the combination test execution function screen 800 shown in FIG. 8, the user uses the input unit 103 to enter a checklist number (CCL001 in this example) 801 and initial input data (1 in this example) 802. The combination test is started by inputting and performing an operation of pressing the execution button 803.

図9は影響分析装置1が具備する制御ファイル115に記載される、組合わせテストのチェックリスト1件毎に、実行するモジュールのモジュール名が実行順序に沿って記載されている例を示す。図9に示す制御ファイル115において、チェックリスト番号(今回の例ではCCL0001とする)と組合せテストで実行するモジュール名が実行順序に従って記載されている(今回の例ではモジュールA、モジュールB、モジュールCとする)。組合せテスト実行機能111は、制御ファイル115を読み込み、入力されたチェックリスト番号に合致するチェックリスト番号の箇所に記載されているモジュールを順次実行する。   FIG. 9 shows an example in which the module names of the modules to be executed are described in the execution order for each combination test checklist described in the control file 115 included in the impact analysis apparatus 1. In the control file 115 shown in FIG. 9, the checklist number (in this example, CCL0001) and the module name to be executed in the combination test are described according to the execution order (in this example, module A, module B, and module C). And). The combination test execution function 111 reads the control file 115 and sequentially executes the modules described in the check list number that matches the input check list number.

図10に示す単体テスト実行機能画面1000には、影響分析装置1の表示部102に表示される、単体テストを実施するモジュール名の入力と入力されたモジュールの入力情報を検索した結果を表示する画面の例を示す。図10に示す単体テスト実行機能画面1000において、利用者が入力部103を用いて、モジュール名(今回の例ではモジュールAとする)1001を入力し、検索ボタン1002を押下する操作を行うことによって、影響分析テーブル114からモジュールの入力情報を検索した結果を表示する。図10に示す単体テスト実行機能画面1000において、チェックリスト番号1003、モジュール名1004、入力情報1005がそれぞれ対応付けて表示される。チェックリスト番号1003には、モジュールAが実行されたチェックリスト番号、モジュール名1004には、入力されたモジュール名1001、入力情報1005には組合せテスト実行時にモジュールAに入力された入力情報が表示されている。利用者が、入力部103を用いて、実行ボタン1006を押下する操作を行うことによって、単体テストの実行が開始される。   The unit test execution function screen 1000 shown in FIG. 10 is a screen that displays the result of searching for the input of the module name and the input information of the module that is displayed on the display unit 102 of the impact analysis apparatus 1. An example is shown. In the unit test execution function screen 1000 shown in FIG. 10, the user inputs a module name (in this example, module A) 1001 using the input unit 103 and performs an operation of pressing the search button 1002. The result of retrieving the module input information from the impact analysis table 114 is displayed. In the unit test execution function screen 1000 shown in FIG. 10, a check list number 1003, a module name 1004, and input information 1005 are displayed in association with each other. The check list number 1003 displays the check list number in which the module A was executed, the module name 1004 displays the input module name 1001, and the input information 1005 displays the input information input to the module A when the combination test is executed. ing. When the user performs an operation of pressing the execution button 1006 using the input unit 103, execution of the unit test is started.

図11に示す影響範囲分析機能画面1100には、影響分析装置1の表示部102に表示される、影響範囲を分析するモジュール名の入力と入力されたモジュールの影響範囲を分析した結果を表示する画面の例を示す。図11に示す影響範囲分析機能画面1100において、利用者が、入力部103を用いて、にモジュール名(今回はモジュールAとする)1101を入力し、実行ボタン1102を押下する操作を行うことによって、影響分析テーブル114からモジュールA変更時の影響範囲がモジュール名1103と対応付けて表示される。モジュール名1103には、影響を受けるモジュール名が表示されている。   The influence range analysis function screen 1100 shown in FIG. 11 displays the input of the module name for analyzing the influence range and the result of analyzing the influence range of the input module, which are displayed on the display unit 102 of the influence analysis apparatus 1. An example of the screen is shown. In the influence range analysis function screen 1100 shown in FIG. 11, the user inputs a module name (this time module A) 1101 using the input unit 103 and performs an operation of pressing the execution button 1102. The influence range when the module A is changed is displayed in association with the module name 1103 from the influence analysis table 114. The module name 1103 displays the name of the affected module.

図12は、図2で示した影響分析テーブルに格納されている実行順序203とモジュール名204を基に作成したチェックリスト番号202がCCL001の実行順序を示した図(1201)およびCCL002の実行順序を示した図(1202)およびCCL003の実行順序を示した図(1203)である。   12 is a diagram (1201) in which the check list number 202 created based on the execution order 203 and the module name 204 stored in the impact analysis table shown in FIG. 2 indicates the execution order of CCL001 and the execution order of CCL002. FIG. 1202 is a diagram showing the execution order of CCL003.

以上本発明の一実施例について説明した。   The embodiment of the present invention has been described above.

以上本発明の実施例を説明したが、本発明はこれに限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能である。   Although the embodiment of the present invention has been described above, the present invention is not limited to this, and various modifications can be made without departing from the scope of the invention.

1・・・影響分析装置、101・・・記憶部、102・・・表示部、103・・・入力部、104・・・制御部。 DESCRIPTION OF SYMBOLS 1 ... Impact analysis apparatus, 101 ... Memory | storage part, 102 ... Display part, 103 ... Input part, 104 ... Control part.

Claims (5)

モジュール(プログラム)の変更に伴う影響を分析する影響分析装置における影響分析方法であって、
前記影響分析装置は、入力部、記憶部、制御部及び表示部を具備し、
前記記憶部には、モジュール名と、複数の前記モジュールを組合わせてテストした結果である組合せテスト結果と、前記組合わせテスト時の前記モジュールの実行順序と、前記複数のモジュールのうち変更モジュールを単体でテストした結果である単体テスト結果と、組合わせて実行するも前記モジュールのモジュール名およびこれらモジュールの前記実行順序と、前記組合わせて実行する前記モジュールのモジュール名およびこれらモジュールの実行順序の組み合わせを一意に識別するチェックリスト番号と、がそれぞれ対応付けて記憶されており、
前記制御部により、
前記入力部を介して、前記変更モジュールのモジュール名を取得し、
前記取得したモジュール名に基づき前記記憶部を検索し、該当レコードのモジュールの前記組合せテスト結果と前記単体テスト結果とを照合し、
前記照合の結果、双方の結果が一致しない場合に、前記記憶部から、前記該当レコードのチェックリスト番号が同一で、かつ前記該当レコードの前記実行順序より大きい実行順序が格納されたレコードを特定し、
前記特定したレコードから前記モジュール名を抽出し、
前記抽出したモジュール名を、前記モジュール変更に伴い影響するモジュールのモジュール名として前記表示部に表示する、
ことを特徴とする影響分析方法。
An impact analysis method in an impact analysis device that analyzes the impact of module (program) changes,
The influence analysis apparatus includes an input unit, a storage unit, a control unit, and a display unit,
In the storage unit, a module name, a combination test result that is a result of combining and testing the plurality of modules, an execution order of the modules at the combination test, and a change module among the plurality of modules are stored. Combination of unit test results that are the results of unit tests, module names of the modules that are executed in combination and the execution order of the modules, module names of the modules that are executed in combination and the execution order of these modules And a checklist number that uniquely identifies each
By the control unit,
Get the module name of the change module via the input unit,
Search the storage unit based on the acquired module name, collate the combination test result of the module of the corresponding record with the unit test result,
If both results do not match as a result of the collation, the storage unit identifies a record in which the checklist number of the corresponding record is the same and the execution order greater than the execution order of the corresponding record is stored. ,
Extracting the module name from the identified record;
The extracted module name is displayed on the display unit as the module name of the module that is affected by the module change.
An impact analysis method characterized by that.
前記制御部により、
前記実行順序に従って前記複数のモジュールの組合わせテストを行う際、前記入力部から初期投入データを最初に実行するモジュールの入力情報とし、以降、該モジュール実行時の出力情報を次に実行するモジュールの入力情報とし、各モジュールの出力情報を前記組合わせテスト結果として、該当チェックリスト番号、入力情報、実行順序と対応付けて前記記憶部に格納する、
ことを特徴とする請求項1に記載の影響分析方法。
By the control unit,
When performing a combination test of the plurality of modules according to the execution order, initial input data from the input unit is used as input information of a module to be executed first, and thereafter, output information at the time of executing the module is As input information, the output information of each module is stored in the storage unit in association with the corresponding checklist number, input information, and execution order as the combination test result.
The influence analysis method according to claim 1, wherein:
前記制御部により、
前記入力部を介して前記単体テストの対象モジュールのモジュール名を取得し、前記取得したモジュール名に基づき前記記憶部を検索し、該当レコードか抽出した前記入力情報を入力として前記単体テストの対象モジュールを実行し、該実行後の出力情報を前記単体テスト結果として、該当チェックリスト番号、入力情報、実行順序と対応付けて前記記憶部に格納する、
ことを特徴とする請求項2に記載の影響分析方法。
By the control unit,
The module name of the target module of the unit test is acquired via the input unit, the storage unit is searched based on the acquired module name, and the target module of the unit test is executed using the input information extracted from the corresponding record as an input The output information after the execution is stored in the storage unit as the unit test result in association with the corresponding checklist number, input information, and execution order.
The influence analysis method according to claim 2, wherein:
前記制御部により、
組合わせテストの実行機能、単体テストの実行機能、前記モジュール変更に伴い影響範囲を分析する機能の何れかの機能を選択する画面を前記表示部に表示する、
ことを特徴とする請求項3に記載の影響分析方法。
By the control unit,
A screen for selecting any one of a combination test execution function, a unit test execution function, and a function of analyzing an influence range in accordance with the module change is displayed on the display unit.
The influence analysis method according to claim 3.
コンピュータを制御して、請求項1乃至4の何れか1項に記載の影響分析方法を実行させるための影響分析プログラム。   An impact analysis program for controlling a computer to execute the impact analysis method according to any one of claims 1 to 4.
JP2011117547A 2011-05-26 2011-05-26 Impact analysis method and impact analysis program Expired - Fee Related JP5325931B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011117547A JP5325931B2 (en) 2011-05-26 2011-05-26 Impact analysis method and impact analysis program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011117547A JP5325931B2 (en) 2011-05-26 2011-05-26 Impact analysis method and impact analysis program

Publications (2)

Publication Number Publication Date
JP2012247881A true JP2012247881A (en) 2012-12-13
JP5325931B2 JP5325931B2 (en) 2013-10-23

Family

ID=47468296

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011117547A Expired - Fee Related JP5325931B2 (en) 2011-05-26 2011-05-26 Impact analysis method and impact analysis program

Country Status (1)

Country Link
JP (1) JP5325931B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015158769A (en) * 2014-02-24 2015-09-03 三菱電機株式会社 fault extraction support device
WO2018154784A1 (en) * 2017-02-27 2018-08-30 三菱電機株式会社 Effect extraction device, effect extraction program, and effect extraction method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04281526A (en) * 1991-03-11 1992-10-07 Toshiba Corp Software development supporting device
JPH08292881A (en) * 1995-04-24 1996-11-05 Nec Corp Program influence range display device
JP2001010497A (en) * 1999-06-29 2001-01-16 Hitachi Ltd Device for assisting preparation of control system component data
JP2009122754A (en) * 2007-11-12 2009-06-04 Mitsubishi Electric Corp Software development support device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04281526A (en) * 1991-03-11 1992-10-07 Toshiba Corp Software development supporting device
JPH08292881A (en) * 1995-04-24 1996-11-05 Nec Corp Program influence range display device
JP2001010497A (en) * 1999-06-29 2001-01-16 Hitachi Ltd Device for assisting preparation of control system component data
JP2009122754A (en) * 2007-11-12 2009-06-04 Mitsubishi Electric Corp Software development support device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015158769A (en) * 2014-02-24 2015-09-03 三菱電機株式会社 fault extraction support device
WO2018154784A1 (en) * 2017-02-27 2018-08-30 三菱電機株式会社 Effect extraction device, effect extraction program, and effect extraction method
JPWO2018154784A1 (en) * 2017-02-27 2019-06-27 三菱電機株式会社 Influence extraction device, influence extraction program and influence extraction method

Also Published As

Publication number Publication date
JP5325931B2 (en) 2013-10-23

Similar Documents

Publication Publication Date Title
CN109375945B (en) Firmware version detection method and vulnerability repair rate evaluation method for Internet of things equipment
JP4395761B2 (en) Program test support apparatus and method
US9454467B2 (en) Method and apparatus for mining test coverage data
JP6542612B2 (en) Test scenario generation support apparatus and test scenario generation support method
WO2018036531A1 (en) Test case generation method
US20140250336A1 (en) Machine and Methods for Evaluating Failing Software Programs
JP6440895B2 (en) Software analysis apparatus and software analysis method
KR20180129623A (en) Apparatus for statically analyzing assembly code including assoxiated multi files
JP5325931B2 (en) Impact analysis method and impact analysis program
CN110737573B (en) Method and device for automatically testing user interface UI
CN112988568B (en) Game testing method and device and electronic equipment
KR102021383B1 (en) Method and apparatus for analyzing program by associating dynamic analysis with static analysis
JP2016091138A (en) Source code verification system
JP2005332098A (en) Testing item extraction system, testing item extraction device, testing item extraction method used for the device, and program therefor
CN112765041B (en) Game automation testing method and device and electronic equipment
WO2018036528A1 (en) Automatic testing method
CN111813617B (en) Method and device for testing and scheduling functions of main board device
JP5163172B2 (en) Software test item editing support apparatus and software test item editing support method
JP2017041196A (en) Stub object determination device, method, and program
JP2009199172A (en) Information processing system, method for specifying similar parts inside program, and program
US20130125091A1 (en) Automatic program generation device and automatic program generation method
JP2005025543A (en) Consistency check system, consistency check method, consistency check program and management information creation system
WO2013099013A1 (en) Screen data editing device for display device
JPWO2018154784A1 (en) Influence extraction device, influence extraction program and influence extraction method
US20230259536A1 (en) Data processing device, data processing method, and data processing program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130417

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130423

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130604

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130625

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130722

R151 Written notification of patent or utility model registration

Ref document number: 5325931

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees