JPH0535531A - Test device for progress degree visualizing program - Google Patents

Test device for progress degree visualizing program

Info

Publication number
JPH0535531A
JPH0535531A JP3191667A JP19166791A JPH0535531A JP H0535531 A JPH0535531 A JP H0535531A JP 3191667 A JP3191667 A JP 3191667A JP 19166791 A JP19166791 A JP 19166791A JP H0535531 A JPH0535531 A JP H0535531A
Authority
JP
Japan
Prior art keywords
program
routine
test
unit
routines
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
JP3191667A
Other languages
Japanese (ja)
Inventor
Hiromi Saito
寛美 斉藤
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP3191667A priority Critical patent/JPH0535531A/en
Publication of JPH0535531A publication Critical patent/JPH0535531A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

(57)【要約】 【目的】 複数のルーチンからなるプログラムの試験を
行うプログラム試験装置において、たとえプログラム修
正があった場合においても、修正に関係するルーチンも
抜けのないように確実にプログラム試験を実施する。 【構成】 試験プログラムが通過したルーチンを通過ル
ーチンとして該当ルーチンのプログラを赤等の色付き状
態で出力し、また、プログラム試験実行後に不合格とな
りプログラム修正した場合に、このプログラム修正によ
り影響を受けるルーチンを未通過ルーチンに戻す影響ル
ーチンクリア部を設け、該当ルーチンをこのルーチンが
未試験ルーチンであることを示す黒等の色が付かない状
態で出力する。
(57) [Summary] [Purpose] In a program testing device that tests a program consisting of multiple routines, even if there is a program modification, be sure to perform the program testing so that the routines related to the modification are not missed. carry out. [Structure] A routine passed by a test program is output as a passing routine, and the program of the routine is output in a colored state such as red. Also, if the program fails the program test and the program is modified, the routine is affected by this program modification. An effect routine clearing section for returning the routine to the non-passing routine is provided, and the relevant routine is output in a state where no color such as black indicating that this routine is an untested routine is added.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、複数のルーチンからな
るプログラムの試験をプログラム試験装置に係わり、特
に試験済みルーチンのプログラムソースを色付け出力可
能な進捗度可視化プログラム試験装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program testing apparatus for testing a program consisting of a plurality of routines, and more particularly to a progress visualizing program testing apparatus capable of coloring and outputting a program source of a tested routine.

【0002】[0002]

【従来の技術】一般に複雑な制御を実行するためのプロ
グラムは図4に示すように、それぞれ単位業務を実行す
る多数のルーチンを階層的に組合わせて構成されてい
る。そして、このような多数のルーチンから構成された
プログラムが正常に動作することを予め試験するプログ
ラム試験装置においては、図4に示すように、試験条件
および試験データを入力して実際に被試験プログラムを
実行させる。そして、1番から10番までの全てのルー
チンのプログラムが実行されるように、前述した試験条
件および試験データを設定する。図4においては、最下
層の各ルーチン4,8,9,10,7のプログラムを全
て通過させるためには、(1) 〜(5) の5種類の試験条件
および試験データでもって合計5回プログラムを実行さ
せれば、全てのルーチンに対する試験が終了する。
2. Description of the Related Art Generally, as shown in FIG. 4, a program for executing complicated control is constructed by hierarchically combining a large number of routines each executing a unit work. Then, in a program test device that tests in advance that a program composed of such a large number of routines operates normally, as shown in FIG. 4, test conditions and test data are input and the program under test is actually tested. To run. Then, the above-mentioned test conditions and test data are set so that the programs of all the routines 1 to 10 are executed. In FIG. 4, in order to pass all the programs of each of the routines 4, 8, 9, 10, and 7 in the lowermost layer, five times in total with five kinds of test conditions (1) to (5) and test data. Running the program completes the test for all routines.

【0003】しかし、プログラムが複雑になると、試験
途中でどのルーチンに対する試験が終了し、どのルーチ
ンに対する試験が未実施であるかの判断がつきにくいの
で、従来のプログラム試験装置においては、プログラム
試験の進捗状況を操作者が視覚的に把握できるように、
プログラム実行時に通過したルーチンに色をつけてプロ
グラムリストを出力できるように構成されている。この
ような進捗度可視化プログラム試験装置は、図5に示す
流れ図に従ってプログラム試験を実施するように構成さ
れている。
However, when the program becomes complicated, it is difficult to judge which routine the test is completed in the middle of the test and which routine the test is not executed in the middle of the test. So that the operator can visually grasp the progress status,
It is configured such that the program list can be output by coloring the routines that have passed when the program was executed. Such a progress level visualization program test device is configured to perform a program test according to the flowchart shown in FIG.

【0004】まず、試験条件および試験データを入力し
てプログラム実行部1において実際にプログラムの実行
を行う。この時に、通過ルーチンチェック部2において
図4の点線で示すプログラムの通過したルーチンをチェ
ックする。そして、通過したルーチンのプログラムソー
スを通過を示すステータスまたはフラグを付してファイ
ル格納部3に格納する。そして、プログラム実行後に、
色付けソース出力部4において、ファイル格納部3内に
記憶されたステータスまたはフラクが付された既に通過
済ルーチンのプログラムソースを例えば赤色でもって印
字出力する。なお、未通過のルーチンのプログラムソー
スは例えば黒の通常の色で印字出力される。
First, the test conditions and test data are input and the program execution unit 1 actually executes the program. At this time, the passing routine check unit 2 checks the passed routine of the program shown by the dotted line in FIG. Then, the program source of the passed routine is stored in the file storage unit 3 with a status or flag indicating passage. And after running the program,
The coloring source output unit 4 prints out the program source of the already-passed routine, which is stored in the file storage unit 3 and has the status or the flake, in red, for example. The program source of the unpassed routine is printed out in the normal color of black, for example.

【0005】次に、試験の合否判断部5において前記プ
ログラム実行による試験の合否を判断する。試験の結果
が不合格の場合はプログラム修正部6へ進む。このプロ
グラム修正部6において、操作者がプログラムに対する
修正操作を実行すると、プログラムの該当箇所が修正さ
れる。そして、ソースファイル格納部3に格納されてい
る該当ルーチンのプログラムを更新し、再び試験条件や
試験データ等の試験環境を整えプログラム実行部1にお
いて試験を行う。
Next, the test pass / fail judgment section 5 judges whether or not the test is executed by executing the program. If the result of the test is unacceptable, the process proceeds to the program correction section 6. When the operator performs a correction operation on the program in the program correction section 6, the relevant part of the program is corrected. Then, the program of the corresponding routine stored in the source file storage unit 3 is updated, the test environment such as test conditions and test data is prepared again, and the program execution unit 1 performs the test.

【0006】試験結果が合格の場合は試験済ルーチンチ
ェック部7で今回の試験で通過したルーチンを試験済み
として登録する。そして、試験終了判断部8でもって全
てのルーチンの試験を網羅したかを判断する。まだ未通
過のルーチンが残っている場合には、再び未通過のルー
チンを通過するような試験環境を整えて、プログラムの
実行を行い、すべてのルーチンを網羅するまで繰り返
し、すべてのルーチンのプログラムソースが例えば赤色
でもって印字出力されると、このプログラム試験が終了
する。このように、試験終了した各ルーチンのプログラ
ムソースが色付け印字されるので、確実に全てのルーチ
ンに対するプログラム試験を実行できる。
If the test result is acceptable, the tested routine check unit 7 registers the routine passed in this test as tested. Then, the test end judging unit 8 judges whether the tests of all routines are covered. If there are still unpassed routines, prepare a test environment to pass the unpassed routines again, execute the program, repeat until all routines are covered, and program source of all routines. Is printed out in red, the program test ends. In this way, since the program source of each routine for which the test is completed is printed in color, the program test for all the routines can be surely executed.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、このよ
うに構成された進捗度可視化プログラム試験装置におい
ては。一回通過したルーチンは試験済みとなってしま
い、プログラム実行後プログラムの不具合を修正した結
果プログラムの流れが全く変わってしまい、修正前には
通過したルーチンを修正後通過しなかったとしても、修
正前に通過したルーチンは試験済みと見なされてしまっ
た。
However, in the progress degree visualization program test device configured as described above. The routine that has passed once has been tested, and the program flow has changed completely as a result of correcting the problem of the program after program execution, so even if the routine that was passed before correction was not passed after correction, it was corrected. The previously passed routine has been considered tested.

