JP5526572B2 - Test apparatus and test method - Google Patents

Test apparatus and test method Download PDF

Info

Publication number
JP5526572B2
JP5526572B2 JP2009070427A JP2009070427A JP5526572B2 JP 5526572 B2 JP5526572 B2 JP 5526572B2 JP 2009070427 A JP2009070427 A JP 2009070427A JP 2009070427 A JP2009070427 A JP 2009070427A JP 5526572 B2 JP5526572 B2 JP 5526572B2
Authority
JP
Japan
Prior art keywords
data
target application
test
layer
test target
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
JP2009070427A
Other languages
Japanese (ja)
Other versions
JP2010224795A (en
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.)
Fujitsu Semiconductor Ltd
Original Assignee
Fujitsu Semiconductor 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 Semiconductor Ltd filed Critical Fujitsu Semiconductor Ltd
Priority to JP2009070427A priority Critical patent/JP5526572B2/en
Publication of JP2010224795A publication Critical patent/JP2010224795A/en
Application granted granted Critical
Publication of JP5526572B2 publication Critical patent/JP5526572B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Description

この発明は、試験装置および試験方法に関する。   The present invention relates to a test apparatus and a test method.

従来、アプリケーション(応用ソフト)の入出力処理の評価テストを行う技術が知られている。例えば、応用ソフトからの入出力要求は、システムコール層により入出力のパラメータがチェックされ、異常がなければデバイスドライバ層に送られる。デバイスドライバ層では、送られてきたデータに基づいて先ず模擬入出力を行うか否かを判断する。模擬の入出力をしないのであれば、実デバイスにデータを送って処理する。一方、模擬入出力処理を行う場合は、模擬入出力を行って、デバイス入出力にかえることができる(例えば、特許文献1参照。)。   2. Description of the Related Art Conventionally, a technique for performing an input / output processing evaluation test of an application (application software) is known. For example, an input / output request from the application software is sent to the device driver layer if the input / output parameters are checked by the system call layer and there is no abnormality. The device driver layer first determines whether or not to perform simulated input / output based on the received data. If simulated input / output is not performed, data is sent to the actual device for processing. On the other hand, when performing simulated input / output processing, simulated input / output can be performed to switch to device input / output (see, for example, Patent Document 1).

特開平10−133914号公報JP-A-10-133914

しかしながら、従来の技術では、応用ソフトの要求に対して、予めデバイスドライバ層に記憶されている情報を返すことによって、模擬入出力処理が行われる。そのため、応用ソフトの種々の要求に対して正規のデバイスから返される種々の応答を模擬して試験を行うことができないという問題点がある。   However, in the conventional technique, simulated input / output processing is performed by returning information stored in advance in the device driver layer in response to a request from application software. Therefore, there is a problem that it is impossible to perform a test by simulating various responses returned from a legitimate device in response to various requests of application software.

この試験装置および試験方法は、アプリケーション層の試験対象アプリケーションとハードウェア層との間でドライバ層を介して授受されるデータの入出力処理を評価する装置および方法である。アプリケーション層は、疑似データ作成部を備える。疑似データ作成部は、ハードウェア層からドライバ層に渡されるデータの疑似データを作成してドライバ層へ出力する。ドライバ層は、疑似データ応答部を備える。疑似データ応答部は、アプリケーション層から渡された疑似データを、ハードウェア層から渡されたデータとして試験対象アプリケーションへ返す。   This test apparatus and test method is an apparatus and method for evaluating input / output processing of data exchanged between a test target application in an application layer and a hardware layer via a driver layer. The application layer includes a pseudo data creation unit. The pseudo data creation unit creates pseudo data of data passed from the hardware layer to the driver layer and outputs the pseudo data to the driver layer. The driver layer includes a pseudo data response unit. The pseudo data response unit returns the pseudo data passed from the application layer to the test target application as data passed from the hardware layer.

この試験装置および試験方法によれば、アプリケーションの種々の要求に対して正規のデバイスから返される種々の応答を模擬して試験を行うことができるという効果を奏する。   According to this test apparatus and test method, it is possible to perform a test by simulating various responses returned from a legitimate device in response to various requests of an application.

本発明の実施の形態1におけるブロック図である。It is a block diagram in Embodiment 1 of the present invention. 本発明の実施の形態1におけるシーケンス図である。It is a sequence diagram in Embodiment 1 of the present invention. 本発明の実施の形態2におけるハードウェア構成を示す図である。It is a figure which shows the hardware constitutions in Embodiment 2 of this invention. 本発明の実施の形態2におけるブロック図である。It is a block diagram in Embodiment 2 of the present invention. 本発明の実施の形態2における通常の送信データのフォーマットを示す図である。It is a figure which shows the format of the normal transmission data in Embodiment 2 of this invention. 本発明の実施の形態2における通常の受信データのフォーマットを示す図である。It is a figure which shows the format of the normal reception data in Embodiment 2 of this invention. 本発明の実施の形態2における疑似データのフォーマットを示す図である。It is a figure which shows the format of the pseudo data in Embodiment 2 of this invention. 本発明の実施の形態2における疑似データのフォーマットを示す図である。It is a figure which shows the format of the pseudo data in Embodiment 2 of this invention. 本発明の実施の形態2におけるフローチャートである。It is a flowchart in Embodiment 2 of this invention. 本発明の実施の形態2におけるシーケンス図である。It is a sequence diagram in Embodiment 2 of the present invention. 本発明の実施の形態2におけるシーケンス図である。It is a sequence diagram in Embodiment 2 of the present invention. 本発明の実施の形態2におけるシーケンス図である。It is a sequence diagram in Embodiment 2 of the present invention. 本発明の実施の形態2におけるシーケンス図である。It is a sequence diagram in Embodiment 2 of the present invention. 本発明の実施の形態2におけるシーケンス図である。It is a sequence diagram in Embodiment 2 of the present invention. 本発明の実施の形態2におけるシーケンス図である。It is a sequence diagram in Embodiment 2 of the present invention. 本発明の実施の形態2におけるシーケンス図である。It is a sequence diagram in Embodiment 2 of the present invention.

以下に添付図面を参照して、この試験装置および試験方法の好適な実施の形態を詳細に説明する。   Exemplary embodiments of a test apparatus and a test method will be described below in detail with reference to the accompanying drawings.

(実施の形態1)
・試験装置の構成
図1は、本発明の実施の形態1におけるブロック図である。図1に示すように、試験装置1は、アプリケーション層2およびドライバ層3を備えている。アプリケーション層2は、試験対象アプリケーション4および疑似データ作成部5を備えている。ドライバ層3は、疑似データ応答部6を備えている。試験装置1は、試験対象アプリケーション4とハードウェア層7との間でドライバ層3を介して授受されるデータの入出力処理を評価する装置である。
(Embodiment 1)
Configuration of test apparatus FIG. 1 is a block diagram according to Embodiment 1 of the present invention. As shown in FIG. 1, the test apparatus 1 includes an application layer 2 and a driver layer 3. The application layer 2 includes a test target application 4 and a pseudo data creation unit 5. The driver layer 3 includes a pseudo data response unit 6. The test apparatus 1 is an apparatus that evaluates input / output processing of data exchanged between the test target application 4 and the hardware layer 7 via the driver layer 3.

試験対象アプリケーション4は、試験装置1により、ハードウェア層7との間のデータの入出力処理を評価されるアプリケーションである。疑似データ作成部5は、疑似データを作成してドライバ層3へ出力する。疑似データは、ハードウェア層7からドライバ層3に渡されるデータを模擬したデータである。疑似データは、ハードウェア層7からドライバ層3に渡される本来のデータの代わりとなるデータである。   The test target application 4 is an application for which the test apparatus 1 evaluates data input / output processing with the hardware layer 7. The pseudo data creation unit 5 creates pseudo data and outputs it to the driver layer 3. The pseudo data is data simulating data passed from the hardware layer 7 to the driver layer 3. The pseudo data is data that replaces the original data passed from the hardware layer 7 to the driver layer 3.

ドライバ層3は、ハードウェア層7のデバイスを動作させるデバイスドライバである。ドライバ層3において、疑似データ応答部6は、アプリケーション層2から渡された疑似データを、ハードウェア層7から渡されたデータとして試験対象アプリケーション4へ返す。ハードウェア層7は、試験装置1に接続されていてもよいし、接続されていなくてもよい。また、ハードウェア層7として、正規のデバイス以外のデバイスが試験装置1に接続されていてもよい。   The driver layer 3 is a device driver that operates the device of the hardware layer 7. In the driver layer 3, the pseudo data response unit 6 returns the pseudo data passed from the application layer 2 to the test target application 4 as data passed from the hardware layer 7. The hardware layer 7 may be connected to the test apparatus 1 or may not be connected. Further, as the hardware layer 7, a device other than a regular device may be connected to the test apparatus 1.

・試験装置の動作
図2は、本発明の実施の形態1におけるシーケンス図である。図2に示すように、アプリケーション層2において、疑似データ作成部5は、ハードウェア層7からドライバ層3に渡されるデータの疑似データを作成する(ステップS1)。そして、疑似データ作成部5は、疑似データをドライバ層3へ送信する(ステップS2)。ドライバ層3では、アプリケーション層2から疑似データを受け取り、その疑似データを、ハードウェア層7から渡されたデータとして試験対象アプリケーション4へ返す(ステップS3)。
Test Device Operation FIG. 2 is a sequence diagram in the first embodiment of the present invention. As shown in FIG. 2, in the application layer 2, the pseudo data creation unit 5 creates pseudo data of data passed from the hardware layer 7 to the driver layer 3 (step S1). Then, the pseudo data creation unit 5 transmits the pseudo data to the driver layer 3 (step S2). The driver layer 3 receives the pseudo data from the application layer 2 and returns the pseudo data to the test target application 4 as data passed from the hardware layer 7 (step S3).

実施の形態1によれば、試験対象アプリケーション4の要求に対するハードウェア層7からの応答として、疑似データ作成部5で作成された疑似データがドライバ層3から試験対象アプリケーション4に返されるので、正規のデバイスからの応答は不要である。従って、ハードウェア層7が正規のデバイス以外のデバイスであっても、試験対象アプリケーション4の種々の要求に対して正規のデバイスから返される種々の応答を模擬して試験を行うことができる。また、ハードウェア層7にデバイスがない場合、すなわち、ハードウェア層7が仮想デバイスであっても、同様に、正規のデバイスから返される種々の応答を模擬して試験を行うことができる。   According to the first embodiment, the pseudo data created by the pseudo data creation unit 5 is returned from the driver layer 3 to the test target application 4 as a response from the hardware layer 7 to the request of the test target application 4. No response from the device is required. Therefore, even if the hardware layer 7 is a device other than a regular device, it is possible to perform a test by simulating various responses returned from the regular device in response to various requests of the test target application 4. Further, when there is no device in the hardware layer 7, that is, even when the hardware layer 7 is a virtual device, similarly, various tests returned from the legitimate device can be simulated.

また、疑似データ作成部5がドライバ層3へ疑似データを任意のタイミングで送信するようにしてもよいし、疑似データ応答部6が試験対象アプリケーション4へ疑似データを任意のタイミングで返すようにしてもよい。そのようにすることによって、試験対象アプリケーション4からの要求に対する応答だけでなく、ハードウェア層7から自発的にデータが送信されてきた場合などの試験を行うことができる。また、正規のデバイスがなくても試験対象アプリケーション4の試験を行うことができるので、アプリケーションとハードウェア層7のデバイスとを並行して同時に開発することができる。   Further, the pseudo data generation unit 5 may transmit the pseudo data to the driver layer 3 at an arbitrary timing, or the pseudo data response unit 6 may return the pseudo data to the test target application 4 at an arbitrary timing. Also good. By doing so, not only a response to a request from the test target application 4 but also a test such as a case where data is spontaneously transmitted from the hardware layer 7 can be performed. In addition, since the test target application 4 can be tested without a regular device, the application and the device of the hardware layer 7 can be developed in parallel.

(実施の形態2)
・試験装置のハードウェア構成
図3は、本発明の実施の形態2におけるハードウェア構成を示す図である。図3に示すように、試験装置は、例えばコンピュータ本体11、入力装置12および出力装置13を備えている。試験装置は、例えば、図示省略したルータやモデムを介してLocal Area Network(LAN、構内通信網)やWide Area Network(WAN、広域通信網)やインターネットなどのネットワーク14に接続可能となっている。
(Embodiment 2)
Hardware configuration of test apparatus FIG. 3 is a diagram illustrating a hardware configuration according to the second embodiment of the present invention. As shown in FIG. 3, the test apparatus includes, for example, a computer main body 11, an input device 12, and an output device 13. The test apparatus can be connected to a network 14 such as a local area network (LAN), a wide area network (WAN), and the Internet via a router or a modem (not shown).

コンピュータ本体11は、例えばCentral Processing Unit(CPU、中央処理装置)、メモリおよびインタフェースを備えている。CPUは、試験装置の全体の制御を司る。メモリには、例えばRead Only Memory(ROM)、Random Access Memory(RAM)、Hard Disk(HD、ハードディスク)および光ディスク15などが含まれる。メモリは、CPUのワークエリアとして使用される。また、メモリには各種プログラムが格納されている。各種プログラムは、CPUからの命令に応じてロードされる。インタフェースは、例えば入力装置12からの入力、出力装置13への出力およびネットワーク14に対する送受信の制御を行う。入力装置12には、例えばキーボード16、マウス17およびスキャナ18などが含まれる。出力装置13には、例えばディスプレイ19、スピーカ20およびプリンタ21などが含まれる。   The computer main body 11 includes, for example, a central processing unit (CPU, central processing unit), a memory, and an interface. The CPU governs overall control of the test apparatus. The memory includes, for example, a read only memory (ROM), a random access memory (RAM), a hard disk (HD, hard disk), and an optical disk 15. The memory is used as a work area for the CPU. Various programs are stored in the memory. Various programs are loaded according to instructions from the CPU. The interface controls, for example, input from the input device 12, output to the output device 13, and transmission / reception with respect to the network 14. The input device 12 includes, for example, a keyboard 16, a mouse 17, a scanner 18, and the like. The output device 13 includes a display 19, a speaker 20, a printer 21, and the like, for example.

・試験装置の構成
図4は、本発明の実施の形態2におけるブロック図である。図4に示すように、試験装置31は、アプリケーション層32およびドライバ層33を備えている。アプリケーション層32は、試験対象アプリケーション34および疑似データ作成アプリケーション35を備えている。疑似データ作成アプリケーション35は、疑似データ作成部に相当する。ドライバ層33は、判定部36、受付部37、ユーザデータ処理部38、制御データ処理部39、受信バッファ40および刈り取り処理部41を備えている。
FIG. 4 is a block diagram according to the second embodiment of the present invention. As shown in FIG. 4, the test apparatus 31 includes an application layer 32 and a driver layer 33. The application layer 32 includes a test target application 34 and a pseudo data creation application 35. The pseudo data creation application 35 corresponds to a pseudo data creation unit. The driver layer 33 includes a determination unit 36, a reception unit 37, a user data processing unit 38, a control data processing unit 39, a reception buffer 40, and a pruning processing unit 41.

判定部36は、ハードウェア層46のデバイスの種別を判定する。判定部36は、デバイスの種別を判定した結果、ハードウェア層46が正規のデバイス以外のデバイスや仮想デバイスである場合でも、試験対象アプリケーション34に対して正規のデバイスとして通知する。判定部36は、ドライバ層33のデバイスドライバを初期化する処理中に動作する。   The determination unit 36 determines the device type of the hardware layer 46. As a result of determining the type of the device, the determination unit 36 notifies the test target application 34 as a regular device even when the hardware layer 46 is a device other than a regular device or a virtual device. The determination unit 36 operates during the process of initializing the device driver of the driver layer 33.

受付部37は、試験対象アプリケーション34からのデータ送信処理および疑似データ作成アプリケーション35からのデータ送信処理を受け付ける。受付部37は、データ解釈部42を備えている。データ解釈部42は、受付部37で受け付けたデータの種別を判定する。データ解釈部42は、データの種別を判定した結果、ハードウェア層46への通常の送信データである場合には、そのハードウェア層宛の送信データをハードウェア層46へ送信する。データ解釈部42は、データの種別が疑似データである場合には、その疑似データを、当該疑似データの種別に応じてユーザデータ処理部38または制御データ処理部39へ送信する。   The reception unit 37 receives data transmission processing from the test target application 34 and data transmission processing from the pseudo data creation application 35. The reception unit 37 includes a data interpretation unit 42. The data interpretation unit 42 determines the type of data received by the reception unit 37. If the data interpretation unit 42 determines that the data type is normal transmission data to the hardware layer 46, the data interpretation unit 42 transmits the transmission data addressed to the hardware layer 46 to the hardware layer 46. When the data type is pseudo data, the data interpretation unit 42 transmits the pseudo data to the user data processing unit 38 or the control data processing unit 39 according to the type of the pseudo data.

ユーザデータ処理部38は、ストリーミングなどのユーザデータを受信するインタフェースである。ユーザデータ処理部38は、データ解釈部42から送られてきたデータを、ハードウェア層46から送られてきたユーザデータとして、試験対象アプリケーション34へ送信する。   The user data processing unit 38 is an interface that receives user data such as streaming. The user data processing unit 38 transmits the data sent from the data interpretation unit 42 to the test target application 34 as user data sent from the hardware layer 46.

制御データ処理部39は、制御系のデータを受信するインタフェースである。制御データ処理部39は、データ解釈部42から送られてきたデータを、ハードウェア層46から送られてきた制御系のデータとして、受信バッファ40へ送信する。   The control data processing unit 39 is an interface that receives control data. The control data processing unit 39 transmits the data sent from the data interpretation unit 42 to the reception buffer 40 as control system data sent from the hardware layer 46.

受信バッファ40は、制御データ処理部39から送られてきた制御系のデータを格納する。刈り取り処理部41は、アプリケーション層32と受信バッファ40との間のインタフェースである。試験対象アプリケーション34は、刈り取り処理部41を介して、受信バッファ40に格納されているデータを読み出す。ユーザデータ処理部38、制御データ処理部39、受信バッファ40、刈り取り処理部41およびデータ解釈部42は、疑似データ応答部として動作する。   The reception buffer 40 stores control system data sent from the control data processing unit 39. The mowing processing unit 41 is an interface between the application layer 32 and the reception buffer 40. The test target application 34 reads data stored in the reception buffer 40 via the mowing processing unit 41. The user data processing unit 38, the control data processing unit 39, the reception buffer 40, the pruning processing unit 41, and the data interpretation unit 42 operate as a pseudo data response unit.

ハードウェア層46は、正規のデバイス以外のデバイスであってもよいし、実際には存在しない仮想デバイスであってもよい。ハードウェア層46として想定されるデバイスは、例えば有線または無線による通信を制御するインタフェース機器などである。そのようなインタフェース機器として、例えば無線LANなどの通信カードのように、アプリケーション層32からの要求に対してネットワーク側から応答が返されるような環境で用いられるデバイスが挙げられる。そのようなデバイスとして、例えばInstitute of Electrical and Electronic Engineers(IEEE、電気電子学会)の802.11aや802.11bの規格に準拠した無線LANカードが挙げられる。   The hardware layer 46 may be a device other than a regular device, or may be a virtual device that does not actually exist. A device assumed as the hardware layer 46 is, for example, an interface device that controls wired or wireless communication. Examples of such an interface device include a device used in an environment in which a response is returned from the network side to a request from the application layer 32, such as a communication card such as a wireless LAN. As such a device, for example, a wireless LAN card conforming to the 802.11a or 802.11b standard of Institute of Electrical and Electronic Engineers (IEEE).

また、試験対象アプリケーションのプログラムは、例えばハードウェア層46のデバイスとの通信を確立したり制御するプログラムである。試験対象アプリケーションのプログラムおよび疑似データ作成アプリケーションのプログラムは、例えばコンピュータ本体のメモリに格納されている。アプリケーション層32は、メモリからロードされた試験対象アプリケーションのプログラムおよび疑似データ作成アプリケーションのプログラムがメモリに展開されることにより実現される。ドライバ層33は、メモリからロードされたデバイスドライバのプログラムがメモリに展開されることにより実現される。   The test target application program is, for example, a program that establishes or controls communication with the device of the hardware layer 46. The test target application program and the pseudo data creation application program are stored, for example, in the memory of the computer main body. The application layer 32 is realized by expanding the test target application program and the pseudo data creation application program loaded from the memory into the memory. The driver layer 33 is realized by developing a device driver program loaded from the memory in the memory.

・データフォーマット
図5は、本発明の実施の形態2における通常の送信データのフォーマットを示す図である。図5に示すように、通常の送信データ51は、例えば送信データ種別の情報(例えば「SEND_1・・・」)を格納する送信データ種別フィールド52、および送信データを格納する送信データフィールド53を備えている。通常の送信データは、試験対象アプリケーション34からハードウェア層46へ送信されるデータである。ドライバ層33のデータ解釈部42は、送信データ種別の情報を参照することによって、ハードウェア層宛の送信データであることを認識する。
Data format FIG. 5 is a diagram showing a format of normal transmission data in the second embodiment of the present invention. As shown in FIG. 5, normal transmission data 51 includes a transmission data type field 52 that stores, for example, transmission data type information (for example, “SEND — 1...”), And a transmission data field 53 that stores transmission data. ing. Normal transmission data is data transmitted from the test target application 34 to the hardware layer 46. The data interpretation unit 42 of the driver layer 33 recognizes that the transmission data is addressed to the hardware layer by referring to the transmission data type information.

図6は、本発明の実施の形態2における通常の受信データのフォーマットを示す図である。図6に示すように、通常の受信データ54は、例えば受信データ種別の情報(例えば「RECV_1・・・」)を格納する受信データ種別フィールド55、および受信データを格納する受信データフィールド56を備えている。通常の受信データは、フィールドにおけるユーザの使用環境において、正規のデバイスからアプリケーションへ返されるデータである。従って、通常の受信データは、実施の形態2における試験環境では出現しない。   FIG. 6 is a diagram showing a format of normal reception data in the second embodiment of the present invention. As shown in FIG. 6, the normal reception data 54 includes a reception data type field 55 that stores, for example, reception data type information (for example, “RECV_1...”), And a reception data field 56 that stores reception data. ing. Normal reception data is data returned from the legitimate device to the application in the user's usage environment in the field. Therefore, normal reception data does not appear in the test environment in the second embodiment.

図7は、本発明の実施の形態2における疑似データのフォーマットを示す図である。図7に示すように、疑似データ57は、例えば疑似データ種別の情報(例えば「SEND_DUMMY」)を格納する疑似データ種別フィールド58、および疑似受信データを格納する疑似受信データフィールド59を備えている。疑似受信データは、通常の受信データの代わりとなるデータである。疑似受信データフィールド59は、通常の受信データと同様に、例えば受信データ種別の情報(例えば「RECV_1・・・」)を格納する受信データ種別フィールド60、および受信データを格納する受信データフィールド61を備えている。データ解釈部42は、疑似データ種別の情報を参照することによって、試験対象アプリケーション34へ返す疑似受信データであることを認識する。   FIG. 7 is a diagram showing a format of pseudo data in Embodiment 2 of the present invention. As shown in FIG. 7, the pseudo data 57 includes, for example, a pseudo data type field 58 for storing pseudo data type information (for example, “SEND_DUMMY”), and a pseudo received data field 59 for storing pseudo received data. The pseudo reception data is data that replaces normal reception data. The pseudo received data field 59 includes, for example, a received data type field 60 for storing received data type information (for example, “RECV_1...”) And a received data field 61 for storing received data, similarly to normal received data. I have. The data interpretation unit 42 recognizes the pseudo received data to be returned to the test target application 34 by referring to the pseudo data type information.

図8は、本発明の実施の形態2における疑似データのフォーマットを示す図である。図8に示すように、疑似データ62は、図7に示す疑似データ57のフォーマットに、待機カウンタ値を格納する待機カウンタ値フィールド63を追加したものである。待機カウンタ値は、疑似受信データを試験対象アプリケーション34へ返すタイミングを制御するデータである。   FIG. 8 is a diagram showing a format of pseudo data in Embodiment 2 of the present invention. As shown in FIG. 8, the pseudo data 62 is obtained by adding a standby counter value field 63 for storing a standby counter value to the format of the pseudo data 57 shown in FIG. The standby counter value is data that controls the timing for returning the pseudo reception data to the test target application 34.

・ドライバ層の動作
図9は、本発明の実施の形態2におけるフローチャートである。試験において、ドライバ層33は、例えば次の手順で処理を行う。図9に示すように、受付部37は、アプリケーション層32からデータを受信する(ステップS11)。そして、データ解釈部42は、受信したデータのデータ種別フィールド(送信データ種別フィールド52または疑似データ種別フィールド58)を参照し、受信したデータがハードウェア層宛の通常の送信データであるか疑似データであるかを判定する(ステップS12)。判定の結果、受信したデータが通常の送信データである場合(ステップS12:No)、データ解釈部42は、受信したデータの送信データフィールド53に格納されているデータをハードウェア層46へ送信する(ステップS19)。ハードウェア層46へ送信されたデータは、ハードウェア層46において破棄される。
Driver Layer Operation FIG. 9 is a flowchart according to the second embodiment of the present invention. In the test, the driver layer 33 performs processing in the following procedure, for example. As shown in FIG. 9, the reception unit 37 receives data from the application layer 32 (step S11). Then, the data interpretation unit 42 refers to the data type field (transmission data type field 52 or pseudo data type field 58) of the received data, and determines whether the received data is normal transmission data addressed to the hardware layer. Is determined (step S12). As a result of the determination, when the received data is normal transmission data (step S12: No), the data interpretation unit 42 transmits the data stored in the transmission data field 53 of the received data to the hardware layer 46. (Step S19). Data transmitted to the hardware layer 46 is discarded in the hardware layer 46.

一方、アプリケーション層32から受信したデータが疑似データである場合(ステップS12:Yes)、データ解釈部42は、受信したデータの疑似受信データフィールド59の受信データ種別フィールド60を参照し、疑似受信データが制御系のデータであるかユーザデータであるかを判定する(ステップS13)。判定の結果、疑似受信データがユーザデータである場合(ステップS13:No)、データ解釈部42は、疑似受信データフィールド59の受信データフィールド61に格納されているデータをユーザデータ処理部38へ送信する。ユーザデータ処理部38は、データ解釈部42から送られてきたデータを受信し(ステップS18)、当該データをユーザデータとしてアプリケーション層32の試験対象アプリケーション34へ送信する(ステップS17)。   On the other hand, when the data received from the application layer 32 is pseudo data (step S12: Yes), the data interpretation unit 42 refers to the reception data type field 60 of the pseudo reception data field 59 of the received data, and receives pseudo reception data. Is control data or user data (step S13). As a result of the determination, when the pseudo reception data is user data (step S13: No), the data interpretation unit 42 transmits the data stored in the reception data field 61 of the pseudo reception data field 59 to the user data processing unit 38. To do. The user data processing unit 38 receives the data sent from the data interpretation unit 42 (step S18), and transmits the data as user data to the test target application 34 of the application layer 32 (step S17).

一方、疑似受信データが制御系のデータである場合(ステップS13:Yes)、データ解釈部42は、疑似受信データフィールド59の受信データフィールド61に格納されているデータを制御データ処理部39へ送信する。制御データ処理部39は、データ解釈部42から送られてきたデータを受信し(ステップS14)、当該データを受信バッファ40へ送る。受信バッファ40は、制御データ処理部39から送られてきたデータを格納する(ステップS15)。刈り取り処理部41は、試験対象アプリケーション34からデータの刈り取り処理を受け付け(ステップS16)、受信バッファ40に格納されているデータを読み出す。刈り取り処理部41は、受信バッファ40から読み出したデータを制御系のデータとして試験対象アプリケーション34へ送信する(ステップS17)。この一連の手順により、ハードウェア層46が正規のデバイスでなくても、あるいは仮想デバイスであっても、本来ハードウェア層46から受信する正しいデータが、ドライバ層33から試験対象アプリケーション34に返される。   On the other hand, when the pseudo reception data is control system data (step S13: Yes), the data interpretation unit 42 transmits the data stored in the reception data field 61 of the pseudo reception data field 59 to the control data processing unit 39. To do. The control data processing unit 39 receives the data sent from the data interpretation unit 42 (step S14) and sends the data to the reception buffer 40. The reception buffer 40 stores the data sent from the control data processing unit 39 (step S15). The mowing processing unit 41 receives data mowing processing from the test target application 34 (step S16), and reads the data stored in the reception buffer 40. The mowing processing unit 41 transmits the data read from the reception buffer 40 to the test target application 34 as control system data (step S17). Through this series of procedures, even if the hardware layer 46 is not a legitimate device or a virtual device, correct data originally received from the hardware layer 46 is returned from the driver layer 33 to the test target application 34. .

・試験装置の動作(非正規デバイスを正規デバイスに見せかける動作)
図10は、本発明の実施の形態2におけるシーケンス図である。図10において、デバイスAは正規デバイスであり、デバイスBは非正規デバイスである。図10に示すように、ハードウェア層46がデバイスBである場合、Operating System(OS、オペレーティングシステム、基本ソフト)は、デバイスドライバをインストールするときにデバイスBを検出したら、デバイスA用のデバイスドライバを起動するように、例えばシステム定義ファイル(INFファイル)に予め登録しておく。そして、OSは、試験を行う際にデバイスBを検出すると(ステップS21)、デバイスA用のデバイスドライバを起動する(ステップS22)。ハードウェアA用の試験対象アプリケーション34は、起動時にデバイスA用のデバイスドライバを検索する(ステップS23)。デバイスA用のデバイスドライバが起動されているので、試験対象アプリケーション34はデバイスA用のデバイスドライバを認識し、試験の処理を続行する(ステップS24)。
・ Test equipment operation (operation to make non-regular devices appear as regular devices)
FIG. 10 is a sequence diagram in the second embodiment of the present invention. In FIG. 10, device A is a regular device and device B is a non-regular device. As shown in FIG. 10, when the hardware layer 46 is the device B, the operating system (OS, operating system, basic software) detects the device B when installing the device driver, and then the device driver for the device A Is registered in advance in a system definition file (INF file), for example. When the OS detects the device B during the test (step S21), the OS activates a device driver for the device A (step S22). The test target application 34 for hardware A searches for a device driver for device A at the time of activation (step S23). Since the device driver for device A is activated, the test target application 34 recognizes the device driver for device A and continues the test process (step S24).

・試験装置の動作(仮想デバイスを正規デバイスに見せかける動作)
図11は、本発明の実施の形態2におけるシーケンス図である。図11において、デバイスAは正規デバイスであり、仮想デバイスAはデバイスAの仮想デバイスである。図11に示すように、ハードウェア層46にデバイスがない場合には、仮想デバイスの技術を利用する。従って、ハードウェア層46は仮想デバイスAとなる。この場合、OSは、デバイスドライバをインストールするときにデバイスAを検出したら、デバイスA用のデバイスドライバを起動するように、例えばシステム定義ファイルに予め登録しておく。そして、OSは、試験を行う際にデバイスA(仮想デバイスA)を検出すると(ステップS31)、デバイスA用のデバイスドライバを起動する(ステップS32)。ハードウェアA用の試験対象アプリケーション34は、起動時にデバイスA用のデバイスドライバを検索し(ステップS33)、デバイスA用のデバイスドライバを認識して、試験の処理を続行する(ステップS34)。前記ステップS24およびステップS34については、図12〜図16を参照しながら、以下に説明する。
・ Test device operation (operation to make a virtual device look like a regular device)
FIG. 11 is a sequence diagram in the second embodiment of the present invention. In FIG. 11, device A is a regular device, and virtual device A is a virtual device of device A. As shown in FIG. 11, when there is no device in the hardware layer 46, the virtual device technology is used. Therefore, the hardware layer 46 becomes the virtual device A. In this case, if the OS detects the device A when installing the device driver, the OS registers in advance, for example, in a system definition file so that the device driver for the device A is activated. When the OS detects the device A (virtual device A) during the test (step S31), the OS activates a device driver for the device A (step S32). The test target application 34 for hardware A searches for a device driver for device A at the time of activation (step S33), recognizes the device driver for device A, and continues the test process (step S34). Steps S24 and S34 will be described below with reference to FIGS.

・試験装置の動作(応答がこない場合の試験)
図12は、本発明の実施の形態2におけるシーケンス図である。図12に示すように、試験対象アプリケーション34は、ドライバ層33へハードウェア層宛の通常の送信データを送信する(ステップS41)。ドライバ層33は、試験対象アプリケーション34から送られてきたデータをハードウェア層46へ送信する(ステップS42)。疑似データ作成アプリケーション35がドライバ層33へ疑似データを送信しないので、受信バッファ40にはデータが格納されていない。従って、試験対象アプリケーション34が受信バッファ40に対してデータの刈り取りを行うと、試験対象アプリケーション34にはデータなしという情報が返される(ステップS43)。この場合、試験対象アプリケーション34は、ハードウェア層46への送信データに対して期待される応答が得られないので、例えば再送を要求したり、あるいは、エラー処理を行う。ハードウェア層46に送られてきた通常の送信データは破棄される。
・ Operation of test equipment (test when there is no response)
FIG. 12 is a sequence diagram in the second embodiment of the present invention. As illustrated in FIG. 12, the test target application 34 transmits normal transmission data addressed to the hardware layer to the driver layer 33 (step S41). The driver layer 33 transmits the data sent from the test target application 34 to the hardware layer 46 (step S42). Since the pseudo data creation application 35 does not transmit pseudo data to the driver layer 33, no data is stored in the reception buffer 40. Therefore, when the test target application 34 prunes data to the reception buffer 40, information indicating no data is returned to the test target application 34 (step S43). In this case, since the test target application 34 cannot obtain an expected response to the transmission data to the hardware layer 46, for example, a request for retransmission or error processing is performed. Normal transmission data sent to the hardware layer 46 is discarded.

・試験装置の動作(正常に応答がくる場合の試験)
図13は、本発明の実施の形態2におけるシーケンス図である。図13に示すように、上記ステップS41およびステップS42と同様に、試験対象アプリケーション34は、ドライバ層33を介してハードウェア層46へ通常の送信データを送信する(ステップS51、ステップS52)。次いで、疑似データ作成アプリケーション35は、ハードウェア層宛の通常の送信データが送信されたことを認識し、その送信データに対して期待される応答値を含む疑似データをドライバ層33へ送信する(ステップS53)。ドライバ層33では、制御データ処理部39は、送られてきた疑似データから抽出された制御系のデータを応答値として受信バッファ40に格納する(ステップS54)。次いで、試験対象アプリケーション34は、受信バッファ40に対してデータの刈り取りを行う。それによって、ドライバ層33から試験対象アプリケーション34に、受信バッファ40に格納されているデータが応答値として返される(ステップS55)。疑似データからユーザデータが抽出された場合には、ユーザデータ処理部38は、ユーザデータを試験対象アプリケーション34へ送信する。疑似データ作成アプリケーション35は、試験対象アプリケーション34から通常の送信データが送信されたことを、例えばフラグの設定などによって認識するようにしてもよい。
・ Test equipment operation (test when response is normal)
FIG. 13 is a sequence diagram in the second embodiment of the present invention. As shown in FIG. 13, the test target application 34 transmits normal transmission data to the hardware layer 46 via the driver layer 33 (steps S51 and S52), similarly to step S41 and step S42. Next, the pseudo data creation application 35 recognizes that normal transmission data addressed to the hardware layer has been transmitted, and transmits pseudo data including a response value expected for the transmission data to the driver layer 33 ( Step S53). In the driver layer 33, the control data processing unit 39 stores the control system data extracted from the received pseudo data in the reception buffer 40 as a response value (step S54). Next, the test target application 34 performs data pruning on the reception buffer 40. As a result, the data stored in the reception buffer 40 is returned as a response value from the driver layer 33 to the test target application 34 (step S55). When user data is extracted from the pseudo data, the user data processing unit 38 transmits the user data to the test target application 34. The pseudo data creation application 35 may recognize that normal transmission data has been transmitted from the test target application 34 by, for example, setting a flag.

・試験装置の動作(応答が遅れてくる場合の試験)
図14は、本発明の実施の形態2におけるシーケンス図である。図14に示すように、疑似データ作成アプリケーション35は、試験対象アプリケーション34が通常の送信データを送信した後(ステップS61、ステップS62)、すぐには疑似データを送信しない。従って、試験対象アプリケーション34が受信バッファ40に対してデータの刈り取りを行っても、試験対象アプリケーション34にはデータなしという情報が返される(ステップS63)。疑似データ作成アプリケーション35は、試験対象アプリケーション34が通常の送信データを送信した後、任意の時間が経過した後に疑似データをドライバ層33へ送信する(ステップS64)。それによって、通常の送信データの送信後、任意の時間が経過した後に、疑似データから抽出された制御系のデータが受信バッファ40に格納される(ステップS65)。その後、試験対象アプリケーション34が受信バッファ40に対してデータの刈り取りを行うことによって、試験対象アプリケーション34に応答値が返される(ステップS66)。応答値がユーザデータである場合には、通常の送信データの送信後、任意の時間が経過した後に、ユーザデータ処理部38がユーザデータを試験対象アプリケーション34へ送信することになる。通常の送信データの送信後、任意の時間が経過した時点で例えばフラグが設定されることにより、疑似データ作成アプリケーション35が、通常の送信データが送信されたことを実際の送信タイミングから遅れて認識するようにしてもよい。
・ Operation of test equipment (test when response is delayed)
FIG. 14 is a sequence diagram in the second embodiment of the present invention. As shown in FIG. 14, the pseudo data creation application 35 does not transmit pseudo data immediately after the test target application 34 transmits normal transmission data (step S61, step S62). Therefore, even if the test target application 34 prunes data to the reception buffer 40, information indicating no data is returned to the test target application 34 (step S63). The pseudo data creation application 35 transmits pseudo data to the driver layer 33 after an arbitrary time has elapsed after the test target application 34 transmits normal transmission data (step S64). Thereby, after an arbitrary time has elapsed after transmission of the normal transmission data, the control system data extracted from the pseudo data is stored in the reception buffer 40 (step S65). Thereafter, the test target application 34 prunes data to the reception buffer 40, whereby a response value is returned to the test target application 34 (step S66). When the response value is user data, the user data processing unit 38 transmits user data to the test target application 34 after an arbitrary time has elapsed after transmission of normal transmission data. For example, a flag is set when an arbitrary time has elapsed after transmission of normal transmission data, so that the pseudo data creation application 35 recognizes that normal transmission data has been transmitted with a delay from the actual transmission timing. You may make it do.

・試験装置の動作(応答が遅れてくる場合の試験の別の例)
図15は、本発明の実施の形態2におけるシーケンス図である。図15に示すように、疑似データ作成アプリケーション35は、試験対象アプリケーション34が通常の送信データを送信した後(ステップS71、ステップS72)、待機カウンタ値(=n、nは自然数)を含む疑似データをドライバ層33へ送信する(ステップS73)。疑似データからは、制御系のデータと待機カウンタ値が抽出され、それらのデータが受信バッファ40に格納される(ステップS74)。試験対象アプリケーション34は受信バッファ40に対してデータの刈り取りを行うが、刈り取りの回数が待機カウンタ値(=n)を超えるまでは試験対象アプリケーション34にはデータなしという情報が返される(ステップS75)。刈り取りの回数がn+1回目になると、刈り取り処理部41は、試験対象アプリケーション34に応答値を返す(ステップS76)。その際、刈り取り処理部41は、試験対象アプリケーション34に待機カウンタ値を返さない。刈り取り処理部41は、待機カウンタ値と刈り取りの回数とを監視して、刈り取りの回数が待機カウンタ値を超えるまでは試験対象アプリケーション34に応答値を返さないようにしてもよい。応答値がユーザデータである場合には、ユーザデータ処理部38は、待機カウンタ値に関係なく、試験対象アプリケーション34へユーザデータを送信する。待機カウンタ値を刈り取りの回数で設定する代わりに、時間で設定するようにしてもよい。すなわち、試験対象アプリケーション34が通常の送信データを送信した後、待機カウンタ値に設定された時間が経過するまでは、刈り取り処理部41が試験対象アプリケーション34に応答値を返さないようにしてもよい。待機カウンタ値を時間で設定する場合には、待機カウンタ値に設定された時間が経過した後に、ユーザデータ処理部38が試験対象アプリケーション34へユーザデータを送信するようにしてもよい。
・ Operation of test equipment (another example of test when response is delayed)
FIG. 15 is a sequence diagram in the second embodiment of the present invention. As shown in FIG. 15, the pseudo data creation application 35, after the test application 34 transmits normal transmission data (step S71, step S72), includes pseudo data including a standby counter value (= n, n is a natural number). Is transmitted to the driver layer 33 (step S73). Control system data and standby counter values are extracted from the pseudo data, and these data are stored in the reception buffer 40 (step S74). The test target application 34 performs data pruning on the reception buffer 40, but information indicating no data is returned to the test target application 34 until the number of pruning exceeds the standby counter value (= n) (step S75). . When the number of harvesting is n + 1, the harvesting processing unit 41 returns a response value to the test target application 34 (step S76). At that time, the mowing processing unit 41 does not return the standby counter value to the test target application 34. The mowing processing unit 41 may monitor the standby counter value and the number of times of trimming, and may not return a response value to the test target application 34 until the number of times of trimming exceeds the standby counter value. When the response value is user data, the user data processing unit 38 transmits the user data to the test target application 34 regardless of the standby counter value. Instead of setting the standby counter value by the number of cuttings, it may be set by time. That is, after the test target application 34 transmits normal transmission data, the mowing processing unit 41 may not return a response value to the test target application 34 until the time set in the standby counter value elapses. . When setting the standby counter value by time, the user data processing unit 38 may transmit user data to the test target application 34 after the time set for the standby counter value has elapsed.

・試験装置の動作(ハードウェア層から自発的にデータが送られてくる場合の試験)
図16は、本発明の実施の形態2におけるシーケンス図である。図16に示すように、疑似データ作成アプリケーション35は、任意のタイミングで疑似データをドライバ層33へ送信する(ステップS81)。ドライバ層33では、制御データ処理部39が、疑似データから抽出された制御系のデータを応答値として受信バッファ40に格納する(ステップS82)。次いで、試験対象アプリケーション34は、受信バッファ40に対してデータの刈り取りを行い、受信バッファ40に格納されているデータを応答値として取得する(ステップS83)。疑似データからユーザデータが抽出された場合には、ユーザデータ処理部38は、ユーザデータを試験対象アプリケーション34へ送信する。図16に示す手順の試験では、疑似データが送信される前にハードウェア層宛の通常の送信データの送信が行われない。従って、疑似データによって試験対象アプリケーション34に返される応答値は、試験対象アプリケーション34の要求に対する応答ではない。つまり、ハードウェア層46からデータが自発的に送られてきた場合の試験を行うことになる。
・ Test equipment operation (test when data is sent spontaneously from the hardware layer)
FIG. 16 is a sequence diagram in the second embodiment of the present invention. As shown in FIG. 16, the pseudo data creation application 35 transmits pseudo data to the driver layer 33 at an arbitrary timing (step S81). In the driver layer 33, the control data processing unit 39 stores the control system data extracted from the pseudo data in the reception buffer 40 as a response value (step S82). Next, the test target application 34 performs data pruning on the reception buffer 40, and acquires data stored in the reception buffer 40 as a response value (step S83). When user data is extracted from the pseudo data, the user data processing unit 38 transmits the user data to the test target application 34. In the test of the procedure shown in FIG. 16, normal transmission data addressed to the hardware layer is not transmitted before the pseudo data is transmitted. Therefore, the response value returned to the test target application 34 by the pseudo data is not a response to the request of the test target application 34. That is, a test is performed when data is spontaneously sent from the hardware layer 46.

実施の形態2によれば、実施の形態1と同様の効果が得られる。また、ドライバ層33から試験対象アプリケーション34に返される疑似データによる応答値は、ドライバ層33がハードウェア層46から受信したデータをアプリケーション層32へ返す場合の本来のロジックを用いて試験対象アプリケーション34へ返される。従って、エミュレータなど、大がかりな装置を用いて時間のかかる試験を行わずに済むので、アプリケーションの開発の工数および費用の削減を図ることができる。   According to the second embodiment, the same effect as in the first embodiment can be obtained. Further, the response value by the pseudo data returned from the driver layer 33 to the test target application 34 uses the original logic when the driver layer 33 returns the data received from the hardware layer 46 to the application layer 32. Returned to Accordingly, it is not necessary to perform a time-consuming test using a large-scale device such as an emulator, so that it is possible to reduce the man-hour and cost for developing an application.

上述した実施の形態1、2に関し、さらに以下の付記を開示する。   The following additional notes are disclosed with respect to the first and second embodiments described above.

(付記1)アプリケーション層の試験対象アプリケーションとハードウェア層との間でドライバ層を介して授受されるデータの入出力処理を評価する試験装置であって、前記アプリケーション層にあって、前記ハードウェア層から前記ドライバ層に渡されるデータの疑似データを作成して前記ドライバ層へ出力する疑似データ作成部と、前記ドライバ層にあって、前記ハードウェア層から渡されたデータとして前記試験対象アプリケーションへ前記疑似データを返す疑似データ応答部と、を備えることを特徴とする試験装置。 (Supplementary Note 1) A test apparatus for evaluating input / output processing of data exchanged between a test target application of an application layer and a hardware layer via a driver layer, wherein the hardware includes the hardware A pseudo data creation unit that creates pseudo data of data passed from the layer to the driver layer and outputs the pseudo data to the driver layer, and is provided in the driver layer to the application under test as data passed from the hardware layer A test apparatus comprising: a pseudo data response unit that returns the pseudo data.

(付記2)前記疑似データ応答部は、前記試験対象アプリケーションから前記ハードウェア層宛に出力されたデータを前記ハードウェア層へ出力することを特徴とする付記1に記載の試験装置。 (Additional remark 2) The said pseudo data response part outputs the data output to the said hardware layer from the said test object application to the said hardware layer, The test apparatus of Additional remark 1 characterized by the above-mentioned.

(付記3)前記疑似データ作成部は、前記疑似データとして、前記試験対象アプリケーションから前記ハードウェア層宛に出力されるデータに対して前記ハードウェア層から前記試験対象アプリケーションへ返される応答値のデータを作成することを特徴とする付記1または2に記載の試験装置。 (Additional remark 3) The said pseudo data preparation part is the data of the response value returned from the said hardware layer to the said test object application with respect to the data output to the said hardware layer from the said test object application as said pseudo data The test apparatus according to appendix 1 or 2, characterized in that:

(付記4)前記ドライバ層に、前記ハードウェア層のデバイスを判定し、前記試験対象アプリケーションに対して実際のデバイスを、前記試験対象アプリケーションに対応するデバイスに見せる判定部を備えることを特徴とする付記1〜3のいずれか一つに記載の試験装置。 (Additional remark 4) The said driver layer is provided with the determination part which determines the device of the said hardware layer, and shows an actual device with respect to the said test object application to the device corresponding to the said test object application, It is characterized by the above-mentioned. The test apparatus according to any one of appendices 1 to 3.

(付記5)前記ドライバ層に、前記ハードウェア層のデバイスを判定し、前記試験対象アプリケーションに対して仮想デバイスを、前記試験対象アプリケーションに対応するデバイスに見せる判定部を備えることを特徴とする付記1〜3のいずれか一つに記載の試験装置。 (Additional remark 5) The said driver layer is provided with the determination part which determines the device of the said hardware layer, and makes a device corresponding to the said test object application show a virtual device with respect to the said test object application. The test apparatus according to any one of 1 to 3.

(付記6)前記疑似データ作成部は、前記ハードウェア層から渡されたデータとして前記試験対象アプリケーションへ返されるデータの情報、および前記試験対象アプリケーションへ返されるデータであることを示す情報、を備えた前記疑似データを作成することを特徴とする付記1〜5のいずれか一つに記載の試験装置。 (Additional remark 6) The said pseudo data preparation part is provided with the information which shows that it is the data returned to the said test object application as the data passed from the said hardware layer, and the data returned to the said test object application. The test apparatus according to any one of appendices 1 to 5, wherein the pseudo data is created.

(付記7)前記疑似データ作成部は、前記試験対象アプリケーションへ返されるデータの、前記試験対象アプリケーションへ返されるタイミングを制御する情報、をさらに備えた前記疑似データを作成することを特徴とする付記6に記載の試験装置。 (Additional remark 7) The said pseudo data preparation part produces the said pseudo data further provided with the information which controls the timing returned to the said test object application of the data returned to the said test object application, The additional data characterized by the above-mentioned. 6. The test apparatus according to 6.

(付記8)アプリケーション層の試験対象アプリケーションとハードウェア層との間でドライバ層を介して授受されるデータの入出力処理を評価する試験方法であって、前記ハードウェア層から前記ドライバ層に渡されるデータの疑似データを作成して前記ドライバ層へ出力する疑似データ作成工程と、前記ドライバ層から前記試験対象アプリケーションへ前記疑似データを前記ハードウェア層から渡されたデータとして返す疑似データ応答工程と、を含むことを特徴とする試験方法。 (Supplementary Note 8) A test method for evaluating input / output processing of data exchanged between a test target application of an application layer and a hardware layer via a driver layer, which is passed from the hardware layer to the driver layer A pseudo data creating step of creating pseudo data of the data to be output to the driver layer, and a pseudo data response step of returning the pseudo data from the driver layer to the test target application as data passed from the hardware layer; The test method characterized by including these.

(付記9)前記疑似データ作成工程の前に、前記ハードウェア層のデバイスを判定し、前記試験対象アプリケーションに対して実際のデバイスを、前記試験対象アプリケーションに対応するデバイスに見せる工程、をさらに含むことを特徴とする付記8に記載の試験方法。 (Additional remark 9) It further includes the process of determining the device of the said hardware layer before the said pseudo data creation process, and making the device corresponding to the said test object application show an actual device with respect to the said test object application. The test method according to appendix 8, characterized in that:

(付記10)前記疑似データ作成工程の前に、前記ハードウェア層のデバイスを判定し、前記試験対象アプリケーションに対して仮想デバイスを、前記試験対象アプリケーションに対応するデバイスに見せる工程、をさらに含むことを特徴とする付記8に記載の試験方法。 (Additional remark 10) It further includes the process of determining the device of the said hardware layer, and making the device corresponding to the said test object application show the virtual device with respect to the said test object application before the said pseudo data creation process. The test method according to appendix 8, characterized by:

1,31 試験装置
2,32 アプリケーション層
3,33 ドライバ層
4,34 試験対象アプリケーション
5,35 疑似データ作成部
6,38〜42 疑似データ応答部
7,46 ハードウェア層
57,62 疑似データ
DESCRIPTION OF SYMBOLS 1,31 Test apparatus 2,32 Application layer 3,33 Driver layer 4,34 Test object application 5,35 Pseudo data creation part 6,38-42 Pseudo data response part 7,46 Hardware layer 57,62 Pseudo data

Claims (5)

アプリケーション層の試験対象アプリケーションとハードウェア層との間でドライバ層を介して授受されるデータの入出力処理を評価する試験装置であって、
前記アプリケーション層にあって、前記試験対象アプリケーションが前記ハードウェア層宛てのデータを送信してから任意の時間が経過した場合、前記試験対象アプリケーションから前記ハードウェア層宛に出力されるデータに対して前記ハードウェア層から前記試験対象アプリケーションへ返される応答値と前記試験対象アプリケーションに前記応答値を返す際の条件となる前記試験対象アプリケーションによるデータの刈り取りの回数を示す待機カウンタ値とを含む疑似データを作成して前記ドライバ層へ出力する疑似データ作成部と、
前記ドライバ層にあって、前記試験対象アプリケーションによるデータの刈り取りの回数が前記疑似データに含まれる前記待機カウンタ値を超えた場合、前記ハードウェア層から渡されたデータとして前記試験対象アプリケーションへ前記疑似データに含まれる前記応答値を返す疑似データ応答部と、
を備えることを特徴とする試験装置。
A test apparatus for evaluating input / output processing of data exchanged via a driver layer between a test target application of an application layer and a hardware layer,
In the application layer, when an arbitrary time has elapsed since the test target application transmitted data addressed to the hardware layer, the data output from the test target application to the hardware layer Pseudo data including a response value returned from the hardware layer to the test target application and a standby counter value indicating the number of times of data pruning by the test target application as a condition for returning the response value to the test target application A pseudo data creation unit that creates and outputs to the driver layer,
In the driver layer, when the number of data pruning by the test target application exceeds the standby counter value included in the pseudo data, the pseudo test data is passed to the test target application as data passed from the hardware layer. A pseudo data response unit that returns the response value included in the data;
A test apparatus comprising:
前記疑似データ応答部は、前記試験対象アプリケーションから前記ハードウェア層宛に出力されたデータを前記ハードウェア層へ出力することを特徴とする請求項1に記載の試験装置。   The test apparatus according to claim 1, wherein the pseudo data response unit outputs data output from the test target application to the hardware layer to the hardware layer. 前記ドライバ層に、前記ハードウェア層のデバイスを判定し、前記試験対象アプリケーションに対して実際のデバイスを、前記試験対象アプリケーションに対応するデバイスに見せる判定部を備えることを特徴とする請求項1または2に記載の試験装置。   The determination unit for determining a device of the hardware layer in the driver layer and showing an actual device for the test target application to a device corresponding to the test target application. 2. The test apparatus according to 2. 前記ドライバ層に、前記ハードウェア層のデバイスを判定し、前記試験対象アプリケーションに対して仮想デバイスを、前記試験対象アプリケーションに対応するデバイスに見せる判定部を備えることを特徴とする請求項1または2に記載の試験装置。   3. The determination unit for determining a device of the hardware layer in the driver layer and displaying a virtual device for the test target application on a device corresponding to the test target application. The test apparatus described in 1. アプリケーション層の試験対象アプリケーションとハードウェア層との間でドライバ層を介して授受されるデータの入出力処理を評価する試験方法であって、
前記試験対象アプリケーションが前記ハードウェア層宛てのデータを送信してから任意の時間が経過した場合、前記試験対象アプリケーションから前記ハードウェア層宛に出力されるデータに対して前記ハードウェア層から前記試験対象アプリケーションへ返される応答値と前記試験対象アプリケーションに前記応答値を返す際の条件となる前記試験対象アプリケーションによるデータの刈り取りの回数を示す待機カウンタ値とを含む疑似データを作成して前記ドライバ層へ出力する疑似データ作成工程と、
前記試験対象アプリケーションによるデータの刈り取りの回数が前記疑似データに含まれる前記待機カウンタ値を超えた場合、前記ドライバ層から前記試験対象アプリケーションへ前記疑似データに含まれる前記応答値を前記ハードウェア層から渡されたデータとして返す疑似データ応答工程と、
を含むことを特徴とする試験方法。
A test method for evaluating input / output processing of data transferred via a driver layer between a test target application of an application layer and a hardware layer,
When an arbitrary time has elapsed after the test target application transmits data addressed to the hardware layer, the test is performed from the hardware layer on the data output from the test target application to the hardware layer. The driver layer by creating pseudo data including a response value returned to the target application and a standby counter value indicating the number of times the data is trimmed by the test target application, which is a condition for returning the response value to the test target application Pseudo data creation process to output to
When the number of data pruning by the test target application exceeds the standby counter value included in the pseudo data , the response value included in the pseudo data is transmitted from the driver layer to the test target application from the hardware layer. A pseudo data response process to return as the passed data;
A test method comprising:
JP2009070427A 2009-03-23 2009-03-23 Test apparatus and test method Expired - Fee Related JP5526572B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009070427A JP5526572B2 (en) 2009-03-23 2009-03-23 Test apparatus and test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009070427A JP5526572B2 (en) 2009-03-23 2009-03-23 Test apparatus and test method

Publications (2)

Publication Number Publication Date
JP2010224795A JP2010224795A (en) 2010-10-07
JP5526572B2 true JP5526572B2 (en) 2014-06-18

Family

ID=43041926

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009070427A Expired - Fee Related JP5526572B2 (en) 2009-03-23 2009-03-23 Test apparatus and test method

Country Status (1)

Country Link
JP (1) JP5526572B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101459869B1 (en) * 2011-05-09 2014-11-07 현대자동차주식회사 Exception handling test device and method thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02118849A (en) * 1988-10-28 1990-05-07 Nec Corp Simulation system for input output device
JPH10133914A (en) * 1996-11-01 1998-05-22 Nippon Steel Corp Computer system and device input/output simulator
JP2008217574A (en) * 2007-03-06 2008-09-18 Ricoh Co Ltd Development program, recording medium, development device and development method

Also Published As

Publication number Publication date
JP2010224795A (en) 2010-10-07

Similar Documents

Publication Publication Date Title
JP5821678B2 (en) Web service for automatic compatibility check independent of web application browser
JP6583838B2 (en) Application simulation
US20100146340A1 (en) Analyzing Coverage of Code Changes
KR20190022431A (en) Training Method of Random Forest Model, Electronic Apparatus and Storage Medium
CN104246767A (en) Telemetry system for a cloud synchronization system
KR101520056B1 (en) Cloud-based mobile/online game server load test automation service method
US20220107882A1 (en) Rendering engine component abstraction system
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
US7877736B2 (en) Computer language interpretation and optimization for server testing
CN111447107A (en) Network state determination method and device, storage medium and electronic equipment
JP5157586B2 (en) Emulator device
JP6219009B1 (en) Interactive attack simulation device, interactive attack simulation method, and interactive attack simulation program
JP5526572B2 (en) Test apparatus and test method
JP6959624B2 (en) Security assessment system
CN113360300A (en) Interface calling link generation method, device, equipment and readable storage medium
US11334349B2 (en) Removing feature flag-related codebase from applications
JP5906906B2 (en) Log management method, log management system, and information processing apparatus
CN110737900A (en) Webpage function testing method and device, server and computer readable storage medium
CN106357468B (en) A kind of method and apparatus for the service regulation judging network server
JPWO2020065737A1 (en) Impact range estimation device, impact range estimation method, and program
CN112817816B (en) Embedded point processing method and device, computer equipment and storage medium
KR101876245B1 (en) Apparatus and method for performance test of IED and computer readable recording medium to member deterioration
WO2004068347A1 (en) Method and apparatus for categorising test scripts
WO2019207743A1 (en) Testing device, testing method, and testing program
CN114189553B (en) Flow playback method, system and computing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130319

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130520

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131001

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131202

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140318

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140331

R150 Certificate of patent or registration of utility model

Ref document number: 5526572

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees