JPH11175370A - Program testing method - Google Patents

Program testing method

Info

Publication number
JPH11175370A
JPH11175370A JP33963897A JP33963897A JPH11175370A JP H11175370 A JPH11175370 A JP H11175370A JP 33963897 A JP33963897 A JP 33963897A JP 33963897 A JP33963897 A JP 33963897A JP H11175370 A JPH11175370 A JP H11175370A
Authority
JP
Japan
Prior art keywords
file
test
screen
item
test item
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
JP33963897A
Other languages
Japanese (ja)
Inventor
Satoshi Yoshino
敏 吉野
Masao Koike
政男 小池
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
Hitachi Solutions East Japan Ltd
Original Assignee
Hitachi Ltd
Hitachi Tohoku Software 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, Hitachi Tohoku Software Ltd filed Critical Hitachi Ltd
Priority to JP33963897A priority Critical patent/JPH11175370A/en
Publication of JPH11175370A publication Critical patent/JPH11175370A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Digital Computer Display Output (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent item omission by automatically preparing test items from screen design specifications. SOLUTION: The screen design specifications 20 are inputted, a test item preparation processing 10 is executed and a test item file 30 and a test item table file 31 are prepared. Also, by executing a screen item analysis processing 11, a snapshot file 32 is prepared from information fetched from an input device 21 and a screen item table file 33 is prepared based on the snapshot file. Further, a comparison processing 12 is executed, the prepared test item table file and screen item table file are compared and a compared result file 34 is prepared. Finally, a test result reflection processing 13 is executed and the entry of a result to the test item is performed from the compared result of the compared result file.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、GUI制御プログ
ラ向けのテストに関し特に自動化する方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test for a GUI control program, and more particularly to an automatic method.

【0002】[0002]

【従来の技術】GUI(Graphical User
Interface)制御プログラムは、メニュー、
ボタン等を含めた対話用の画面を提供するため、複雑な
操作を対話的に行え、操作性及び効率向上を図ることが
できる。
2. Description of the Related Art GUI (Graphical User)
Interface) control program includes a menu,
Since an interactive screen including buttons and the like is provided, complicated operations can be performed interactively, and operability and efficiency can be improved.

【0003】GUI制御プログラムのGUI部のテスト
項目は、画面設計仕様書から表示項目の「位置」、「内
容」を抜き出し、人為的に作成する必要があり、また、
確認には、作成したテスト項目と、画面の表示項目を目
視により比較、確認を行う必要がある。
The test items of the GUI section of the GUI control program need to be artificially created by extracting the "position" and "content" of the display items from the screen design specification.
For confirmation, it is necessary to visually compare and confirm the created test items and display items on the screen.

【0004】このように、人為的に作成したテスト項目
では項目漏れを起こす可能性がある。また、確認におい
ても目視による確認漏れや確認誤りの可能性がある。
As described above, test items created artificially may cause omission of items. Also, in the confirmation, there is a possibility that the confirmation is visually omitted or the confirmation is incorrect.

【0005】[0005]

【発明が解決しようとする課題】上記の従来のテスト方
式では、画面設計仕様書から表示項目の「位置」、「内
容」を抜き出し、人為的に作成する必要がある。また、
確認には、作成したテスト項目と、画面の表示項目とを
目視により比較、確認を行う必要がある。しかし、どち
らの作業も項目漏れ、確認漏れ、確認誤り等の人為的な
ミスを起こす欠点がある。
In the above-mentioned conventional test method, it is necessary to extract the "position" and "content" of the display item from the screen design specification and to create it artificially. Also,
For confirmation, it is necessary to visually compare and confirm the created test items and display items on the screen. However, both operations have a drawback that human errors such as omission of items, omission of confirmation, and erroneous confirmation are caused.

【0006】本発明は、画面設計仕様書からテスト項目
の自動作成を行うことで項目漏れを防ぎ、また、確認時
の正確性の向上を目的とするものである。
An object of the present invention is to prevent the omission of items by automatically creating test items from a screen design specification, and to improve the accuracy of confirmation.

【0007】[0007]

【課題を解決するための手段】本発明は上記の目的を達
成するために、画面設計仕様書中の画面仕様テーブルを
読み込み、テスト項目及びテスト項目テーブルファイル
を作成するテスト項目作成処理と、画面上に表示される
項目を解析し、各項目毎にテーブル化を行い、画面項目
テーブルファイルを作成する画面項目解析処理、作成さ
れたテスト項目テーブルファイルと画面項目テーブルフ
ァイルを比較し、比較によるテスト結果を出力する比較
処理、また、比較結果ファイルからテスト項目に対して
テスト結果を反映するテスト結果反映処理を備えてい
る。
In order to achieve the above object, the present invention reads a screen specification table in a screen design specification and creates a test item and a test item table file. Analyzes the items displayed above, tabulates each item, creates a screen item table file, screen item analysis processing, compares the created test item table file with the screen item table file, and tests by comparison A comparison process for outputting a result and a test result reflection process for reflecting a test result on a test item from a comparison result file are provided.