【0008】図4を用いて具体的に説明する。試験条件
および試験データを入力して、(3)の流れに沿ってプロ
グラムが実行されると、0,2,6,9の各ルーチンの
プログラムが通過済み(試験済み)ルーチンとして登録
される。次に、別の試験条件および試験データを入力し
て、(4) の流れに沿ってプログラムが実行されると、
0,2,6,10の各ルーチンのプログラムが通過済み
(試験済み)ルーチンとして登録される。そして、この
プログラム実行過程で6のルーチンにプログラム誤りが
発見され、プログラム修正部6でプログラム修正される
と、再度同一の試験条件および試験データでもってプロ
グラム試験が実行される。すなわち、6のルーチンおよ
び10のルーチンがプログラム通過する。すなわち、こ
の2つのルーチンに対しては再度動作確認が実施され
る。
A specific description will be given with reference to FIG. When the test conditions and test data are input and the program is executed according to the flow of (3), the programs of the respective routines 0, 2, 6, 9 are registered as passed (tested) routines. Next, when another test condition and test data are input and the program is executed according to the flow of (4),
The programs of the routines 0, 2, 6, and 10 are registered as passed (tested) routines. Then, when a program error is found in the routine of 6 during the program execution process and the program is corrected by the program correction unit 6, the program test is executed again under the same test conditions and test data. That is, 6 routines and 10 routines pass the program. That is, the operation confirmation is performed again for these two routines.

【0009】しかし、6のルーチンの修正前に通過した
9のルーチンは試験済みであり、修正後には通過しな
い。しかし、6のルーチンを修正した場合には、このル
ーチンの下位に属するルーチン9の動作も確認する必要
がある。すなわち、正しく処理動作がルーチン9に受け
継がれていることを確認する必要がある。
However, the nine routines that passed before the modification of the sixth routine have been tested and do not pass after the modification. However, when the routine of 6 is modified, it is necessary to confirm the operation of the routine 9 subordinate to this routine. That is, it is necessary to confirm that the processing operation is correctly inherited to the routine 9.

【0010】したがって、試験開始時後のプログラムの
修正を試験の進捗状況に反映することができず、プログ
ラムを修正するたびにソースの通過ルーチンチェックを
すべてクリアして、最初からプログラム試験を実施しな
ければならなかった。
Therefore, the modification of the program after the start of the test cannot be reflected in the progress of the test, and every time the program is modified, all the passing routine checks of the source are cleared and the program test is executed from the beginning. I had to.

【0011】本発明はこのような事情に鑑みてなされた
ものであり、プログラム修正時後にこの修正により影響
を受けるルーチンを未通過ルーチンに戻すことにより、
該当ルーチンが未試験であることを示す状態で出力さ
れ、操作者が各ルーチンにおける試験の実施,未実施を
確実にかつ簡単に把握でき、プログラム試験の試験作業
能率と、試験の信頼性を向上できる進捗度可視化プログ
ラム試験装置を提供することを目的とする。
The present invention has been made in view of such circumstances, and by returning a routine affected by this correction to a non-passed routine after the program is corrected,
It is output in a state indicating that the corresponding routine has not been tested, and the operator can reliably and easily know whether or not the test has been performed in each routine, improving the test work efficiency of the program test and the reliability of the test. It is an object of the present invention to provide a progress degree visualization program test device that can perform progress.

【0012】[0012]

【課題を解決するための手段】上記課題を解消するため
に、本発明の進捗度可視化プログラム試験装置において
は、入力された試験条件および試験データに基づいて複
数のルーチンからなるプログラムを実行するプログラム
実行部と、このプログラム実行過程において試験条件や
試験データに応じて通過したルーチンをチェックする通
過ルーチンチェック部と、プログラム実行後に通過ルー
チンチェック部にてチェックされたルーチンのプログラ
ムソースを色付けして出力する色付けソース出力部と、
プログラム実行における試験の合否を判断する合否判断
部と、この合否判断部にて不合格と判断されたルーチン
のプログラムに対する修正操作に応動して該当プログラ
ムを修正するプログラム修正部と、このプログラム修正
により影響を受けるルーチンを未通過ルーチンに戻す影
響ルーチンクリア部と、試験すべきプログラムの全ての
ルーチンが通過ルーチンに移行したか否かを調べて試験
終了を判断する試験終了判断部とを備えている。
In order to solve the above problems, in a progress degree visualization program test apparatus of the present invention, a program for executing a program consisting of a plurality of routines based on input test conditions and test data. The execution unit, the passage routine check unit that checks the routine that has passed according to the test conditions and test data in the process of executing the program, and the program source of the routine checked by the passage routine check unit after the program is executed are colored and output. And a coloring source output section
A pass / fail judgment unit that judges pass / fail of the test in the program execution, a program correction unit that corrects the program in response to a correction operation for the program of the routine judged to be unsuccessful by the pass / fail judgment unit, and this program correction It is equipped with an influence routine clearing unit that returns the affected routine to the non-passed routine, and a test end determination unit that determines whether the test is finished by checking whether all the routines of the program to be tested have transited to the pass routine. ..

【0013】[0013]

