JPH073654B2 - Test case extraction device - Google Patents

Test case extraction device

Info

Publication number
JPH073654B2
JPH073654B2 JP61220863A JP22086386A JPH073654B2 JP H073654 B2 JPH073654 B2 JP H073654B2 JP 61220863 A JP61220863 A JP 61220863A JP 22086386 A JP22086386 A JP 22086386A JP H073654 B2 JPH073654 B2 JP H073654B2
Authority
JP
Japan
Prior art keywords
importance
program
conditional
statement
file
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.)
Expired - Lifetime
Application number
JP61220863A
Other languages
Japanese (ja)
Other versions
JPS6378232A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61220863A priority Critical patent/JPH073654B2/en
Publication of JPS6378232A publication Critical patent/JPS6378232A/en
Publication of JPH073654B2 publication Critical patent/JPH073654B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 〔概要〕 本発明はプログラムの流れをディスプレイ上の画面上で
流れ図の表記を用いて、木構造で表現する編集システム
において、ソースプログラムの条件文に対応するディス
プレイ上の表示場所に複数段階の重みを付加して編集し
た結果を、一旦ファイルに格納しそのファイルからテス
トケースジェネレータにより条件文だけを出力する場
合、入力した重要度レベルと一致する重みの付加された
条件文を抽出し、印刷するものである。
DETAILED DESCRIPTION OF THE INVENTION [Outline] The present invention is an editing system that expresses the flow of a program in a tree structure on the screen of a display using the notation of a flow chart, and displays on the display corresponding to the conditional statements of the source program. When the result of editing by adding multiple levels of weight to the display location is once stored in a file and only the conditional sentence is output from that file by the test case generator, the condition with the weight added that matches the input importance level The sentence is extracted and printed.

これによりプログラムの重要度がプログラムの条件文の
テストシステムに反映され、プログラム設計者以外の人
がプログラムをテストする場合でもプログラムの論理的
な重みづけの重要度を把握することが容易となる。
As a result, the importance of the program is reflected in the conditional statement test system of the program, and it becomes easy to grasp the importance of the logical weighting of the program even when a person other than the program designer tests the program.

〔産業上の利用分野〕[Industrial application field]

本発明はソフトウェアを設計したり、試験するシステム
に係り、特にワークステーション等のディスプレイ上で
ソフトウェアの論理的な流れを画像的に表記し、木構造
で表現する編集システムにおいて、条件文の重要度を付
加することにより重要度レベルに従ってテストケースを
生成できるテストケース抽出装置に関する。
The present invention relates to a system for designing and testing software, and in particular, in an editing system in which a logical flow of software is graphically expressed on a display such as a workstation and expressed in a tree structure, the importance of conditional statements is high. The present invention relates to a test case extraction device that can generate a test case according to an importance level by adding.

〔従来の技術〕[Conventional technology]

