JPH03233643A - Total test system for program component - Google Patents

Total test system for program component

Info

Publication number
JPH03233643A
JPH03233643A JP2030094A JP3009490A JPH03233643A JP H03233643 A JPH03233643 A JP H03233643A JP 2030094 A JP2030094 A JP 2030094A JP 3009490 A JP3009490 A JP 3009490A JP H03233643 A JPH03233643 A JP H03233643A
Authority
JP
Japan
Prior art keywords
test
environment
information
hardware
input means
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
JP2030094A
Other languages
Japanese (ja)
Inventor
Katsumi Inoue
勝己 井上
Takehito Yoshida
武仁 吉田
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.)
NEC Corp
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
NEC Software Kyushu 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 NEC Corp, NEC Software Kyushu Ltd filed Critical NEC Corp
Priority to JP2030094A priority Critical patent/JPH03233643A/en
Publication of JPH03233643A publication Critical patent/JPH03233643A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To reduce time and cost for generating an environment by providing a control means to execute the generation and test of a virtual environment based on information obtained by an information input means. CONSTITUTION:A data input means 11 inputs a hardware environment and test procedures to be virtually defined, and the test environment is stored through a data editing means 12 to a data base 13. Based on the information of the test procedures, a test method and an estimated result are edited and stored into data bases 14 and 15. based on the information of the data base 13, a virtual environment generation part 22 of a control part 21 virtually develops the hardware equipments of a terminal or a line, etc., so that the real hardware can seem to exist when being observed from a test object component 24. After activating the component 24, an interface part 23 starts the test based on the information of the data base 14. Thus, the time and cost required for generating the real environment can be reduced.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム部品の総合テスト方式に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a comprehensive test method for program components.

〔従来の技術〕[Conventional technology]

従来、コンポーネントの総合テストを行う場合、まずテ
ストに合わせたハードウェア環境を生成した上で、テス
ト内容に応じてハードウェア環境を変更しながらテスト
を行っていた。
Conventionally, when performing a comprehensive test of a component, a hardware environment suitable for the test was first created, and then the test was performed while changing the hardware environment depending on the test content.

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

上述した総合テストのコンポーネントの総合テスト方式
、特にオンライン系のコンポーネントのテスト方式は、
実環境を生成しようとした場合、ハードウェアの設備が
大規模になり、環境生成に時間がかかると同時にコスト
が非常に高くなり実現が難しいため、その環境が既に生
成されている場所へ出向いてテストを行う必要がある。
The comprehensive test method for the components of the comprehensive test mentioned above, especially the online component test method, is as follows:
If you try to generate a real environment, the hardware equipment will be large-scale, it will take time to generate the environment, and the cost will be extremely high, making it difficult to realize, so you will have to go to a place where the environment has already been generated. Need to do a test.

このような方式の場合、テストを行うための時間が制約
されると同時に簡単に環境を変更することができないと
いう問題がある。
In the case of such a method, there are problems in that the time for conducting tests is limited and at the same time, the environment cannot be easily changed.

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

本発明の方式は、プログラム部品の総合テスト方式にお
いて、 仮想化するハードウェア環境及びテスト手順をデータベ
ースに予め入力する情報入力手段と、該情報入力手段に
よって得られた情報を基に仮想環境の生成・テストの実
行を行う制御手段と、前記テストの実行終了後、予想結
果と実行結果を自動照合するテスト結果比較手段と、該
テスト結果比較手段によって得られた結果を編集・出力
する出力手段とを有することを特徴とする。
The method of the present invention is a comprehensive test method for program components, and includes an information input means for inputting a hardware environment to be virtualized and a test procedure into a database in advance, and generation of a virtual environment based on the information obtained by the information input means.・A control means for executing a test; a test result comparison means for automatically comparing the expected result with the execution result after the execution of the test; and an output means for editing and outputting the results obtained by the test result comparison means. It is characterized by having the following.

〔実施例〕〔Example〕

次に本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は本発明の仮想環境によるテスト方式を構成する
4つの手段をブロック図で表わしたものである。本発明
は、テスト環境・テスト手順に関する情報の入力・編集
を行う情報入力手段1と、情報入力手段1で得られた情
報を基にハードウェア設備の仮想化を行い、コンポーネ
ントの実行を行い、その実行結果を採取する制御手段2
と、制御手段2で得られた実行結果と情報入力手段1で
テスト手順を基に編集された予想結果との自動照合を行
うテスト結果比較手段3と、テスト結果手段3で得られ
た結果を編集して出力する出力手段4とから構成されて
いる。
FIG. 1 is a block diagram showing four means constituting the virtual environment testing method of the present invention. The present invention includes an information input means 1 for inputting and editing information related to test environments and test procedures, virtualization of hardware equipment based on the information obtained by the information input means 1, execution of components, Control means 2 that collects the execution results
and a test result comparison means 3 that automatically compares the execution results obtained by the control means 2 with the expected results edited based on the test procedure by the information input means 1, and It is composed of an output means 4 for editing and outputting.