【作用】このように構成された進捗度可視化プログラム
試験装置において、プログラム実行部より試験条件や試
験データ等のプログラムの試験環境を入力し、被試験プ
ログラムの実行を行い、通過ルーチンチェック部におい
てプログラム実行時に通ったルーチンをチェックし、そ
のルーチンに通過のステータスまたはフラグ等を付け
る。次に色付けソース出力部で、先のプログラム実行後
に、このプログラム実行時に通過したステータスまたフ
ラグが付されたルーチンのプログラムソースが色付けさ
れて出力される。
In the progress visualizing program testing device configured as described above, the program execution unit inputs the test environment of the program such as test conditions and test data, executes the program under test, and executes the program in the passage routine check unit. Check the routine that passed at the time of execution, and add the status or flag of passage to the routine. Next, in the coloring source output unit, after the previous program is executed, the program source of the routine which has passed the status during execution of this program and which has a flag is colored and outputted.

【0014】そして、合否判断部でもってプログラム試
験の実行結果の合格/不合格が判断される。試験結果が
不合格の場合は、操作者はプログラム修正部においてこ
の出力されたプログラムソースのリストを見てプログラ
ムの修正を行う。
Then, the pass / fail judgment unit judges whether the execution result of the program test is pass / fail. If the test result is unacceptable, the operator corrects the program by looking at the output program source list in the program correction section.

【0015】そして、影響ルーチンクリア部において、
プログラムの修正の結果影響を受けるルーチンにおける
通過済みを示すステータスまたはフラグをクリアして、
未通過ルーチンに戻す。その後、再び試験環境を整えプ
ログラム実行部において試験を行う。試験結果が合格の
場合は通過ルーチンチェック部で今回の試験で通過した
ルーチンを試験済みとして登録し、試験終了判断部で全
てのルーチンの試験を網羅したか判断する。まだ未通過
のルーチンが残っている場合には、再び未通過のルーチ
ンを通過するような試験環境を整えて、プログラムの実
行を行い、全てのルーチンを網羅するまで繰り返し、す
べてのルーチンが色付いて出力されれば試験終了とす
る。
Then, in the influence routine clearing section,
Clear the passed status or flags in the affected routines as a result of program modifications,
Return to the unpassed routine. After that, the test environment is prepared again and the test is performed in the program execution unit. If the test result is acceptable, the passing routine check unit registers the routine passed in the present test as tested, and the test end determining unit determines whether all routines have been tested. If there are still unpassed routines, prepare a test environment to pass the unpassed routines again, execute the program, repeat until all routines are covered, and all routines are colored. If it is output, the test ends.

【0016】[0016]

【実施例】以下本発明の一実施例を説明する。EXAMPLE An example of the present invention will be described below.

【0017】この実施例の進捗度可視化プログラム試験
装置は一種のコンピュータの制御プログラムで構成され
ている。そして、図1はこの進捗度可視化プログラム試
験装置の動作を流れ図である。
The progress degree visualization program test apparatus of this embodiment comprises a kind of computer control program. FIG. 1 is a flow chart showing the operation of the progress degree visualization program test device.

【0018】まず、図5に示す従来装置と同様に、試験
条件および試験データ等の一つの試験環境を入力し、プ
ログラム実行部1において被試験プログラムに対する実
際のプログラム実行を行う。この時に、通過ルーチンチ
ェック部12において被試験プログラムにおけるプログ
ラムの通過したルーチンをチェックする。そして、通過
したルーチンのプログラムソースを通過を示すステータ
スまたはフラグを付してソースファイル格納部13に格
納する。そして、プログラム実行後に、色付けソース出
力部14において、ソースファイル格納部13内に記憶
されたステータスまたはフラクが付された既に通過済ル
ーチンのプログラムソースを例えば赤色でもって印字出
力する。なお、未通過ルーチンのプログラムソースは例
えば黒の通常の色で印字出力される。
First, as in the conventional apparatus shown in FIG. 5, one test environment such as test conditions and test data is input, and the program execution unit 1 executes the actual program for the program under test. At this time, the passing routine check unit 12 checks the routines passed by the program in the program under test. Then, the program source of the passed routine is stored in the source file storage unit 13 with a status or flag indicating passage. After the program is executed, the coloring source output unit 14 prints out the program source of the already-passed routine, which is stored in the source file storage unit 13 and has the status or the flake, for example, in red. The program source of the non-passing routine is printed out in the normal color of black, for example.