集積化技術の発展に伴い、大型計算機と複数のワークス
テーションとをネットワークで結合し、各ワークステー
ション上で大きなソースプログラムをワークステーショ
ンの画面エディタを使って開発できるようになってき
た。非常に大きなソースプログラムは演算命令やメモリ
の読み書き命令等に加えて、IF文やDO文(繰り返し文)
等の条件文が非常に多く含まれている。この条件文は条
件文の中にさらに条件文があるようなネスティングが多
く含まれており、特に事務処理を対象とした大規模なソ
ースプログラムにおいては、これらの条件文によってプ
ログラムの論理的な流れが、ほぼ決定されている。従っ
てソースプログラムの条件文を抽出し、条件文の内容を
プログラムの試験時において、効率的に調べることの重
要性が高まっている。最近ソフトウェアを開発する場
合、例えば、ワークステーションのディスプレイ上でマ
ウス等を用いてソフトウェアの流れを画像処理的に例え
ば木構造を用いて表記し、編集するシステムが開発で
き、その編集システムによってできたソフトウェアの表
記ファイルをコンパイルすることによりCOBOL,C言語,
フォートラン、パスカル等のような汎用的な高級言語に
変換するシステムも開発されてきている。例えばソフト
ウェアの表記法としてYAC IIという木構造のチャートが
使用され、そのYAC IIチャート専用のエディタシステム
で編集した結果から各種言語へのコンパイラーも開発さ
れている。従来この種のソフトウェアの表記法に基づく
システムにおいて、ソースプログラムの条件文を抽出
し、この条件文の試験をすべての条件文に対して網羅す
ることが可能である。
With the development of integration technology, it has become possible to connect a large-scale computer and a plurality of workstations via a network, and to develop a large source program on each workstation using a workstation screen editor. Very large source programs include IF statements and DO statements (repeated statements) in addition to operation instructions and memory read / write instructions.
A lot of conditional statements such as are included. This conditional statement contains a lot of nesting such that there are more conditional statements in the conditional statement. Especially in a large-scale source program targeted for paperwork, the logical flow of the program depends on these conditional statements. However, it is almost decided. Therefore, it is becoming more important to extract the conditional statement of the source program and to efficiently check the content of the conditional statement at the time of testing the program. In the case of developing software recently, for example, it was possible to develop a system that uses a mouse or the like to display the flow of software on a display of a workstation by image processing, for example, using a tree structure, and edit the system. By compiling the notation file of software, COBOL, C language,
Systems for converting general-purpose high-level languages such as Fortran and Pascal have also been developed. For example, a YAC II tree structure chart is used as a software notation, and compilers for various languages have been developed from the results of editing with a YAC II chart dedicated editor system. Conventionally, in a system based on this type of software notation, it is possible to extract a conditional statement of a source program and to cover the test of this conditional statement for all conditional statements.

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

従来、ソフトウェアの表記法に基づいて編集し、条件文
の試験を行うシステムにおいて、すべての条件を逐次に
抽出し、試験するとき、各条件文の重要度に係わりな
く、試験する場合の数が膨大になるソースプログラムの
試験を行う場合、試験者の負担が大きく試験に時間がか
かってしまうという問題があった。
Conventionally, in a system that edits based on software notation and tests conditional statements, when all conditions are sequentially extracted and tested, the number of cases to be tested is irrespective of the importance of each conditional statement. When testing an enormous number of source programs, there is a problem that the tester's burden is heavy and the test takes time.

〔問題点を解決するための手段〕[Means for solving problems]

本発明はディスプレイ上にソフトウェアを表記しながら
編集し、編集した結果をテストケースジェネレータによ
り試験するソフトウェア開発システムに関する。すなわ
ち第1図に示すようにワークステーションのディスプレ
イ1上に例えばYAC II木構造チャートでソフトウェアの
表記を行って編集する編集手段と、前記編集手段により
得られた編集ファイル2を例えばYAC IIファイルコンパ
イラ3を介してソースコード4を生成する前に、前記編
集ファイル2を入力し、試験すべきソフトウェア上の場
所を発生するテストケースジェネレータ手段5と、テス
トケースジェネレータ手段5の結果を出力するテストケ
ース出力手段6とを有するソフトウェアの編集システム
においてソフトウェアの表記時において、IF文やDO文等
の各条件文にその重要性を表す重みを付け加える条件文
重みづけ手段と、テストケースジェネレータへ編集ファ
イルを入力する前に出力したい条件文の重要度レベルを
入力する重要度レベル入力手段と、前記テストケースジ
ェネレータから入力し、前記重要度レベルに等しい重み
のついた条件文をテストケースとして出力するテストケ
ース出力手段を有している。
The present invention relates to a software development system that edits software while displaying it on a display and tests the edited result by a test case generator. That is, as shown in FIG. 1, for example, YAC II tree structure chart is used to display the software on the display 1 of the workstation to edit the editing means, and the editing file 2 obtained by the editing means is edited to the YAC II file compiler, for example. Before generating the source code 4 via 3, the test file generator 5 for inputting the edit file 2 and generating a place on the software to be tested, and the test case for outputting the result of the test case generator 5 At the time of notation of software in the software editing system having the output means 6, conditional statement weighting means for adding a weight indicating the importance to each conditional statement such as IF statement and DO statement, and an edit file to the test case generator. Enter the importance level of the conditional statement you want to output before entering it. It has bell input means and test case output means for inputting from the test case generator and outputting a conditional sentence having a weight equal to the importance level as a test case.