情報入力手段1では、第2図に示すように、テストに必
要な仮想で定義しないハードウェア環境・テスト手順を
データ入力手段11により入力し、データ編集手段12
を介してデータベース13へテスト環境を格納し、デー
タベース14゜データベース15ヘテスト手順の情報を
基にテスト方法予想結果を編集し格納する。
In the information input means 1, as shown in FIG.
The test environment is stored in the database 13 via the database 14 and the test method expected results are edited and stored in the database 15 based on the information on the test procedure.

制御手段2は、第3図に示すように、制御部21の仮想
環境生成部22がデータベース13の情報を基に端末や
回線等のハードウェア設備を仮想して展開を行い、テス
ト対象コンポーネント24から見てあたかも実際のハー
ドウェアが存在しているようにする。
As shown in FIG. 3, in the control means 2, the virtual environment generation section 22 of the control section 21 virtualizes and deploys hardware equipment such as terminals and lines based on the information in the database 13, and creates a test target component 24. When viewed from above, it appears as if actual hardware exists.

テスト対象コンポーネント24を起動した後、インター
フェース部23はデータベース14の情報に基づいてテ
ストを開始し、テスト対象コンポーネント24がハード
ウェア環境に対して情報を送った場合、その情報を得は
取り、ハードウェア環境に送ったように見せかけて、仮
想環境生成部22に渡たす。
After starting the component under test 24, the interface unit 23 starts the test based on the information in the database 14, and when the component under test 24 sends information to the hardware environment, it obtains that information and The data is passed to the virtual environment generation unit 22 while pretending to be sent to a software environment.

仮想環境生成部22では、データベース13及びデータ
ベース14より障害発生・割り込みの必要有無のチエツ
クを基に実環境と同じ対応を行い、インターフェース部
23を通してテスト対象コンポーネント24に情報を送
る。
The virtual environment generation unit 22 performs the same response as the real environment based on a check from the databases 13 and 14 as to whether a failure has occurred or whether an interrupt is necessary, and sends information to the test target component 24 through the interface unit 23.

実行結果採取部25は、テストが開始されると同時にテ
スト対象コンポーネント24と仮想環境生成部22との
間で行われている情報のやり取りを、インターフェース
部23より随時受は取り、データベース26に書き込ん
でいく。
The execution result collection unit 25 receives information exchanged between the test target component 24 and the virtual environment generation unit 22 from the interface unit 23 as needed at the same time as the test is started, and writes it into the database 26. I'll go.

第1図のテスト結果比較手段3では、第4図に示すよう
に、データベース3.15に格納されている予想結果と
、データベース26に格納されている実行結果を比較し
て情報の動きが予想した通りの動きをしているかをテス
ト結果比較部31で自動照合を行い、その比較した結果
をデータベース5.23に格納する。
As shown in FIG. 4, the test result comparison means 3 in FIG. The test result comparison unit 31 automatically checks whether the robot is moving as expected, and the comparison results are stored in the database 5.23.

出力手段4は、第5図に示すように、編集方法人力手段
41でどのような情報を必要とするか、またデイスプレ
ィ43に表示するかプリンタ44に印字するかを入力し
て、比較結果編集手段42で入力された編集方法に従い
、必要な情報をデータベース32より得て編集を行う、
デイスプレィ43はプリンタ44に対して出力を行う。
As shown in FIG. 5, the output means 4 inputs what kind of information is required by the editing method manual means 41 and whether it should be displayed on the display 43 or printed on the printer 44, and then edits the comparison results. Editing is performed by obtaining necessary information from the database 32 in accordance with the editing method input by the means 42;
The display 43 outputs to the printer 44.

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

以上説明したように本発明は、仮想化するハードウェア
環境・テスト手順を予め入力することで、テスト環境を
簡単に実現することが可能になると同時に、テスト自動
的に実行させその結果が正しいかのチエツクを行わせる
こともできるため、実環境生成に必要な時間、コスト及
びテストの自動化による人件費を削減することができ、
また比較した結果によりデバッグを容易に行うことがで
きる効果がある。
As explained above, the present invention makes it possible to easily create a test environment by inputting the hardware environment to be virtualized and the test procedure in advance, and at the same time allows tests to be automatically executed and whether the results are correct. It is also possible to check the actual environment, reducing the time and cost required to generate a real environment, as well as labor costs due to test automation.
Furthermore, the comparison results have the effect of making debugging easier.

