JPH0614320B2 - 図式プログラム・テスト方法 - Google Patents

図式プログラム・テスト方法

Info

Publication number
JPH0614320B2
JPH0614320B2 JP59216146A JP21614684A JPH0614320B2 JP H0614320 B2 JPH0614320 B2 JP H0614320B2 JP 59216146 A JP59216146 A JP 59216146A JP 21614684 A JP21614684 A JP 21614684A JP H0614320 B2 JPH0614320 B2 JP H0614320B2
Authority
JP
Japan
Prior art keywords
test
graphic
source
diagram
program
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 - Fee Related
Application number
JP59216146A
Other languages
English (en)
Other versions
JPS6195458A (ja
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.)
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 JP59216146A priority Critical patent/JPH0614320B2/ja
Priority to US06/787,386 priority patent/US4730315A/en
Publication of JPS6195458A publication Critical patent/JPS6195458A/ja
Publication of JPH0614320B2 publication Critical patent/JPH0614320B2/ja
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3624Software debugging by performing operations on the source code, e.g. via a compiler

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、対話用表示端末上に処理フロー図を表示し、
それによりプログラムのテストを行なうことにより、デ
バッグ,テストの効率を上げることを可能とした図式プ
ログラムテスト方式に関する。
〔発明の背景〕
従来、プログラムのテストは、プログラマがソース・テ
キスト内にデバッグ情報を埋め込み、又はデバッガを動
かして、条件設定を行ない、ソーステキストによるテス
トを行なっていた。そしてエラーの場合は、ソーステキ
ストに対して修正を行ない、再度テストを行なうという
操作をくり返していたため、非効率且つ煩雑であり、ま
たソーステキスト中心のテストであった。
尚本発明に関連のある発明として同一出願人の発明、特
願昭59−13461号がある。
〔発明の目的〕
本発明の目的は、上述の如きプログラムテストの負荷を
軽減し、図式上でテストを行ない、その実行ルート変数
内容出力などビジュアル表示することを可能とし、テス
ト効率を上げることにあり、テスト実施者は、ソースプ
ログラムを一切意識することなしにテスト、デバッグを
行ない得る図式プログラムテスト方式を提供することに
ある。
〔発明の概要〕
本発明は、対話用表示端末により、図式編集部により、
図式仕様を作成し、それらの情報をファイルに蓄積す
る。それら蓄積された図式仕様は図式翻訳部によりファ
イルから読み出される。また、図式上でプログラムを実
行するために、図式仕様と対応をとるための情報が埋め
込まれており、機械翻訳されて実行可能状態となる。
テストを実行するために、テスト条件が設定されテスト
実行部でプログラムが実行される。次に表示部において
対応のため埋め込まれた情報をもとに図式仕様が、端末
上に表示され実行部分がハッチングされる(又はカラー
表示される)などにより明示されたと同時にテスト条件
によって設定された情報がそのつど表示される。
この様に図式上でテストが実行されエラーがある場合
は、図式編集部により対話用端末を使い修正を行なうこ
とができる。こうして、動作が確認されたプログラム
は、図式仕様を機械出力することでドキュメントとして
利用できることになる。
〔発明の実施例〕
第1図は本発明を実施するためのシステム構成の一例を
示す。1は各種情報の処理を行なうホスト計算機、2は
キイボードとグラフィック・ディスプレイ装置を備え、
適当な回線を介して対話形式でホスト計算機1と交信す
るTSS端末、3はTSS端末2を用いて作成あるいは
修正された図式仕様情報と自動生成されたソースプログ
ラムを記憶しておくファイル、4は出力用のラインプリ
ンタである。
第2図は本発明においてホスト計算機1が行なう処理の
概略をフローチャートで表わしたものである。この処理
は、オペレータの指定に従い、モジュール関連図を定義
あるいは修正する処理5、処理フロー図を定義あるいは
修正する処理6、内部データを定義あるいは修正する処
理7、インタフェイスデータを定義あるいは修正する処
理8、及びソース・コードを生成しテストを実行する処
理9に分けて遂行され、これらの内で処理5〜8は、T
SS端末2のキイボードとグラフィックディスプレイ装
置を用いた対話式処理操作によって行なう図式編集処理
である。これらの処理5〜8によって作成される各図式
仕様のディスプレイ画面上の表示フォーマットを例示し
たものが第3図(1)〜(4)である。
第3図(1)はモジュール関連図で、これは生成しよう
とするソースプログラムの相互接続関係を表わす。第3
図(2)は、処理フロー図を示し、各モジュールの論理
的な処理の流れを表わしており、図示の例は、公知のP
AD(Problem Analysis Diagram)を用いて表現したも
のである。第3図(3)は内部データ定義図であって、
これは前記処理フロー図中の各処理で使用されるデータ
の配列数、型等を定義するものである。第3図(4)は
インタフェイスデータ定義図であって、これはモジュー
ルCALLされる時の引数及び、モジュール間で参照あ
るいは更新される共通データについて、それぞれ「引
数」,「IN−DATA」、「OUT−DATA」と表
示されたBox内に、内部データと同様に、データの変数
名,型,配列数などを定義する。これらの(1)〜
(4)の作成された図式仕様は、図式情報として図式フ
ァイル3に蓄積した後、ソースコード生成処理9により
ソースプログラムを自動的に作成する。
第4図に各図式情報からソースコードを生成する手順を
示す。同図において(i)図式仕様の(1)に示したモ
ジュール関連図中のモジュール「SUB」について、対
応する(2)の処理フロー図、(3)の内部データ定義
図及び(4)のインタフェイスデータ定義図が図示の通
り定義されており、これらからFORTRANで記述されたソ
ースプログラムを作成するものとする。この作成処理は
大別して(ii)ソース変換と(iii)ソース編集の二段
階からなる。
第1段階として、各図式情報(i)の(1)〜(4)か
ら、(ii)のソース変換処理により、矢印で示す様に個
々のソース文が生成される。図中、枠で囲って斜線を施
した部分が本発明により自動的に付加されるものであ
り、それらは指定されたプログラム言語に特有の記述規
則に従って予め決まっているキイワード、記号等であ
る。図示の例では、処理文の「DO」,「CONTINUE」,
「IF」等、また、データの型を定義する「INTEGE
R」,「REAL」,「COMMON」等のキイワードはFORTRAN言
語の記述規則に従ったものである。
第2段階として、第1段階で得られたソース文を(ii
i)のソース編集処理により、一つのプログラム単位を
形成する様に、プログラムの記述規則に従って順序よく
並べ変える。FORTRANの場合、「SUBROUTINE」から「E
ND」までが一つのコンパイル単位であり、これらの間
に、規則に従い先頭にデータ宣言文、その後に処理文が
並べられプログラムが完成する。図中、矢印は各ソース
文がソース編集によってどこに移されるかを示す。
第2図9での、ソースコード生成処理は以上の様に行な
われるが、図式上でテストを実行するためには、第4図
(iii)により生成されたソース・コードに図式仕様を
検索,表示するための情報を追加する。
第5図は、そのために追加した情報を示している。ソー
スコード内の下線を施した部分が追加した情報である。
そのコードは、「C*」で始まっているが、これはFORT
RAN言語ではコメント文となる。1行のソースコードに
1行のコメント文が付き、どの図式仕様からソースに変
換されたのかを表わす。(1)のS,PROC1,SUBの
各キイワードはSはモジュール関連図を示し、関連図名
称PROC1のSUBというモジュール名の変換を意味す
る。(2)のIF,SUBはモジュール名SUBのIF
つまりインタフェースデータ定義図を表わす。同様に
(3)は、モジュール名SUBのINつまり内部データ
定義図を、そして(4)は、SUBというモジュール名
のPつまり処理フロー図(PAD)を表わし、最後の数
値10はBOX番号を表わす。第4図(i)図式仕様
(2)処理プロー図内 の右上に付された番号がBOX番号である。以上の様に
(1)〜(4)の形式で付されたコメント文をもとに、
ソースと図式の対応を付けている。これら一連の処理が
図式翻訳処理である。
第6図は、テストを実行する時の処理手順を示したフロ
ーチャートである。条件設定コマンド(SET,OU
T,BRKなど)でテストする環境を設定し(60
1)、602GOコマンドでテストが開始される。そし
て実際、実行している処理フロー図が表示され、そのど
この部分を実行しているかBOXが塗りつぶされ(60
3)その結果データがどう更新されたのか画面上に表示
される。
実際に実行した時の画面遷移を示したのが第7図であ
る。(1)でプログラムを起動する前の条件を設定して
いる。L,Mにそれぞれ10,1の値をSETL,J,
Mという変数名の内容をOUT(出力)することを指定
し、GOコマンドでテストが開始される。画面は、
(2)(3)(4)(5)(6)…という順に進みその
つど実行された部分が斜線で塗りつぶされていく。
(4)では、I=1,5というくり返し条件のため、J
=I*Lが5回実行され、その結果Jの値が更新される
つどBOXの右側に出力される。
この様に、画面上に実行部が表示され、その結果値がど
の様に変化したか、又どういうルートで処理が進んでい
るかを、目で確認しながら図式上で行なうので大変効率
よくテストを行なうことができる。
ここでもし、エラー又は誤りを発見したなら、第2図5
〜8で示した各処理に於て図式仕様の誤り個所を修正
し、再度9の処理によりソース生成、テスト実行をくり
返す。
そして正しく動くことが確認された時は、これら図式仕
様をラインプリンタに出力し、そのまま仕様書として使
用で、人手による仕様書作成、修正の手間が一切なくな
る。
〔発明の効果〕
本発明によれば、オペレータが対話形式で完成した図式
仕様書をファイルすると、自動的にソースプログラムが
作成され、かつ、テスト、デバッグを図式仕様上で行な
い、エラーなどの場合は、対話により図式仕様を修正す
ることができる。このため、一貫して人間がわかりやす
い図式上で、設計からテストまでを行なうことができる
もので、ソースリストから人間は解放される。
また、清書された図式仕様書を機械出力することもでき
る。
【図面の簡単な説明】
第1図は本発明を実施するためのシステム構成の一例を
示すブロックダイヤグラム、第2図は本発明による処理
の概略フローチャート、第3図(1)〜(4)は本発明
による各図式仕様の表示画面フォーマットの説明図、第
4図は、本発明ソースコード変換処理部の過程図、第5
図は本発明におけるテストするためのソース埋め込み情
報を示す説明図、第6図は本発明におけるテスト実行処
理の概略フローチャート、第7図は、本発明テスト実行
時の表示画面の遷移を表わす説明図である。 1……ホスト計算機、2……TSS端末、3……図式、
ソースリストファイル、4……ラインプリンタ、5……
モジュール関連図定義/修正処理、6……処理フロー図
定義/修正処理、7……内部データ定義/修正処理、8
……インタフェイスデータ定義/修正処理、9……ソー
スコード生成、テスト実行処理。

Claims (1)

    【特許請求の範囲】
  1. 【請求項1】対話用端末を有する情報処理装置におい
    て、プログラム仕様を対話により複数の要素からなる図
    形式で入力し、編集する図式仕様編集ステップと、前記
    図式仕様を翻訳してテスト実行可能状態に変換する図式
    翻訳ステップと、テスト条件を設定しテストを実行する
    テスト実行ステップと、前記テスト状態を前記入力した
    図式の要素毎に対応させて前記端末に出力するステップ
    からなることを特徴とする図式プログラム・テスト方
    法。
JP59216146A 1984-10-17 1984-10-17 図式プログラム・テスト方法 Expired - Fee Related JPH0614320B2 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP59216146A JPH0614320B2 (ja) 1984-10-17 1984-10-17 図式プログラム・テスト方法
US06/787,386 US4730315A (en) 1984-10-17 1985-10-15 Diagrammatic method of testing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59216146A JPH0614320B2 (ja) 1984-10-17 1984-10-17 図式プログラム・テスト方法

Publications (2)

Publication Number Publication Date
JPS6195458A JPS6195458A (ja) 1986-05-14
JPH0614320B2 true JPH0614320B2 (ja) 1994-02-23

Family

ID=16683996

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59216146A Expired - Fee Related JPH0614320B2 (ja) 1984-10-17 1984-10-17 図式プログラム・テスト方法

Country Status (2)

Country Link
US (1) US4730315A (ja)
JP (1) JPH0614320B2 (ja)

Families Citing this family (56)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0640302B2 (ja) * 1984-01-30 1994-05-25 株式会社日立製作所 図式・ソ−スプログラム自動生成方法
US4920538A (en) * 1985-06-28 1990-04-24 International Business Machines Corporation Method of checking the execution of microcode sequences
JPS62229343A (ja) * 1986-03-29 1987-10-08 Toshiba Corp プログラム・カウンタ表示方式
US5021997A (en) * 1986-09-29 1991-06-04 At&T Bell Laboratories Test automation system
US5191646A (en) * 1986-11-20 1993-03-02 Hitachi, Ltd. Display method in software development support system
JPS63181033A (ja) * 1987-01-23 1988-07-26 Hitachi Ltd プログラム自動生成方式
US5155836A (en) * 1987-01-27 1992-10-13 Jordan Dale A Block diagram system and method for controlling electronic instruments with simulated graphic display
US4943968A (en) * 1987-03-04 1990-07-24 Hitachi, Ltd. Method of displaying execution trace in a logic programming language processing system
JPS63223931A (ja) * 1987-03-13 1988-09-19 Fujitsu Ltd 論理図実行ル−ト出力処理方式
JPS63223928A (ja) * 1987-03-13 1988-09-19 Fujitsu Ltd 論理図デバツグ処理方式
US5157600A (en) * 1987-04-28 1992-10-20 Moisey Lerner System for numerical description of computer program logic
US5566294A (en) * 1989-09-29 1996-10-15 Hitachi, Ltd. Method for visual programming with aid of animation
US5287449A (en) * 1987-11-06 1994-02-15 Hitachi, Ltd. Automatic program generation method with a visual data structure display
US5398313A (en) * 1987-11-06 1995-03-14 Hitachi, Ltd. Method for visual programming with aid of animation
JP2624753B2 (ja) * 1988-03-18 1997-06-25 株式会社日立製作所 上位仕様書作成方法
US5117496A (en) * 1988-05-23 1992-05-26 Hewlett-Packard Company Method for recording and replaying mouse commands by recording the commands and the identities of elements affected by the commands
US4941102A (en) * 1988-09-16 1990-07-10 International Business Machines Corporation Two-step debugger for expert systems
JPH02272645A (ja) * 1989-04-14 1990-11-07 Hitachi Ltd プログラム・デバツグ支援方法
EP0404505B1 (en) * 1989-06-19 1997-08-20 Digital Equipment Corporation Arrangement for integrating application in a digital processing system
US6005576A (en) 1989-09-29 1999-12-21 Hitachi, Ltd. Method for visual programming with aid of animation
US5029170A (en) * 1989-11-30 1991-07-02 Hansen Robert G Assembly language programming potential error detection scheme which recognizes incorrect symbolic or literal address constructs
US5448736A (en) * 1989-12-22 1995-09-05 Hitachi, Ltd. Method for generating a program comprised of such a portion of a series of operator-inputted commands as will produce an operator-selected one of a number of results
JPH03202963A (ja) * 1989-12-28 1991-09-04 Brother Ind Ltd 図形処理装置
EP0463732A3 (en) * 1990-06-28 1992-10-14 International Business Machines Corporation Method and system for animating the execution of a computer program
US5699310A (en) * 1990-06-29 1997-12-16 Dynasty Technologies, Inc. Method and apparatus for a fully inherited object-oriented computer system for generating source code from user-entered specifications
JP3062266B2 (ja) * 1991-03-20 2000-07-10 富士通株式会社 支援装置
JPH04337843A (ja) * 1991-05-15 1992-11-25 Hitachi Ltd プログラム動作表示方法
US5852449A (en) * 1992-01-27 1998-12-22 Scientific And Engineering Software Apparatus for and method of displaying running of modeled system designs
JPH06103048A (ja) * 1992-04-24 1994-04-15 Nec Corp プログラム開発支援システム
GB9211368D0 (en) * 1992-05-29 1992-07-15 British Telecomm Software fault location
US5297150A (en) * 1992-06-17 1994-03-22 International Business Machines Corporation Rule-based method for testing of programming segments
US5553235A (en) * 1992-10-23 1996-09-03 International Business Machines Corporation System and method for maintaining performance data in a data processing system
US5483468A (en) * 1992-10-23 1996-01-09 International Business Machines Corporation System and method for concurrent recording and displaying of system performance data
US5432932A (en) * 1992-10-23 1995-07-11 International Business Machines Corporation System and method for dynamically controlling remote processes from a performance monitor
US5506955A (en) * 1992-10-23 1996-04-09 International Business Machines Corporation System and method for monitoring and optimizing performance in a data processing system
US5465358A (en) * 1992-12-28 1995-11-07 International Business Machines Corporation System for enhancing user efficiency in initiating sequence of data processing system user inputs using calculated probability of user executing selected sequences of user inputs
US6216143B1 (en) 1994-12-05 2001-04-10 International Business Machines Corporation Apparatus and method for generating animated color coded software traces
US5600790A (en) * 1995-02-10 1997-02-04 Research In Motion Limited Method and system for loading and confirming correct operation of an application program in a target system
US5652899A (en) * 1995-03-03 1997-07-29 International Business Machines Corporation Software understanding aid for generating and displaying simiplified code flow paths with respect to target code statements
US5805862A (en) * 1995-11-16 1998-09-08 Motorola, Inc. Method of forming an integrated circuit
US6021271A (en) * 1998-01-15 2000-02-01 Motorola, Inc. Methods of simulating an electronic circuit design
US6961924B2 (en) * 2002-05-21 2005-11-01 International Business Machines Corporation Displaying variable usage while debugging
US6964036B2 (en) * 2002-05-21 2005-11-08 International Business Machines Corporation Descriptive variables while debugging
US7328429B2 (en) * 2003-11-13 2008-02-05 Intel Corporation Instruction operand tracing for software debug
CN100485636C (zh) 2006-04-24 2009-05-06 华为技术有限公司 一种基于模型驱动进行电信级业务开发的调试方法及装置
US8683438B2 (en) * 2007-11-28 2014-03-25 International Business Machines Corporation System, computer program product and method for comparative debugging
WO2014113751A1 (en) * 2013-01-21 2014-07-24 Siemens Corporation Functional debugging of equation-based languages
JP5754014B2 (ja) * 2013-02-28 2015-07-22 日本電能株式会社 プログラム作成方法
US9740593B2 (en) 2015-01-08 2017-08-22 International Business Machines Corporation Comparative program execution through control of two or more debug sessions to automatically determine execution differences
US9443192B1 (en) 2015-08-30 2016-09-13 Jasmin Cosic Universal artificial intelligence engine for autonomous computing devices and software applications
US9864933B1 (en) 2016-08-23 2018-01-09 Jasmin Cosic Artificially intelligent systems, devices, and methods for learning and/or using visual surrounding for autonomous object operation
US10452974B1 (en) 2016-11-02 2019-10-22 Jasmin Cosic Artificially intelligent systems, devices, and methods for learning and/or using a device's circumstances for autonomous device operation
US10607134B1 (en) 2016-12-19 2020-03-31 Jasmin Cosic Artificially intelligent systems, devices, and methods for learning and/or using an avatar's circumstances for autonomous avatar operation
US10102449B1 (en) 2017-11-21 2018-10-16 Jasmin Cosic Devices, systems, and methods for use in automation
US10474934B1 (en) 2017-11-26 2019-11-12 Jasmin Cosic Machine learning for computing enabled systems and/or devices
US10402731B1 (en) 2017-12-15 2019-09-03 Jasmin Cosic Machine learning for computer generated objects and/or applications

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4315315A (en) * 1971-03-09 1982-02-09 The Johns Hopkins University Graphical automatic programming
US4533997A (en) * 1972-08-25 1985-08-06 Westinghouse Electric Corp. Computer monitored or controlled system which may be modified and de-bugged on-line by one not skilled in computer programming
JPS56168263A (en) * 1980-05-30 1981-12-24 Hitachi Ltd Program making device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ACMSIGPLANNOTICES,19〔5〕(1984−5)P.30−41日立評論,66〔6〕(昭59−6)P.65−70

