JPH0210443A - Reset case selecting system - Google Patents

Reset case selecting system

Info

Publication number
JPH0210443A
JPH0210443A JP63159135A JP15913588A JPH0210443A JP H0210443 A JPH0210443 A JP H0210443A JP 63159135 A JP63159135 A JP 63159135A JP 15913588 A JP15913588 A JP 15913588A JP H0210443 A JPH0210443 A JP H0210443A
Authority
JP
Japan
Prior art keywords
test
source program
retest
case
control flow
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.)
Pending
Application number
JP63159135A
Other languages
Japanese (ja)
Inventor
Tadao Hashimoto
忠雄 橋本
Yukio Akutsu
阿久津 幸雄
Shigeo Matsunaga
松永 栄夫
Noboru Ohara
昇 大原
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 JP63159135A priority Critical patent/JPH0210443A/en
Publication of JPH0210443A publication Critical patent/JPH0210443A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To efficiently execute the test again by analyzing an influence which correction of a source program has upon the control flow of this program and selecting the test case requiring the retest for source program correction from a table of correspondence between best cases and fundamental paths. CONSTITUTION:In the case of source program correction, a change influence range analysis 4 extracts fundamental paths, which are affected by this correction, in accordance with source program difference information in a source program library 11 (the library management function of a general operating system) and control flow information 13. Thereafter, retest case selection 5 inputs said results and a table 16 of correspondence between test cases and fundamental paths and selects test cases requiring the retest to output a retest case number list 18. A retest controller 6 uses a test case 5 and a load module 14 as parameters based on the selection information to start a tester 3, thus executing the test.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はソフトウェアシステムのテスト自動化方式に関
し、特にソースプログラム修正に対して、再テストが必
要なテストケースの自動的な選択、実行に関する6 〔従来の技術〕 従来この種のテストケース選択方式では、特開昭62−
166443号のように、データベース中のテストケー
スの環境(テスト対象プロダク1−名、基本機能/詳細
機能/障害テスト等の区分、使用装置等)と実際のテス
ト実行の際にユーザが指定したテスト実行環境との比較
により、テスト可能なテストケースを選択・起動するよ
うになっていた。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a test automation method for software systems, and in particular to automatic selection and execution of test cases that require retesting for source program modification. Conventional technology] Conventionally, in this type of test case selection method,
As in No. 166443, the environment of the test case in the database (name of product to be tested, classification of basic function/detailed function/failure test, etc., equipment used, etc.) and the test specified by the user during actual test execution. Testable test cases were selected and launched by comparing them with the execution environment.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ソフトウェアのテストにおいては、ソースプログラム修
正に伴う再テスト作業がテスト作業の大半を占めるが、
上記特許を含め従来技術はソースプログラム修正に対す
る再テスト(一般に回帰テストに言うことが多い)の範
囲選択及び自動化に関する配慮が欠けていた。
In software testing, most of the testing work involves retesting due to source program modifications.
Conventional techniques, including the above-mentioned patents, lack consideration for range selection and automation of retesting (generally referred to as regression testing) for source program modifications.

本発明の目的は、ソースプログラム修正により影響を受
ける基本パスを解析し、再テストに必要最少限のテスト
ケースを自動選択すること及びその自動実行にある。
An object of the present invention is to analyze basic paths affected by source program modification, automatically select the minimum number of test cases necessary for retesting, and automatically execute them.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的は、ソースプログラム解析による基本パス群か
らなる制御フロー情報、テストケースと基本パスの対応
表、ソースプログラム修正に対応した影響基本パスの抽
出手段、左記基本パスを含むテストケース選択の手段及
び左記に基づくテスト実行手段とにより達成される。
The above objectives include control flow information consisting of a group of basic paths obtained by source program analysis, a correspondence table between test cases and basic paths, a means for extracting influencing basic paths corresponding to source program modifications, a means for selecting test cases including the basic paths listed on the left, and This is achieved by a test execution means based on the above.

〔作用〕[Effect]

ソースプログラム修正が当プログラムの制御フローに与
える影響を解析し、影響を受ける基本パスを含むテスト
ケース、即ちソースプログラム修正に対して再テストが
必要なテストケースを、テストケースと基本パスの対応
表から選択する。またこのテストケースに基づくテスト
をテスト実行手段により実行する。
Analyze the impact that source program modifications have on the control flow of this program, and select test cases that include the affected basic paths, that is, test cases that require retesting due to source program modifications, and create a correspondence table between test cases and basic paths. Choose from. Further, a test based on this test case is executed by the test execution means.

〔実施例〕〔Example〕

以下、本発明の一実施例を第1図により説明する。 An embodiment of the present invention will be described below with reference to FIG.

第1図でコンパイラ1はソースプログラムライブラリ1
1からオブジェクトプログラムライブラリ12と基本パ
ス群からなる制御フロー情報13を作成する。リンケー
ジエディタ2はオブジェクトプログラムライブラリ12
を入力し、被テストプログラムのロードモジュール14
を作成する。
In Figure 1, compiler 1 is source program library 1
1, control flow information 13 consisting of an object program library 12 and a group of basic paths is created. Linkage editor 2 is object program library 12
and load module 14 of the program under test.
Create.

テスタ3はユーザが指定したロードモジュール14、テ
ストケース15.及び制御フロー情報13を入力してテ
ストを実行し、テストケースと基本パスの対応表16の
作成・更新とテスト結果17の出力を行う。
The tester 3 loads a load module 14, a test case 15 . and control flow information 13 to execute the test, create/update the correspondence table 16 between test cases and basic paths, and output the test results 17.

ソースプログラム修正の場合、変更影響範囲解析4は、
ソースプログラムライブラリ11中のソースプログラム
差分情報(これは一般の汎用オペレーティングシステム
のライブラリ管理の機能)と制御フロー情報13とから
影響のある基本パスを抽出する。再テストケース選択5
は、上記結果とテストケースと基本パスの対応表16を
入力し、再テストが必要なテストケースを選択し、再テ
ストケース番号リスト18を出力する。また再テストコ
ントローラ6は上記選択情報を元に、テストケース15
とロードモジュール14をパラメータとしてテスタ3を
起動しテストを実行する。
In the case of source program modification, change impact range analysis 4 is
An influential basic path is extracted from the source program difference information in the source program library 11 (this is a library management function of a general general-purpose operating system) and the control flow information 13. Retest case selection 5
inputs the above-mentioned result, test case, and basic path correspondence table 16, selects a test case that requires retesting, and outputs a retest case number list 18. Also, the retest controller 6 uses the test case 15 based on the above selection information.
and the load module 14 as parameters to start the tester 3 and execute the test.

第2図は第1図のソースプログラムライブラリ11中の
ソースプログラムの処理フローの例を示す。この処理フ
ローは、入口点30.各処理41〜46.制御の分岐点
及び流入点31〜36.出口点39から成る。
FIG. 2 shows an example of the processing flow of the source program in the source program library 11 of FIG. This processing flow begins at entry point 30. Each process 41-46. Control branch points and inflow points 31-36. Consisting of exit points 39.

第3図は第2図の処理フローに対応する制御フローであ
り、制御の分岐点及び流入点でこの制御フローを分割し
た基本パスの集合とし表現されている。第3図の各ノー
ド30〜39は、第2図の入口点1分岐点、流入点、出
ロ点の各々の番号に対応する。また基本パスをa −j
で表現している。
FIG. 3 shows a control flow corresponding to the processing flow of FIG. 2, and is expressed as a set of basic paths obtained by dividing this control flow at control branch points and inflow points. The nodes 30 to 39 in FIG. 3 correspond to the respective numbers of the entry point, the first branch point, the inflow point, and the exit point in FIG. 2. Also, the basic path is a −j
It is expressed as.

各基本パスは第2図の隣接する入口点9分岐点。Each basic path has 9 adjacent entry points and 9 branch points in FIG.

流入点、出口点間の空文を含む命令文群に対応する。例
えば基本パスCは、第2図の処理ボックス43及びその
処理ボックス43の命令文群に対応する。
It corresponds to a group of command statements including a blank statement between the inflow point and the exit point. For example, the basic path C corresponds to the processing box 43 in FIG. 2 and the statement group of the processing box 43.