〔作用〕[Action]

本発明はソースプログラムの条件文をその重要度に従っ
て抽出し、試験することができ、プログラム設計者と異
なるテスト担当者がそのソースプログラムを試験する場
合でもソフトウェアの論理的な進み方を条件文の重要度
を用いて認識でき、重要度の順番に各条件文を試験する
ことができテストの作業効率を上げることができる。そ
して、ソフトウェアの表記法に基づく画面エディタ時に
おいて条件文のある画面位置に条件文の重要度に対応す
る重みを与えて、テストケースジェネレータに編集ファ
イルを入力する時に、所望の重要度のレベルを入力し、
テストケースジェネレータにより前記入力した重要度レ
ベルと一致する重みがつけられた条件文を出力する。
The present invention can extract a conditional statement of a source program according to its importance and can test it. Even if a tester different from the program designer tests the source program, the logical progress of the software can be determined by the conditional statement. It can be recognized by using the importance, and each conditional sentence can be tested in the order of importance, and the work efficiency of the test can be improved. Then, when a screen editor based on the notation of software is given a weight corresponding to the degree of importance of the conditional sentence at the screen position where the conditional sentence is present, when inputting the edit file to the test case generator, the level of the desired degree of importance is set. Input,
The test case generator outputs the weighted conditional sentence that matches the input importance level.

〔実施例〕〔Example〕

次に、本発明のプログラム試験装置を図面を参照して説
明する。第2図は本発明のプログラム試験装置の流れ図
である。本発明は例えば、ワークステーションのディス
プレイ1上に開発すべきソースプログラムをコンパイル
する前にソフトウェアの流れを画像処理的にマウス等を
用いて木構造で処理しながら編集する編集手段を有して
いる。特に、プログラムの論理構造を木構造図により表
わす表記法は前述のようにYAC IIチャートと呼ばれる。
ここで、木構造は節点とループを含まない枝集合からな
るプログラムであり、枝分かれしている節点はIF分、DO
文、ケース文等の条件文に対応している。すなわち、場
合の数に対応する数だけその節点から枝分かれすること
になる。枝分かれの中に枝分かれがあればネスティング
が存在することになり、ネスティングが多い場合にはプ
ログラムの論理の流れが複雑となる。従って、各条件文
を効率よく試験できればプログラムの開発期間も短縮で
きることになる。本発明のプログラム試験装置は、前述
のYAC IIエディタにおいてディスプレイ1上に表記され
ている開発されるべきソフトウェアの木構造チャートに
おいてIF文やDO文等の条件文に対応する接点の近傍に条
件文の重要性に従って重要度のパラメータを表示する。
例えば、第2図のディスプレイ1上に表記されている木
構造チャートのIF文に対応する節点に図に示すような重
要度パラメータとして、数字の1や2を記入する。重要
度を表すパラメータはこのように数字で表示してもよ
く、色調や輝度を用いてもよい。YAC IIエディタを用い
てソフトウェアの流れを表記として表現した情報は編集
ファイルとしてのYAC IIファイルに格納される。YAC II
ファイルはソフトウェアの流れを木構造で表現したもの
であり、その表記に従う二値画像のデータである。ワー
クステーションの機能がマルチウィンドウの場合には複
数のウィンドウ上木構造を用いてYAC IIエディタ上で表
記し、各ウィンドウに対応する複数の画面集合体からYA
C IIファイルが構成される。
Next, a program test device of the present invention will be described with reference to the drawings. FIG. 2 is a flow chart of the program test apparatus of the present invention. The present invention has, for example, an editing means for editing the flow of software while processing it in a tree structure using an image processing mouse such as a mouse before compiling a source program to be developed on the display 1 of the workstation. . In particular, the notation in which the logical structure of a program is represented by a tree structure diagram is called the YAC II chart as described above.
Here, the tree structure is a program that consists of nodes and a branch set that does not include loops.
It corresponds to conditional sentences such as sentences and case sentences. That is, the node is branched from the node by the number corresponding to the case. If there is branching among the branches, nesting exists, and if there are many nestings, the logic flow of the program becomes complicated. Therefore, if each conditional statement can be efficiently tested, the development period of the program can be shortened. The program test apparatus of the present invention is provided with a conditional statement near a contact corresponding to a conditional statement such as an IF statement or a DO statement in the tree structure chart of software to be developed displayed on the display 1 in the aforementioned YAC II editor. Display importance parameters according to their importance.
For example, the numbers 1 and 2 are entered as the importance parameter as shown in the figure at the node corresponding to the IF statement of the tree structure chart shown on the display 1 of FIG. The parameter indicating the degree of importance may be displayed by numbers in this way, or the color tone or the brightness may be used. Information representing the software flow as a notation using the YAC II editor is stored in the YAC II file as an edit file. YAC II
The file is a tree structure representation of the software flow, and is binary image data according to the notation. When the function of the workstation is multi-window, it is written on the YAC II editor using a tree structure on multiple windows, and it is selected from multiple screen aggregates corresponding to each window.
The C II file is constructed.

例えば1つの画面体に対応するファイルの内容は図に示
すように2つのIF文に対応して枝分かれするグラフで表
記されて、第1番目のIF文はフラグという変数の内容に
従い枝分かれする方向が異なることを示している。例え
ばフラグが0である場合には1番上のラインに処理の流
れが進むことを示す。また第2番目のIF文はLCNTという
変数の値により、流れの処理が異なってくる場合であ
る。LCNTという変数が60という値である場合に、第1番
目のラインに処理の流れが移行することを示す。この2
つのIF文の重要度はYAC IIエディタを用いて現在ソフト
ウェアを開発している設計者は、その重要度がどのぐら
いであるかを把握しているので、その重要度を表す重み
の数字をIF文に対応する各節点に有効枝を介して数字で
表現するものである。例えばフラグ変数に関するIF文の
重要性は非常に高いので重み1が表現されて付加されて
いる。
For example, the content of the file corresponding to one screen body is represented by a graph that branches corresponding to two IF statements as shown in the figure, and the first IF statement has a branching direction according to the content of a variable called a flag. It shows that they are different. For example, when the flag is 0, it indicates that the process flow proceeds to the uppermost line. The second IF statement is a case where the flow processing differs depending on the value of the variable LCNT. When the variable LCNT has a value of 60, it indicates that the processing flow shifts to the first line. This 2
The importance of two IF statements is known to the designer who is currently developing software using the YAC II editor. Each node corresponding to a sentence is represented by a number through an effective branch. For example, since the IF statement regarding the flag variable is very important, the weight 1 is expressed and added.

LCNT変数に関するIF文はフラグ変数に関するIF文よりも
重要度がやや低いため重みの変数は2となっている。
Since the IF statement regarding the LCNT variable is slightly less important than the IF statement regarding the flag variable, the weight variable is 2.

このように本発明ではYAC IIチャート用エディタに対し
て、IF文,DO文、あるいはケース文等の条件文に対応す
る木構造グラフの節点の近傍に重み変数を付加する手段
を有するものである。
As described above, in the present invention, the YAC II chart editor has means for adding a weight variable near the node of the tree structure graph corresponding to the conditional statement such as IF statement, DO statement, or case statement. .