Also Published As

Publication number Publication date
US4730315A (en) 1988-03-08
JPS6195458A (ja) 1986-05-14

Similar Documents

Publication Publication Date Title
JPH0614320B2 (ja) 図式プログラム・テスト方法
US5557774A (en) Method for making test environmental programs
EP0785510B1 (en) Program debugging system for debugging a program having a graphical user interface
JPH02272645A (ja) プログラム・デバツグ支援方法
JPH0640302B2 (ja) 図式・ソ−スプログラム自動生成方法
JPH08202545A (ja) ターゲット言語コードを生成するためのオブジェクト指向システム及びその方法
JPS6116100B2 (ja)
JP2914664B2 (ja) 自動プログラミング装置
JPH0916382A (ja) プログラム開発支援システム
JP3112623B2 (ja) プログラム生産支援装置
EP1429252A2 (en) Debug device, debug method and computer readable storage medium
Bloesch et al. The Cogito methodology and system
Cox et al. Advanced programming aids in PROGRAPH
CA2144483A1 (en) Methods and apparatus for reverse engineering a program and generating an object-oriented redesign
JPS62145424A (ja) プログラム管理方法
JP4458491B2 (ja) テストコマンドファイル作成システムと方法およびプログラム
JP3031767B2 (ja) 自然言語処理装置
JP3069050B2 (ja) プログラム変換方法
Larsen et al. Tutorial for overture/VDM++
Larsen et al. Tutorial for Overture/VDM-SL
JPH05134854A (ja) ソフトウエア開発支援装置
JPH0752387B2 (ja) ソフトウエア開発支援装置
JP2882876B2 (ja) プログラム試験方法
CN110637522B (zh) 控制律增益模型自动生成方法及系统
JPH0850576A (ja) 視覚対話型シミュレーション装置

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees