JPS63145518A - Automatic test system for key processing - Google Patents

Automatic test system for key processing

Info

Publication number
JPS63145518A
JPS63145518A JP61292168A JP29216886A JPS63145518A JP S63145518 A JPS63145518 A JP S63145518A JP 61292168 A JP61292168 A JP 61292168A JP 29216886 A JP29216886 A JP 29216886A JP S63145518 A JPS63145518 A JP S63145518A
Authority
JP
Japan
Prior art keywords
key
processing
text buffer
buffer
contents
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
JP61292168A
Other languages
Japanese (ja)
Inventor
Michie Suzuki
鈴木 美智恵
Koji Hirashima
平嶋 孝治
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 JP61292168A priority Critical patent/JPS63145518A/en
Publication of JPS63145518A publication Critical patent/JPS63145518A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To shorten a key processing test time by extracting successively key codes out of a memory part and delivering these codes to a key processing part. CONSTITUTION:A controller 2 contains a key processing part 13 and a text buffer 7. When the keys are depressed on a keyboard 1 in a normal mode, the key codes stored previously in a memory part 14 are successively delivered to the part 13. The part 13 analyzes these key codes and carries out the corresponding key processing jobs. The key processing results are reflected on a text buffer 7 and the screens decided by the contents of the buffer 7 are displayed on a display 3. In such a way, the key processing test time is shortened.

Description

【発明の詳細な説明】 本発明は、キー処理の自動テスト方式の改良に関するも
のである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an improved automatic test method for key processing.

〔従来の技術〕[Conventional technology]

従来のキー処理に関するテスト方法としては、オペレー
タが実際にキー操作を行い、その結果をディスプレイで
目視確認すると言う方法が採用されていた。
The conventional test method for key processing has been to have an operator actually perform key operations and visually check the results on a display.

〔解決しようとする問題点〕[Problem to be solved]

多くのキーを有するキーボードにおいては、敗多くの場
合のテストが必要になり、テスト項目が多大になる。そ
のため従来の方法では、テストに多大な時間がかかり、
例えば仕様変更などでハードウェアやファームウェアが
改造されたときに、同様のテストを人手で繰返す必要が
あった。
A keyboard with many keys requires testing in many cases, resulting in a large number of test items. Therefore, with traditional methods, testing takes a lot of time and
For example, when hardware or firmware was modified due to specification changes, similar tests had to be repeated manually.

本発明は、この点に鑑みて創作されたものであって、キ
ー処理のテストを時間と労力をかけることなく行い得る
ようになったキー処理の自動テスト方式を提供すること
を目的としている。
The present invention was created in view of this point, and it is an object of the present invention to provide an automatic key processing test method that allows testing of key processing without spending time and effort.

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

第1図(alは本発明の第1番目の発明の原理図である
。コントローラ2は、キー処理部13とテキスト・バッ
ファ7を有している0通常モードの場合、キーボードl
上のキーが押下されると、そのキーのキー・コードがキ
ー処理部13に渡される。
FIG. 1 (al is a principle diagram of the first invention of the present invention. The controller 2 has a key processing section 13 and a text buffer 7. In the normal mode, the keyboard l
When the upper key is pressed, the key code of that key is passed to the key processing section 13.

キー処理部13は、そのキー・コードを解析し、対応す
るキー処理を行う、キー処理の結果はテキスト・バッフ
ァ7に反映される。ディスプレイ3には、テキスト・バ
ッファ7の内容によって定まる画面が表示される。記憶
部14には、複数のキー・コードが予め格納されている
。装置のテストを行う場合、記憶部14に格納されてい
るキー・コードを順番にキー処理部13に渡す。
The key processing unit 13 analyzes the key code and performs the corresponding key processing, and the result of the key processing is reflected in the text buffer 7. A screen determined by the contents of the text buffer 7 is displayed on the display 3. A plurality of key codes are stored in advance in the storage unit 14. When testing the device, the key codes stored in the storage section 14 are sequentially passed to the key processing section 13.

第1図(b)は本発明の第2番目の発明の原理図である
。先ずログの取得を行う、ログ取得の場合、キーボード
1から入力されたキー・コードをキー処理部13に渡す
、キー処理部13は、キー処理を行い、その結果をテキ
スト・バッファ7に反映する。このとき、そのキー・コ
ードを記憶部14に格納すると共に、そのキー・コード
に基づく処理の結果が反映されたテキスト・バッファ7
の内容を記憶部15に格納する。このようなログ取得処
理を複数回行う。ログ取得処理が終了した後、装置のテ
ストを行う。テストの場合、記憶部14に格納されてい
るキー・コードをキー処理部13に渡す。キー・コード
を受は取ると、キー処理部13はキー処理を行う。キー
処理が終了した後で、テキスト・バッファ7の内容と、
記憶部15に格納されている対応するデータとを照合す
る。
FIG. 1(b) is a diagram showing the principle of the second invention. First, a log is acquired. In the case of log acquisition, the key code input from the keyboard 1 is passed to the key processing section 13. The key processing section 13 performs key processing and reflects the result in the text buffer 7. . At this time, the key code is stored in the storage unit 14, and the text buffer 7 reflects the result of the processing based on the key code.
The contents of are stored in the storage unit 15. Such log acquisition processing is performed multiple times. After completing the log acquisition process, test the device. In the case of a test, the key code stored in the storage section 14 is passed to the key processing section 13. When the key code is received, the key processing section 13 performs key processing. After the key processing is completed, the contents of text buffer 7 and
The data is compared with the corresponding data stored in the storage unit 15.

〔実施例〕〔Example〕

キー処理のテストを自動化するための要点は下記の二つ
である。
There are two main points to automate key processing tests:

(al  テスト・データと予想結果の作成先ず人手で
1回だけテストを行う、このときのキー押下のシーケン
スと結果をログする。なお、装置のデバッグ完了時には
正しい結果となっている筈である。
(al) Creation of test data and expected results First, perform the test manually only once, and log the key press sequence and results at this time. Note that the results should be correct when the device debugging is completed.

(b)  テスト自体の自動化 (a)の処理でログしたキー押下シーケンスを装置で自
動的に恰もキーが押されたかのように順番に実行し、そ
の度にログした結果と照合する。
(b) Automation of the test itself The key press sequences logged in the process of (a) are automatically executed sequentially by the device as if the keys had been pressed, and each time the sequence is compared with the logged results.

第2図は人手でテストしたキー・シーケンスと結果をロ
グするときの動作を示す図である。同図において、1は
キーボード、2はコントローラ、3はディスプレイ、4
は外部記憶装置、5はキー人力処理部、6はローカル処
理部、7はテキスト・バッファ、8はバッファ照合処理
部、9はキー・シーケンス処理部、10はログ処理部、
11はキー・シーケンス・バッファ、12は結果バッフ
ァをそれぞれ示している。
FIG. 2 is a diagram showing the operation when logging manually tested key sequences and results. In the figure, 1 is a keyboard, 2 is a controller, 3 is a display, and 4
is an external storage device, 5 is a key manual processing unit, 6 is a local processing unit, 7 is a text buffer, 8 is a buffer collation processing unit, 9 is a key sequence processing unit, 10 is a log processing unit,
Reference numeral 11 indicates a key sequence buffer, and reference numeral 12 indicates a result buffer.

第2図の装置は、キーボード上のキーにより起動される
処理の幾つかがその装置内で完結するようなローカル処
理機能を持つものである。コントローラ2は、キー人力
処理部5、ローカル処理部6、テキスト・バッファ7、
バッファ照合処理部8、キー・シーケンス処理部9およ
びログ処理部10を有している。コントローラ2は例え
ばプロセッサであって、キー人力処理部5やローカル処
理部6、バッファ照合処理部8、キー・シーケンス処理
部9、ログ処理部10などはファームウェアで実現する
ことが出来る。外部記憶装置4の中には、キー・シーケ
ンス・バッファ11及び結果バッファ12が存在する。
The device shown in FIG. 2 has a local processing function in which some of the processes activated by keys on the keyboard are completed within the device. The controller 2 includes a key manual processing section 5, a local processing section 6, a text buffer 7,
It has a buffer collation processing section 8, a key sequence processing section 9, and a log processing section 10. The controller 2 is, for example, a processor, and the key manual processing section 5, local processing section 6, buffer collation processing section 8, key sequence processing section 9, log processing section 10, etc. can be realized by firmware. In the external storage device 4 there is a key sequence buffer 11 and a result buffer 12.

電源投入が行われると、コントローラ2の初期設定が行
われる。この際、テキスト・バッファ7も初期状態に設
定される。キーボード′l上のキーが押下されると、キ
ー人力処理部5が起動され、キー人力処理部5は押下さ
れたキーのキー・コードを読み出し、読み出したキー・
コードをローカル処理部6に渡し、ローカル処理部6を
起動(CALL)する、ローカル処理部6は、渡された
キー・コードの解析を行い、そのキー・コードに対応す
るキー処理を行う、キー処理の結果はテキスト・バッフ
ァ7に反映される。テキスト・バッファ7の内容は、デ
ィスプレイ3に表示される。ローカル処理部6による処
理が終了すると、制御はキー人力処理部5に戻される。
When the power is turned on, initial settings of the controller 2 are performed. At this time, the text buffer 7 is also set to its initial state. When a key on the keyboard 'l is pressed, the key manual processing unit 5 is activated, and the key manual processing unit 5 reads the key code of the pressed key and inputs the read key code.
Pass the code to the local processing unit 6 and start (CALL) the local processing unit 6.The local processing unit 6 analyzes the passed key code and performs the key processing corresponding to the key code. The results of the processing are reflected in the text buffer 7. The contents of text buffer 7 are displayed on display 3. When the processing by the local processing unit 6 is completed, control is returned to the key manual processing unit 5.

キー人力処理部5は、ログ取得モードであるか否かを調
べ、ログ取得モードであればログ処理部10を起動(C
ALL) L、ログ取得モードでなければ次のキーが押
下されるのを待つ、ログ処理部10は、ローカル処理部
6に割当られた間域内に存在するキー・コードを読み出
し、これをキー・シーケンス・バッファ11に会き込み
、書込み位置を更新し、次いでテキスト・バッファ7の
内容を結果バッファ12に書き込み、その書込み位置を
更新する。ログ処理部10による処理が終了すると、キ
ー人力処理部5に制御が返され、キー人力処理部5は次
のキーが押下されるのを待つ。
The key human power processing section 5 checks whether the mode is log acquisition mode or not, and if it is the log acquisition mode, starts the log processing section 10 (C
ALL) L. If it is not in log acquisition mode, the log processing unit 10 waits for the next key to be pressed. The log processing unit 10 reads the key code existing in the interval area assigned to the local processing unit 6, and inputs it to the key code. It writes the contents of the text buffer 7 to the result buffer 12 and updates the write position. When the processing by the log processing section 10 is completed, control is returned to the key manual processing section 5, and the key manual processing section 5 waits for the next key to be pressed.

第3図は自動的にテストを行うときの動作を示す図であ
る。自動テスト・モードに設定されると、キー・シーケ
ンス処理部9が起動される。キー・シーケンス処理部9
は、第1番目のキー・コード(図ではキー#1と表現さ
れている)を読み出し、読出し位置を更新し、そのキー
・コードをローカル処理部6に渡し、ローカル処理部6
を起動(CALL)する。ローカル処理部6の処理が終
了すると、キー・シーケンス処理部9に制御が返される
。制御が返されると、キー・シーケンス処理部9は、バ
ッファ照合処理部8を起動(CALL)する。バッファ
照合処理部8は、結果バッファ12に格納されているキ
ー#1後のテキスト・バッファの内容を読み出し、読出
し位置を更新し、結果バッファ12から読み出したテキ
スト・バッファの内容とテキスト・バッファ7の内容と
を照合し、両者が異なっておれば、その旨の表示を行う
。バッファ照合処理部8の処理が終了すると、制御はキ
ー・シーケンス処理部9に返される。制御が返されると
、キー・シーケンス処理部9は、キー・シーケンス・バ
ッファ11から次のキー・コードを読み出し、読み出し
位置を更新し、読み出したキー・コードをローカル処理
部6に渡し、ローカル処理部6を起動する。以下、同様
な処理が繰り返される。なお、第1図のキー処理部13
はローカル処理部6に対応し、第1図の記憶部14はキ
ー・シーケンス・バッファ11に対応し、第1図の記憶
部15は結果バッファ12に対応する。
FIG. 3 is a diagram showing the operation when automatically performing a test. When the automatic test mode is set, the key sequence processing section 9 is activated. Key sequence processing section 9
reads the first key code (expressed as key #1 in the figure), updates the read position, passes the key code to the local processing unit 6, and
Start (CALL). When the local processing section 6 completes its processing, control is returned to the key sequence processing section 9. When control is returned, the key sequence processing unit 9 activates (CALLs) the buffer collation processing unit 8. The buffer collation processing unit 8 reads the contents of the text buffer after key #1 stored in the result buffer 12, updates the read position, and compares the contents of the text buffer read from the result buffer 12 with the text buffer 7. If the two differ, a message to that effect is displayed. When the processing of the buffer collation processing section 8 is completed, control is returned to the key sequence processing section 9. When control is returned, the key sequence processing unit 9 reads the next key code from the key sequence buffer 11, updates the reading position, passes the read key code to the local processing unit 6, and performs local processing. Start section 6. Thereafter, similar processing is repeated. Note that the key processing unit 13 in FIG.
corresponds to the local processing unit 6, the storage unit 14 in FIG. 1 corresponds to the key sequence buffer 11, and the storage unit 15 in FIG.

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

以上の説明から明らかなように、本発明によれば、 (al  装置の試験期間を短縮できること、山) 工
数を削減できること、 (C)  改造時のレベルダウンなどを防止できること
、などの顕著な効果を奏することが出来る。
As is clear from the above explanation, the present invention has remarkable effects such as (1) being able to shorten the test period for the AL equipment, (1) being able to reduce the number of man-hours, and (C) being able to prevent level down during modification. can be played.

【図面の簡単な説明】[Brief explanation of the drawing]

ff11図は本発明の原理図、第2図は人手でテストし
たキー・シーケンスと結果をログするときの動作を示す
図、第3図は自動的にテストを行うときの動作を示す図
である。 !・・・キーボード、2・・・コントローラ、3・・・
ディスプレイ、4・・・外部記憶装置、5・・・キー人
力処理部、6・・・ローカル処理部、7・・・テキスト
・バッファ、8・・・バッファ照合処理部、9・・・キ
ー・シーケンス処理部、lO・・・ログ処理部、11・
・・キー・シーケンス・バッファ、12・・・結果バッ
ファ。
ff11 is a diagram showing the principle of the present invention, Figure 2 is a diagram showing the operation when logging the key sequence and result tested manually, and Figure 3 is a diagram showing the operation when automatically testing. . ! ...Keyboard, 2...Controller, 3...
Display, 4... External storage device, 5... Key manual processing section, 6... Local processing section, 7... Text buffer, 8... Buffer collation processing section, 9... Key... Sequence processing unit, lO...log processing unit, 11.
...Key sequence buffer, 12...Result buffer.

Claims (1)

【特許請求の範囲】[Claims] (1)キーボード(1)と、渡されたキー・コードで定
まる処理を行いその処理の結果をテキスト・バッファ(
7)に反映するキー処理部(13)を有するコントロー
ラ(2)と、テキスト・バッファ(7)の内容で定まる
画面を表示するディスプレイ(3)とを具備する装置に
おいて、 複数のキー・コードを記憶部(14)に格納し、該記憶
部(14)からキー・コードを順番に取り出して上記キ
ー処理部(13)に渡す ことを特徴とするキー処理の自動テスト方式、(2)キ
ーボード(1)と、渡されたキー・コードで定まる処理
を行いその処理の結果をテキスト・バッファ(7)に反
映するキー処理部(13)を有するコントローラ(2)
と、テキスト・バッファ(7)の内容で定まる画面を表
示するディスプレイ(3)とを具備する装置において、 キーボード(1)から入力されたキー・コードを上記キ
ー処理部(13)に渡し、 キー処理部(13)に渡されたキー・コードを記憶部(
14)に格納すると共にそのキー・コードに基づいて行
われた処理の結果が反映されたテキスト・バッファ(7
)の内容を他の記憶部(15)に格納し、記憶部(14
)に格納されているキー・コードを取り出して上記キー
処理部(13)に渡し、そのキー・コードに基づいて行
われた処理結果が反映されたテキスト・バッファ(7)
の内容と、他の記憶部(15)に格納されている対応す
るテキスト・バッファの内容を照合する ことを特徴とするキー処理の自動テスト方式。
(1) Perform the processing determined by the keyboard (1) and the passed key code, and save the processing results to the text buffer (
7), a controller (2) having a key processing unit (13) that reflects the contents of a text buffer (7), and a display (3) that displays a screen determined by the contents of a text buffer (7). An automatic test method for key processing characterized in that key codes are stored in a storage section (14), and key codes are sequentially retrieved from the storage section (14) and passed to the key processing section (13); (2) a keyboard ( 1), and a controller (2) having a key processing unit (13) that performs processing determined by the passed key code and reflects the result of the processing in the text buffer (7).
and a display (3) that displays a screen determined by the contents of a text buffer (7), in which a key code input from the keyboard (1) is passed to the key processing section (13), and the key code is The key code passed to the processing unit (13) is stored in the storage unit (
14) and a text buffer (7) that reflects the results of the processing performed based on the key code.
) is stored in another storage unit (15), and the contents of the storage unit (14) are stored in another storage unit (15).
) is extracted and passed to the key processing unit (13), and a text buffer (7) is created in which the results of processing performed based on the key code are reflected.
An automatic test method for key processing, characterized in that the contents of the text buffer are compared with the contents of a corresponding text buffer stored in another storage unit (15).
JP61292168A 1986-12-08 1986-12-08 Automatic test system for key processing Pending JPS63145518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61292168A JPS63145518A (en) 1986-12-08 1986-12-08 Automatic test system for key processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61292168A JPS63145518A (en) 1986-12-08 1986-12-08 Automatic test system for key processing

Publications (1)

Publication Number Publication Date
JPS63145518A true JPS63145518A (en) 1988-06-17

Family

ID=17778434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61292168A Pending JPS63145518A (en) 1986-12-08 1986-12-08 Automatic test system for key processing

Country Status (1)

Country Link
JP (1) JPS63145518A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04257909A (en) * 1991-02-12 1992-09-14 Fuji Facom Corp Keyboard input device
KR100369183B1 (en) * 2000-12-19 2003-01-24 현대자동차주식회사 Panel lifter for press

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04257909A (en) * 1991-02-12 1992-09-14 Fuji Facom Corp Keyboard input device
KR100369183B1 (en) * 2000-12-19 2003-01-24 현대자동차주식회사 Panel lifter for press

Similar Documents

Publication Publication Date Title
JPS59216256A (en) Operation analyzing device of microprocessor
JPS58190784A (en) Testing device for digital device and its test method
JPS63145518A (en) Automatic test system for key processing
JPH02259840A (en) Information processor
JPH01297738A (en) Computer testing device
JPH051888B2 (en)
JPH09259006A (en) Program evaluation system
JP2978976B2 (en) Software trace device
JPH02282833A (en) Testing device
KR960001766A (en) Button operation test method of home appliance
JPS61184647A (en) Performance test system of computer equipment
JPH04172538A (en) Verifier
JP2597635B2 (en) All key operation check method and device
JPH0193812A (en) System for displaying help screen
JPS58101352A (en) Data processor
JPH08171506A (en) Automatic inspection device
JPS63255744A (en) System diagnosing system
JPS59153245A (en) Debugging device
JPH086612A (en) Sampling trace device
JPS63180141A (en) Debugging system by conversational debugger
JPH0426891A (en) Data display device
JPS63208951A (en) Compact electronic equipment
JPS63278151A (en) Debugging device
JPH0887426A (en) Self-diagnosis state display system
JPH03266162A (en) Command execution system