このように重み変数が付加された木構造チャートを表現
する画面全体の集合からなるYAC IIファイルをテストケ
ースジェネレータ5に入力する。テストケースジェネレ
ータ5は木構造チャートから試験すべき条件文を抽出す
るものであるが本発明では次の5乃至11に示されるよう
なステップに対応するフローの流れに従って指定された
重要度レベルと一致する重みを持った条件文をもつよう
にする。そのために、本発明ではYAC IIファイルをテス
トケースジェネレータ5で入力した後に、プログラムの
設計者は2段階の重要度レベルをステップ7において入
力するものである。重要度レベルの入力後、ステップ8
においてYAC IIファイルの各画面全体を主記憶装置にロ
ーディングする。
In this way, the YAC II file consisting of the set of the entire screen that represents the tree structure chart to which the weight variable is added is input to the test case generator 5. The test case generator 5 extracts a conditional statement to be tested from the tree structure chart, but in the present invention, it matches the importance level designated according to the flow of the flow corresponding to the steps 5 to 11 below. Have a conditional statement with the weight to Therefore, in the present invention, after the YAC II file is input by the test case generator 5, the program designer inputs two importance levels in step 7. Step 8 after entering the importance level
At, the entire screen of the YAC II file is loaded into main memory.

そしてステップ9に移って木構造チャートの各節点の内
容あるいは意味がIF文、DO文、或いはケース文等の条件
文に対応するものであるかどうかの判定を行う。この判
定の結果もし条件文でない場合には、ステップ8にもど
りYAC IIファイルの内容をさらに追跡することとなる。
次にステップ9の判定の結果、条件文である場合にはス
テップ10に移り、ステップ10で現在のポインタが示して
いる条件文を意味する節点の近傍に表示された条件の重
み変数の値がステップ7に入力された重要度レベルに一
致するかの判定を行う。条件文の重みが重要度に一致し
ていない場合にはポインタがさしているところの現在の
条件文の節点を無視し、ステップ8に戻ってYAC IIファ
イル内の木構造グラフをさらに追跡することになる。
Then, in step 9, it is determined whether the content or meaning of each node of the tree structure chart corresponds to a conditional statement such as an IF statement, a DO statement, or a case statement. As a result of this judgment, if it is not a conditional sentence, the process returns to step 8 and the contents of the YAC II file are further traced.
Next, if the result of determination in step 9 is a conditional statement, the process moves to step 10, and in step 10, the value of the weight variable of the condition displayed near the node indicating the conditional statement indicated by the current pointer is It is determined whether or not it matches the importance level input in step 7. If the weight of the conditional statement does not match the importance, the current conditional node pointed by the pointer is ignored, and the procedure returns to step 8 to further track the tree structure graph in the YAC II file. Become.

ステップ10においてポインタが現在示している条件文の
節点に関する重みが入力された重要度に等しい場合には
ステップ11に移りその条件文をテストケースとして印刷
する。この印刷後再びステップ8に戻り、木構造グラフ
をさらに追跡する。
When the weight of the node of the conditional sentence currently indicated by the pointer is equal to the input importance in step 10, the process moves to step 11 and the conditional sentence is printed as a test case. After this printing, the process returns to step 8 to further trace the tree structure graph.

以上のフローチャートの流れを繰り返すことによりYAC
IIファイルに格納されていたすべての木構造グラフの追
跡が終了すればテストケースの生成は終了したこととな
り、すなわちステップ7で入力した重要度レベルに等し
い重みをもった条件文はステップ11においてすべて出力
され印刷されることになる。
By repeating the flow of the above flow chart, YAC
When all the tree structure graphs stored in the II file have been traced, the test case has been generated, that is, all the conditional statements with the weight equal to the importance level entered in step 7 are completed in step 11. It will be output and printed.

次にプログラムの一例として商品に関する入力出力トラ
ンズアクションを各商品1つずつに関してファイルから
読み残庫マスタを更新し、各商品毎の入出庫数の一覧等
を作製し、入出庫数を印刷する場合を説明する。
Next, as an example of a program, when input / output transactions related to merchandise are read from a file for each merchandise, the balance master is updated, a list of the number of goods in and out for each merchandise is created, and the number of goods in and out Will be explained.