【0019】次に、合否判断部15において前記プログ
ラム実行による試験の合否を判断する。試験結果が不合
格の場合はプログラム修正部16へ進む。このプログラ
ム修正部16において、操作者がプログラムに対する修
正操作を実行すると、プログラムの該当箇所が修正され
る。そして、ソースファイル格納部13に格納されてい
る該当ルーチンのプログラムを更新する。次に、影響ル
ーチンクリア部17において、前記プログラム修正の結
果、影響を受けるルーチンの通過済みを示すステータス
またはフラグをクリアして、未通過ルーチンに戻す。そ
の後、プログラム実行部11へ戻り、再び次の試験条件
および試験データ等の試験環境を入力して、被試験プロ
グラムに対するプログラム実行する。
Next, the pass / fail judgment section 15 judges whether the test by the program execution has passed or failed. If the test result is unsuccessful, the process proceeds to the program correction section 16. When the operator performs a correction operation on the program in the program correction section 16, the relevant part of the program is corrected. Then, the program of the corresponding routine stored in the source file storage unit 13 is updated. Next, as a result of the program modification, the affected routine clearing unit 17 clears the status or flag indicating that the affected routine has passed, and returns to the unpassed routine. After that, the process returns to the program execution unit 11, the test environment such as the next test condition and test data is input again, and the program for the program under test is executed.

【0020】そして、合否判断部15において、該当プ
ログラムに対する試験結果が合格であれば、次の試験済
ルーチンチェック部18において、操作者は印字出力さ
れたプログラムソースのリストをみて、赤字でない未通
過のルーチンが存在するか否かをチェックする。そし
て、試験終了判断部19において、未通過ルーチンがま
だ存在すると判断すると、再度プログラム実行部11へ
戻り、再び、未通過のルーチンを通過するような試験条
件および試験データ等の試験環境を整えて被試験プログ
ラムを再度実行させる。
If the pass / fail judgment section 15 determines that the test result for the program is acceptable, the operator checks the printed program source list in the next tested routine check section 18, and the non-passage is shown in red. Check whether the routine of exists. Then, when the test end judging unit 19 judges that the unpassed routine still exists, it returns to the program execution unit 11 again, and again prepares the test environment such as the test condition and the test data for passing the unpassed routine. Run the program under test again.

【0021】しかして、試験済ルーチンチェック部18
でもって全てのプログラムソースが赤字で印字されてい
たと判断すると、試験終了判断部19において、既に未
通過ルーチンがないと判断して、この一連のプログラム
試験処理を終了する。図2は、図1における影響ルーチ
ンクリア部17におけるルーチンクリア処理の詳細を示
す流れ図である。
Thus, the tested routine check unit 18
Therefore, if it is determined that all the program sources are printed in red, the test end determination unit 19 determines that there is no unpassed routine, and the series of program test processing ends. FIG. 2 is a flow chart showing details of the routine clearing process in the influence routine clearing unit 17 in FIG.

【0022】説明を解り易くするために、被試験プログ
ラムを、図3に示すように、階層状に組まれたメインモ
ジュールと10個のモジュールM1〜M10からなる複
数のルーチンで構成されているとする。そして、M0番
からM10番までのルーチンに対して、それぞれID番
号が付されている。すなわち、メインルーチンIDを0
0とし各ルーチンに自分の上位の階層のルーチンID+
シーケンシャルNO.が付けられている。
In order to make the explanation easy to understand, it is assumed that the program under test is composed of a plurality of routines composed of a main module and ten modules M1 to M10 assembled in a hierarchy as shown in FIG. To do. An ID number is assigned to each of the routines M0 to M10. That is, the main routine ID is 0
0 for each routine and the routine ID of the upper hierarchy of itself +
Sequential NO. Is attached.

【0023】図2の流れ図が開始されると、ルーチン階
層情報入力部21にて被試験プログラムを構成する各ル
ーチンのルーチン名と各ルーチンIDを読込んで記憶す
る。次にプログラム修正ルーチン認識部22において、
図1のプログラム修正部16で実施されたプログラムの
修正位置を認識し、修正ルーチンID取出部23で修正
された全てのルーチンのIDを取り出す。
When the flow chart of FIG. 2 is started, the routine hierarchy information input unit 21 reads and stores the routine name and routine ID of each routine constituting the program under test. Next, in the program correction routine recognition unit 22,
The correction position of the program executed by the program correction unit 16 in FIG. 1 is recognized, and the correction routine ID extraction unit 23 extracts the IDs of all the modified routines.

