JP2020123287A - Information processing apparatus, test method, and test program - Google Patents

Information processing apparatus, test method, and test program Download PDF

Info

Publication number
JP2020123287A
JP2020123287A JP2019016355A JP2019016355A JP2020123287A JP 2020123287 A JP2020123287 A JP 2020123287A JP 2019016355 A JP2019016355 A JP 2019016355A JP 2019016355 A JP2019016355 A JP 2019016355A JP 2020123287 A JP2020123287 A JP 2020123287A
Authority
JP
Japan
Prior art keywords
test
information processing
tests
failure
software
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.)
Granted
Application number
JP2019016355A
Other languages
Japanese (ja)
Other versions
JP7238439B2 (en
Inventor
俊宏 望月
Toshihiro Mochizuki
俊宏 望月
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2019016355A priority Critical patent/JP7238439B2/en
Publication of JP2020123287A publication Critical patent/JP2020123287A/en
Application granted granted Critical
Publication of JP7238439B2 publication Critical patent/JP7238439B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

To provide an information processing apparatus automatically testing software that, when the software is rejected in a plurality of tests due to the same failure, can efficiently analyze the failure that causes the rejection.SOLUTION: In an information processing system 100, an information processing apparatus has a test control unit, a first determination unit, a second determination unit, an output unit, a setting receiving unit, and a storage unit. The test control unit controls execution of a plurality of tests on software to be tested. When the software is rejected in the tests, the first determination unit determines whether the rejected software has functional characteristics. When the software is rejected in the tests, the second determination unit determines whether the rejected software has phenomenal characteristics. The output unit outputs a test result related to a failure that causes the rejection, based on the phenomenal characteristics and the functional characteristics of a test, of the plurality of tests, in which the software is rejected.SELECTED DRAWING: Figure 4

Description

本発明は、情報処理装置、テスト方法、及びテストプログラムに関する。 The present invention relates to an information processing device, a test method, and a test program.

テスト対象となるソフトウェアを自動的にテストして、テスト結果を出力するテストシステムが知られている。 2. Description of the Related Art There is known a test system that automatically tests software to be tested and outputs a test result.

また、ソフトウェア開発プロジェクトにおいて、バグを分析して、バグによる手戻り工数等から優先すべき課題を選定するバグ分析方法、及び装置が知られている(例えば、特許文献1参照) In a software development project, there is known a bug analysis method and apparatus for analyzing a bug and selecting a task to be prioritized based on the man-hours required for rework due to the bug (for example, refer to Patent Document 1).

しかし、テスト対象となるソフトウェアを自動的にテストするテストシステムでは、例えば、同じ障害(バグ)が原因で複数のテストが不合格になった場合でも、その原因が同じ障害であるか否かを自動的に判別することは困難である。従って、テストシステムは、同じ障害が原因で複数のテストが不合格になった場合でも、不合格になった全てのテストについて障害票を起票し、設計者は、起票された複数の障害票を解析して不合格の原因となった障害を判別しなければならないという問題がある。 However, in a test system that automatically tests the software to be tested, even if multiple tests fail due to the same failure (bug), it is possible to determine whether the cause is the same failure or not. It is difficult to determine automatically. Therefore, even if multiple tests fail due to the same failure, the test system issues a failure report for all failed tests, and the designer has multiple failure reports. There is the problem of having to analyze the votes to determine the failure that caused the failure.

本発明の一実施形態は、上記の問題点に鑑みてなされたものであって、ソフトウェアを自動的にテストする情報処理システムにおいて、同じ障害が原因で複数のテストが不合格になった場合に、不合格の原因となった障害の解析を効率的に行えるようにする。 One embodiment of the present invention is made in view of the above problems, and in an information processing system that automatically tests software, when multiple tests fail due to the same failure. , To efficiently analyze the failure that caused the failure.

上記目的を達成するため、本発明の一実施形態に係る情報処理装置は、テスト対象となるソフトウェアをテストする情報処理装置であって、前記ソフトウェアに関する複数のテストの実行を制御するテスト制御部と、前記複数のテストのうち、不合格になったテストにおける現象面の特徴と機能面の特徴とに基づいて、前記不合格の原因となった障害に関するテスト結果を出力する出力部と、を有する。 In order to achieve the above object, an information processing apparatus according to an embodiment of the present invention is an information processing apparatus that tests software to be tested, and includes a test control unit that controls execution of a plurality of tests related to the software. An output unit that outputs a test result regarding the failure that caused the failure, based on the characteristics of the phenomenon surface and the characteristics of the functional surface in the failure test of the plurality of tests. ..

本発明の一実施形態によれば、ソフトウェアを自動的にテストする情報処理システムにおいて、同じ障害が原因で複数のテストが不合格になった場合に、不合格の原因となった障害の解析を効率的に行えるようになる。 According to an embodiment of the present invention, in an information processing system that automatically tests software, when a plurality of tests fail due to the same failure, analysis of the failure causing the failure is performed. You can do it efficiently.

一実施形態に係る情報処理システムのシステム構成の例を示す図である。It is a figure showing an example of a system configuration of an information processing system concerning one embodiment. 一実施形態に係るテストツールの構成例を示す図である。It is a figure which shows the structural example of the test tool which concerns on one Embodiment. 一実施形態に係る情報処理装置のハードウェア構成の例を示す図である。It is a figure which shows the example of the hardware constitutions of the information processing apparatus which concerns on one Embodiment. 一実施形態に係る情報処理装置の機能構成の例を示す図である。It is a figure showing an example of functional composition of an information processor concerning one embodiment. 一実施形態に係るテスト仕様について説明するための図である。It is a figure for demonstrating the test specification which concerns on one Embodiment. 一実施形態に係るテストケースの例について説明するための図である。It is a figure for explaining an example of a test case concerning one embodiment. 第1の実施形態に係る情報処理装置の処理の例を示すフローチャートである。6 is a flowchart showing an example of processing of the information processing apparatus according to the first embodiment. 第2の実施形態に係る情報処理装置の処理の例を示すフローチャートである。9 is a flowchart showing an example of processing of the information processing apparatus according to the second embodiment.

以下、本発明の実施形態について、図面を参照しながら詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

<システム構成>
(情報処理システムのシステム構成)
図1は、一実施形態に係る情報処理システムのシステム構成の例を示す図である。情報処理システム100は、ソフトウェアを設計する設計者101等が、テスト対象となるソフトウェアをテスト(試験)するシステムである。
<System configuration>
(System configuration of information processing system)
FIG. 1 is a diagram illustrating an example of a system configuration of an information processing system according to an embodiment. The information processing system 100 is a system in which a designer 101 who designs software tests the software to be tested.

近年のソフトウェア開発においては、継続的インテグレーション(CI:Continuous Integration)と呼ばれるような、ビルドやテストを頻繁に繰り返し行うことにより問題を早期に発見し、開発の効率化、省電力化、納期の短縮等を図る手法が用いられる。CIシステムにおいては、手続きを自動化すると共に、変更管理ツール102、テスト管理ツール106、障害管理ツール109等と連携することで、ワークフロー全体の効率化を図ることも行われる。なお、CIシステムは、情報処理システム100の一例である。 In recent software development, problems such as continuous integration (CI: Continuous Integration) are frequently repeated by repeatedly performing builds and tests to detect problems early, improving development efficiency, saving power, and shortening delivery times. Etc. are used. In the CI system, the procedure is automated, and the efficiency of the entire workflow is improved by cooperating with the change management tool 102, the test management tool 106, the failure management tool 109, and the like. The CI system is an example of the information processing system 100.

図1に示す情報処理システム100において、設計者101は、テスト対象となるソフトウェアのソースコード103と、当該ソフトウェアをテストするテストコード107を作成して情報処理システム100に登録する。 In the information processing system 100 shown in FIG. 1, a designer 101 creates a source code 103 of software to be tested and a test code 107 for testing the software and registers it in the information processing system 100.

ビルドツール104、及びテストツール108は、予め定められたスケジュールに従ってビルドとテストを自動的に実行し、テスト結果が不合格である場合には、障害管理ツール109が、不合格になったテスト結果等を設計者101に通知する。このとき、障害管理ツール109は、変更管理ツール102、テスト管理ツール106等と連携することで、障害の対策状況のトラッキング等が可能である。 The build tool 104 and the test tool 108 automatically execute a build and a test according to a predetermined schedule, and if the test result is a failure, the failure management tool 109 gives a test result that has failed. Etc. to the designer 101. At this time, the fault management tool 109 can track the countermeasure status of the fault by cooperating with the change management tool 102, the test management tool 106, and the like.

設計者101は、テスト結果が不合格であれば、障害(バグ)の解析を行い、必要に応じてソースコード103の修正、或いはテストコード107の修正を行う。障害の解析にあたって、設計者101は、例えば、どのテストケースでどのようなエラーが発生したか、またエラーが発生したときのログ情報等から障害を特定して対策を行う。 If the test result is unacceptable, the designer 101 analyzes the failure (bug) and corrects the source code 103 or the test code 107 as necessary. In analyzing the failure, the designer 101, for example, specifies the failure from what kind of error occurred in which test case, and log information when the error occurred, and takes countermeasures.

このようなフローを繰り返し実行することにより、設計者101は、常にテスト結果が合格となる状態を維持する。これにより、設計者101は、テスト対象となるソフトウェア(成果物)をいつでもリリースできる状態に保つことができるので、ソフトウェアをタイムリーに市場にリリースすることができる。 By repeatedly executing such a flow, the designer 101 always maintains a state in which the test result is acceptable. As a result, the designer 101 can keep the software (artifact) to be tested ready to be released, so that the software can be released to the market in a timely manner.

(テストツールの構成例)
図2は、一実施形態に係るテストツールの構成例を示す図である。ここでは、一例として、組み込み系のソフトウェア開発におけるテストツールについて説明する。組み込み系のソフトウェア開発における自動テストは、基本的には対象となる対象機器202で、テスト対象オブジェクト105を実行させることでテストを行う。ここで、「対象機器」には、実際にソフトウェアが実装される電子機器(以下、「実機」と呼ぶ)だけではなく、実機の動作をエミュレートしたエミュレータも含まれる。
(Example of test tool configuration)
FIG. 2 is a diagram showing a configuration example of a test tool according to an embodiment. Here, a test tool in embedded software development will be described as an example. The automatic test in the embedded software development is basically performed by executing the test target object 105 on the target device 202 as the target. Here, the “target device” includes not only an electronic device in which software is actually installed (hereinafter, referred to as “actual device”) but also an emulator that emulates the operation of the actual device.

また、テスト対象オブジェクト105を対象機器202で実行させる方法には、一例として、図2(a)に示すように、テストツール108から、対象機器202上のテストランナー203を使って、テスト対象オブジェクト105とテストコード107とを実行させる方法がある。また、別の一例として、図2(b)に示すように、テストツール108がテストコード107を実行し、対象機器202が公開しているインタフェース(I/F:Interface)を用いて、テスト対象オブジェクト105を操作する方法もある。図2(a)に示す方法は、主にホワイトボックス的なテストに用いられ、図3(b)に示す方法は、主にブラックボックス的なテストに用いられることが多い。 As an example of the method of executing the test target object 105 on the target device 202, as shown in FIG. 2A, the test tool 108 uses the test runner 203 on the target device 202 from the test tool 108. There is a method of executing 105 and the test code 107. As another example, as shown in FIG. 2B, the test tool 108 executes the test code 107, and the target device 202 uses an interface (I/F: Interface) open to the test target. There is also a method of operating the object 105. The method shown in FIG. 2A is mainly used for a white box test, and the method shown in FIG. 3B is mainly used for a black box test in many cases.

上記の構成において、情報処理システム100は、例えば、テストを自動実行し、テストが不合格になったときに、自動的に障害票を起票して設計者101に通知する。このような情報処理システム100において、例えば、同じ障害(バグ)が原因で複数のテストが不合格になった場合、その原因が同じ障害であることを、情報処理システム100が自動的に判別することは困難である。従って、情報処理システム100は、不合格になった全てのテストについて障害票を起票することになり、設計者101は、複数の障害票を解析して、不合格になった複数のテストの原因が同じ障害によるものであることを判別しなければならないという問題がある。 In the above configuration, the information processing system 100 automatically executes a test, for example, and when the test fails, automatically issues a failure report and notifies the designer 101. In such an information processing system 100, for example, when a plurality of tests fail due to the same failure (bug), the information processing system 100 automatically determines that the cause is the same failure. Things are difficult. Therefore, the information processing system 100 issues a failure report for all the failed tests, and the designer 101 analyzes a plurality of failure reports to analyze the plurality of failed tests. There is the problem of having to determine that the cause is due to the same failure.

このとき、例えば、情報処理システム100が、発生した障害の現象から、同じ現象の障害を「同一の障害」としてグループ分け(グルーピング)して、設計者101に通知する方法が考えられる。しかし、この方法だけでは、同じ現象の障害が、同じ原因によるものであるとは限らないので、潜在的な障害(バグ)を見逃してしまう場合がある。 At this time, for example, a method in which the information processing system 100 groups the failures of the same failure as the “same failure” (grouping) and notifies the designer 101 is possible. However, with this method alone, the failure of the same phenomenon is not always due to the same cause, and thus a potential failure (bug) may be overlooked.

また、別の方法として、情報処理システム100が、基本的な機能のテストと、枝葉の機能のテストとを分けて、基本的な機能のテストを先に行うことで、障害票の大量の起票を抑制する方法も考えられる。しかし、この方法では、どの機能が基本的な機能であり、どの機能が枝葉の機能であるのかを分類する必要がある。また、この方法では、基本的な機能のテストで不合格になった場合には、他の機能のテストができなくなってしまうという問題もある。 Further, as another method, the information processing system 100 divides the basic function test and the branch and leaf function test, and performs the basic function test first, so that a large number of failure votes are generated. A method of suppressing votes is also possible. However, in this method, it is necessary to classify which functions are basic functions and which are branch and leaf functions. In addition, this method has a problem that if a basic function test fails, another function cannot be tested.

そこで、本実施形態に係る情報処理システム100では、テストを自動実行し、テストが不合格になったときに、不合格になったテストにおける現象面の特徴と、機能面の特徴とに基づいて、不合格の原因となった障害に関するテスト結果を出力する。 Therefore, in the information processing system 100 according to the present embodiment, when a test is automatically executed and the test fails, based on the phenomenological aspect and the functional aspect of the failed test. , Outputs test results for the failure that caused the failure.

好ましくは、情報処理システム100は、不合格になったテストにおける現象面の特徴と機能面の特徴とに基づいて、不合格になったテスト(例えば、障害票等)をグループ分けしてテスト結果を出力する。 Preferably, the information processing system 100 divides the failed tests (for example, failure report) into groups based on the characteristic of the phenomenon side and the characteristic of the function in the failed test, and outputs the test result. Is output.

ここで、機能面の特徴には、例えば、テスト対象となるソフトウェアの機能仕様書に記載されている「機能」に関する特徴等が含まれる。例えば、情報処理システム100は、機能仕様書に記載されている所定の機能に関する1つ以上のテスト項目のうち、不合格になったテスト項目の数に基づいて、不合格になったテストに機能的な特徴があるか(例えば、所定の機能に問題があるか)否かを判断する。 Here, the functional characteristics include, for example, characteristics regarding “function” described in the functional specification of the software to be tested. For example, the information processing system 100 functions as a failed test based on the number of failed test items among one or more test items related to a predetermined function described in the functional specification. Whether there is a characteristic characteristic (for example, whether there is a problem in a predetermined function) or not.

また、現象面の特徴には、例えば、テストに用いられる所定のコマンドで発生した「現象」に関する特徴等が含まれる。例えば、情報処理システム100は、ソフトウェアのテストで用いられる所定のコマンドで発生したエラーの発生回数に基づいて、不合格になったテストに現象的な特徴があるか(同じ現象のエラーが発生しているか)否かを判断する。なお、コマンドには、例えば、所定の手順の実行を指示する命令や、所定のハードウェアへのアクセスを指示する命令等の様々な命令が含まれ得る。 Further, the characteristics of the phenomenon surface include, for example, characteristics relating to the “phenomenon” generated by a predetermined command used for the test. For example, the information processing system 100 may determine whether the failed test has a phenomenological characteristic based on the number of times an error has occurred in a predetermined command used in a software test (an error of the same phenomenon occurs. Yes) or not. It should be noted that the command may include various instructions such as an instruction to execute a predetermined procedure and an instruction to access a predetermined hardware.

具体的な一例として、所定のコマンドでエラーが複数回発生している等の現象面の特徴がある場合、情報処理システム100は、機能面の特徴より優先して、現象面の特徴に関するテスト結果を設計者101に通知する。これは、特定のコマンドでエラーが多発している場合、テスト対象となる機能に対して適切なテストを行えない可能性が高いと考えられるためである。 As a specific example, when there is a phenomenon-side feature such as an error occurring multiple times with a predetermined command, the information processing system 100 gives priority to the function-side feature and the test result regarding the phenomenon-side feature. Is notified to the designer 101. This is because if many errors occur in a specific command, it is considered that there is a high possibility that an appropriate test cannot be performed on the function to be tested.

例えば、テスト対象となる機器がスキャン機能、コピー機能、プリンタ機能、ファクシミリ機能等を一つの筐体に搭載したMFP(Multifunction Peripheral)であるものとする。また、MFPのソフトウェアのテストにおいて、スキャン機能のテストで不合格が発生しているが、実際には、準備作業に含まれるアドレス帳登録コマンドが原因でエラーが発生していたものとする。このようなときに、本実施形態に係る情報処理システム100によれば、スキャン機能の担当者ではなく、アドレス帳機能の担当者に障害解析を依頼することが容易になる。なお、具体的な処理内容については後述する。 For example, it is assumed that the device to be tested is an MFP (Multifunction Peripheral) having a scan function, a copy function, a printer function, a facsimile function, and the like mounted in one housing. Further, in the software test of the MFP, a failure occurs in the scan function test, but it is actually assumed that the error occurred due to the address book registration command included in the preparatory work. In such a case, according to the information processing system 100 according to the present embodiment, it becomes easy to request the person in charge of the address book function, not the person in charge of the scan function, for failure analysis. Note that the specific processing contents will be described later.

<ハードウェア構成>
図2は、一実施形態に係る情報処理装置のハードウェア構成の例を示す図である。図1に示す変更管理ツール102、ビルドツール104、テスト管理ツール106、テストツール108、及び障害管理ツール109等は、例えば、図2に示すようなコンピュータ構成を備えた情報処理装置300、又は複数の情報処理装置300で実行される。
<Hardware configuration>
FIG. 2 is a diagram illustrating an example of the hardware configuration of the information processing device according to the embodiment. The change management tool 102, the build tool 104, the test management tool 106, the test tool 108, the failure management tool 109, and the like shown in FIG. 1 are, for example, an information processing apparatus 300 having a computer configuration as shown in FIG. It is executed by the information processing device 300.

情報処理装置300は、例えば、CPU(Central Processing Unit)301、ROM(Read Only Memory)302、RAM(Random Access Memory)303、HD(Hard Disk)304、HDD(Hard Disk Drive)コントローラ305、ディスプレイ306、外部機器接続I/F307、ネットワークI/F308、キーボード309、ポインティングデバイス310、DVD−RW(Digital Versatile Disk Rewritable)ドライブ312、メディアI/F314、及びバスライン315等を備えている。 The information processing apparatus 300 includes, for example, a CPU (Central Processing Unit) 301, a ROM (Read Only Memory) 302, a RAM (Random Access Memory) 303, an HD (Hard Disk) 304, an HDD (Hard Disk Drive) controller 305, and a display 306. An external device connection I/F 307, a network I/F 308, a keyboard 309, a pointing device 310, a DVD-RW (Digital Versatile Disk Rewritable) drive 312, a media I/F 314, a bus line 315, and the like.

これらのうち、CPU301は、情報処理装置300の全体の動作を制御する。ROM302は、例えば、IPL(Initial Program Loader)等のCPU301の起動に用いられるプログラムを記憶する。RAM303は、CPU301のワークエリアとして使用される。HD304は、プログラム等の各種データを記憶する。HDDコントローラ305は、CPU301の制御に従ってHD304に対する各種データの読み出し又は書き込みを制御する。 Of these, the CPU 301 controls the overall operation of the information processing device 300. The ROM 302 stores, for example, a program used for starting the CPU 301 such as an IPL (Initial Program Loader). The RAM 303 is used as a work area for the CPU 301. The HD 304 stores various data such as programs. The HDD controller 305 controls reading or writing of various data with respect to the HD 304 under the control of the CPU 301.

ディスプレイ306は、カーソル、メニュー、ウィンドウ、文字、又は画像などの各種情報を表示する。外部機器接続I/F307は、各種の外部機器を接続するためのインタフェースである。外部機器には、例えば、USB(Universal Serial Bus)メモリやプリンタ等に加え、テストの対象となる対象機器202等が含まれる。ネットワークI/F308は、通信ネットワークを利用してデータ通信をするためのインタフェースである。なお、情報処理装置300は、ネットワークI/F308を介して、対象機器202を制御しても良い。 The display 306 displays various information such as a cursor, a menu, a window, characters, or an image. The external device connection I/F 307 is an interface for connecting various external devices. The external devices include, for example, a USB (Universal Serial Bus) memory, a printer, and the like, as well as a target device 202 to be tested. The network I/F 308 is an interface for performing data communication using a communication network. The information processing apparatus 300 may control the target device 202 via the network I/F 308.

キーボード309は、文字、数値、各種指示などの入力のための複数のキーを備えた入力手段の一種である。ポインティングデバイス310は、各種指示の選択や実行、処理対象の選択、カーソルの移動などを行う入力手段の一種である。DVD−RWドライブ312は、着脱可能な記録媒体の一例としてのDVD−RW311に対する各種データの読み出し又は書き込みを制御する。なお、DVD−RW311は、DVD−RWに限らず、DVD−R等であっても良い。メディアI/F314は、フラッシュメモリ等のメディア313に対するデータの読み出し又は書き込み(記憶)を制御する。バスライン315は、上記の各構成要素を電気的に接続するためのアドレスバス、データバス及び各種の制御信号等を含む。 The keyboard 309 is a type of input means having a plurality of keys for inputting characters, numerical values, various instructions, and the like. The pointing device 310 is a type of input means for selecting and executing various instructions, selecting a processing target, moving a cursor, and the like. The DVD-RW drive 312 controls reading or writing of various data with respect to a DVD-RW 311 as an example of a removable recording medium. The DVD-RW 311 is not limited to the DVD-RW and may be a DVD-R or the like. The media I/F 314 controls reading or writing (storage) of data with respect to the medium 313 such as a flash memory. The bus line 315 includes an address bus, a data bus, various control signals, etc. for electrically connecting the above components.

<機能構成>
続いて、情報処理装置300の機能構成について説明する。
<Functional configuration>
Next, the functional configuration of the information processing device 300 will be described.

図4は、一実施形態に係る情報処理装置の機能構成の例を示す図である。情報処理装置300は、例えば、図3のCPU301で所定のテストプログラムを実行することにより、テスト制御部401、第1の判断部402、第2の判断部403、出力部404、設定受付部405、及び記憶部406等を実現している。なお、上記の各機能構成のうち、少なくとも一部は、ハードウェアによって実現されるものであっても良い。 FIG. 4 is a diagram illustrating an example of a functional configuration of the information processing device according to the embodiment. The information processing apparatus 300, for example, executes a predetermined test program in the CPU 301 of FIG. 3 to cause the test control unit 401, the first determination unit 402, the second determination unit 403, the output unit 404, and the setting reception unit 405. , And the storage unit 406 and the like. Note that at least a part of the above functional configurations may be realized by hardware.

テスト制御部401は、例えば、図3のCPU301で実行されるテストツール108等によって実現され、テスト対象となるソフトウェアに関する複数のテストの実行を制御する。 The test control unit 401 is realized by, for example, the test tool 108 or the like executed by the CPU 301 of FIG. 3, and controls execution of a plurality of tests relating to software to be tested.

第1の判断部402は、例えば、図3のCPUで実行される障害管理ツール109等のテストプログラムによって実現され、ソフトウェアのテストが不合格になった場合、不合格になったソフトウェアに機能面の特徴があるか否かを判断する。例えば、第1の判断部402は、所定の機能に関する1つ以上のテスト項目のうち、不合格になったテスト項目の数に基づいて、不合格になったテストに機能面の特徴があるか(例えば、所定の機能に問題があるか)否かを判断する。 The first determination unit 402 is realized by, for example, a test program such as the failure management tool 109 executed by the CPU in FIG. 3, and when the software test fails, the failing software has a functional aspect. It is determined whether there is a feature of. For example, based on the number of test items that have failed among the one or more test items related to a predetermined function, the first determination unit 402 has a functional feature in the test that has failed. It is determined whether (for example, there is a problem with a predetermined function).

図5は、一実施形態に係るテスト仕様について説明するための図である。例えば、機能合致性を検証するためのテストケースを作成する場合、設計者101は、テスト対象となるソフトウェアの機能仕様501に対して、テストケースを設計することになる。例えば、図5の機能仕様501における機能Aのサブ機能A−1をテストする場合、図5のテスト仕様411に示すように、機能Aのサブ機能A−1に関する1つ以上のテスト項目をテストする。同様に、機能仕様501における機能Aのサブ機能A−2をテストする場合、テスト仕様411に示すように、機能Aのサブ機能A−2に関する1つ以上のテスト項目をテストする。 FIG. 5 is a diagram for explaining the test specifications according to the embodiment. For example, when creating a test case for verifying functional conformity, the designer 101 will design a test case for the functional specification 501 of the software to be tested. For example, when testing the sub-function A-1 of the function A in the functional specification 501 of FIG. 5, one or more test items related to the sub-function A-1 of the function A are tested as shown in the test specification 411 of FIG. To do. Similarly, when testing the sub-function A-2 of the function A in the functional specification 501, as shown in the test specification 411, one or more test items related to the sub-function A-2 of the function A are tested.

好ましくは、第1の判断部402は、例えば、テスト仕様411において、所定の機能に関する複数のテスト項目が定義されている場合、不合格になったテスト項目の数が、予め設定された第1の閾値以上のとき、所定の機能に機能面の特徴があると判断する。なお、所定の機能に関するテスト項目が1つである場合には、所定の機能に関するテスト項目が不合格であるときに、所定の機能に機能面の特徴があると判断しても良い。 Preferably, for example, when a plurality of test items related to a predetermined function are defined in the test specification 411, the first determination unit 402 sets the number of rejected test items to a preset first value. When it is equal to or more than the threshold of, it is determined that the predetermined function has a functional feature. When there is one test item related to a predetermined function, it may be determined that the predetermined function has a functional characteristic when the test item related to the predetermined function fails.

第2の判断部403は、例えば、図3のCPUで実行される障害管理ツール109等のテストプログラムによって実現され、ソフトウェアのテストが不合格になった場合、不合格になったソフトウェアに現象面の特徴があるか否かを判断する。例えば、第2の判断部403は、所定のコマンドで発生したエラーの発生回数に基づいて、不合格になったテストに現象面の特徴があるか(例えば、所定のコマンドに問題があるか)否かを判断する。 The second determination unit 403 is realized by, for example, a test program such as the failure management tool 109 executed by the CPU in FIG. 3, and when the software test fails, the failure software is displayed as a phenomenon surface. It is determined whether there is a feature of. For example, the second determination unit 403 determines whether the failed test has a phenomenological feature based on the number of times an error has occurred in a predetermined command (for example, whether the predetermined command has a problem). Determine whether or not.

図6は、一実施形態に係るテストケースの例について説明するための図である。例えば、所定の機能に関するテストを行う場合、テストシナリオの実行に先立って、事前条件や事後条件を明確にし、テストを実行する。例えば、図6のテストケース601に示すように、所定の機能に関するテストを行う「テストシナリオ」の前後で、「事前条件」、「事後条件」等を自動的に実行する。 FIG. 6 is a diagram for explaining an example of a test case according to an embodiment. For example, when performing a test on a predetermined function, the precondition and the postcondition are clarified before the test scenario is executed, and the test is executed. For example, as shown in a test case 601 of FIG. 6, a “pre-condition”, a “post-condition”, etc. are automatically executed before and after a “test scenario” in which a test regarding a predetermined function is performed.

なお、テストケース601に含まれる各手順の自動実行は、様々な方法で実行可能である。例えば、多くの場合、対象機器202を提供しているメーカが、ビルドツール104と同じように、テストのための様々ツールを提供しているので、これらのツールを用いて、テスト対象オブジェクト105を操作することができる。また、例えば、テスト対象オブジェクト105が、外部に提供しているI/Fを、テストケース601に含まれる各手順の自動実行に用いることもできる。なお、当該I/Fは、別のテストケースでは、テスト対象となる場合がある。 The automatic execution of each procedure included in the test case 601 can be executed by various methods. For example, in many cases, the manufacturer that provides the target device 202 provides various tools for testing similarly to the build tool 104. Therefore, using these tools, the test target object 105 can be obtained. It can be operated. Further, for example, the test target object 105 can use an I/F provided to the outside for automatic execution of each procedure included in the test case 601. The I/F may be a test target in another test case.

好ましくは、第2の判断部403は、ソフトウェアのテストにおいて、所定のコマンド(例えば、手順B1の実行命令等)で発生したエラーの発生回数が第2の閾値以上のとき、不合格になったソフトウェアに現象面の特徴があると判断する。 Preferably, in the software test, the second determination unit 403 fails when the number of errors that has occurred in a predetermined command (for example, the execution instruction of the procedure B1) is the second threshold value or more. Judge that the software has phenomenological features.

出力部404は、例えば、図3のCPUで実行される障害管理ツール109等のテストプログラムによって実現される。出力部404は、複数のテストのうち、不合格になったテストにおける現象面の特徴と機能面の特徴とに基づいて、不合格の原因となった障害に関するテスト結果を出力する。 The output unit 404 is realized by, for example, a test program such as the failure management tool 109 executed by the CPU in FIG. The output unit 404 outputs a test result relating to the failure that caused the failure, based on the characteristics of the phenomenon surface and the characteristics of the functional surface in the failed test among the plurality of tests.

例えば、出力部404は、不合格になったテストに、機能面の特徴と現象面の特徴とがある場合、機能面の特徴よりも現象面の特徴を優先して、所定のコマンド(手順)に障害があることを示すテスト結果を出力する。 For example, the output unit 404 gives priority to the characteristic of the phenomenon surface over the characteristic of the function surface and gives a predetermined command (procedure) when the failed test has the characteristic of the function surface and the characteristic of the phenomenon surface. The test result indicating that there is a fault is output.

また、出力部404は、不合格になったテストに、機能面の特徴があり、かつ現象面の特徴がない場合、所定の機能に関するテスト結果を出力する。さらに、出力部404は、不合格になったテストに、現象面の特徴があり、かつ機能面の特徴がない場合、所定のコマンドに関するテスト結果を出力する。 Further, the output unit 404 outputs a test result regarding a predetermined function when the rejected test has a functional feature and no phenomenon feature. Furthermore, the output unit 404 outputs a test result related to a predetermined command when the failed test has a phenomenon-side characteristic and no functional-side characteristic.

好ましくは、出力部404は、不合格になったテストにおける現象面の特徴と機能面の特徴とに基づいて、不合格になったテスト(又は障害票等)をグループ分けして、テスト結果として出力する。例えば、出力部404は、不合格になったテストにおける現象面の特徴と機能面の特徴とに基づいて、同じ障害が原因と考えられる複数の障害票をグルーピングして出力する。 Preferably, the output unit 404 divides the failed tests (or failure forms, etc.) into groups based on the characteristics of the phenomenon side and the characteristics of the functional side in the failed tests, and outputs them as test results. Output. For example, the output unit 404 groups and outputs a plurality of failure votes that are considered to be caused by the same failure, based on the characteristics of the phenomenon surface and the characteristics of the functional surface in the failed test.

設定受付部405は、例えば、図3のCPUで実行される障害管理ツール109等のテストプログラムによって実現され、前述した第1の閾値又は第2の閾値の設定を受け付ける。例えば、設定受付部405は、図3のディスプレイ306等の表示部に、第1の閾値又は第2の閾値を設定するための設定画面を表示させて、設計者101等による、第1の閾値又は第2の閾値の設定操作を受け付ける。また、設定受付部405は、受け付けた第1の閾値又は第2の閾値を、記憶部406に設定値413として記憶する。なお、設定受付部405は、他の情報処理装置等から、第1の閾値又は第2の閾値の設定要求を受け付けるものであっても良い。 The setting reception unit 405 is realized by, for example, a test program such as the failure management tool 109 executed by the CPU in FIG. 3, and receives the above-described setting of the first threshold value or the second threshold value. For example, the setting reception unit 405 displays a setting screen for setting the first threshold value or the second threshold value on the display unit such as the display 306 in FIG. 3, and the first threshold value set by the designer 101 or the like. Alternatively, the second threshold setting operation is accepted. Further, the setting reception unit 405 stores the received first threshold value or second threshold value as the set value 413 in the storage unit 406. The setting reception unit 405 may receive a setting request for the first threshold value or the second threshold value from another information processing device or the like.

記憶部406は、例えば、図3のCPUで実行されるプログラム、及びHDDコントローラ305、HD304等によって実現され、テストコード107、テスト仕様411、テスト結果412、及び設定値413等を記憶する。 The storage unit 406 is realized by, for example, the program executed by the CPU of FIG. 3, the HDD controller 305, the HD 304, and the like, and stores the test code 107, the test specification 411, the test result 412, the set value 413, and the like.

なお、図4の例では、図1のテストツール108及び障害管理ツール109に関する機能構成について説明を行ったが、情報処理装置300は、図1の変更管理ツール102、ビルドツール104、及びテスト管理ツール106等をさらに実行しても良い。なお、変更管理ツール102、ビルドツール104、及びテスト管理ツール106等の機能構成は、一般的なツールと同様で良いので、ここでは説明を省略する。 In the example of FIG. 4, the functional configurations of the test tool 108 and the failure management tool 109 of FIG. 1 have been described, but the information processing apparatus 300 includes the change management tool 102, the build tool 104, and the test management of FIG. The tool 106 and the like may be further executed. The functional configurations of the change management tool 102, the build tool 104, the test management tool 106, and the like may be the same as those of general tools, and thus the description thereof is omitted here.

<処理の流れ>
続いて、各実施形態に係るテスト方法の処理の流れについて説明する。
<Process flow>
Next, the flow of processing of the test method according to each embodiment will be described.

[第1に実施形態]
図7は、第1の実施形態に係る情報処理装置の処理の例を示すフローチャートである。この処理は、情報処理装置300が、テスト制御部401により、テスト対象となるソフトウェアに関する複数のテストを実行した後、不合格になったテストがある場合に実行する処理の一例を示している。
[First Embodiment]
FIG. 7 is a flowchart showing an example of processing of the information processing apparatus according to the first embodiment. This process shows an example of the process performed by the information processing apparatus 300 when the test control unit 401 executes a plurality of tests related to the software to be tested and there is a failed test.

ステップS701において、情報処理装置300の第1の判断部402は、不合格になったテストにおける機能面の特徴を抽出する。例えば、第1の判断部402は、図5に示すようなテスト仕様411を参照して、不合格になったテストに対応する機能等を抽出する。一例として、図5に示すテスト仕様411において、テスト項目「境界値テスト正常系」が不合格になった場合、第1の判断部402は、不合格になったテスト項目に対応するサブ機能「A−1」等を抽出する。 In step S701, the first determination unit 402 of the information processing device 300 extracts the feature of the functional surface in the failed test. For example, the first determination unit 402 refers to the test specification 411 as shown in FIG. 5 and extracts the function or the like corresponding to the failed test. As an example, in the test specification 411 illustrated in FIG. 5, when the test item “boundary value test normal system” fails, the first determination unit 402 determines that the sub-function “corresponding to the failed test item” "A-1" and the like are extracted.

ステップS702において、情報処理装置300の第2の判断部403は、不合格になったテストにおける現象面の特徴を抽出する。例えば、第2の判断部403は、不合格になったテストでエラーが発生したコマンド、及び当該コマンドで発生したエラーの回数等を抽出する。 In step S702, the second determination unit 403 of the information processing device 300 extracts the characteristics of the phenomenon surface in the failed test. For example, the second determination unit 403 extracts a command in which an error has occurred in the failed test, the number of errors in the command, and the like.

ステップS703において、第1の判断部402は、不合格になったテストに機能面の特徴があるか否かを判断する。例えば、第1の判断部402は、ステップS701で抽出した機能に関する1つ以上のテスト項目のうち、不合格になったテスト項目の数が、予め設定された第1の閾値以上のとき、不合格になったテストに機能面の特徴があると判断する。 In step S703, the first determination unit 402 determines whether or not the failed test has a functional feature. For example, when the number of failed test items among the one or more test items related to the function extracted in step S701 is equal to or larger than the preset first threshold value, the first determination unit 402 fails It is judged that the passed tests have functional characteristics.

不合格になったテストに機能面の特徴がある場合、情報処理装置300は、処理をステップS704に移行させる。一方、不合格になったテストに機能面の特徴がない場合、情報処理装置300は、処理をステップS705に移行させる。 If the rejected test has a functional feature, the information processing apparatus 300 moves the process to step S704. On the other hand, if the rejected test has no functional characteristics, the information processing apparatus 300 moves the process to step S705.

ステップS704に移行すると、第2の判断部403は、不合格になったテストに、現象面の特徴があるか否かを判断する。例えば、第2の判断部403は、ステップS702で抽出したコマンドで発生したエラーの回数が、予め設定された第2の閾値以上のとき、不合格になったテストに現象面の特徴があると判断する。 Upon proceeding to step S704, the second determination unit 403 determines whether or not the failed test has a phenomenological aspect. For example, when the number of errors generated by the command extracted in step S702 is equal to or greater than the preset second threshold, the second determination unit 403 determines that the failed test has a phenomenological aspect. to decide.

不合格になったテストに現象面の特徴がない場合、情報処理装置300は、処理をステップS705に移行させる。一方、不合格になったテストに現象面の特徴がある場合、情報処理装置300は、処理をステップS707に移行させる。 If the failed test does not have a phenomenon feature, the information processing apparatus 300 moves the process to step S705. On the other hand, if the failed test has a phenomenological feature, the information processing apparatus 300 moves the process to step S707.

ステップS705に移行すると、出力部404は、特定機能のデグレードを指摘するテスト結果を出力する。例えば、出力部404は、ステップS703で機能面の特徴があると判断された機能のデグレードを指摘する障害票等を出力する。 When the process proceeds to step S705, the output unit 404 outputs a test result indicating the degradation of the specific function. For example, the output unit 404 outputs a failure vote or the like pointing out the degradation of the function determined to have a functional feature in step S703.

ステップS703からステップS706に移行すると、第2の判断部403は、例えば、ステップS704と同様にして、不合格になったテストに、現象面の特徴があるか否かを判断する。 When the process proceeds from step S703 to step S706, the second determination unit 403 determines whether or not the failed test has a phenomenological aspect, for example, as in step S704.

不合格になったテストに現象面の特徴がある場合、情報処理装置300は、処理をステップS707に移行させる。一方、不合格になったテストに現象面の特徴がない場合、情報処理装置300は、処理を終了させる。 If the failed test has a phenomenological feature, the information processing apparatus 300 moves the process to step S707. On the other hand, if the failed test has no phenomenological feature, the information processing apparatus 300 ends the process.

ステップS707に移行すると、情報処理装置300の出力部404は、特定手順のデグレードを指摘するテスト結果を出力する。例えば、出力部404は、ステップS702で抽出したコマンド(特定手順の一例)のデグレードを指摘する障害票等を出力する。 When the process proceeds to step S707, the output unit 404 of the information processing device 300 outputs the test result indicating the degradation of the specific procedure. For example, the output unit 404 outputs a trouble slip or the like pointing out the degradation of the command (an example of the specific procedure) extracted in step S702.

このように、情報処理装置300の出力部404は、不合格になったテストにおける現象面の特徴と機能面の特徴とに基づいて、不合格の原因となった障害に関するテスト結果を出力する。 In this way, the output unit 404 of the information processing apparatus 300 outputs the test result regarding the failure causing the failure based on the characteristics of the phenomenon surface and the characteristics of the functional surface in the failed test.

これにより、本実施形態に係る情報処理システム100によれば、不合格になったテストの機能面の特徴と現象面の特徴とに基づいて、解析すべき優先順位を設計者101に提示することができるので、設計者101による障害解析をより効率化することができる。 As a result, according to the information processing system 100 according to the present embodiment, the priority order to be analyzed is presented to the designer 101 based on the functional characteristics and the phenomenon characteristics of the failed test. Therefore, the failure analysis by the designer 101 can be made more efficient.

[第2の実施形態]
図8は、第2の実施形態に係る情報処理装置の処理の例を示すフローチャートである。この処理は、情報処理装置300が、テスト制御部401により、テスト対象となるソフトウェアに関する複数のテストを実行した後、不合格になったテストがある場合に実行する処理の別の一例を示している。なお、基本的な処理内容は、図7に示す第1の実施形態に係る情報処理装置の処理と同様なので、ここでは、第1の実施形態と同様の処理に対する詳細な説明は省略する。
[Second Embodiment]
FIG. 8 is a flowchart showing an example of processing of the information processing apparatus according to the second embodiment. This process shows another example of the process performed by the information processing apparatus 300 when the test control unit 401 executes a plurality of tests related to the software to be tested and there is a failed test. There is. Since the basic processing contents are the same as the processing of the information processing apparatus according to the first embodiment shown in FIG. 7, a detailed description of the same processing as the first embodiment will be omitted here.

ステップS801において、情報処理装置300の第1の判断部402は、不合格になったテストにおける機能面の特徴を抽出する。なお、複数のテストが不合格になった場合、第1の判断部402は、不合格になった複数のテストの各々について、機能面の特徴を抽出する。 In step S801, the first determination unit 402 of the information processing device 300 extracts the feature of the functional surface in the failed test. In addition, when a plurality of tests have failed, the first determination unit 402 extracts functional characteristics of each of the plurality of tests that have failed.

ステップS802において、情報処理装置300の第2の判断部403は、不合格になったテストにおける現象面の特徴を抽出する。なお、複数のテストが不合格になった場合、第2の判断部403は、不合格になった複数のテストの各々について、現象面の特徴を抽出する。 In step S802, the second determination unit 403 of the information processing device 300 extracts the characteristics of the phenomenon surface in the failed test. When a plurality of tests have failed, the second determination unit 403 extracts the phenomenological feature of each of the plurality of failed tests.

ステップS803において、第1の判断部402は、不合格になったテストの各々について、機能面の特徴があるか否かを判断する。 In step S803, the first determination unit 402 determines whether or not each of the failed tests has a functional feature.

ここで、機能面の特徴があると判断されたテストについて、情報処理装置300は、ステップS804の処理を実行する。また、機能面の特徴がないと判断されたテストについて、情報処理装置300は、ステップS806の処理を実行する。 Here, the information processing apparatus 300 executes the process of step S804 for the test determined to have the functional feature. Further, the information processing apparatus 300 executes the process of step S806 for the test determined to have no functional feature.

ステップS804において、第2の判断部403は、不合格になったテストのうち、機能面の特徴があると判断されたテストの各々について、現象面の特徴があるか否かを判断する。 In step S804, the second determination unit 403 determines whether or not each of the tests that have been judged to have a functional feature out of the rejected tests has a phenomenological feature.

ここで、現象面の特徴がないと判断されたテストについて、情報処理装置300は、ステップS805の処理を実行する。また、現象面の特徴があると判断されたテストについて、情報処理装置300は、ステップS807の処理を実行する。 Here, the information processing apparatus 300 executes the process of step S805 for the test determined to have no phenomenon-side characteristic. Further, the information processing apparatus 300 executes the process of step S807 for the test determined to have the phenomenon-side characteristic.

ステップS805において、情報処理装置300の出力部404は、特定機能のデグレードを指摘する障害票(テスト結果の一例)を作成する。例えば、出力部404は、ステップS803で機能面の特徴があると判断され、ステップS804で現象面の特徴がないと判断されたテストの各々について、第1の閾値以上の試験項目が不合格となった機能に障害があることを示す障害票を作成する。 In step S805, the output unit 404 of the information processing device 300 creates a failure vote (an example of a test result) that points out the degradation of the specific function. For example, the output unit 404 determines that the test item having the first threshold value or more fails for each of the tests determined in step S803 that there is a feature in the functional aspect and in step S804 that there is no feature in the phenomenon aspect. Create a trouble ticket indicating that there is a problem with the function that has become invalid.

一方、ステップS806において、第2の判断部403は、不合格になったテストのうち、機能面の特徴がないと判断されたテストの各々について、現象面の特徴があるか否かを判断する。 On the other hand, in step S806, the second determination unit 403 determines whether or not each of the tests determined to have no functional feature among the rejected tests has a phenomenological feature. ..

ここで、現象面の特徴があると判断されたテストについて、情報処理装置300は、ステップS807の処理を実行する。なお、現象面の特徴がないと判断されたテストについては、情報処理装置300は、特に処理は行わずに、ステップS808に処理を移行させる。 Here, the information processing apparatus 300 executes the process of step S807 for the test determined to have the characteristic of the phenomenon side. Note that the information processing apparatus 300 moves the process to step S808 without performing any particular process for the test determined to have no phenomenon-side feature.

ステップS807において、出力部404は、特定手順のデグレードを指摘する障害票を作成する。 In step S807, the output unit 404 creates a trouble slip pointing out the degradation of the specific procedure.

例えば、出力部404は、ステップS803で機能面の特徴があると判断され、ステップS804で現象面の特徴があると判断されたテストの各々について、第2の閾値以上エラーが発生したコマンド(特定手順の一例)のデグレードを指摘する障害票を作成する。 For example, the output unit 404 determines that a command in which an error equal to or more than the second threshold value has occurred for each of the tests that is determined to have a functional feature in step S803 and is determined to have a phenomenon feature in step S804 (specific Create an obstacle slip that points out the degradation of (example of procedure).

また、出力部404は、ステップS803で機能面の特徴がないと判断され、ステップS804で現象面の特徴があると判断されたテストの各々について、第2の閾値以上エラーが発生したコマンド(特定手順の一例)のデグレードを指摘する障害票を作成する。 In addition, the output unit 404 determines in step S<b>803 that there is no functional feature and in step S<b>804 that each of the tests is determined to have a phenomenon feature, a command in which an error equal to or greater than the second threshold value occurs (specific Create an obstacle slip that points out the degradation of (example of procedure).

ステップS808において、出力部404は、ステップS805、及びステップS807で作成した障害票を、障害内容に応じてグループ分け(グルーピング)して出力する。例えば、出力部404は、所定の機能に障害があると判断された複数の障害票を1つのグループにまとめて出力する。また、出力部404は、所定の現象に障害があると判断された複数の障害票を1つのグループにまとめて出力する。 In step S808, the output unit 404 outputs the failure forms created in steps S805 and S807 by grouping them according to the content of the failure. For example, the output unit 404 collectively outputs a plurality of failure votes determined to have a failure in a predetermined function into one group. Further, the output unit 404 collectively outputs a plurality of failure forms determined to have a failure in a predetermined phenomenon into one group.

このように、情報処理装置300の出力部404は、不合格になったテストの試験結果(障害票)を、現象面の特徴と機能面の特徴とに基づいて、障害内容に応じてグルーピングして出力する。 In this way, the output unit 404 of the information processing apparatus 300 groups the test results (failure slips) of the failed tests according to the failure content based on the characteristics of the phenomenon side and the characteristics of the functional side. Output.

これにより、本実施形態に係る情報処理システム100によれば、不合格になったテストの機能面の特徴と現象面の特徴とに基づいて、解析すべき優先順位を設計者101に提示することができるので、設計者101による障害解析をより効率化することができる。 As a result, according to the information processing system 100 according to the present embodiment, the priority order to be analyzed is presented to the designer 101 based on the functional characteristics and the phenomenon characteristics of the failed test. Therefore, the failure analysis by the designer 101 can be made more efficient.

<適用例>
続いて、第2の実施形態に係るソフトウェアのテスト方法の具体的な適用例について説明する。
<Application example>
Subsequently, a specific application example of the software testing method according to the second embodiment will be described.

ここでは、一例として、対象機器202が、スキャン機能、コピー機能、プリンタ機能、ファクシミリ機能等を一つの筐体に搭載したMFP(Multifunction Peripheral)等の画像形成装置であるものとして、以下の説明を行う。 Here, as an example, the following description will be made on the assumption that the target device 202 is an image forming apparatus such as an MFP (Multifunction Peripheral) in which a scan function, a copy function, a printer function, a facsimile function and the like are mounted in one housing. To do.

ただし、対象機器202は、画像形成装置に限られず、情報処理システム100によるテスト対象となるソフトウェアを実行する様々な機器であって良い。例えば、対象機器202は、PJ(Projector:プロジェクタ)、IWB(Interactive White Board:相互通信が可能な電子式の黒板機能を有する白板)、デジタルサイネージ、HUD(Head Up Display)装置等の出力装置であっても良い。また、対象機器202は、例えば、産業機械、撮像装置、集音装置、医療機器、ネットワーク家電、自動車(Connected Car)、デジタルカメラ、ウェアラブル端末等の機器であっても良い。さらに、対象機器202は、例えば、ノートPC、携帯電話、スマートフォン、タブレット端末、ゲーム機、PDA(Personal Digital Assistant)、デジタルカメラ、ウェアラブルPCデスクトップPC等の汎用の情報処理装置であっても良い。 However, the target device 202 is not limited to the image forming apparatus, and may be various devices that execute software to be tested by the information processing system 100. For example, the target device 202 is an output device such as a PJ (Projector: projector), an IWB (Interactive White Board: a white board having an electronic blackboard function capable of mutual communication), a digital signage, and a HUD (Head Up Display) device. You can have it. The target device 202 may be a device such as an industrial machine, an imaging device, a sound collector, a medical device, a network home appliance, a car (Connected Car), a digital camera, a wearable terminal, or the like. Further, the target device 202 may be a general-purpose information processing device such as a notebook PC, a mobile phone, a smartphone, a tablet terminal, a game machine, a PDA (Personal Digital Assistant), a digital camera, a wearable PC desktop PC, or the like.

例えば、MFPにおけるスキャン機能を実現するソフトウェアのテストを考えた場合、スキャン機能には、例えば、「スキャン to メール機能」、「スキャン to フォルダ機能」、「OCR(Optical Character Recognition)機能」等の様々な機能がある。 For example, when considering a software test that realizes a scan function in an MFP, various scan functions include, for example, “scan to mail function”, “scan to folder function”, and “OCR (Optical Character Recognition) function”. There are various functions.

また、「スキャン to メール機能」にも、例えば、「スキャン条件設定」、「メール宛先設定」等の複数のサブ機能が含まれる。例えば、機能合致性のテストを行う場合、これらの機能仕様に対応するテストケースを作成することが一般的である。 The “scan to mail function” also includes a plurality of sub-functions such as “scan condition setting” and “mail destination setting”. For example, when testing functional conformity, it is common to create test cases corresponding to these functional specifications.

一例として、「スキャン to メール機能」の「スキャン条件設定」のテストケースを作成する場合、様々スキャン条件で、実際にスキャン結果がメール送信されるかどうかをテストする方法が考えられる。このとき、本来テストしたいのは、「スキャン条件」として、「両面指定」、「カラー指定」、「解像度指定」等の設定が、設定通りに動作するかどうかであるが、これらの機能を実行するためには、事前条件として予め実行すべき手順がある。例えば、事前条件には、「メール送信サーバが設定されていること」、「送信先のメールアドレスが登録されていること」等が含まれる。 As an example, when creating a test case of “scan condition setting” of “scan to mail function”, a method of testing whether the scan result is actually sent by mail under various scan conditions can be considered. At this time, what we want to test is whether or not the settings such as "double-sided designation", "color designation", "resolution designation" etc. as "scan conditions" work as set. In order to do so, there is a procedure to be executed in advance as a precondition. For example, the preconditions include "the mail transmission server is set", "the mail address of the transmission destination is registered", and the like.

自動テストの環境においては、これらの事前条件を整える処理も自動で行う必要があるため、本来のテスト対象である「スキャン to メール機能」を実行する前に、例えば、「メール送信サーバの設定」の手順でテストが不合格になることがある。この例では、事前条件とテスト対象との因果関係が比較的明確であるが、大量のテストケースを設計・実行する際には、様々な手順でテストが実行されるので、その因果関係を事前に明確にしておくことは困難である。 In an automatic test environment, it is also necessary to automatically perform the process of adjusting these preconditions. Therefore, before executing the "scan to mail function" that is the original test target, for example, "Setting the mail sending server" The procedure may fail the test. In this example, the causal relationship between the precondition and the test target is relatively clear, but when designing and executing a large number of test cases, the test is executed in various steps, so the causal relationship is It is difficult to keep clear.

このような場合、本発明の各実施形態を適用して、不合格となったテストにおける機能面の特徴と現象面の特徴の両方を加味して、解析すべき優先順位を示すテスト結果を設計者101に提示することで、障害解析を効率化することができる。 In such a case, each embodiment of the present invention is applied to design the test result indicating the priority order to be analyzed, considering both the functional feature and the phenomenon feature in the failed test. By presenting it to the person 101, the failure analysis can be made efficient.

例えば、「スキャン to メール機能」の「スキャン条件設定」のテストケースが100件あって、前回のビルドでは全てのテストに合格していたものとする。また、今回のビルドでは、当該テストケースのうち、30件以上のテストが不合格になったものとする。このような場合、情報処理装置300は、「スキャン条件設定」機能が何かしらのデグレードを起こした可能性があるということを、機能面の特徴として抽出することが考えられる。なお、上記の「30件」は一例であり、機能面の特徴があると判断する第1の閾値は、任意の値に設定可能である。 For example, it is assumed that there are 100 test cases of "scan condition setting" of "scan to mail function", and all the tests passed in the previous build. In this build, it is assumed that 30 or more of the test cases have failed. In such a case, the information processing apparatus 300 may extract a possibility that the "scan condition setting" function has somehow degraded as a functional feature. Note that the above “30 cases” is an example, and the first threshold value for determining that there is a feature in terms of function can be set to any value.

一方で、この30件のテストケースで不合格となった現象を集計し、例えば、30件の全てが「アドレス帳登録」コマンドでエラーが発生しているものとする。このような場合、情報処理装置300は、「アドレス帳登録」コマンドが何かしらのデグレードを起こした可能性があるということを、現象面の特徴として抽出することが考えられる。 On the other hand, it is assumed that the failures in these 30 test cases are tabulated and, for example, all 30 cases have an error in the "register address book" command. In such a case, it is conceivable that the information processing apparatus 300 may extract that the “address book registration” command may have caused some degradation as a phenomenological feature.

また、情報処理装置300は、このような機能面の特徴、及び現象面の特徴が抽出できた場合に、これらの30件の障害をグルーピングして、例えば、「アドレス帳登録コマンドのデグレードの疑い」として設計者に提示する。これにより、より適切な設計者101(例えば、アドレス帳登録コマンドの設計者等)に解析を促すことができるので、障害解析をより効率化することができる。 In addition, when the information processing device 300 can extract such functional features and phenomenon features, these information processing devices 300 group these 30 faults, and, for example, “suspicion of degradation of address book registration command”. To the designer. As a result, a more appropriate designer 101 (for example, the designer of the address book registration command) can be prompted to perform analysis, so that failure analysis can be made more efficient.

なお、上記の例では、テストが機能合致性テストであるものとして説明したが、これに限られない。例えば、ソフトウェアの内部構造がテスト対象であれば、その対象となる構造面での特徴を抽出すれば良い。例えば、状態遷移の網羅テストで障害が検出された場合は、その網羅テストに示す不合格の割合を特徴として抽出すること等が考えられる。 In the above example, the test is described as the function conformance test, but the test is not limited to this. For example, if the internal structure of the software is a test target, it is sufficient to extract the features of the target structural surface. For example, when a failure is detected in the state transition comprehensive test, it is conceivable to extract the failure rate shown in the comprehensive test as a feature.

以上、本発明の各実施形態によれば、ソフトウェアを自動的にテストする情報処理システム100において、同じ障害が原因で複数のテストが不合格になった場合に、不合格の原因となった障害の解析を効率的に行えるようになる。 As described above, according to the embodiments of the present invention, in the information processing system 100 that automatically tests software, when a plurality of tests fail due to the same failure, the failure that causes the failure Can be efficiently analyzed.

<補足>
上記で説明した各実施形態の各機能は、一又は複数の処理回路によって実現することが可能である。ここで、本明細書における「処理回路」とは、電子回路により実装されるプロセッサのようにソフトウェアによって各機能を実行するようプログラミングされたプロセッサや、上記で説明した各機能を実行するよう設計されたASIC(Application Specific Integrated Circuit)、DSP(digital signal processor)、FPGA(field programmable gate array)や従来の回路モジュール等のデバイスを含むものとする。
<Supplement>
Each function of each embodiment described above can be realized by one or a plurality of processing circuits. Here, the “processing circuit” in the present specification is a processor programmed to execute each function by software, such as a processor implemented by an electronic circuit, or designed to execute each function described above. In addition, devices such as an ASIC (Application Specific Integrated Circuit), a DSP (digital signal processor), an FPGA (field programmable gate array), and a conventional circuit module are included.

100 情報処理システム
300 情報処理装置
401 テスト制御部
402 第1の判断部
403 第2の判断部
404 出力部
405 設定受付部
100 Information processing system 300 Information processing device 401 Test control unit 402 First determination unit 403 Second determination unit 404 Output unit 405 Setting reception unit

特開2005−222108号公報JP, 2005-222108, A

Claims (10)

テスト対象となるソフトウェアをテストする情報処理装置であって、
前記ソフトウェアに関する複数のテストの実行を制御するテスト制御部と、
前記複数のテストのうち、不合格になったテストにおける現象面の特徴と機能面の特徴とに基づいて、前記不合格の原因となった障害に関するテスト結果を出力する出力部と、
を有する、情報処理装置。
An information processing device for testing software to be tested,
A test controller that controls the execution of multiple tests for the software;
Among the plurality of tests, based on the characteristics of the phenomenon surface and the characteristics of the function in the failed test, an output unit that outputs a test result related to the failure that caused the failure,
An information processing apparatus having:
前記出力部は、前記現象面の特徴と前記機能面の特徴とに基づいて、前記不合格になったテストをグループ分けして前記テスト結果を出力する、請求項1に記載の情報処理装置。 The information processing apparatus according to claim 1, wherein the output unit divides the failed tests into groups based on the characteristics of the phenomenon surface and the characteristics of the functional surface, and outputs the test results. 前記複数のテストは、所定の機能に関する1つ以上のテスト項目を含み、
前記所定の機能に関する1つ以上のテスト項目のうち、不合格になったテスト項目の数に基づいて、前記不合格になったテストに前記機能面の特徴があるか否かを判断する第1の判断部を有する、請求項1又は2に記載の情報処理装置。
The plurality of tests includes one or more test items related to a predetermined function,
A first determination is made based on the number of failed test items among one or more test items related to the predetermined function, whether or not the failed test has the feature of the functional aspect. The information processing apparatus according to claim 1 or 2, further comprising:
前記複数のテストで用いられる所定のコマンドで発生したエラーの発生回数に基づいて、前記不合格になったテストに前記現象面の特徴があるか否かを判断する第2の判断部を有する、請求項3に記載の情報処理装置。 A second judgment unit for judging whether or not the failed test has a characteristic of the phenomenon surface based on the number of times of errors generated by predetermined commands used in the plurality of tests, The information processing apparatus according to claim 3. 前記出力部は、前記不合格になったテストに前記現象面の特徴と前記機能面の特徴とがある場合、前記現象面の特徴を優先して前記テスト結果を出力する、請求項4に記載の情報処理装置。 The output unit prioritizes the characteristic of the phenomenon surface and outputs the test result when the failed test has the characteristic of the phenomenon surface and the characteristic of the functional surface. Information processing equipment. 前記出力部は、前記不合格になったテストに前記現象面の特徴と前記機能面の特徴とがある場合、前記所定のコマンドに関する前記テスト結果を出力する、請求項4又は5に記載の情報処理装置。 The information according to claim 4 or 5, wherein the output unit outputs the test result related to the predetermined command when the failed test has the characteristic of the phenomenon surface and the characteristic of the functional surface. Processing equipment. 前記出力部は、
前記不合格になったテストに、前記機能面の特徴があり、かつ前記現象面の特徴がない場合、前記所定の機能に関する前記テスト結果を出力し、
前記不合格となったテストに、前記現象面の特徴があり、かつ前記機能面の特徴がない場合、前記所定のコマンドに関する前記テスト結果を出力する、
請求項4乃至6のいずれか一項に記載の情報処理装置。
The output unit is
In the test that has failed, there is a feature of the functional aspect, and if there is no feature of the phenomenon aspect, output the test result for the predetermined function,
If the test that has failed has the characteristic of the phenomenon side and does not have the characteristic of the functional side, the test result regarding the predetermined command is output.
The information processing device according to any one of claims 4 to 6.
前記機能面の特徴があると判断する第1の閾値、又は前記現象面に特徴があると判断する第2の閾値の設定を受け付ける設定受付部を有する、請求項5乃至7のいずれか一項に記載の情報処理装置。 8. The setting accepting unit for accepting a setting of a first threshold value for judging that the function side is characteristic, or a second threshold value for judging that the phenomenon side is characteristic. The information processing device according to 1. テスト対象となるソフトウェアをテストするテスト方法であって、
コンピュータが、
前記ソフトウェアに関する複数のテストの実行を制御する処理と、
前記複数のテストのうち、不合格になったテストにおける現象面の特徴と機能面の特徴とに基づいて、前記不合格の原因となった障害に関するテスト結果を出力する処理と、
を実行する、テスト方法。
A test method for testing the software to be tested,
Computer
A process for controlling the execution of multiple tests on the software;
Of the plurality of tests, based on the characteristics of the phenomenon side and the characteristics of the function in the failed test, a process of outputting a test result related to the failure that caused the failure,
A test method to perform.
テスト対象となるソフトウェアをテストするコンピュータに、
前記ソフトウェアに関する複数のテストの実行を制御する処理と、
前記複数のテストのうち、不合格になったテストにおける現象面の特徴と機能面の特徴とに基づいて、前記不合格の原因となった障害に関するテスト結果を出力する処理と、
を実行させる、テストプログラム。
On the computer that tests the software to be tested,
A process for controlling the execution of multiple tests on the software;
Of the plurality of tests, based on the characteristics of the phenomenon side and the characteristics of the function in the failed test, a process of outputting a test result related to the failure that caused the failure,
A test program that runs.
JP2019016355A 2019-01-31 2019-01-31 Information processing device, test method, and test program Active JP7238439B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019016355A JP7238439B2 (en) 2019-01-31 2019-01-31 Information processing device, test method, and test program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019016355A JP7238439B2 (en) 2019-01-31 2019-01-31 Information processing device, test method, and test program

Publications (2)

Publication Number Publication Date
JP2020123287A true JP2020123287A (en) 2020-08-13
JP7238439B2 JP7238439B2 (en) 2023-03-14

Family

ID=71992785

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019016355A Active JP7238439B2 (en) 2019-01-31 2019-01-31 Information processing device, test method, and test program

Country Status (1)

Country Link
JP (1) JP7238439B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002041332A (en) * 2000-07-27 2002-02-08 Hitachi Software Eng Co Ltd Program quality evaluating method and recording medium
JP2005222108A (en) * 2004-02-03 2005-08-18 Matsushita Electric Ind Co Ltd Bug analysis method and device
JP2010157266A (en) * 2010-04-09 2010-07-15 Toshiba Corp Information processing apparatus, failure sign determination method, and program
JP2011060052A (en) * 2009-09-11 2011-03-24 Mitsubishi Electric Corp Method for executing software test

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002041332A (en) * 2000-07-27 2002-02-08 Hitachi Software Eng Co Ltd Program quality evaluating method and recording medium
JP2005222108A (en) * 2004-02-03 2005-08-18 Matsushita Electric Ind Co Ltd Bug analysis method and device
JP2011060052A (en) * 2009-09-11 2011-03-24 Mitsubishi Electric Corp Method for executing software test
JP2010157266A (en) * 2010-04-09 2010-07-15 Toshiba Corp Information processing apparatus, failure sign determination method, and program

Also Published As

Publication number Publication date
JP7238439B2 (en) 2023-03-14

Similar Documents

Publication Publication Date Title
US20140211021A1 (en) Test system for evaluating mobile device and driving method thereof
CN108959068B (en) Software interface testing method, device and storage medium
US20110131551A1 (en) Graphical user interface input element identification
CN107526676B (en) Cross-system test method and device
US8752027B2 (en) Injecting faults into program for testing software
US9164875B2 (en) Error detection method, information processing circuit, and error detection computer program product
US7359819B2 (en) Evaluation of device driver output
CN110716866B (en) Code quality scanning method, device, computer equipment and storage medium
JP6283096B2 (en) Program test service
US20080120603A1 (en) Automation of keyboard accessibility testing
CN109710479B (en) Processing method, first device and second device
CN114253841A (en) Test script generation method and device and storage medium
US11615016B2 (en) System and method for executing a test case
CN111949510B (en) Test processing method, device, electronic equipment and readable storage medium
JP7238439B2 (en) Information processing device, test method, and test program
JP5181479B2 (en) Fault diagnosis system and fault diagnosis program
JP7279415B2 (en) Information processing device, information processing method, and program
JP6818568B2 (en) Communication device, communication specification difference extraction method and communication specification difference extraction program
US9860393B2 (en) Virtual computer system, non-transitory computer readable medium, and method for virtual computer system
US11847393B2 (en) Computing device and method for developing a system model utilizing a simulation assessment module
JP6916327B1 (en) Derived test equipment, derived test methods, and derived test programs
US8976378B2 (en) Pre-flight system for PDF/VT
JP7363164B2 (en) Information processing device, information processing method, and information processing program
US20190251020A1 (en) System and method for automated software quality assurance testing and visual reporting
CN115599674A (en) Software testing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211021

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220809

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220810

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221011

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: 20230131

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230213

R151 Written notification of patent or utility model registration

Ref document number: 7238439

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151