入力ファイルは第3図(a)に示すように、商品コー
ド、入出庫数からなる入出庫区分は対応する商品コード
の商品が入庫である場合は で表され、出庫である場合には“OUT"で表わされる。入
出庫数は入庫や出庫の個数を表す。入出庫区分Xすなわ
ち入庫 か或いは出庫“OUT"であるかの条件は本プログラムの機
能の中心的役割を占めるので重要度は1とする。
As shown in FIG. 3 (a), the input file is a storage code consisting of a product code and the number of storages if the product with the corresponding product code is a storage. In the case of a delivery, it is represented by "OUT". The number of goods in and out represents the number of goods in and out. Goods receipt / delivery category X, that is, goods receipt Since the condition of whether or not the product is issued “OUT” plays a central role in the function of this program, the importance is set to 1.

第3図(b)は出力帳票すなわち入出力プランの出力結
果例を示す。各出力ラインには入出力商品コード、商品
名、個数が表現されている。たとえば商品コード00010
で商品名がM380Rである商品は、入庫の状態にあるもの
とし、入庫の個数は3である。また、商品コード00130
で商品名がFM16βである商品は、100個出庫されたこと
を表している。出力帳票の最後には入庫合計と、出庫合
計が記されている。この入庫合計と出庫合計が条件Bと
してもしオーバーフローしたならばALL“*”で編集す
るようにプログラム処理を行うようにするものとする。
入庫合計や出庫合計は実際上では例えばほとんどオーバ
ーフロー状態に陥ることはないので、オーバーフローが
おきた場合にALL“*”で編集するという条件文は重要
度が低く重要度を2とする。
FIG. 3B shows an output result example of an output form, that is, an input / output plan. The input / output product code, product name, and quantity are represented on each output line. For example, product code 00010
The product whose product name is M380R is in the warehousing state, and the number of warehousing is 3. Also, the product code 00130
The product whose product name is FM16β indicates that 100 products have been shipped. At the end of the output form, the receipt total and the issue total are written. If the total of receipt and the total of receipt are overflowed as condition B, the program processing is performed so as to edit with ALL “*”.
In practice, the total of incomings and outgoings and the total of outgoings, for example, almost never fall into the overflow state. Therefore, the conditional statement of editing with ALL "*" when the overflow occurs is of low importance and the importance is set to 2.

このような入出庫トランズアクションを読み、各商品ご
との入出庫数一覧は重要度のレベルごとに出力するプロ
グラムをYAC IIファイルエディタを用いて編集する場
合、本発明では第4図(a)に示すような木構造プログ
ラムの表現を用いて行う。この場合ファイルは入力ファ
イル上に格納された第3図(a)に示すような入出庫ト
ランズアクションを1件ずつ読込み入出力の処理を行い
最後に入庫合計と出庫合計を計算するプログラムとす
る。
When a program for reading such a warehousing / dispatching transaction and outputting the warehousing / discharging number list for each product for each level of importance is edited by using the YAC II file editor, the present invention is shown in FIG. 4 (a). This is done using the representation of the tree structure program as shown in. In this case, the file is a program that reads in and out the incoming and outgoing transactions stored in the input file one by one as shown in FIG. 3 (a), performs input / output processing, and finally calculates the total incoming and outgoing totals.