第4図は第2図の処理フローに対するテストケースt1
〜t4と基本パスとの対応表の例を示す。
Figure 4 shows test case t1 for the processing flow in Figure 2.
An example of a correspondence table between ~t4 and basic paths is shown.

例えばテストt1は基本パスa、b、Q、8.fからな
ることを示す。
For example, test t1 has basic paths a, b, Q, 8. Indicates that it consists of f.

ソースプログラムの修正が、第2図の処理フローの処理
ボックス43に対して実行されると、変更範囲解析4は
基本パスCを抽出する。再テストケース選択5は第4図
のテストケースと基本パスの対応表から、基本パスCを
含むテストケースt1を選択する。即ち、第2図の処理
フローの処理ボックス43に閉じる変更に対する再テス
トはテストケースt1のみを実行すれば良いことを示し
ている。再テストコントローラ6は、テストケースt1
を指示して、テスタ3を起動する。
When the source program is modified in the processing box 43 of the processing flow in FIG. 2, the change range analysis 4 extracts the basic path C. In the re-test case selection 5, a test case t1 including the basic path C is selected from the correspondence table of test cases and basic paths shown in FIG. That is, it is shown that only test case t1 needs to be retested for the change shown in processing box 43 in the processing flow of FIG. 2. The retest controller 6 performs test case t1
Start Tester 3 by instructing.

〔発明の効果〕〔Effect of the invention〕

本発明によればソースプログラム修正に影響のある再テ
ストケースを自動選択でき、又必要最少限の再テストの
実行ができ、テスト作業の大半を占めるソースプログラ
ム修正に対応した再テストを効率的に実施できる。
According to the present invention, it is possible to automatically select retest cases that affect source program modification, and to execute the minimum necessary number of retests, making it possible to efficiently perform retesting corresponding to source program modification, which accounts for the majority of testing work. Can be implemented.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示すブロック図。 第2図はソースプログラムの処理フロー図、第3図は第
2図に対応する制御フロー図、第4図は第3図に対応す
るテストケースと基本パスの対応説明図である。 1・・・コンパイラ、2・・・リンケージ・エディタ。 3・・・テスタ、4・・・変更影響範囲解析、5・・・
再テストケース選択、6・・・再テストコントローラ、
11・・・ソースプログラムライブラリ、12・・・オ
ブジェクトプログラムライブラリ、13・・・制御フロ
ー情報、14・・・ロードモジュール、15・・・テス
トケース、17・・・テスト結果、18・・・再テスト
ケース番号リスト、30・・・入口点、39・・・出口
点、41〜46・・・処理ボックス。
FIG. 1 is a block diagram showing one embodiment of the present invention. FIG. 2 is a processing flow diagram of a source program, FIG. 3 is a control flow diagram corresponding to FIG. 2, and FIG. 4 is an explanatory diagram of the correspondence between test cases and basic paths corresponding to FIG. 3. 1...Compiler, 2...Linkage editor. 3...Tester, 4...Change impact range analysis, 5...
Re-test case selection, 6... Re-test controller,
DESCRIPTION OF SYMBOLS 11... Source program library, 12... Object program library, 13... Control flow information, 14... Load module, 15... Test case, 17... Test result, 18... Replay Test case number list, 30... Entrance point, 39... Exit point, 41-46... Processing box.

Claims (1)

【特許請求の範囲】[Claims] 1、ソースプログラムを解析して、制御の分岐点、流入
点により分割された制御の流れを基本パスとし、この基
本パス群からなる制御フロー情報と、各テストケースの
テスト実行結果によるテストケースと上記基本パスの対
応表と、ソースプログラムの修正による制御フローへの
影響を解析し、影響する基本パスを抽出する手段と、前
記対応表に基づき、影響する基本パスの実行を含むテス
トケースを選択する手段を有することを特徴とする再テ
ストケース選択方式。
1. Analyze the source program, define the control flow divided by control branch points and inflow points as basic paths, and create test cases based on the control flow information consisting of these basic path groups and the test execution results of each test case. Based on the above correspondence table of basic paths, a means to analyze the influence on the control flow due to modification of the source program and extract the affected basic paths, and select a test case that includes the execution of the affected basic path based on the above correspondence table. A retest case selection method characterized by having a means for selecting a retest case.
JP63159135A 1988-06-29 1988-06-29 Reset case selecting system Pending JPH0210443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63159135A JPH0210443A (en) 1988-06-29 1988-06-29 Reset case selecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63159135A JPH0210443A (en) 1988-06-29 1988-06-29 Reset case selecting system