【図面の簡単な説明】 第1図は本発明のブロック図、第2図は情報入力手段の
機能を示す図、第3図は制御手段の機能を示す図、第4
図はテスト結果比較手段の機能を示す図、第5図は出力
手段の機能を示す図である。3!1 1・・・・・・情報入力手段、2・・・・・・制御手段
、3・・・・・・テスト結果比較制御手段、4・・・・
・・出力手段、11・・・・・・データ入力手段、12
・・・・・・データ編集手段、13.14,15,26
.32・・・・・・データベース、21・・・・・・制
御部、22・・・・・・仮想環境生成部、23・・・・
・・インターフェース部、24・・・・・・テスト対象
コンポーネント、25・・・・・・実行結果採取部、3
1・・・・・・テスト結果比較部、41・・・・・・編
集方法人力手段、42・・・・・・比較結果編集手段、
43・・・・・・デイスプレィ、44・・・・・・プリ
ンタ。
[Brief Description of the Drawings] Fig. 1 is a block diagram of the present invention, Fig. 2 is a diagram showing the functions of the information input means, Fig. 3 is a diagram showing the functions of the control means, and Fig. 4 is a diagram showing the functions of the control means.
The figure shows the function of the test result comparison means, and FIG. 5 shows the function of the output means. 3!1 1... Information input means, 2... Control means, 3... Test result comparison control means, 4...
...Output means, 11...Data input means, 12
...Data editing means, 13.14, 15, 26
.. 32...Database, 21...Control unit, 22...Virtual environment generation unit, 23...
...Interface part, 24...Test target component, 25...Execution result collection part, 3
1...Test result comparison section, 41...Editing method manual means, 42...Comparison result editing means,
43...Display, 44...Printer.

Claims (1)

【特許請求の範囲】 プログラム部品の総合テスト方式において、仮想化する
ハードウェア環境及びテスト手順をデータベースに予め
入力する情報入力手段と、該情報入力手段によって得ら
れた情報を基に仮想環境の生成・テストの実行を行う制
御手段と、前記テストの実行終了後、予想結果と実行結
果を自動照合するテスト結果比較手段と、 該テスト結果比較手段によって得られた結果を編集・出
力する出力手段とを有することを特徴とするプログラム
部品の総合テスト方式。
[Claims] In a comprehensive test method for program components, an information input means for inputting a hardware environment to be virtualized and a test procedure into a database in advance, and generation of a virtual environment based on information obtained by the information input means.・A control means for executing a test, a test result comparison means for automatically comparing the expected result and the execution result after the execution of the test, and an output means for editing and outputting the results obtained by the test result comparison means. A comprehensive test method for program parts characterized by having the following features:
JP2030094A 1990-02-08 1990-02-08 Total test system for program component Pending JPH03233643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2030094A JPH03233643A (en) 1990-02-08 1990-02-08 Total test system for program component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2030094A JPH03233643A (en) 1990-02-08 1990-02-08 Total test system for program component

Publications (1)

Publication Number Publication Date
JPH03233643A true JPH03233643A (en) 1991-10-17

Family

ID=12294198

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2030094A Pending JPH03233643A (en) 1990-02-08 1990-02-08 Total test system for program component

Country Status (1)

Country Link
JP (1) JPH03233643A (en)

Similar Documents

Publication Publication Date Title
US5991537A (en) VXI test executive
JPH04264589A (en) Learning-mode course-ware tool
JP2001501343A (en) System and method for simulating signal flow through a logical block pattern of a real-time process control system
CN111859834A (en) UVM-based verification platform development method, system, terminal and storage medium
JPH03233643A (en) Total test system for program component
JPH05250218A (en) On-line program test system
CN113448257A (en) Simulation test method and platform for avionics cabin display system
JPH11219209A (en) Offline simulation device of general purpose plc
JPH05241619A (en) Programming device for programmable controller
JPH11282525A (en) Monitor control system
JP2002244722A (en) Plant control system
Sugimoto et al. An object-oriented visual simulator for microprogram development
JP3325397B2 (en) Simulation system for programs executed by programmable controllers
CN115881291A (en) Operation and maintenance training system and training method for medical equipment
JP2000081870A (en) Graphic screen forming device and control system using the same
JPH03130839A (en) On-line simulation system
JPH0417444B2 (en)
Raja et al. Simulating fieldbus applications with DRUGH simulator
JPH0667931A (en) Single chip microcomputer simulator
JPH04113424A (en) Simple program test system
JPS61199132A (en) Test data generating system for full screen menu
JPH07160536A (en) Program test supporting device for interactive system
JPH09282015A (en) Information processor
JPH0895817A (en) Method for testing information processor
JPS63211440A (en) Testing state display method