従って、プログラムの木構造の表現は第4図(a)に示
すように である場合には、入庫処理を行うIF文による枝別れ構造
や、入出庫区分が“OUT"である場合には入出庫処理を行
う条件文、例えばIF文による枝別れが縦ライン12に接続
されて表記される。これらのIF文は重要度が高い為、プ
ログラム設計者はこの重要度を表すパラメータ1をIF文
に対応する接点の近傍に表記する。本プログラムの最後
の部分において入庫合計や出庫合計にオーバーフローす
なわち桁あふれがあった場合の処理ルーチンが記されて
いる。桁あふれ表示がオン状態であるならば処理の流れ
はイエスに対応する枝分かれ方向に進み、ALL“*”を
印刷する処理を行う。この桁あふれ表示がオンであるIF
文は重要度は低く、重要度2としてIF文の対応する接点
の近傍2が記載される。このようなプログラムをYAC II
エディタで編集し、YAC IIファイルをテストケースジェ
ネレータ5に入力し、重要度レベルとして1または2を
入力すれば第4図(b)に示すようなテストケース一覧
表が各レベル毎に印刷される。すなわち表記された木構
造を追跡し各接点が条件文であるかどうかの判定を行い
条件文に対応する接点である場合には、条件文の重みが
入力した重要度レベルに一致するかどうかを調べ、一致
すれば条件文を印刷する。
Therefore, the representation of the tree structure of the program is as shown in FIG. If it is, the branching structure by the IF statement that performs the goods receipt processing, or the conditional statement that executes the goods receipt and receipt processing when the entry / exit category is “OUT”, for example, the branching by the IF statement is connected to the vertical line 12 It is written and written. Since these IF statements have a high degree of importance, the program designer writes Parameter 1 representing this degree of importance near the contact point corresponding to the IF statement. In the last part of this program, a processing routine is described for the case where there is an overflow, that is, an overflow in the total of incomings and outgoings. If the overflow display is in the ON state, the process flow proceeds in the branching direction corresponding to YES, and the process of printing ALL "*" is performed. IF this overflow indicator is on
The sentence has a low degree of importance, and as the degree of importance 2, the vicinity 2 of the corresponding contact point of the IF sentence is described. Such a program is YAC II
If you edit it with an editor, input the YAC II file into the test case generator 5, and input 1 or 2 as the importance level, the test case list as shown in FIG. 4 (b) is printed for each level. . That is, it traces the written tree structure and determines whether each contact point is a conditional statement. If it is a contact point corresponding to a conditional statement, check whether the weight of the conditional statement matches the input importance level. Check and print the conditional statement if they match.

例えば入力したレベルが1である場合には重要度が1で
ある条件文が13の出力結果のように印刷される。また入
力したレベルが2である場合には出力結果は14のように
出力される。出力結果13は重要度が1であるテストケー
ス一覧であり、入出庫区分が と“OUT"に対応する条件文が印刷される。一方、出力結
果14が重要度2の条件文であり、例えば桁あふれ表示が
“ON"である条件文が印刷される。
For example, when the input level is 1, the conditional sentence having the importance level of 1 is printed like the output result of 13. When the input level is 2, the output result is output as 14. Output result 13 is a list of test cases whose importance is 1, and And the conditional statement corresponding to "OUT" is printed. On the other hand, the output result 14 is a conditional statement of importance level 2, for example, a conditional statement whose overflow display is "ON" is printed.

〔発明の効果〕〔The invention's effect〕

本発明はソースプログラムが膨大である場合にも、プロ
グラムの設計者が決めた条件文の重要度に従って、設計
者以外の人でも条件文の重要度の程度が判断でき、重要
度の低い条件文のテストを省略し、重要度の高い条件文
から試験を行うことができるので、条件文ひいてはプロ
グラム全体の試験の効率化を図ることができる。
The present invention allows a person other than the designer to judge the degree of importance of a conditional statement according to the degree of importance of the conditional statement determined by the designer of the program even when the source program is huge, and the conditional statement of low importance Since the test can be omitted and the test can be performed from the conditional statement having a high degree of importance, the efficiency of the test of the conditional statement and the entire program can be improved.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明のプログラム試験装置の構成図、第2図
は本発明の動作を示す流れ図、 第3図(a)は入出庫トランズアクションを示すファイ
ルの内容図、 第3図(b)は出力帳票の出力結果を示す図、 第4図(a)は本発明の入出庫トランズアクションのフ
ァイルを読み、入出庫処理を行うプログラムを表す図、 第4図(b)は本発明の出力結果を表す図である。 1……ディスプレイ、 2……編集ファイル、 3……YAC IIコンパイラ、 4……ソースコード、 5……テストケースジェネレータ.
FIG. 1 is a block diagram of the program test apparatus of the present invention, FIG. 2 is a flow chart showing the operation of the present invention, FIG. 3 (a) is a content diagram of a file showing a loading / unloading transaction, and FIG. 3 (b). Is a diagram showing an output result of an output form, FIG. 4 (a) is a diagram showing a program for performing a loading / unloading process by reading a file of a loading / unloading transaction of the present invention, and FIG. 4 (b) is an output of the present invention. It is a figure showing a result. 1 ... Display, 2 ... Edit file, 3 ... YAC II compiler, 4 ... Source code, 5 ... Test case generator.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】プログラムの条件文に各条件の重要度に応
じ重みをつける重みづけ手段(1)と、該プログラムを
格納する手段(2)と、所望の重みを入力する手段
(7)と、前記入力された重みに基づいて所望の条件文
を選択してテストケースとして発生する手段(5)とか
らなることを特徴とするテストケース抽出装置。
1. A weighting means (1) for weighting a conditional sentence of a program according to the importance of each condition, a means (2) for storing the program, and a means (7) for inputting a desired weight. And a means (5) for generating a test case by selecting a desired conditional sentence based on the input weight, the test case extracting device.
JP61220863A 1986-09-20 1986-09-20 Test case extraction device Expired - Lifetime JPH073654B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61220863A JPH073654B2 (en) 1986-09-20 1986-09-20 Test case extraction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61220863A JPH073654B2 (en) 1986-09-20 1986-09-20 Test case extraction device

Publications (2)

Publication Number Publication Date
JPS6378232A JPS6378232A (en) 1988-04-08
JPH073654B2 true JPH073654B2 (en) 1995-01-18

Family

ID=16757724

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61220863A Expired - Lifetime JPH073654B2 (en) 1986-09-20 1986-09-20 Test case extraction device

Country Status (1)

Country Link
JP (1) JPH073654B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2773672B2 (en) * 1995-03-15 1998-07-09 日本電気株式会社 Input check method

Also Published As

Publication number Publication date
JPS6378232A (en) 1988-04-08

Similar Documents

Publication Publication Date Title
US5557774A (en) Method for making test environmental programs
US5450545A (en) Generation of rules-based computer programs using data entry screens
US5758160A (en) Method and apparatus for building a software program using dependencies derived from software component interfaces
JPH03102484A (en) Diagrammatic data-driven program development support device
JPH02109127A (en) Specification processing method
EA010958B1 (en) Method, apparatus and system for visualization of probabilistic models
Petricek et al. Real-World Functional Programming: With examples in F# and C
Pollock et al. Theia: automatically generating correct program state visualizations
JPH096628A (en) Parallel processing procedure selection device and method
US8234102B2 (en) Development of assertions for integrated circuit design simulation
Sankaranarayanan et al. Automating thematic analysis with multi-agent llm systems
Watson Common LISP modules: artificial intelligence in the era of neural networks and chaos theory
JPH073654B2 (en) Test case extraction device
Mendes et al. Phylojunction: a computational framework for simulating, developing, and teaching evolutionary models
EP1661038A1 (en) A method of processing data for a system model
JPH09292985A (en) Program reuse parts generation method
Trejo Basic Uses of Python for Research in Our Laboratory: Examples of Data Analysis, and Processing of Histological Samples Based on the Special Graduate Lecture for Postgraduate Students Presented on January 2025
Campbell et al. A Guided Introduction to C++ Programming
EP4475027A1 (en) Change history reproduction apparatus, change history reproduction method, and change history reproduction program
Antoshchuk et al. Method for Detecting Error in Design of Virtual Environment
Golub et al. Visualizing Russian kinship term possessive sequences as family trees
KR100316246B1 (en) Method and apparatus for safety analysis for embedded software
JPH0850576A (en) Visual interactive simulation device
JPH0793144A (en) Program analysis device
Raither et al. TRICS: a Testing Tool for C

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term