Publications (1)

Publication Number Publication Date
JPH0210443A true JPH0210443A (en) 1990-01-16

Family

ID=15687012

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63159135A Pending JPH0210443A (en) 1988-06-29 1988-06-29 Reset case selecting system

Country Status (1)

Country Link
JP (1) JPH0210443A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03291733A (en) * 1990-04-10 1991-12-20 Fujitsu Ten Ltd Method for creating test data file
JPH08272650A (en) * 1995-03-29 1996-10-18 Nec Corp Retest path selection system
JP2012221394A (en) * 2011-04-13 2012-11-12 Nec Commun Syst Ltd Test support system, test support method, and program
JP2014021686A (en) * 2012-07-18 2014-02-03 Fujitsu Ltd Test data generation device, program and method
US9329981B2 (en) 2013-07-25 2016-05-03 Fujitsu Limited Testing program, testing method, and testing device
JP2018097785A (en) * 2016-12-16 2018-06-21 株式会社東芝 Test support device and test support program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03291733A (en) * 1990-04-10 1991-12-20 Fujitsu Ten Ltd Method for creating test data file
JPH08272650A (en) * 1995-03-29 1996-10-18 Nec Corp Retest path selection system
JP2012221394A (en) * 2011-04-13 2012-11-12 Nec Commun Syst Ltd Test support system, test support method, and program
JP2014021686A (en) * 2012-07-18 2014-02-03 Fujitsu Ltd Test data generation device, program and method
US9329981B2 (en) 2013-07-25 2016-05-03 Fujitsu Limited Testing program, testing method, and testing device
JP2018097785A (en) * 2016-12-16 2018-06-21 株式会社東芝 Test support device and test support program

Similar Documents

Publication Publication Date Title
DE3787431T2 (en) Methods for generating a candidate list of faulty circuit elements and method for isolating faults in a logic circuit using this candidate list.
CN101286132B (en) Test method and system based on software defect mode
US7856607B2 (en) System and method for generating at-speed structural tests to improve process and environmental parameter space coverage
US5684946A (en) Apparatus and method for improving the efficiency and quality of functional verification
EP3163448A1 (en) Test case generation system and recording medium wherein test case is recorded
CN108763064A (en) A kind of code tester generation method and device based on black box function and machine learning
Harrold Architecture-based regression testing of evolving systems
JPH0210443A (en) Reset case selecting system
CN107247663B (en) Redundancy variant identification method
Lyu et al. A coverage analysis tool for the effectiveness of software testing
Flemström et al. Saga toolbox: Interactive testing of guarded assertions
Binh et al. LusRegTes: A Regression Testing Tool for Lustre Programs.
Khatun et al. An automatic test suite regeneration technique ensuring state model coverage using UML diagrams and source syntax
Stephenson et al. Test data generation for product lines-a mutation testing approach
JP7059827B2 (en) Source code generator
JPH1115695A (en) Program test pattern automatic generating system
CN114500266A (en) Method, device and equipment for analyzing working state of node
JPS62140076A (en) Apparatus for measuring electronic circuit
Sedlacek et al. Software Tests Quality Evaluation Using Code Mutants
JPH01154256A (en) Detecting method for program error position
JPS63157244A (en) Debugging system for test program of peripheral device
JPH0258136A (en) Software test coverage measuring device
CN117648243A (en) AI acceleration chip fault triggering minimum program searching method and system
Barbosa et al. Development and validation of production electronic test procedures through virtual airplane: A case study of an EMBRAER aircraft
Ehrenberger et al. Programanalysis-A method for the verification of software for the control of a nuclear reactor