【0024】次に、ルーチン検索終了判断部23で修正
された全てのルーチンについて通過済か未通過にするか
のチェック処理が終了していないことを確認すると、ル
ーチンID検出部25において、被試験プログラムに含
まれる未チェック処理のルーチンIDを1つ取り出す。
そして、クリアルーチン判断部26にて取出したIDの
ルーチンが先にプログラム修正された修正ルーチンの下
位ルーチンに相当するか否かを判断する。下位ルーチン
に相当しない場合は再びルーチン検索終了判断部24に
戻る。
Next, when it is confirmed by the routine search end judging section 23 that the check processing for passing or not passing all the modified routines is not completed, the routine ID detecting section 25 judges that the routine is to be tested. One unchecked routine ID included in the program is extracted.
Then, the clear routine determination unit 26 determines whether or not the routine with the ID taken out corresponds to a lower-level routine of the modified routine that was previously modified by the program. If it does not correspond to a lower-level routine, the routine returns to the routine search end determination unit 24 again.

【0025】取出したIDのルーチンが前記修正ルーチ
ンの下位ルーチンに相当する場合はルーチンクリア部2
7において該当ルーチンのプログラムにステータスまた
はフラグ等のプログラム通過を示す情報をクリアして、
該当ルーチンを未通過状態に戻す。そして、再びルーチ
ン検索終了判断部24に戻る。
When the fetched ID routine corresponds to the lower routine of the correction routine, the routine clear unit 2
In step 7, clear the information indicating the program passage such as status or flag in the program of the corresponding routine,
Return the corresponding routine to the non-passed state. Then, the routine returns to the routine search end determination unit 24 again.

【0026】ルーチン検索終了判断部24において、修
正された全てのルーチンについて通過済ルーチンのまま
にするか未通過ルーチンに戻すかのチェック処理が終了
すると、この影響ルーチンクリア部17における処理動
作を終了する。
When the routine search end determination unit 24 completes the checking process for all the modified routines, which are to be left as passed routines or returned to unpassed routines, the processing operation in the affected routine clearing unit 17 is finished. To do.

【0027】このように構成された進捗度可視化プログ
ラム試験装置によれば、例えば、図3に示すような、複
数のルーチンを階層的に構築したプログラムを試験する
場合、図4で説明したように、試験条件および試験デー
タを入力して、(3) の流れに沿ってプログラムが実行さ
れると、M0,M2,M6,M9の各ルーチンのプログ
ラムが通過済み(試験済み)ルーチンとして登録され
る。次に、別の試験条件および試験データを入力して、
(4) の流れに沿ってプログラムが実行されると、M0,
M2,M6,M10の各ルーチンのプログラムが通過済
み(試験済み)ルーチンとして登録される。
According to the progress degree visualization program test apparatus configured as described above, for example, when testing a program in which a plurality of routines are hierarchically constructed as shown in FIG. 3, as described with reference to FIG. When the program is executed according to the flow of (3) by inputting the test conditions and test data, the programs of each routine of M0, M2, M6 and M9 are registered as the passed (tested) routines. .. Next, enter different test conditions and test data,
When the program is executed according to the flow of (4), M0,
The programs of the routines M2, M6, M10 are registered as passed (tested) routines.

【0028】そして、この(4) の流れに沿ったプログラ
ム実行過程でM6のルーチンにプログラム誤りが発見さ
れ、プログラム修正部16でプログラム修正されると、
影響ルーチンクリア部17によって、修正されたM6の
修正ルーチンのみならず、このM6の修正ルーチンの下
位に位置するM9とM10との二つのルーチンが未通過
ルーチンに戻される。
When a program error is found in the routine of M6 in the program execution process along the flow of (4) and the program is corrected by the program correction section 16,
The influence routine clearing unit 17 returns not only the modified routine for M6 but also the two routines M9 and M10, which are subordinate to the modified routine for M6, to the unpassed routines.

【0029】したがって、今回修正が生じた(4) の流れ
に沿うプログラムのみならず、先に実行された(3) の流
れに沿うプログラムも再度プログラム試験を行うよう
に、該当するM9およびM10のルーチンのプログラム
ソースが通過済みでない通常の黒色で印字出力される。
したがって、操作者は、この印字された未通過の2つの
ルーチンを通過する試験条件および試験データを設定し
て、再度プログラム実行部11を起動させればよい。
Therefore, not only the program following the flow of (4) in which the correction has occurred this time, but also the program along the flow of (3) previously executed are subjected to the program test again. Routine program source has not been passed Printed in normal black.
Therefore, the operator may set the test condition and the test data for passing the two unprinted routines that have been printed, and activate the program execution unit 11 again.

【0030】このように、修正が生じたルーチンに対し
ては、このプログラム修正により影響を受ける全てのル
ーチンを自動的に未通過ルーチンに移行させているの
で、プログラム修正があったにも係わらずその影響を受
けるルーチンのプログラム動作の確認が抜けることを未
然に防止できる。したがって、プログラム試験装置全体
の信頼性を大幅に向上できる。
As described above, with respect to the modified routine, all the routines affected by this program modification are automatically transferred to the non-passed routines. It is possible to prevent omission of confirmation of the program operation of the affected routine. Therefore, the reliability of the entire program test apparatus can be significantly improved.

【0031】また、従来装置のように、プログラムを修
正するたびにソースの通過ルーチンの通過,未通過の情
報を全てクリアして最初からプログラム試験を実行しな
ければならない場合に比較して、プログラム試験作業能
率を大幅に向上できる。
Further, in comparison with the case where it is necessary to clear all the passing / non-passing information of the passage routine of the source every time the program is modified as in the conventional apparatus and execute the program test from the beginning, The test work efficiency can be greatly improved.

【0032】また、実施例のプログラム試験装置によれ
ば、図3に示すように、プログラムのルーチン階層関係
を用いることにより、自動的にプログラムの修正により
影響を受けるルーチンを判断し、試験の進捗状況に反映
させることができる。また、この方法の応用範囲はプロ
グラムの単位試験にとどまることなく、ルーチン階層図
のルーチンをプログラム・システムに変更することによ
り組合せ試験、総合試験において活用することができ
る。
Further, according to the program test apparatus of the embodiment, as shown in FIG. 3, by using the routine hierarchy relation of the program, the routine affected by the modification of the program is automatically judged and the test progress is made. Can be reflected in the situation. Further, the application range of this method is not limited to the unit test of the program, but can be utilized in the combination test and the comprehensive test by changing the routine of the routine hierarchy diagram into the program system.

【0033】[0033]

【発明の効果】以上説明したように、本発明の進捗度可
視化プログラム試験装置によれば、プログラム修正時後
にこの修正により影響を受けるルーチンを未通過ルーチ
ンに戻し、該当ルーチンが未試験であることを示す状態
で出力されるように構成している。したがって、操作者
が各ルーチンにおける試験の実施,未実施を確実にかつ
簡単に把握でき、プログラム試験の試験作業能率と、試
験の信頼性を大幅に向上できる。
As described above, according to the progress visualizing program testing apparatus of the present invention, after the program is modified, the routine affected by this modification is returned to the non-passed routine, and the corresponding routine is untested. Is configured to be output in a state indicating. Therefore, the operator can surely and easily grasp the execution / non-execution of the test in each routine, and the test work efficiency of the program test and the test reliability can be greatly improved.

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

【図1】 本発明の一実施例に係わる進捗度可視化プロ
グラム試験装置の動作を示す流れ図、
FIG. 1 is a flowchart showing the operation of a progress degree visualization program test device according to an embodiment of the present invention,

【図2】 同実施例装置における影響ルーチンクリア部
の動作を示す流れ図、
FIG. 2 is a flowchart showing the operation of an influence routine clearing unit in the apparatus of the embodiment,

【図3】 被試験プログラムを構成する各ルーチンの階
層的構成を示す模式図、
FIG. 3 is a schematic diagram showing a hierarchical structure of each routine constituting the program under test,

【図4】 一般的な被試験プログラムの構成を示す模式
図、
FIG. 4 is a schematic diagram showing the configuration of a general program under test,

【図5】 従来装置の動作を示す流れ図。FIG. 5 is a flowchart showing the operation of the conventional device.

【符号の説明】[Explanation of symbols]

11…プログラム実行部,12…通過ルーチンチェック
部,13…ソースファイル格納部、14…色付けソース
出力部、15…合否判断部、16…プログラム修正部、
17…影響ルーチンクリア部、18…試験済ルーチンチ
ェック部、19…試験終了判断部。
11 ... Program execution unit, 12 ... Passing routine check unit, 13 ... Source file storage unit, 14 ... Coloring source output unit, 15 ... Pass / Fail judgment unit, 16 ... Program correction unit,
17 ... Influence routine clearing part, 18 ... Tested routine check part, 19 ... Test end judging part.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入力された試験条件および試験データに
基づいて複数のルーチンからなるプログラムを実行する
プログラム実行部と、このプログラム実行過程において
前記試験条件や試験データに応じて通過したルーチンを
チェックする通過ルーチンチェック部と、前記プログラ
ム実行後に前記通過ルーチンチェック部にてチェックさ
れたルーチンのプログラムソースを色付けして出力する
色付けソース出力部と、プログラム実行における試験の
合否を判断する合否判断部と、この合否判断部にて不合
格と判断されたルーチンのプログラムに対する修正操作
に応動して該当プログラムを修正するプログラム修正部
と、このプログラム修正により影響を受けるルーチンを
未通過ルーチンに戻す影響ルーチンクリア部と、試験す
べきプログラムの全てのルーチンが通過ルーチンに移行
したか否かを調べて試験終了を判断する試験終了判断部
とを備えた進捗度可視化プログラム試験装置。
1. A program execution unit that executes a program consisting of a plurality of routines based on input test conditions and test data, and a routine that has passed in accordance with the test conditions and test data in the program execution process is checked. A passage routine check unit, a coloring source output unit for coloring and outputting the program source of the routine checked by the passage routine check unit after execution of the program, and a pass / fail judgment unit for judging pass / fail of a test in program execution, A program modifying unit that modifies the program in response to the modification operation of the program of the routine determined to be unacceptable by the pass / fail judgment unit, and an influence routine clearing unit that returns the routine affected by the program modification to the non-passed routine And all of the programs to be tested A progress visualization program test device including a test end determination unit that determines whether or not the test has ended by checking whether or not all the routines have transited to a passing routine.
JP3191667A 1991-07-31 1991-07-31 Test device for progress degree visualizing program Pending JPH0535531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3191667A JPH0535531A (en) 1991-07-31 1991-07-31 Test device for progress degree visualizing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3191667A JPH0535531A (en) 1991-07-31 1991-07-31 Test device for progress degree visualizing program

Publications (1)

Publication Number Publication Date
JPH0535531A true JPH0535531A (en) 1993-02-12

Family

ID=16278457

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3191667A Pending JPH0535531A (en) 1991-07-31 1991-07-31 Test device for progress degree visualizing program

Country Status (1)

Country Link
JP (1) JPH0535531A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08235025A (en) * 1995-02-24 1996-09-13 Nec Corp Program test support management device and its method
EP2037482A2 (en) 2007-09-11 2009-03-18 Toshiba Hokuto Electronics Corporation Magnetron for microwave oven
JP2009193182A (en) * 2008-02-13 2009-08-27 Meidensha Corp Software development support system, support method, and program
US10366857B2 (en) 2016-10-24 2019-07-30 Lg Electronics Inc. Magnetron for microwave oven

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08235025A (en) * 1995-02-24 1996-09-13 Nec Corp Program test support management device and its method
EP2037482A2 (en) 2007-09-11 2009-03-18 Toshiba Hokuto Electronics Corporation Magnetron for microwave oven
US8525413B2 (en) 2007-09-11 2013-09-03 Toshiba Hokuto Electronics Corporation Magnetron for microwave oven
JP2009193182A (en) * 2008-02-13 2009-08-27 Meidensha Corp Software development support system, support method, and program
US10366857B2 (en) 2016-10-24 2019-07-30 Lg Electronics Inc. Magnetron for microwave oven

Similar Documents

Publication Publication Date Title
US6173440B1 (en) Method and apparatus for debugging, verifying and validating computer software
US4953096A (en) Test method and apparatus for distributed system
KR101044544B1 (en) How to monitor program execution on a microcomputer
CN119179642A (en) Code testing method and device and electronic equipment
JPH0535531A (en) Test device for progress degree visualizing program
JP2000358029A (en) Automatic fault diagnostic network system, and automatic fault diagnostic method for network
JPH11224211A (en) Software inspection support device
JPH08305609A (en) Program test method and device
JPH07334385A (en) How to verify the maintenance diagnostic function
WO2022259910A1 (en) Information processing device, information processing method, and program
JPH07121576A (en) Failure simulation device
JPH0887429A (en) Programmable controller
JP2795332B2 (en) Loop processing error detection device
JP2878014B2 (en) RAM test method
JPH10232795A (en) Software component combination test method
CN121560747A (en) Automatic test method, device, equipment and storage medium
CN116595943A (en) A simulation log processing method and device
JPH0391846A (en) Production of correlation diagram for fault detecting circuit
CN117785695A (en) Error detection method, device, equipment and storage medium based on software integration
JP2549690B2 (en) Pseudo-fault test method for channel processor
JPH0283746A (en) Failure handling function test method
JPS59177799A (en) Checking system of read-only memory
JPS6250858B2 (en)
JPH05108405A (en) Fault analyzing program debugging system
JPH1040132A (en) Program inspection system