【0008】[0008]

【発明の実施の形態】本発明について図面を用いて説明
する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described with reference to the drawings.

【0009】図1は本発明のシステム構成図であり、1
は主記憶装置で、10のテスト項目作成処理、11の画
面項目解析処理、12の比較処理、13のテスト結果反
映処理がそれぞれ格納されている。
FIG. 1 is a system configuration diagram of the present invention.
A main storage device stores 10 test item creation processes, 11 screen item analysis processes, 12 comparison processes, and 13 test result reflection processes.

【0010】20はテスト項目やテスト項目を作成する
ための画面設計仕様書、21は画面情報を取得するため
の入力装置である。
Reference numeral 20 denotes a test item and a screen design specification for creating the test item, and reference numeral 21 denotes an input device for acquiring screen information.

【0011】30は10のテスト項目作成処理によって
作成したテスト項目を格納しているファイル、31は1
0のテスト項目作成処理によって作成したテスト項目テ
ーブルを格納しているファイル、32は20より取得し
た画面情報をスナップショットとして格納しているファ
イル、33は11の画面項目解析処理によって作成され
た画面項目テーブルを格納しているファイル、34は1
2の比較処理によって作成された比較結果を格納してい
るファイルである。
Reference numeral 30 denotes a file storing test items created by the ten test item creation processes, and 31 denotes 1
0 is a file storing the test item table created by the test item creation processing, 32 is a file storing the screen information acquired from 20 as a snapshot, and 33 is a screen created by the 11 screen item analysis processing. File storing item table, 34 is 1
2 is a file that stores the comparison result created by the comparison process of FIG.

【0012】図2は作成されたテスト項目テーブル及び
画面項目テーブルを格納したファイルの一例である。画
面設計仕様書20によって得たデータを、テスト項目作
成処理10により作成した、ラベル、属性、始点位置、
終点位置のデータから構成されている。
FIG. 2 shows an example of a file storing the created test item table and screen item table. The data obtained by the screen design specification 20 is created by the test item creation processing 10 into the label, attribute, start position,
It consists of data of the end point position.

【0013】図3はテスト項目を格納したファイルの一
例である。画面設計仕様書20によって得たデータを、
テスト項目作成処理10により作成した、ラベル、属
性、始点位置、終点位置を基に作成したテスト項目を表
している。
FIG. 3 shows an example of a file storing test items. The data obtained by the screen design specification 20
Shows test items created based on the label, attribute, start point position, and end point position created by the test item creation processing 10.

【0014】図4は比較結果を格納したファイルの一例
である。テスト項目テーブルファイル31と画面項目テ
ーブルファイ32の比較結果であり、比較結果の判定、
不一致項目、不一致内容で構成されている。
FIG. 4 shows an example of a file storing the comparison result. It is a comparison result between the test item table file 31 and the screen item table file 32.
It consists of unmatched items and unmatched contents.

【0015】図5は画面設計仕様書20から、テスト項
目ファイル30を作成する処理の一例である。画面設計
仕様書20中の画面仕様テーブルの読み込みを行い(1
00)、テーブルの終了か判定(101)を行う。テー
ブルの終わりでなければ、画面仕様テーブルからラベ
ル、属性、始点位置、終点位置の情報を抜き出す(10
2)。抜き出した情報からテスト項目テーブルを作成
(103)し、テスト項目テーブルファイルとして出力
する(104)。また、抜き出した情報からテスト項目
を作成(105)し、テスト項目ファイルとして出力す
る(106)。この処理をテーブルの終了まで繰り返
す。
FIG. 5 shows an example of a process for creating a test item file 30 from the screen design specification 20. The screen specification table in the screen design specification document 20 is read (1).
00), it is determined whether the table is finished (101). If it is not the end of the table, the information of the label, attribute, start point position and end point position is extracted from the screen specification table (10
2). A test item table is created from the extracted information (103) and output as a test item table file (104). Further, a test item is created from the extracted information (105) and output as a test item file (106). This process is repeated until the end of the table.

【0016】図6は入力装置21から取得した画面情報
から画面項目を解析する処理の一例である。入力装置2
1から画面情報を取得(200)を行う。取得した画面
情報をスナップショットファイルとして出力(201)
を行う。出力したスナップショットファイルを読み込み
(202)、ファイルの終わりか判定(203)を行
う。ファイルの終わりならば、スナップショットファイ
ルの削除(210)後、終了する。また、ファイルの終
わりでなければ、スナップショットファイルの座標計算
を行い、属性、始点位置、終点位置、ラベルを解析(2
04,205,206,207)する。解析した情報を
基にテスト項目テーブルファイル31と同一フォーマッ
トの画面項目テーブルを作成(208)し、画面項目テ
ーブルファイルを出力(209)する。この処理をファ
イルの終わりまで繰り返す。
FIG. 6 shows an example of a process for analyzing a screen item from the screen information acquired from the input device 21. Input device 2
Then, screen information is obtained from No. 1 (200). Output the acquired screen information as a snapshot file (201)
I do. The output snapshot file is read (202), and it is determined whether the file ends (203). If it is the end of the file, the process ends after deleting the snapshot file (210). If the end of the file is not reached, the coordinates of the snapshot file are calculated, and the attributes, start point position, end point position, and label are analyzed (2
04, 205, 206, 207). A screen item table having the same format as the test item table file 31 is created based on the analyzed information (208), and the screen item table file is output (209). This process is repeated until the end of the file.

【0017】図7はテスト項目テーブルファイル31と
画面項目テーブルファイル33を比較する処理の一例で
ある。テスト項目テーブルファイル31と画面項目テー
ブルファイル33の読み込み(300,301)を行
い、ファイルの終わりか判定(302)を行う。ファイ
ルの終わりでなければ、各項目同士の比較(303)を
行う。比較した結果から比較結果を作成(304)し、
比較結果ファイルとして出力(305)する。この処理
をファイルの終わりまで繰り返す。
FIG. 7 shows an example of a process for comparing the test item table file 31 with the screen item table file 33. The test item table file 31 and the screen item table file 33 are read (300, 301), and it is determined whether the file ends (302). If it is not the end of the file, each item is compared (303). A comparison result is created (304) from the comparison result,
Output (305) as a comparison result file. This process is repeated until the end of the file.

【0018】図8は比較結果ファイル34の内容をテス
ト項目ファイル30へ反映する処理の一例である。比較
結果ファイル34とテスト項目ファイル30を読み込み
(400,401)を行い、ファイルの終わりか判定
(402)を行う。ファイルの終わりでなければ、比較
結果ファイル34から判定を抜き出し(403)を行
い、テスト項目ファイルの対象箇所の判定欄に判定結果
を埋め込む(404)。この処理を比較結果ファイルの
終了まで繰り返す。
FIG. 8 shows an example of processing for reflecting the contents of the comparison result file 34 in the test item file 30. The comparison result file 34 and the test item file 30 are read (400, 401), and it is determined whether the end of the file (402). If it is not the end of the file, the judgment is extracted from the comparison result file 34 (403), and the judgment result is embedded in the judgment column of the target portion of the test item file (404). This process is repeated until the end of the comparison result file.

【0019】[0019]

【発明の効果】本発明によれば、GUI制御プログラム
の表示項目に対するテスト方法において、テスト項目の
自動作成、テスト及び結果判定の自動化を行うことによ
り、テストの効率を高めることができるとともに、テス
トの正確性の向上をはかることができる。
According to the present invention, in a test method for a display item of a GUI control program, by automatically creating a test item and automating a test and a result judgment, the efficiency of the test can be improved, and Can be improved in accuracy.

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

【図1】本発明の一実施例におけるシステム構成図であ
る。
FIG. 1 is a system configuration diagram according to an embodiment of the present invention.

【図2】テスト項目テーブル及び画面項目テーブルの対
応構成例の一例を説明する図である。
FIG. 2 is a diagram illustrating an example of a corresponding configuration example of a test item table and a screen item table.

【図3】テスト項目の一例を説明する図である。FIG. 3 is a diagram illustrating an example of a test item.

【図4】本発明の一実施例における比較結果ファイルの
データ構成図である。
FIG. 4 is a data configuration diagram of a comparison result file according to an embodiment of the present invention.

【図5】本発明の一実施例におけるテスト項目作成処理
のフローチャートである。
FIG. 5 is a flowchart of a test item creation process in one embodiment of the present invention.

【図6】本発明の一実施例における画面項目解析処理の
フローチャートである。
FIG. 6 is a flowchart of a screen item analysis process according to an embodiment of the present invention.

【図7】本発明の一実施例における比較処理のフローチ
ャートである。
FIG. 7 is a flowchart of a comparison process in one embodiment of the present invention.

【図8】本発明の一実施例における比較結果のテスト結
果反映処理のフローチャートである。
FIG. 8 is a flowchart of a test result reflection process of a comparison result in one embodiment of the present invention.

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

1…主記憶装置、 10…テスト項目
作成処理、11…画面項目解析処理、 12
…比較処理、13…テスト結果反映処理、 2
0…画面設計仕様書、21…入力装置、
30…テスト項目ファイル、31…テスト項目テ
ーブルファイル、 32…スナップショットファイル、
33…画面項目テーブルファイル、 34…比較結果
ファイル、100〜106…処理、 20
0〜210…処理、300〜305…処理、
400〜404…処理。
DESCRIPTION OF SYMBOLS 1 ... Main storage device 10 ... Test item creation processing 11 ... Screen item analysis processing 12
... Comparison processing, 13 ... Test result reflection processing, 2
0: screen design specification, 21: input device,
30: test item file, 31: test item table file, 32: snapshot file,
33: screen item table file, 34: comparison result file, 100 to 106: processing, 20
0-210 ... processing, 300-305 ... processing,
400 to 404 processing.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】GUI制御プログラムの表示項目について
のテスト方法において、画面設計仕様書から作成したテ
ーブル情報及び、画面上の表示項目をテーブル化した情
報を基に、画面設計仕様書からテスト項目の自動作成及
び、テスト結果である画面上の表示項目との自動比較を
行うことにより自動生成したテスト項目に対するテスト
結果を自動的に判定することを特徴としたテスト方法。
In a test method for display items of a GUI control program, based on table information created from a screen design specification and information obtained by tabulating display items on a screen, a test item of a test item is A test method characterized in that a test result for an automatically generated test item is automatically determined by performing automatic creation and automatic comparison with a display item on a screen as a test result.
JP33963897A 1997-12-10 1997-12-10 Program testing method Pending JPH11175370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33963897A JPH11175370A (en) 1997-12-10 1997-12-10 Program testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33963897A JPH11175370A (en) 1997-12-10 1997-12-10 Program testing method

Publications (1)

Publication Number Publication Date
JPH11175370A true JPH11175370A (en) 1999-07-02

Family

ID=18329399

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33963897A Pending JPH11175370A (en) 1997-12-10 1997-12-10 Program testing method

Country Status (1)

Country Link
JP (1) JPH11175370A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1063123A2 (en) 1999-06-22 2000-12-27 Sumitomo Wiring Systems, Ltd. Lamp circuit for automobiles
JP2013156875A (en) * 2012-01-31 2013-08-15 Mitsubishi Electric Corp Monitoring screen test support device
WO2015004771A1 (en) 2013-07-11 2015-01-15 三菱電機株式会社 Plant equipment test device
WO2023281614A1 (en) * 2021-07-06 2023-01-12 三菱電機株式会社 Test specification generation device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1063123A2 (en) 1999-06-22 2000-12-27 Sumitomo Wiring Systems, Ltd. Lamp circuit for automobiles
JP2013156875A (en) * 2012-01-31 2013-08-15 Mitsubishi Electric Corp Monitoring screen test support device
WO2015004771A1 (en) 2013-07-11 2015-01-15 三菱電機株式会社 Plant equipment test device
US10090705B2 (en) 2013-07-11 2018-10-02 Mitsubishi Electric Corporation Plant facilities testing apparatus
WO2023281614A1 (en) * 2021-07-06 2023-01-12 三菱電機株式会社 Test specification generation device

Similar Documents

Publication Publication Date Title
US7669198B2 (en) On-demand translator for localized operating systems
EP0718796A2 (en) Block selection review and editing system
US20060089728A1 (en) Sequence program editing apparatus
US8952985B2 (en) Digital comic editor, method and non-transitory computer-readable medium
US20040002829A1 (en) Semiconductor test data analysis system
JP5677924B2 (en) Test automation system
JPH11175370A (en) Program testing method
US5153927A (en) Character reading system and method
JP2002014845A (en) Method for automatically generating test script part and device for the same
JPH07219810A (en) Module testing method and device therefor
JPH0760363B2 (en) Method for automatically creating user-defined commands
JPS6254337A (en) Specification displaying system for program hierarchy
JPH0660136A (en) Drawing edit device
JPH10105444A (en) Operation manual original form preparation system
JP2004362495A (en) Method for supporting of error log information analysis, executing system thereof, and processing program thereof
JPS61259337A (en) Electronic memo device
JPH09245075A (en) Design data editing device
JP2000181691A (en) Program structure analysis system
CN117827174A (en) Operator parameter display method and device, electronic equipment and storage medium
CN112925843A (en) Method and system for changing map display effect based on graphical interface configuration
JP2000312290A (en) Data processing method, data processor and storage medium
JPH0533248U (en) Image processing simulation device
CN116382691A (en) Method for generating display code of front-end control library
JP4096972B2 (en) Database creation device
JPH05181661A (en) General purpose menu system for each user