JP6917753B2 - Test scenario generator, test scenario generation method, and test scenario generation program - Google Patents
Test scenario generator, test scenario generation method, and test scenario generation program Download PDFInfo
- Publication number
- JP6917753B2 JP6917753B2 JP2017074797A JP2017074797A JP6917753B2 JP 6917753 B2 JP6917753 B2 JP 6917753B2 JP 2017074797 A JP2017074797 A JP 2017074797A JP 2017074797 A JP2017074797 A JP 2017074797A JP 6917753 B2 JP6917753 B2 JP 6917753B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- test scenario
- test
- difference
- screen
- 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.)
- Active
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、複数の部品が配置されたグラフィック画面を試験するための試験シナリオデータを生成する試験シナリオ生成装置、試験シナリオ生成方法、および試験シナリオ生成プログラムに関する。 The present invention relates to a test scenario generator for generating test scenario data for testing a graphic screen in which a plurality of parts are arranged, a test scenario generation method, and a test scenario generation program.
設備または施設に設けられた複数の機器の監視および制御を行う監視制御システムは、監視対象の機器の状態に基づいて態様が変化するシンボル部品を含む複数の部品が配置されたグラフィック画面を表示装置に表示する。 A monitoring control system that monitors and controls a plurality of devices installed in a facility or facility displays a graphic screen in which a plurality of components including a symbol component whose mode changes depending on the state of the device to be monitored are arranged. Display on.
かかるグラフィック画面の開発過程において、グラフィック画面が仕様通り表示されるか否かを確認するために、試験シナリオデータが作成され、かかる試験シナリオデータに従ってグラフィック画面の試験である画面試験が実施される。また、グラフィック画面が仕様変更された場合も同様に、画面試験が実施される。 In the process of developing such a graphic screen, test scenario data is created in order to confirm whether or not the graphic screen is displayed according to the specifications, and a screen test, which is a test of the graphic screen, is performed according to the test scenario data. Similarly, when the specifications of the graphic screen are changed, a screen test is carried out in the same manner.
特許文献1には、画面試験において、正解画像と試験時の画像とを比較し、試験結果が真に不良であるのか、仕様変更に伴って不良となっているのかを自動で判定する方法が開示されている。 Patent Document 1 describes a method of comparing a correct image with an image at the time of a test in a screen test and automatically determining whether the test result is truly defective or defective due to a specification change. It is disclosed.
しかしながら、従来の画面試験では、グラフィック画面の仕様変更が発生していても、試験シナリオデータを手動で修正する必要があった。 However, in the conventional screen test, it is necessary to manually correct the test scenario data even if the specifications of the graphic screen are changed.
本発明は、上記に鑑みてなされたものであって、変更があったグラフィック画面の試験シナリオデータを自動で生成することができる試験シナリオ生成装置を得ることを目的とする。 The present invention has been made in view of the above, and an object of the present invention is to obtain a test scenario generator capable of automatically generating test scenario data of a changed graphic screen.
上述した課題を解決し、目的を達成するために、本発明の試験シナリオ生成装置は、差分データ生成部と、試験シナリオ生成部と、試験シナリオデータ編集部とを備える。差分データ生成部は、複数の部品が配置されたグラフィック画面が変更された場合における変更前後のグラフィック画面の差分を示す差分データを生成する。試験シナリオ生成部は、差分データ生成部によって生成された差分データと、予め設定された部品のデフォルトの試験シナリオデータとに基づいて、変更後のグラフィック画面の試験内容を規定する試験シナリオデータを生成する。試験シナリオデータ編集部は、試験シナリオ生成部によって生成された試験シナリオデータの編集を、入力装置への入力操作に基づいて行う。 In order to solve the above-mentioned problems and achieve the object, the test scenario generation device of the present invention includes a difference data generation unit, a test scenario generation unit, and a test scenario data editing unit . Differencing the data generation unit generates the difference data indicating the difference graphic screen before and after the change when the graphic screen in which a plurality of components are disposed is changed. Test scenario generation unit defines the difference component data generated by the difference amount data generating unit, on the basis of the default test scenario data of a preset part article, the graphic test contents of the screen after the change at the next Generate test scenario data. The test scenario data editing unit edits the test scenario data generated by the test scenario generation unit based on the input operation to the input device.
本発明によれば、変更があったグラフィック画面の試験シナリオデータを自動で生成することができる、という効果を奏する。 According to the present invention, there is an effect that the test scenario data of the changed graphic screen can be automatically generated.
以下に、本発明の実施の形態にかかる試験シナリオ生成装置、試験シナリオ生成方法、および試験シナリオ生成プログラムを図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。 Hereinafter, the test scenario generation device, the test scenario generation method, and the test scenario generation program according to the embodiment of the present invention will be described in detail with reference to the drawings. The present invention is not limited to this embodiment.
実施の形態1.
図1は、本発明の実施の形態1にかかる試験シナリオ生成装置の構成例を示す図である。図1に示す試験シナリオ生成装置1は、施設または設備の状態の監視および制御を行う監視制御システムで用いられる画面データを試験するための試験シナリオデータを生成する装置である。監視制御システムにおける監視対象の施設または設備は、例えば、浄水場、発電所、および工場といったプラントであり、監視対象の機器である監視対象機器を1以上含む。
Embodiment 1.
FIG. 1 is a diagram showing a configuration example of a test scenario generator according to the first embodiment of the present invention. The test scenario generation device 1 shown in FIG. 1 is a device that generates test scenario data for testing screen data used in a monitoring control system that monitors and controls the state of a facility or equipment. The facility or equipment to be monitored in the monitoring control system is, for example, a plant such as a water purification plant, a power plant, and a factory, and includes one or more monitored devices which are devices to be monitored.
監視制御システムで用いられる画面データは、監視制御システムで表示される監視画面のデータである。かかる監視画面は、監視対象機器を示すシンボル部品、監視対象機器間を結び付ける線部品、および文字列部品を含む複数の部品が配置されるグラフィック画面である。監視画面に配置される部品のデータは、部品画像のデータおよび1以上の属性データを含む。 The screen data used in the monitoring control system is the data of the monitoring screen displayed in the monitoring control system. Such a monitoring screen is a graphic screen on which a plurality of parts including a symbol component indicating a monitored device, a line component connecting the monitored devices, and a character string component are arranged. The data of the parts arranged on the monitoring screen includes the data of the parts image and the data of one or more attributes.
部品画像のデータは、線画のデータであり、属性データによって線画の大きさ、線画の色、線画の形状、線画内の数値の有無、線画内の文字の大きさ、および線画内の文字の色の少なくとも一つが定義される。 The part image data is line art data, and depending on the attribute data, the size of the line art, the color of the line art, the shape of the line art, the presence or absence of numerical values in the line art, the size of the characters in the line art, and the color of the characters in the line art. At least one of is defined.
なお、部品画像のデータは、線画のデータでなく、色および形状が異なる複数の部品画像のデータを含むデータであってもよい。すなわち、部品画像のデータは、部品画像の大きさ、部品画像の色、部品画像の形状、部品画像内の数値の有無、部品画像内の文字の大きさ、および部品画像内の文字の色の少なくとも一つが属性データによって定義されるデータであればよい。 The data of the component image may not be the data of the line drawing but may be the data including the data of a plurality of component images having different colors and shapes. That is, the data of the part image includes the size of the part image, the color of the part image, the shape of the part image, the presence / absence of a numerical value in the part image, the size of the character in the part image, and the color of the character in the part image. At least one of the data may be defined by the attribute data.
各属性データは、部品の振る舞いを示す属性のデータである。部品の振る舞いは、監視対象機器の信号の状態によって部品画像がどのように動作するかを示すものであり、属性データは、部品画像の大きさ、色、形状、および表示数値の少なくとも一つと監視対象機器の各信号の状態とを関連付けたデータである。監視対象機器の信号は、監視対象からの計装信号、または監視対象への制御信号である。 Each attribute data is attribute data indicating the behavior of the component. The behavior of the part shows how the part image behaves depending on the signal state of the monitored device, and the attribute data is monitored with at least one of the size, color, shape, and display value of the part image. It is the data associated with the state of each signal of the target device. The signal of the monitored device is an instrumentation signal from the monitored target or a control signal to the monitored target.
試験シナリオ生成装置1は、監視画面に配置された各部品のデータに含まれる属性データが仕様通りに設定されているかどうかを自動的に試験する自動試験を行うためのデータであり、監視画面の試験内容を規定するデータを含む。かかる試験シナリオデータは、試験シナリオ生成装置1によって生成される。 The test scenario generator 1 is data for performing an automatic test for automatically testing whether or not the attribute data included in the data of each component arranged on the monitoring screen is set according to the specifications, and is data on the monitoring screen. Includes data defining test content. Such test scenario data is generated by the test scenario generator 1.
試験シナリオ生成装置1は、処理部10と、記憶部20とを備える。処理部10は、画面データ取得部11と、差分データ生成部12と、試験シナリオ生成部13とを備える。記憶部20は、画面データ記憶部21と、差分データ記憶部22と、デフォルト試験シナリオ記憶部23と、試験シナリオ記憶部24とを備える。
The test scenario generation device 1 includes a
以下、図1および図2を参照しつつ実施の形態1にかかる試験シナリオ生成装置1における処理を説明する。図2は、実施の形態1にかかる試験シナリオ生成装置1の処理を説明するための図である。 Hereinafter, the processing in the test scenario generation device 1 according to the first embodiment will be described with reference to FIGS. 1 and 2. FIG. 2 is a diagram for explaining the process of the test scenario generation device 1 according to the first embodiment.
図1に示す画面データ取得部11は、入力装置40から入力される画面データを取得し、取得した画面データを画面データ記憶部21に記憶する。画面データ取得部11は、画面データが更新される毎に、更新された画面データを取得し、取得した画面データを画面データ記憶部21に記憶することができる。
The screen data acquisition unit 11 shown in FIG. 1 acquires screen data input from the
画面データは、監視画面に配置される各部品のデータである部品データを含み、部品データは、部品種別に、部品画像のデータと1以上の属性データとが関連付けられたデータである。また、画面データは、更新履歴を示すバージョンの番号を示すバージョン情報を含み、画面データが更新される毎に新たなバージョンの番号が画面データに付与される。 The screen data includes component data which is data of each component arranged on the monitoring screen, and the component data is data in which the component image data and one or more attribute data are associated with each component type. Further, the screen data includes version information indicating a version number indicating an update history, and a new version number is assigned to the screen data each time the screen data is updated.
ここでは、画面データ記憶部21には、最新の画面データ3と1つ前のバージョンの画面データ4とが記憶されているものとする。以下においては、最新の画面データ3を変更後の画面データ3と記載し、1つ前のバージョンの画面データ4を変更前の画面データ4と記載する。なお、1つ前のバージョンの画面データは、1世代前の画面データと呼ばれることもある。
Here, it is assumed that the screen
差分データ生成部12は、図2に示すように、変更後の画面データ3と変更前の画面データ4とを取得し、変更前後の監視画面の差分を示す差分データ5を生成する。ここで、差分データ5は、変更後の監視画面において、変更前の監視画面から追加された部品を示すデータおよび削除された部品を示すデータと、変更前の監視画面から追加された属性を示すデータおよび削除された属性を示すデータとのうち少なくとも一つを含む。
As shown in FIG. 2, the difference
試験シナリオ生成部13は、図2に示すように、差分データ生成部12によって生成された差分データ5と、デフォルト試験シナリオ記憶部23に記憶された部品のデフォルト試験シナリオデータ6とに基づいて、試験シナリオデータ8,9のいずれかを生成する。
As shown in FIG. 2, the test scenario generation unit 13 is based on the
試験シナリオデータ8,9は、画面試験を自動的に行うための試験シナリオのデータである。試験シナリオデータ8には、変更後の監視画面に含まれる各部品の試験内容のデータが含まれる。試験シナリオデータ9には、変更前の画面データ4と変更後の画面データ3との差分に含まれる各部品の試験内容のデータが含まれる。
The
試験シナリオデータ8によって、変更後の監視画面全体の画面試験を行うことができる。また、試験シナリオデータ9によって、変更後の監視画面のうち、変更前の画面データ4と変更後の画面データ3との差分について、画面試験を行うことができる。以下、試験シナリオデータ8と試験シナリオデータ9の区別を明確にするため、試験シナリオデータ8を全体試験シナリオデータ8と記載し、試験シナリオデータ9を部分試験シナリオデータ9と記載する場合がある。
With the
デフォルト試験シナリオデータ6は、部品単位で予め設定された試験シナリオの部品データである部品のデフォルトデータを含み、さらに、各部品のデフォルトデータは、部品の各属性のデータである属性のデフォルトデータを含む。 The default test scenario data 6 includes the default data of the part which is the part data of the test scenario set in advance for each part, and the default data of each part includes the default data of the attribute which is the data of each attribute of the part. include.
試験シナリオ記憶部24には、変更前の監視画面の試験シナリオデータ7が記憶されており、以下、変更前の監視画面の試験シナリオデータ7を基準試験シナリオデータ7と記載する。 The test scenario storage unit 24 stores the test scenario data 7 of the monitoring screen before the change. Hereinafter, the test scenario data 7 of the monitoring screen before the change will be referred to as the reference test scenario data 7.
まず、試験シナリオ生成部13による全体試験シナリオデータ8の生成について説明する。試験シナリオ生成部13は、差分データ生成部12によって生成された差分データ5が削除対象の部品または属性を含む場合、基準試験シナリオデータ7を試験シナリオ記憶部24から読み出す。そして、試験シナリオ生成部13は、読み出した基準試験シナリオデータ7から削除対象の部品のデータまたは属性のデータを削除し、全体試験シナリオデータ8を生成する。
First, the generation of the overall
また、試験シナリオ生成部13は、差分データ生成部12によって生成された差分データ5が追加対象の部品または属性を含む場合、追加対象の部品のデフォルトデータまたは追加対象の属性のデフォルトデータをデフォルト試験シナリオデータ6から読み出す。
Further, when the
試験シナリオ生成部13は、読み出した部品のデフォルトデータまたは属性のデフォルトデータを基準試験シナリオデータ7に追加し、全体試験シナリオデータ8を生成する。試験シナリオ生成部13は、生成した全体試験シナリオデータ8を試験シナリオ記憶部24に記憶する。試験シナリオ記憶部24に記憶された全体試験シナリオデータ8を用いることで、変更後の監視画面全体の画面試験を行うことができる。
The test scenario generation unit 13 adds the default data of the read parts or the default data of the attributes to the reference test scenario data 7, and generates the overall
次に、試験シナリオ生成部13による部分試験シナリオデータ9の生成について説明する。試験シナリオ生成部13は、差分データ生成部12によって生成された差分データ5が追加対象の部品または属性を含む場合、デフォルト試験シナリオデータ6から追加対象の部品のデフォルトデータまたは追加対象の属性のデフォルトデータをデフォルト試験シナリオ記憶部23から読み出す。試験シナリオ生成部13は、読み出したデフォルトデータを追加対象の部品または属性の試験データとする。以下、部品のデフォルトデータを部品デフォルトデータと記載し、属性のデフォルトデータを属性デフォルトデータと記載する。
Next, the generation of the partial
また、試験シナリオ生成部13は、差分データ5が削除対象の部品または属性を含む場合、削除対象の部品または属性の試験データを生成する。削除対象の部品または属性の試験データには、削除対象の部品または属性を特定するデータが含まれる。
Further, when the
試験シナリオ生成部13は、追加対象の部品または属性の試験データと削除対象の部品または属性の試験データの少なくとも一方を含む部分試験シナリオデータ9を生成し、試験シナリオ記憶部24に記憶する。部分試験シナリオデータ9を用いることで、変更前後での差分について画面試験を行うことができる。
The test scenario generation unit 13 generates partial
以下、試験シナリオ生成部13について、図3〜図12を参照して、さらに詳細に説明する。図3は、変更前の監視画面81の一例を示す図であり、図4は、監視画面81のデータである画面データ4の一例を示す図である。なお、以下においては、部品種別は、同一種別の部品であっても、区別が付くように、部品種別に数字を付す。
Hereinafter, the test scenario generation unit 13 will be described in more detail with reference to FIGS. 3 to 12. FIG. 3 is a diagram showing an example of the
まず、変更前の監視画面81について説明する。図3に示す監視画面81には、文字列ボタンの部品80aと、電磁弁の部品80bと、ポンプの部品80c,80eと、数値ボタン80d,80fとが配置されている。また、部品80b,80c,80eの間には、線部品が配置されている。なお、以下において、監視画面に配置される部品80a〜80fおよび後述する部品80gを総称して部品80と記載する場合がある。
First, a description will be given of the
図4に示すように、変更前の監視画面81のデータである画面データ4は、「部品種別」に、「座標位置」、および1以上の「属性」が関連付けられたデータを含む。
As shown in FIG. 4, the
「部品種別」は、部品の種別を示すデータである。「座標位置」は、部品80の座標位置を示すデータである。「属性」は、部品80の各属性を示すデータである属性データであり、各「属性」には、「状態」と「態様」とが関連付けられたデータが含まれる。 The "part type" is data indicating the type of the part. The "coordinate position" is data indicating the coordinate position of the component 80. The "attribute" is attribute data which is data indicating each attribute of the component 80, and each "attribute" includes data in which the "state" and the "mode" are associated with each other.
「状態」は、監視対象機器の信号の状態を示すデータである。監視対象機器の信号は、監視対象機器が正常状態および異常状態のいずれであるかを示す信号、監視対象機器が重故障状態であることを示す信号、監視対象機器が軽故障状態であることを示す信号、または、数値を表す信号である。 The "state" is data indicating the state of the signal of the monitored device. The signal of the monitored device is a signal indicating whether the monitored device is in a normal state or an abnormal state, a signal indicating that the monitored device is in a serious failure state, and a signal indicating that the monitored device is in a minor failure state. It is a signal indicating or a signal indicating a numerical value.
「態様」は、部品画像の大きさ、色、形状、部品画像内の数値の有無、部品画像内の文字の大きさ、および部品画像内の文字の色の少なくとも一つのデータである。監視対象機器の信号は、上述したように、計装信号、または制御信号である。 The "mode" is at least one data of the size, color, shape of the component image, the presence / absence of a numerical value in the component image, the size of characters in the component image, and the color of the characters in the component image. As described above, the signal of the monitored device is an instrumentation signal or a control signal.
図4に示す例では、部品80aの部品種別「自動運転ボタン」に、座標位置「x1,y1」と、状態「正常状態」および態様「文字列“正常運転中”,黒色」の属性と、状態「異常状態」および態様「文字列“異常状態”,赤色」の属性とが関連付けられている。
In the example shown in FIG. 4, the component type "automatic operation button" of the
状態「正常状態」および態様「文字列“正常運転中”,黒色」の属性は、監視対象機器が正常状態である場合に、部品画像が黒色の文字列「正常運転中」を含むようになる部品画像の振る舞いを示す。また、状態「異常状態」および態様「文字列“異常状態”,赤色」の属性は、監視対象機器が異常状態である場合に、部品画像が赤の文字列「異常状態」を含むようになる部品画像の振る舞いを示す。 The attributes of the state "normal state" and the mode "character string" normal operation ", black" will include the black character string "normal operation" in the part image when the monitored device is in the normal state. Shows the behavior of the part image. In addition, the attributes of the state "abnormal state" and the mode "character string" abnormal state ", red" include the red character string "abnormal state" in the component image when the monitored device is in the abnormal state. Shows the behavior of the part image.
部品80bの部品種別である「電磁弁1」には、座標位置「x2,y2」と、状態「動作状態」および態様「緑色」の属性と、状態「停止状態」および態様「赤色」の属性とが関連付けられている。状態「動作状態」および態様「緑色」の属性は、監視対象機器が動作状態である場合に、部品画像が緑色になる部品画像の振る舞いを示す。状態「停止状態」および態様「赤色」の属性は、監視対象機器が停止状態である場合に、部品画像が赤色になる部品画像の振る舞いを示す。
The "solenoid valve 1", which is the component type of the
部品80cの部品種別である「ポンプ1」には、座標位置「x3,y2」と、状態「動作状態」および態様「緑色」の属性と、状態「停止状態」および態様「赤色」の属性とが関連付けられている。部品種別「ポンプ1」の属性は、部品種別「電磁弁1」の属性と同様の属性である。 The component type "pump 1" of the component 80c includes the coordinate position "x3, y2", the attributes of the state "operating state" and the mode "green", and the attributes of the state "stop state" and the mode "red". Is associated. The attribute of the part type "pump 1" is the same as the attribute of the part type "solenoid valve 1".
部品80dの部品種別である「数値ボタン1」に、座標位置「x3,y3」と、状態「動作状態」および態様「数値表示,緑色」の属性と、状態「異常状態」および態様「数値表示,赤色」の属性とが関連付けられている。
The "numerical value button 1", which is the component type of the
状態「動作状態」および態様「数値表示,緑色」の属性は、監視対象機器が動作状態である場合に、監視対象機器からの信号の大きさに応じた数値が部品画像に緑色で表示される部品画像の振る舞いを示す。状態「異常状態」および態様「数値表示,赤色」の属性は、監視対象機器が異常状態である場合に、監視対象機器からの信号の大きさに応じた数値が部品画像に赤色で表示される部品画像の振る舞いを示す。 For the attributes of the state "operating state" and the mode "numerical display, green", when the monitored device is in the operating state, the numerical value corresponding to the magnitude of the signal from the monitored device is displayed in green on the component image. Shows the behavior of the part image. For the attributes of the state "abnormal state" and the mode "numerical display, red", when the monitored device is in an abnormal state, the numerical value according to the magnitude of the signal from the monitored device is displayed in red on the component image. Shows the behavior of the part image.
部品80eの部品種別である「ポンプ2」も、部品種別「ポンプ1」と同様に、座標位置、および属性が関連付けられ、部品80fの部品種別である「数値ボタン2」も、部品種別「数値ボタン1」と同様に、座標位置、および属性が関連付けられる。
Similar to the part type "pump 1", the part type "
次に、変更後の監視画面82について説明する。図5は、監視画面82の一例を示す図であり、図6は、図5に示す監視画面82のデータである画面データ3の一例を示す図である。
Next, a description will be given monitoring screen 82 after the change. Figure 5 is a diagram showing an example of a monitoring screen 82, FIG. 6 is a diagram showing an example of
図5に示す監視画面82は、図3に示す監視画面81に加え、電磁弁の部品80gが配置され、監視画面81から電磁弁の部品80bが削除されている。かかる監視画面82のデータである画面データ3は、図6に示すように、図4に示す画面データ4に加え、さらに、部品80gの部品種別である「電磁弁2」と、座標位置「x4,y2」と、状態「動作状態」および態様「緑色」の属性と、状態「停止状態」および態様「赤色」の属性とが関連付けられている。また、画面データ3は、図4に示す画面データ4から、部品80bの部品種別である「電磁弁1」の座標位置および属性が削除されている。
In the monitoring screen 8 2 shown in FIG. 5, in addition to the monitoring screen 8 1 shown in FIG. 3, 80 g of the solenoid valve component is arranged, and the
ここで、画面データ3,4が上述した状態であるとする。この場合、差分データ生成部12は、図7に示す差分データ5を生成する。図7は、差分データ5の一例を示す図である。図7に示す差分データ5は、「部品種別」、「座標位置」、「属性の状態」、および「変更内容」を含むデータである。「属性の状態」は、図4に示す画面データ4の「状態」と同じである。「座標位置」は、部品の座標を示すデータである。「変更内容」は、追加を示すデータまたは削除を示すデータである。
Here, it is assumed that the
図7に示す例では、差分データ5は、部品種別「電磁弁1」に、座標位置「x2,y2」と変更内容「削除」とが関連付けられ、部品種別「電磁弁2」に、座標位置「x4,y2」と変更内容「追加」とが関連付けられている。また、部品種別「電磁弁2」に属性の状態「動作状態」および「停止状態」が関連付けられている。
In the example shown in FIG. 7, in the
したがって、図7に示す差分データ5は、座標位置「x2,y2」かつ部品種別「電磁弁1」の部品80bが削除されていることを示す。さらに、図7に示す差分データ5は、部品種別「電磁弁2」の部品80gが座標位置「x4,y2」に追加され、部品種別「電磁弁2」の部品80gについて属性の状態「動作状態」および「停止状態」が追加されていることを示す。なお、差分データ5は、リスト形式のデータであるが、他の形式のデータであってもよい。
Therefore, the
試験シナリオ生成部13は、差分データ生成部12によって生成された差分データ5と、デフォルト試験シナリオ記憶部23に記憶されたデフォルト試験シナリオデータ6とに基づき、全体試験シナリオデータ8または部分試験シナリオデータ9を生成する。
The test scenario generation unit 13 is based on the
図8は、デフォルト試験シナリオデータ6の一例を示す図である。図8に示すように、デフォルト試験シナリオデータ6は、部品種別のデータと属性試験内容のデータとが関連付けられた部品種別単位の部品デフォルトデータを複数含む。属性試験内容のデータは、上述した属性デフォルトデータであり、以下、属性試験内容のデータを属性デフォルトデータと記載する場合がある。 FIG. 8 is a diagram showing an example of default test scenario data 6. As shown in FIG. 8, the default test scenario data 6 includes a plurality of component default data for each component type in which the component type data and the attribute test content data are associated with each other. The data of the attribute test contents is the above-mentioned attribute default data, and hereinafter, the data of the attribute test contents may be described as the attribute default data.
属性デフォルトデータにおける「状態」は、監視対象機器の信号によって監視制御システムによって判定される状態を示すデータであり、属性デフォルトデータにおける「態様」は、「状態」に対応する部品画像の振る舞いの正解を規定するデータである。 The "state" in the attribute default data is data indicating the state determined by the monitoring control system by the signal of the monitored device, and the "mode" in the attribute default data is the correct answer of the behavior of the component image corresponding to the "state". It is the data that defines.
図8に示す例では、デフォルト試験シナリオデータ6には、部品種別「自動運転ボタン」、部品種別「電磁弁」、部品種別「ポンプ」、および部品種別「数値ボタン」の各々の部品デフォルトデータが含まれる。 In the example shown in FIG. 8, the default test scenario data 6 includes the component default data of the component type “automatic operation button”, the component type “solenoid valve”, the component type “pump”, and the component type “numerical button”. included.
部品種別「自動運転ボタン」の部品デフォルトデータには、状態「正常状態」および態様「文字列“正常運転中”で黒色であること」を示す属性デフォルトデータと、状態「異常状態」および態様「文字列“異常状態”で赤色であること」を示す属性デフォルトデータとが関連付けられたデータが含まれる。 The component default data of the component type "automatic operation button" includes the attribute default data indicating the status "normal state" and the mode "character string" normal operation "is black", and the status "abnormal state" and the mode ". Includes data associated with the attribute default data that indicates that the string is "red in abnormal state".
また、部品種別「電磁弁」の部品デフォルトデータには、状態「動作状態」および態様「緑色であること」を示す属性デフォルトデータと、状態「停止状態」および態様「赤色であること」を示す属性デフォルトデータとが含まれる。さらに、部品種別「電磁弁」の部品デフォルトデータには、状態「重故障」および態様「灰色であること」を示す属性デフォルトデータと、状態「軽故障」および態様「橙色であること」を示す属性デフォルトデータと含まれる。 In addition, the component default data of the component type "solenoid valve" includes the attribute default data indicating the state "operating state" and the mode "green", and the state "stop state" and the mode "red". Contains attribute default data. Further, the component default data of the component type "solenoid valve" includes the attribute default data indicating the state "serious failure" and the mode "gray", and the state "minor failure" and the mode "orange". Included with attribute default data.
状態「動作状態」は、監視対象機器が動作状態であることを示す。状態「異常状態」は、監視対象機器が異常状態であることを示す。状態「重故障」は、監視対象機器が重大な故障状態であることを示す。状態「軽故障」は、監視対象機器が軽度な故障状態であることを示す。 The state "operating state" indicates that the monitored device is in the operating state. The state "abnormal state" indicates that the monitored device is in an abnormal state. The state "serious failure" indicates that the monitored device is in a serious failure state. The state "minor failure" indicates that the monitored device is in a minor failure state.
また、部品種別「ポンプ」の部品デフォルトデータには、状態「起動状態」および態様「緑色であること」を示す属性デフォルトデータと、状態「停止状態」および「赤色であること」を示す属性デフォルトデータと、状態「開度」および態様「黒色の数値であること」を示す属性デフォルトデータとが含まれる。さらに、部品種別「ポンプ」の部品デフォルトデータには、状態「重故障」および態様「灰色であること」を示す属性デフォルトデータと、状態「軽故障」および態様「橙色であること」を示す属性デフォルトデータとが含まれる。 In addition, the component default data of the component type "pump" includes the attribute default data indicating the state "started state" and the mode "green" and the attribute default indicating the states "stopped" and "red". Includes data and attribute default data indicating the state "opening" and the aspect "being a black number". Further, the component default data of the component type "pump" includes the attribute default data indicating the state "serious failure" and the mode "gray" and the attribute indicating the state "minor failure" and the mode "orange". Contains default data.
また、部品種別「数値ボタン」の部品デフォルトデータには、状態「動作状態」および「緑色の数値表示であること」の属性試験内容と、状態「異常状態」および「赤色の数値表示であること」の属性試験内容とが含まれる。なお、上述した状態「動作状態」、状態「異常状態」、状態「開度」、状態「重故障」、および状態「軽故障」は、監視対象機器の信号によって監視制御システムによって判定される状態である。 In addition, the component default data of the component type "numerical button" includes the attribute test contents of the status "operating status" and "green numerical display", and the status "abnormal status" and "red numerical display". ”Attribute test contents and are included. The above-mentioned states "operating state", state "abnormal state", state "opening", state "serious failure", and state "minor failure" are determined by the monitoring control system by the signal of the monitored device. Is.
試験シナリオ生成部13は、上述したように、全体試験シナリオデータ8および部分試験シナリオデータ9を生成することができる。まず、全体試験シナリオデータ8の生成処理の例について説明する。
As described above, the test scenario generation unit 13 can generate the overall
試験シナリオ生成部13は、差分データ5に基づき、部品デフォルトデータまたは属性デフォルトデータを、デフォルト試験シナリオ記憶部23から抽出する。試験シナリオ生成部13は、抽出したデータを、試験シナリオ記憶部24から読み出した基準試験シナリオデータ7に追加する。また、試験シナリオ生成部13は、差分データ5に基づき、基準試験シナリオデータ7から部品または属性のデータを削除する。
The test scenario generation unit 13 extracts component default data or attribute default data from the default test
図9は、基準試験シナリオデータ7の一例を示す図である。図9に示すように、基準試験シナリオデータ7は、部品80の座標位置、および属性試験内容が関連付けられた部品単位の部品試験データを複数含む。 FIG. 9 is a diagram showing an example of the reference test scenario data 7. As shown in FIG. 9, the reference test scenario data 7 includes a plurality of component test data for each component in which the coordinate positions of the components 80 and the attribute test contents are associated with each other.
具体的には、基準試験シナリオデータ7には、部品80a〜80fの各々の部品試験データが含まれており、各部品試験データには、属性試験内容を示すデータが含まれる。なお、基準試験シナリオデータ7における属性試験内容には、デフォルト試験シナリオデータ6における属性試験内容と同様に、状態および態様を示すデータが含まれる。属性試験内容は、上述した属性デフォルトデータである。
Specifically, the reference test scenario data 7 includes the component test data of the
試験シナリオ生成部13は、差分データ5が図7に示す状態である場合、部品種別「電磁弁」の部品デフォルトデータに含まれる属性デフォルトデータのうち、差分データ5で示される変更内容が「追加」であるデータを試験シナリオ記憶部24から読み出す。変更内容が「追加」であるデータは、状態「動作状態」を含む属性の属性デフォルトデータと、状態「停止状態」を含む属性の属性デフォルトデータである。
When the
試験シナリオ生成部13は、試験シナリオ記憶部24から読み出したデータを基準試験シナリオデータ7に追加し、差分データ5で示される変更内容が「削除」である部品種別「電磁弁1」の属性データを基準試験シナリオデータ7から削除することで、全体試験シナリオデータ8を生成する。
The test scenario generation unit 13 adds the data read from the test scenario storage unit 24 to the reference test scenario data 7, and the attribute data of the component type “solenoid valve 1” whose change content indicated by the
図10は、全体試験シナリオデータ8の一例を示す図である。図10に示すように、全体試験シナリオデータ8は、基準試験シナリオデータ7における部品80a,80c〜80fの部品試験データに加え、部品80gの部品試験データが含まれ、また、部品80bの部品試験データが削除されている。
FIG. 10 is a diagram showing an example of the overall
部品80gの部品試験データには、座標位置「x4,y2」のデータと、状態「動作状態」および「緑色であること」の属性試験内容のデータと、状態「異常状態」および「赤色であること」の属性試験内容のデータとが含まれる。
The component test data of the
座標位置「x4,y2」のデータは、画面データ3から取得されるデータであり、状態「動作状態」および「緑色であること」の属性試験内容のデータと、状態「停止状態」および「赤色であること」の属性試験内容のデータは、デフォルト試験シナリオデータ6から取得されるデータである。
The data of the coordinate position "x4, y2" is the data acquired from the
このように、試験シナリオ生成部13は、差分データ5に追加する属性を示すデータが含まれる場合、試験シナリオ記憶部24から読み出した基準試験シナリオデータ7に追加対象の属性データを追加する。また、試験シナリオ生成部13は、差分データ5に削除する部品80または属性を示すデータが含まれる場合には、試験シナリオ記憶部24から読み出した基準試験シナリオデータ7から削除対象の部品データまたは属性データを削除する。
In this way, when the test scenario generation unit 13 includes data indicating the attributes to be added to the
例えば、差分データ5が状態「重故障」および状態「軽故障」を含む属性のデータの追加を示すデータであるとする。この場合、試験シナリオ生成部13は、試験シナリオ記憶部24から読み出した基準試験シナリオデータ7に、状態「重故障」および態様「灰色であること」の属性試験内容を示すデータと、状態「軽故障」および態様「橙色であること」の属性試験内容を示すデータとを追加する。
For example, it is assumed that the
試験シナリオ生成部13は、差分データ生成部12によって生成された差分データ5に基づいて、基準試験シナリオデータ7から変更があった部分のデータを、基準試験シナリオデータ7から変更がない部分のデータと区別可能に全体試験シナリオデータ8に含めることができる。
Based on the
図11は、全体試験シナリオデータ8の他の例を示す図である。図11に示すように、全体試験シナリオデータ8は、変更前の監視画面81からの変更内容を示すデータを含む。図11に示す例では、座標位置「x2,y2」の部品80bが削除されたことを示すデータと、座標位置「x4,y2」の部品80gが追加されたことを示すデータとを含む。
FIG. 11 is a diagram showing another example of the overall
したがって、全体試験シナリオデータ8に含まれる変更内容を示すデータにより、基準試験シナリオデータ7から変更があった部分のデータと基準試験シナリオデータ7から変更がない部分のデータとを区別することができる。そして、変更内容「追加」,「削除」を示すデータによって属性試験内容に強調表示を施したりマーキングしたりして不図示の表示装置に表示することが可能となる。
Therefore, it is possible to distinguish between the data of the portion changed from the reference test scenario data 7 and the data of the portion not changed from the reference test scenario data 7 by the data indicating the changed contents included in the overall
このように、試験シナリオ生成部13は、差分データ5、デフォルト試験シナリオデータ6、および基準試験シナリオデータ7に基づいて、差分データ5で規定される部品80または属性を基準試験シナリオデータ7へ追加または削除することで、全体試験シナリオデータ8を生成することができる。
In this way, the test scenario generation unit 13 adds the component 80 or the attribute defined in the
次に、部分試験シナリオデータ9の生成処理の例について説明する。試験シナリオ生成部13は、差分データ生成部12によって生成された図7に示す差分データ5のうち、変更内容が「削除」に設定されている部品種別「電磁弁1」に変更内容「削除」を関連付けたデータを削除対象の部品80の試験データとして生成する。
Next, an example of the generation process of the partial
また、試験シナリオ生成部13は、差分データ生成部12によって生成された図7に示す差分データ5のうち、変更内容が「追加」に設定されている部品種別「電磁弁2」における属性の状態「動作状態」および「停止状態」に変更内容「追加」を関連付けたデータを追加対象の部品80の試験データとして生成する。
Further, the test scenario generation unit 13 has the attribute state in the component type “
試験シナリオ生成部13は、追加対象の部品80または属性の試験データと削除対象の部品80または属性の試験データとを含む部分試験シナリオデータ9を生成する。図12は、部分試験シナリオデータ9の一例を示す図である。
The test scenario generation unit 13 generates partial
図12に示す部分試験シナリオデータ9は、座標位置、属性試験内容、および変更内容が関連付けられたデータを含む。具体的には、部分試験シナリオデータ9は、座標位置「x2,y2」に、変更内容「削除」が関連付けられたデータを含む。また、部分試験シナリオデータ9は、座標位置「x4,y2」に、状態「動作状態」および態様「緑色であること」を示す属性試験内容と、状態「停止状態」および態様「赤色であること」を示す属性試験内容と、変更内容「追加」,「追加」とが関連付けられたデータを含む。
The partial
かかる部分試験シナリオデータ9に基づき、変更前後の監視画面81,82の差分について変更後の監視画面82の画面試験を行うことができる。すなわち、変更後の監視画面82の変更前の監視画面81からの変更点についてのみ、画面試験を行うことができる。
Based on the partial
なお、上述した例では、試験シナリオデータ8,9は、監視画面82に含まれる部品の各属性の状態について試験内容を規定するデータであるが、試験シナリオ生成部13は、属性の状態毎の全体試験シナリオデータ8または部分試験シナリオデータ9を生成することもできる。
In the example described above, the
具体的には、試験シナリオ生成部13は、属性の状態「動作状態」、「停止状態」、「重故障」、「軽故障」、および「開度」の各々について全体試験シナリオデータ8または部分試験シナリオデータ9を生成することができる。これにより、属性の状態毎に画面試験を行うことが可能になり、属性の状態毎に一度に複数の部品の画面試験を行うことで、部品毎に複数の属性の状態の各々について画面試験を行う場合に比べ、画面試験にかかる時間を短縮することができる。
Specifically, the test scenario generation unit 13 has the overall
次に、上述した処理部10の処理を、フローチャートを用いて説明する。図13は、実施の形態1にかかる処理部10の処理の一例を示すフローチャートであり、かかる処理は処理部10によって繰り返し実行される。
Next, the processing of the
図13に示すように、処理部10の差分データ生成部12は、画面データ記憶部21から、変更前の画面データ4を取得し(ステップS11)、さらに、画面データ記憶部21から、変更後の画面データ3を取得する(ステップS12)。
As shown in FIG. 13, the difference
次に、差分データ生成部12は、変更前の画面データ4と変更後の画面データ3との差分、すなわち、変更前後の監視画面81,82の差分を示す差分データ5を生成する(ステップS13)。
Then, the
処理部10の試験シナリオ生成部13は、試験シナリオ記憶部24から基準試験シナリオデータ7を取得する(ステップS14)。そして、試験シナリオ生成部13は、基準試験シナリオデータ7とデフォルト試験シナリオデータ6とに基づいて、変更後の監視画面の試験シナリオデータ8,9を生成する試験シナリオ生成処理を実行する(ステップS15)。
The test scenario generation unit 13 of the
図14は、図13に示すステップS15の試験シナリオ生成処理の一例を示すフローチャートである。図14に示す試験シナリオ生成処理は、全体試験シナリオデータ8を生成する処理である。
FIG. 14 is a flowchart showing an example of the test scenario generation process of step S15 shown in FIG. The test scenario generation process shown in FIG. 14 is a process for generating the overall
図14に示すように、試験シナリオ生成部13は、差分データ5に追加対象の部品または属性を示すデータがあるか否かを判定する(ステップS21)。試験シナリオ生成部13は、差分データ5に追加対象の部品または属性を示すデータがあると判定した場合(ステップS21:Yes)、差分データ5に基づき、デフォルト試験シナリオデータ6から追加対象の部品または属性を示すデフォルトデータを追加対象のデフォルトデータとして取得する(ステップS22)。
As shown in FIG. 14, the test scenario generation unit 13 determines whether or not the
試験シナリオ生成部13は、ステップS14で取得した基準試験シナリオデータ7に、ステップS22で取得した追加対象のデフォルトデータを追加する(ステップS23)。 The test scenario generation unit 13 adds the default data of the addition target acquired in step S22 to the reference test scenario data 7 acquired in step S14 (step S23).
試験シナリオ生成部13は、ステップS23の処理が終了した場合、または、差分データ5に追加対象の部品または属性を示すデータがないと判定した場合(ステップS21:No)、差分データ5に削除対象の部品または属性を示すデータがあるか否かを判定する(ステップS24)。
When the process of step S23 is completed, or when it is determined that the
試験シナリオ生成部13は、差分データ5に削除対象の部品または属性を示すデータがあると判定した場合(ステップS24:Yes)、削除対象の部品または属性を示すデータを、ステップS14で取得した基準試験シナリオデータ7から削除する(ステップS25)。
When the test scenario generation unit 13 determines that the
試験シナリオ生成部13は、ステップS25の処理が終了した場合、または、差分データ5に削除対象の部品または属性を示すデータがないと判定した場合(ステップS24:No)、ステップS23,S25の処理による基準試験シナリオデータ7の変更後のデータを、全体試験シナリオデータ8として試験シナリオ記憶部24に記憶する(ステップS26)。
When the process of step S25 is completed, or when it is determined that the
図15は、図13に示すステップS15の試験シナリオ生成処理の他の例を示すフローチャートである。図15に示す試験シナリオ生成処理は、部分試験シナリオデータ9を生成する処理である。
FIG. 15 is a flowchart showing another example of the test scenario generation process of step S15 shown in FIG. The test scenario generation process shown in FIG. 15 is a process for generating partial
図15に示すように、試験シナリオ生成部13は、差分データ5に追加対象の部品または属性を示すデータがあるか否かを判定する(ステップS31)。試験シナリオ生成部13は、差分データ5に追加対象の部品または属性を示すデータがあると判定した場合(ステップS31:Yes)、差分データ5に基づき、デフォルト試験シナリオデータ6から追加対象の部品または属性を示すデフォルトデータを取得し、追加対象の部品または属性の試験データを生成する(ステップS32)。
As shown in FIG. 15, the test scenario generation unit 13 determines whether or not the
試験シナリオ生成部13は、ステップS32の処理が終了した場合、または、差分データ5に追加対象の部品または属性を示すデータがないと判定した場合(ステップS31:No)、差分データ5に削除対象の部品または属性を示すデータがあるか否かを判定する(ステップS33)。
When the process of step S32 is completed, or when it is determined that the
試験シナリオ生成部13は、差分データ5に削除対象の部品または属性を示すデータがあると判定した場合(ステップS33:Yes)、差分データ5に基づき、削除対象の部品または属性の試験データを生成する(ステップS34)。
When the test scenario generation unit 13 determines that the
試験シナリオ生成部13は、ステップS34の処理が終了した場合、または、差分データ5に削除対象の部品または属性を示すデータがないと判定した場合(ステップS33:No)、生成した試験データに基づき部分試験シナリオデータ9を生成し、試験シナリオ記憶部24に記憶する(ステップS35)。
When the process of step S34 is completed, or when it is determined that the
図16は、実施の形態1にかかる試験シナリオ生成装置1のハードウェア構成の一例を示す図である。図16に示すように、試験シナリオ生成装置1は、プロセッサ101と、メモリ102と、HDD103と、インタフェース回路104とを備えるコンピュータである。プロセッサ101、メモリ102、HDD103、およびインタフェース回路104は、バス105によって互いにデータの送受信が可能である。記憶部20は、メモリ102およびHDD103によって実現される。
FIG. 16 is a diagram showing an example of the hardware configuration of the test scenario generation device 1 according to the first embodiment. As shown in FIG. 16, the test scenario generator 1 is a computer including a
プロセッサ101は、HDD103に記憶されたOSおよび処理プログラムを読み出して実行することによって、画面データ取得部11、差分データ生成部12、および試験シナリオ生成部13の機能を実行する。なお、プロセッサ101は、磁気ディスク、USB(Universal Serial Bus)メモリ、光ディスク、コンパクトディスク、およびDVD(Digital Versatile Disc)のうち一つ以上の記憶媒体から不図示のインタフェースを介してOSおよび処理プログラムを読み出しHDD103に記憶して実行することもできる。
The
プロセッサ101は、処理回路の一例であり、CPU,DSP(Digital Signal Processer)、およびシステムLSI(Large Scale Integration)のうち一つ以上を含む。メモリ102は、プロセッサ101の作業領域として用いられる記憶領域であり、RAM(Random Access Memory)に代表される不揮発性または揮発性の半導体メモリである。
The
以上のように、実施の形態1にかかる試験シナリオ生成装置1は、差分データ生成部12と、試験シナリオ生成部13とを備える。差分データ生成部12は、複数の部品80が配置されたグラフィック画面である監視画面81が変更された場合における変更前後の監視画面81,82の差分を示す差分データ5を生成する。試験シナリオ生成部13は、差分データ生成部12によって生成された差分データ5と、予め設定された部品80のデフォルトの試験シナリオデータであるデフォルト試験シナリオデータ6とに基づいて、変更後のグラフィック画面である監視画面82の試験シナリオのデータである試験シナリオデータ8,9を生成する。
As described above, the test scenario generation device 1 according to the first embodiment includes a difference
したがって、変更があったグラフィック画面である監視画面82の試験シナリオデータ8,9を自動で生成することができ、試験シナリオデータ8,9を手動で作成する場合に比べ、画面試験における作業者の手間を削減することができる。また、変更前後の監視画面81,82の差分から試験シナリオデータ8,9を生成することから、属性試験項目の追加および削除の漏れを抑制することができ、効率的に画面試験を行うことができる。さらに、デフォルト試験シナリオデータ6から試験内容の追加を行うことができることから、デフォルト試験シナリオデータ6を使用される頻度が高い属性試験内容とすることで、完成度を向上させた試験シナリオデータ8,9を作成することが可能となる。
Therefore, it is possible to generate a
また、差分データ生成部12は、変更前の監視画面81に含まれる部品の属性を示す情報と変更後の監視画面82に含まれる部品の属性を示す情報との差分を含むデータを差分データ5として生成する。試験シナリオ生成部13は、変更後の監視画面82の試験シナリオとして、監視画面82における部品の属性を試験する試験シナリオデータ8,9を生成する。したがって、監視画面82において変更があった部品の属性を試験することができる試験シナリオデータ8,9を自動で生成することができる。
Further, the
また、差分データ生成部12は、変更前の監視画面81の画像と変更後の監視画面82の画像との差分を含むデータを差分データ5として生成する。試験シナリオ生成部13は、変更後の監視画面82の試験シナリオデータとして、変更後の監視画面82における画像を試験する試験シナリオデータ8,9を生成する。したがって、監視画面82において変更があった部品画像および背景画像を試験することができる試験シナリオデータ8,9を自動で生成することができる。
Further, the
また、試験シナリオ生成部13は、差分データ5と、部品のデフォルトの試験シナリオデータであるデフォルト試験シナリオデータ6とに基づいて、変更前の監視画面81の試験シナリオデータを修正して、変更後の監視画面82の試験シナリオデータ8を生成する。したがって、変更後の監視画面82の全体の試験を行うことができる試験シナリオデータ8を生成することができ、変更された部分と変更されていない部分との関係を含めて画面試験を行うことができる。
Further, the test scenario generation unit 13 includes a
試験シナリオ生成部13は、変更後の監視画面82の試験シナリオデータに含まれる複数の試験データのうち、差分の試験データを、差分以外の試験データと区別可能に変更後の監視画面82の試験シナリオデータ8に含める。したがって、試験シナリオデータ8において、基準試験シナリオデータ7からの変更箇所が容易に把握でき、試験シナリオデータ8の影響範囲を容易に抽出することができる。したがって、試験シナリオの変更漏れを防止することができ、また、試験シナリオの修正も容易に行うことができる。
Test scenario generation unit 13, among the plurality of test data included in the
また、試験シナリオ生成部13は、差分データ5と、デフォルト試験シナリオデータ6とに基づいて、変更前後の監視画面81,82の差分についての試験シナリオデータを変更後の監視画面82の試験シナリオデータ9として生成する。したがって、変更部分のみを試験することができ、画面試験にかかる時間を低減することができ、効率的な画面試験を行うことができる。
Further, the test scenario generation unit 13 changes the test scenario data for the differences between the monitoring screens 8 1 and 8 2 before and after the change based on the
実施の形態2.
実施の形態2では、変更前後の監視画面81,82の属性の差分を示すデータである差分データ5に加え、さらに、変更前の監視画面81,82の画像の差分を示すデータに基づいて、試験シナリオデータを生成する点で、実施の形態1と異なる。以下においては、実施の形態1と同様の機能を有する構成要素については同一符号を付して説明を省略し、実施の形態1の試験シナリオ生成装置1から追加される点を中心に説明する。
In the second embodiment, in addition to the
図17は、実施の形態2にかかる試験シナリオ生成装置1Aの構成例を示す図である。図17に示す試験シナリオ生成装置1Aは、画面データ取得部11と、差分データ生成部12Aと、試験シナリオ生成部13Aとを備える。また、記憶部20Aは、画面データ記憶部21Aと、差分データ記憶部22Aと、デフォルト試験シナリオ記憶部23Aと、試験シナリオ記憶部24Aとを備える。
FIG. 17 is a diagram showing a configuration example of the test scenario generation device 1A according to the second embodiment. The test scenario generation device 1A shown in FIG. 17 includes a screen data acquisition unit 11, a difference
画面データ記憶部21Aに記憶される画面データ3,4には、監視画面81,82の部品データに加え、監視画面81,82の画像データを含む。監視画面81,82の画像データは、例えば、監視画面81,82のスクリーンショットのデータである。差分データ記憶部22Aは、差分データ5に加え、差分データ5Aを記憶することができる。試験シナリオ記憶部24Aは、基準試験シナリオデータ7および試験シナリオデータ8,9に加え、基準試験シナリオデータ7Aおよび試験シナリオデータ8A,9Aを記憶することができる。
The
実施の形態2にかかる試験シナリオ生成装置1Aにおいては、試験シナリオデータ8,8Aまたは試験シナリオデータ9,9Aが変更後の監視画面82の試験シナリオのデータであるが、試験シナリオ生成装置1Aは、試験シナリオデータ8A,9Aのみを生成することもできる。
In the test scenario generation apparatus 1A according to the second embodiment, although the
基準試験シナリオデータ7Aは、変更前の監視画面81の部品画像および背景画像を試験するためのデータであり、変更前の監視画面81に含まれる各部品の属性を試験するための基準試験シナリオデータ7とは異なるデータである。 Reference test scenario data 7A is a data for testing the monitoring screen 81 of the part image and the background image before the change, the reference test for test the attributes of each component included in the monitoring screen 81 before the change This data is different from the scenario data 7.
図18は、基準試験シナリオデータ7Aの一例を示す図である。図18に示す基準試験シナリオデータ7Aは、部品画像または背景画像の座標位置と、部品画像または背景画像を関連付けたデータを含む。基準試験シナリオデータ7Aは、座標位置「x1,y1」と画像「画像A」とが関連付けられたデータ、座標位置「x2,y2」と画像「画像B」とが関連付けられたデータ、および座標位置「x3,y2」と画像「画像C」とが関連付けられたデータを含む。 FIG. 18 is a diagram showing an example of the reference test scenario data 7A. The reference test scenario data 7A shown in FIG. 18 includes data in which the coordinate position of the component image or background image is associated with the component image or background image. The reference test scenario data 7A includes data in which the coordinate position “x1, y1” is associated with the image “image A”, data in which the coordinate position “x2, y2” is associated with the image “image B”, and the coordinate position. Includes data associated with "x3, y2" and image "image C".
また、基準試験シナリオデータ7Aは、座標位置「x3,y3」と画像「画像D」とが関連付けられたデータ、座標位置「x3,y4」と画像「画像C」とが関連付けられたデータ、および座標位置「x3,y5」と画像「画像D」とが関連付けられたデータを含む。 Further, the reference test scenario data 7A includes data in which the coordinate position "x3, y3" is associated with the image "image D", data in which the coordinate position "x3, y4" is associated with the image "image C", and data in which the coordinate position "x3, y4" is associated with the image "image C". Includes data associated with the coordinate position "x3, y5" and the image "image D".
差分データ生成部12Aは、差分データ生成部12の処理に加え、さらに、変更前の監視画面81の画像データと変更前の監視画面82の画像データとを取得し、変更前後の監視画面の画像の差分を示す差分データ5Aを生成する。ここで、差分データ5Aは、変更後の監視画面82において、変更前の監視画面81から追加された画像のデータと、変更前の監視画面81から削除された画像のデータのうちの少なくとも一つを含む。
The difference
図19は、差分データ5Aの一例を示す図である。図19に示す差分データ5Aは、座標位置「x0〜xn,y0〜yn」、画像情報「画像情報N」、および変更内容「追加」を含むデータ、および座標位置「x2,y2」、画像情報「画像情報B」、および変更内容「削除」を含むデータを含む。また、差分データ5Aは、座標位置「x4,y2」、画像情報「画像情報B」、および変更内容「追加」を含むデータを含む。
FIG. 19 is a diagram showing an example of the
試験シナリオ生成部13Aは、差分データ生成部12Aによって生成された差分データ5Aと、デフォルト試験シナリオ記憶部23Aに記憶されたデフォルト試験シナリオデータ6Aとに基づき、デフォルト試験シナリオデータ6Aに含まれる画像のうち差分データ5Aに含まれる画像情報と一致する画像を判定する。
The test
図20は、デフォルト試験シナリオデータ6Aの一例を示す図である。図20に示すデフォルト試験シナリオデータ6Aは、種別を示すデータと画像を示すデータとを含む。デフォルト試験シナリオデータ6Aは、図20に示す例では、種別「自動運転ボタン」および画像「画像A」を含むデータと、種別「電磁弁」および画像「画像B」を含むデータと、種別「ポンプ」および画像「画像C」を含むデータと、種別「数値ボタン」および画像「画像D」を含むデータとを含む。なお、図示していないが、デフォルト試験シナリオデータ6Aには、種別「背景画像」と画像「画像N」を含むデータが含まれる。
FIG. 20 is a diagram showing an example of default
試験シナリオ生成部13Aは、差分データ5Aに含まれる画像情報と一致する画像がある場合、差分データ5Aに含まれる画像情報と一致する画像をデフォルト試験シナリオデータ6Aから抽出する。試験シナリオ生成部13Aは、デフォルト試験シナリオデータ6Aから抽出した画像と差分データ5Aの座標位置とを、試験シナリオ記憶部24Aから読み出した基準試験シナリオデータ7Aに追加する。
When there is an image that matches the image information included in the
ここで、図19に示す差分データ5Aの画像情報Bが図20に示す画像「画像B」と一致すると仮定する。この場合、試験シナリオ生成部13Aは、デフォルト試験シナリオデータ6Aから画像「画像B」を取得し、かかる画像「画像B」のデータを差分データ5Aに含まれる画像情報Bの座標位置「x4,y2」と関連付けて、試験シナリオ記憶部24Aから読み出した基準試験シナリオデータ7Aに追加する。
Here, it is assumed that the image information B of the
また、試験シナリオ生成部13Aは、差分データ5Aに背景画像が含まれる場合、差分データ5Aに含まれる背景画像を、試験シナリオ記憶部24Aから読み出した基準試験シナリオデータ7Aに追加することができる。例えば、図19に示す差分データ5Aの画像情報Aは、背景画像であり、試験シナリオ生成部13Aは、画像情報Nと、座標位置「x0〜xn,y0〜yn」とを含むデータを基準試験シナリオデータ7Aに追加することができる。
Further, when the
このように、試験シナリオ生成部13Aは、変更前の監視画面81の画像データと変更後の監視画面82の画像データとの差分に含まれる画像を、試験シナリオ記憶部24Aから読み出した基準試験シナリオデータ7Aへ追加または基準試験シナリオデータ7Aから削除することで、試験シナリオデータ8Aを生成することができる。試験シナリオデータ8Aは、変更後の監視画面全体の画面試験を行う試験シナリオデータである。
Thus, the test
図21は、変更後の監視画面82の試験シナリオデータ8Aの一例を示す図である。図21に示す試験シナリオデータ8Aは、基準試験シナリオデータ7Aに含まれるデータに加え、座標位置「x0〜xn,y0〜yn」と画像「画像N」とが関連付けられたデータ、および座標位置「x4,y2」と画像「画像B」とが関連付けられたデータが含まれる。画像「画像N」は、画像情報「画像情報N」と同じである。また、試験シナリオデータ8Aでは、試験シナリオデータ7Aから座標位置「x2,y2」と画像「画像B」とが関連付けられたデータが削除されている。
Figure 21 is a diagram showing an example of a
なお、上述した例では、試験シナリオデータ8Aは、変更前の監視画面81からの変更内容を示すデータは含まれないが、かかる例に限定されない。試験シナリオ生成部13Aは、図11に示す全体試験シナリオデータ8と同様に、変更前の監視画面81からの変更内容を示すデータを試験シナリオデータ8Aに含めることができる。
In the example described above, the
また、試験シナリオ生成部13Aは、図12に示す部分試験シナリオデータ9と同様に、変更後の監視画面のうち、変更前の画面データ4と変更後の画面データ3との差分について、画面試験を行う試験シナリオデータ9Aを作成することができる。この場合も、試験シナリオ生成部13Aは、図12に示す部分試験シナリオデータ9と同様に、変更前の監視画面81からの変更内容を示すデータを含めることができる。
Further, the test
次に、上述した処理部10Aの処理を、フローチャートを用いて説明する。図22は、実施の形態2にかかる処理部10Aの処理の一例を示すフローチャートであり、図14に示すステップS21の処理の前、または、ステップS25の処理とステップS26の処理との間に行われる処理である。図22に示す試験シナリオ生成処理は、全体試験シナリオデータ8Aを生成する処理である。なお、実施の形態2にかかる処理部10Aの処理は、図13に示すステップS13,S14の処理を除き、処理部10の処理と同じ処理を含む。
Next, the processing of the
試験シナリオ生成部13Aは、図13に示すステップS13の処理において、差分データ5に加え、変更前後の監視画面81,82の画像の差分を示す差分データ5Aを生成する。また、試験シナリオ生成部13Aは、図13に示すステップS14の処理において、試験シナリオ記憶部24Aから、基準試験シナリオデータ7に加え、基準試験シナリオデータ7Aを取得する。
Test
試験シナリオ生成部13Aは、図22に示すように、差分データ5Aに追加対象の画像を示すデータがあるか否かを判定する(ステップS41)。試験シナリオ生成部13Aは、差分データ5Aに追加対象の画像を示すデータがあると判定した場合(ステップS41:Yes)、差分データ5Aに基づき、追加対象の画像と一致する画像のデータをデフォルト試験シナリオデータ6Aから取得する(ステップS42)。
As shown in FIG. 22, the test
試験シナリオ生成部13Aは、ステップS42で取得した画像のデータを、ステップS14で取得した基準試験シナリオデータ7Aに追加する(ステップS43)。
The test
試験シナリオ生成部13Aは、ステップS43の処理が終了した場合、または、差分データ5Aに追加対象の画像を示すデータがないと判定した場合(ステップS41:No)、差分データ5Aに削除対象の画像を示すデータがあるか否かを判定する(ステップS44)。試験シナリオ生成部13Aは、差分データ5Aに削除対象の画像を示すデータがあると判定した場合(ステップS44:Yes)、削除対象の画像を、ステップS14で取得した基準試験シナリオデータ7Aから削除する(ステップS45)。
When the process of step S43 is completed, or when the test
試験シナリオ生成部13Aは、ステップS45の処理が終了した場合、または、差分データ5Aに削除対象の画像を示すデータがないと判定した場合(ステップS44:No)、ステップS43,S45の処理による基準試験シナリオデータ7Aの変更後のデータを、全体試験シナリオデータ8Aとして試験シナリオ記憶部24に記憶する(ステップS46)。
When the test
図23は、実施の形態2にかかる処理部10Aの処理の他の例を示すフローチャートであり、図14に示すステップS21の処理の前、または、ステップS25の処理とステップS26の処理との間に行われる処理である。図23に示す試験シナリオ生成処理は、部分試験シナリオデータ9Aを生成する処理である。なお、部分試験シナリオデータ9を生成する処理では、図13に示すステップS14の処理は行われない。
FIG. 23 is a flowchart showing another example of the processing of the
図23に示すように、試験シナリオ生成部13Aは、差分データ5Aに追加対象の画像を示すデータがあるか否かを判定する(ステップS51)。試験シナリオ生成部13Aは、差分データ5Aに追加対象の画像を示すデータがあると判定した場合(ステップS51:Yes)、差分データ5Aに基づき、デフォルト試験シナリオデータ6Aから追加対象の画像と一致する画像のデフォルトデータを取得し、追加対象の画像の試験データを生成する(ステップS52)。
As shown in FIG. 23, the test
試験シナリオ生成部13Aは、ステップS52の処理が終了した場合、または、差分データ5Aに追加対象の画像を示すデータがないと判定した場合(ステップS51:No)、差分データ5Aに削除対象の画像を示すデータがあるか否かを判定する(ステップS53)。
When the process of step S52 is completed, or when the test
試験シナリオ生成部13Aは、差分データ5Aに削除対象の画像を示すデータがあると判定した場合(ステップS53:Yes)、差分データ5Aに基づき、削除対象の画像の試験データを生成する(ステップS54)。
When the test
試験シナリオ生成部13Aは、ステップS54の処理が終了した場合、または、差分データ5Aに削除対象の画像を示すデータがないと判定した場合(ステップS53:No)、ステップS52,S54の少なくともいずれかの処理で生成した試験データに基づき部分試験シナリオデータ9Aを生成し、試験シナリオ記憶部24Aに記憶する(ステップS55)。
When the process of step S54 is completed, or when it is determined that there is no data indicating the image to be deleted in the
なお、試験シナリオ生成部13Aは、差分データ5に追加対象の部品を示すデータがある場合、画面データ3から追加対象の部品の座標位置に関連付けられた部品種別のデータを取得し、取得した部品種別のデータと一致する部品種別に関連付けられた部品画像をデフォルト試験シナリオデータ6Aから取得することができる。試験シナリオ生成部13Aは、取得した部品画像のデータを、試験シナリオ記憶部24Aから取得した基準試験シナリオデータ7Aに追加することができる。これにより、差分データ5Aよりも差分データ5を優先して試験シナリオデータ8Aを生成することができる。
When the
例えば、差分データ5に含まれる追加対象の部品の座標位置が「x3,y4」であり、かつ、画面データ3において座標位置「x3,y4」に関連付けられた部品種別が「ポンプ2」であるとする。この場合、試験シナリオ生成部13Aは、デフォルト試験シナリオデータ6における部品種別「ポンプ」に関連付けられた部品画像「画像C」を、試験シナリオ記憶部24Aから取得した基準試験シナリオデータ7Aに追加することができる。これにより、差分データ5Aを用いることなく、試験シナリオデータ8Aを生成することができる。
For example, the coordinate position of the component to be added included in the
また、試験シナリオ生成部13Aは、差分データ5Aに追加対象の画像を示すデータがある場合、画面データ3から追加対象の画像の座標位置に関連付けられた部品種別のデータを取得し、取得した部品種別のデータと一致する部品種別に関連付けられた属性試験内容をデフォルト試験シナリオデータ6から取得することができる。試験シナリオ生成部13Aは、取得した属性試験内容のデータを基準試験シナリオデータ7に追加することができる。これにより、差分データ5よりも差分データ5Aを優先して試験シナリオデータ8を生成することができる。
Further, when the
例えば、差分データ5Aに含まれる追加対象の画像の座標位置が「x3,y4」であり、かつ、画面データ3において座標位置「x3,y4」に関連付けられた部品種別が「ポンプ2」であるとする。この場合、試験シナリオ生成部13Aは、デフォルト試験シナリオデータ6における部品種別「ポンプ」に関連付けられた属性試験内容を基準試験シナリオデータ7に追加することができる。これにより、差分データ5を用いることなく、試験シナリオデータ8を生成することができる。
For example, the coordinate position of the image to be added included in the
なお、実施の形態2にかかる試験シナリオ生成装置1Aのハードウェア構成例は、図16に示す試験シナリオ生成装置1と同じである。プロセッサ101は、記憶部20Aとして機能するメモリ102に記憶されたプログラムを読み出して実行することによって、画面データ取得部11、差分データ生成部12A、および試験シナリオ生成部13Aの機能を実行することができる。
The hardware configuration example of the test scenario generation device 1A according to the second embodiment is the same as the test scenario generation device 1 shown in FIG. The
以上のように、実施の形態2にかかる試験シナリオ生成装置1Aは、差分データ生成部12Aと、試験シナリオ生成部13Aとを備える。差分データ生成部12Aは、複数の部品80が配置されたグラフィック画面である監視画面81,82が変更された場合における変更前後の監視画面81,82の差分を示す差分データ5,5Aを生成する。試験シナリオ生成部13Aは、差分データ生成部12Aによって生成された差分データ5,5Aと、予め設定された部品80のデフォルトの試験シナリオデータであるデフォルト試験シナリオデータ6,6Aとに基づいて、変更後のグラフィック画面である監視画面81,82の試験シナリオのデータである試験シナリオデータ8,8A,9,9Aを生成する。
As described above, the test scenario generation device 1A according to the second embodiment includes a difference
したがって、変更があったグラフィック画面である監視画面82の試験シナリオデータ8,9を自動で生成することができ、試験シナリオデータ8,8A,9,9Aを手動で作成する場合に比べ、画面試験における作業者の手間を削減することができる。また、変更前後の監視画面81,82の差分から試験シナリオデータ8,8A,9,9Aを生成することから、属性試験項目の追加および削除の漏れを抑制することができ、効率的に画面試験を行うことができる。さらに、デフォルト試験シナリオデータ6,6Aから試験内容の追加を行うことができることから、デフォルト試験シナリオデータ6,6Aを使用される頻度が高い属性試験内容とすることで、完成度を向上させた試験シナリオデータ8,8A,9,9Aを作成することが可能となる。
Therefore, it is possible to generate a
また、差分データ生成部12Aは、変更前の監視画面81の画像と変更後の監視画面82の画像との差分を含むデータを差分データ5Aとして生成する。試験シナリオ生成部13Aは、試験シナリオデータ8A,9Aとして、変更後の監視画面82における画像の試験内容を規定するデータを生成する。したがって、監視画面82において変更があった画像を試験することができる試験シナリオデータ8A,9Aを自動で生成することができる。
Further, the difference
実施の形態3.
実施の形態3では、実施の形態1,2の処理に加え、さらに、画面データ31を編集して画面データ3を生成する編集処理、および試験シナリオデータ8,8A,9,9Aに基づいて画面データ3の画面試験を行う自動試験処理が追加される点で、実施の形態1,2と異なる。実施の形態3にかかる試験シナリオ生成装置は、編集処理、試験シナリオ編集処理、および自動試験処理を行うデータ処理装置である。
In the third embodiment, in addition to the processing of the first and second embodiments, further, the editing process for generating
以下においては、実施の形態2と同様の機能を有する構成要素については同一符号を付して説明を省略し、実施の形態2の試験シナリオ生成装置1から追加される点を中心に説明するが、実施の形態1の試験シナリオ生成装置1へ適用することもできる。 In the following, components having the same functions as those of the second embodiment will be designated by the same reference numerals and description thereof will be omitted, and the points added from the test scenario generation device 1 of the second embodiment will be mainly described. , It can also be applied to the test scenario generator 1 of the first embodiment.
図24は、実施の形態3にかかる試験シナリオ生成装置1Bの構成例を示す図である。図24に示す試験シナリオ生成装置1Bは、差分データ生成部12Aと、試験シナリオ生成部13Aと、表示処理部14と、画面編集部15と、画面試験処理部16とを備える。また、記憶部20Aは、画面データ記憶部21Aと、差分データ記憶部22Aと、デフォルト試験シナリオ記憶部23Aと、試験シナリオ記憶部24Aとを備える。
FIG. 24 is a diagram showing a configuration example of the test
表示処理部14は、画面データ記憶部21Aに記憶された画面データ3,4に基づいて、表示装置50に監視画面81,82の画像を表示することができる。監視画面を作成する作業者は、表示装置50に監視画面81の画像が表示されている状態で、入力装置40への入力操作によって、監視画面81を編集して、監視画面82を作成することができる。画面編集部15は、入力装置40への入力操作に基づいて、監視画面82のデータである画面データ3を生成し画面データ記憶部21Aに記憶する。
The display processing unit 14, based on the
また、表示処理部14は、入力装置40への入力操作に基づいて、試験シナリオデータ8,8A,9,9Aの内容を表示装置50に編集可能に表示させることができる。図25は、試験シナリオ編集画面の一例を示す図である。図25に示す試験シナリオ編集画面60には、部品の座標位置を示す情報と、属性試験内容の状態を示す情報、属性試験内容の態様を示す情報、および変更内容を示す情報が含まれる。
Further, the display processing unit 14 can make the
変更内容を示す情報は、変更前後の監視画面81,82の差分を示す情報であり、図25に示す例では「削除」の文字と「追加」の文字を含む。具体的には、座標位置「x2,y2」の部品における状態「動作状態」および状態「停止状態」には、「削除」を示す文字列が対応付けられ、座標位置「x4,y2」の部品における状態「動作状態」および状態「停止状態」には、「追加」を示す文字列が対応付けられる。これにより、作業者は監視画面81,82の差分を容易に把握することができる。
Information indicating the change is information indicating the difference of the monitoring screen 81, 82 before and after the change, in the example shown in FIG. 25 including the characters and the character of "addition" of "Delete". Specifically, a character string indicating "delete" is associated with the state "operating state" and the state "stop state" in the component at the coordinate position "x2, y2", and the component at the coordinate position "x4, y2". A character string indicating "addition" is associated with the state "operating state" and the state "stopped state" in. Thus, the operator can easily grasp the difference between the
なお、図25に示す試験シナリオ編集画面60では、変更内容を示す情報が属性試験内容を示す情報とは別に表示されるが、属性試験内容を示す情報に強調表示を施したりマーキングしたりすることによって、変更内容を表すこともできる。
In the test
さらに、図25に示す試験シナリオ編集画面60には、属性試験内容の状態を示す情報が入力枠61a〜61nに変更可能に表示される。処理部10Bは、試験シナリオデータ編集部として機能し、入力装置40への入力操作に基づいて、試験シナリオデータ8における属性試験内容の状態を示す情報を変更し、試験シナリオ記憶部24Aに記憶することができる。
Further, on the test
したがって、作業者は、試験シナリオ生成部13Aによって生成された試験シナリオデータ8に修正が必要な属性試験内容がある場合に、入力装置40への入力操作によって、試験シナリオデータ8を修正することができる。なお、図25に示す例では、属性試験内容の状態を示す情報を変更可能に入力枠61a〜61nを表示するが、他の情報を変更可能に入力枠に表示してもよく、また、他の情報を追加するボタンを表示することもできる。
Therefore, when the
また、図25に示す例では、試験シナリオデータ8についての試験シナリオ編集画面60を示しているが、表示処理部14は、試験シナリオデータ8A,9,9Aについての試験シナリオ編集画面も試験シナリオ編集画面60と同様に表示装置50に表示することができる。処理部10Bは、試験シナリオデータ編集部として機能し、入力装置40への入力操作に基づいて、試験シナリオデータ8A,9,9Aにおける属性試験内容の状態を示す情報を変更し、試験シナリオ記憶部24Aに記憶することができる。
Further, in the example shown in FIG. 25, the test
試験シナリオ生成部13Aは、入力装置40への入力操作に基づいて、画面編集部15によって画面データ3が生成される毎に、試験シナリオデータ8,8A,9,9Aを生成することができる。画面試験処理部16は、試験シナリオ生成部13Aによって試験シナリオデータ8,8A,9,9Aが生成される毎に、試験シナリオデータ8,8A,9,9Aに基づいて、画面データ3の画面試験を自動で行うことができる。これにより、リアルタイム性が高い画面データ3の画面試験を行うことが可能になる。
The test
また、画面試験処理部16は、入力装置40から特定の入力操作があった場合に、試験シナリオデータ8,8A,9,9Aに基づいて、画面データ3の画面試験を自動で行うこともできる。これにより、試験シナリオデータ8,8A,9,9Aが生成される毎に画面試験を行う場合に比べ、試験シナリオ生成装置1Bの処理負荷を軽減することができる。
Further, the screen
次に、上述した処理部10Bの処理を、フローチャートを用いて説明する。図26は、実施の形態3にかかる処理部10Bの処理の一例を示すフローチャートであり、かかる処理は処理部10Bによって繰り返し実行される。なお、図26に示すステップS61〜S65の処理は、図13に示すステップS11〜S15と同様の処理であり、以下においては、説明を省略する。
Next, the processing of the
図26に示すように、画面編集部15は、入力装置40への入力操作に基づいて、画面データ31を編集する(ステップS60)。画面編集部15は、画面データ31が編集された場合、画面データ31の編集結果である画面データ32を画面データ記憶部21Aに記憶する。また、画面試験処理部16は、試験シナリオ生成部13Aによって生成された試験シナリオデータ8,8A,9,9Aに基づいて、画面データ32の画面試験を自動で行う(ステップS66)。
As shown in FIG. 26, a
図27は、図26に示すステップS60の処理の一例を示すフローチャートである。図27に示すように、画面編集部15は、入力装置40への入力操作に基づいて、監視画面81に部品を追加したり部品を削除したりする(ステップS70)。また、画面編集部15は、入力装置40への入力操作に基づいて、部品の属性および画像を設定する(ステップS71)。画面編集部15は、変更後の監視画面82のデータである画面データ3を画面データ記憶部21Aに記憶して(ステップS72)、図27に示す処理を終了する。
FIG. 27 is a flowchart showing an example of the process of step S60 shown in FIG. 26. As shown in FIG. 27, a
なお、実施の形態3にかかる試験シナリオ生成装置1Bのハードウェア構成例は、図16に示す試験シナリオ生成装置1と同じである。プロセッサ101は、記憶部20Aとして機能するメモリ102に記憶されたプログラムを読み出して実行することによって、差分データ生成部12A、試験シナリオ生成部13A、表示処理部14、画面編集部15、および画面試験処理部16の機能を実行することができる。
The hardware configuration example of the test
以上のように、実施の形態3にかかる試験シナリオ生成装置1Bは、試験シナリオデータ8,8A,9,9Aに基づいて、変更後の監視画面82の画面試験を自動的に行う画面試験処理部16を備える。したがって、試験シナリオ生成装置1Bにおいて、自動で作成された試験シナリオデータ8,8A,9,9Aに基づいて、画面試験が自動で行われることから、画面試験における作業者の負荷を大幅に軽減することができる。
As described above, the test
なお、上述した実施の形態1〜3では、監視画面81,82をグラフィック画面の一例として説明したが、試験シナリオ生成装置1,1A,1Bは、複数の部品が配置されたグラフィック画面の試験シナリオデータを生成することができればよい。すなわち、グラフィック画面は、監視画面81,82に限定されず、複数の部品が配置されたグラフィック画面であればよい。
In the above-described first to third embodiments, the
以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。 The configuration shown in the above-described embodiment shows an example of the content of the present invention, can be combined with another known technique, and is one of the configurations without departing from the gist of the present invention. It is also possible to omit or change the part.
1,1A,1B 試験シナリオ生成装置、3,4 画面データ、5,5A 差分データ、6,6A デフォルト試験シナリオデータ、7,7A 基準試験シナリオデータ、8,8A,9,9A 試験シナリオデータ、10,10A,10B 処理部、11 画面データ取得部、12,12A 差分データ生成部、13,13A 試験シナリオ生成部、14 表示処理部、15 画面編集部、16 画面試験処理部、20,20A 記憶部、21,21A 画面データ記憶部、22,22A 差分データ記憶部、23,23A デフォルト試験シナリオ記憶部、24,24A 試験シナリオ記憶部、40 入力装置、50 表示装置。 1,1A, 1B test scenario generator, 3,4 screen data, 5,5A difference data, 6,6A default test scenario data, 7,7A standard test scenario data, 8,8A, 9,9A test scenario data, 10 , 10A, 10B processing unit, 11 screen data acquisition unit, 12, 12A difference data generation unit, 13, 13A test scenario generation unit, 14 display processing unit, 15 screen editing unit, 16 screen test processing unit, 20, 20A storage unit , 21,21A screen data storage, 22,22A difference data storage, 23,23A default test scenario storage, 24,24A test scenario storage, 40 input device, 50 display device.
Claims (12)
前記差分データ生成部によって生成された前記差分データと、予め設定された前記部品のデフォルトの試験シナリオデータとに基づいて、前記変更後のグラフィック画面の試験内容を規定する試験シナリオデータを生成する試験シナリオ生成部と、
前記試験シナリオ生成部によって生成された前記試験シナリオデータの編集を、入力装置への入力操作に基づいて行う試験シナリオデータ編集部と、を備える
ことを特徴とする試験シナリオ生成装置。 A difference data generation unit that generates difference data indicating the difference between the graphic screens before and after the change when the graphic screen on which a plurality of parts are arranged is changed.
A test that generates test scenario data that defines the test content of the changed graphic screen based on the difference data generated by the difference data generation unit and the default test scenario data of the component set in advance. Scenario generator and
A test scenario generation device including a test scenario data editing unit that edits the test scenario data generated by the test scenario generation unit based on an input operation to the input device.
前記差分データ生成部によって生成された前記差分データと、予め設定された前記部品のデフォルトの試験シナリオデータとに基づいて、前記変更後のグラフィック画面の試験内容を規定する試験シナリオデータを生成する試験シナリオ生成部と、を備え、
前記試験シナリオ生成部は、
前記変更後のグラフィック画面の試験シナリオデータに含まれる複数の試験データのうち、前記差分の試験データを、前記差分以外の試験データと区別可能に前記試験シナリオデータに含める
ことを特徴とする試験シナリオ生成装置。 A difference data generation unit that generates difference data indicating the difference between the graphic screens before and after the change when the graphic screen on which a plurality of parts are arranged is changed.
A test that generates test scenario data that defines the test content of the changed graphic screen based on the difference data generated by the difference data generation unit and the default test scenario data of the component set in advance. With a scenario generator,
The test scenario generator
Among the plurality of test data included in the test scenario data of a graphic screen after the change, the test data of the difference, characterized by inclusion in distinguishably the test scenario and test data other than the difference trial Experiment scenario generator.
前記変更前のグラフィック画面に含まれる前記部品の属性を示す情報と前記変更後のグラフィック画面に含まれる前記部品の属性を示す情報との差分を含むデータを前記差分データとして生成し、
前記試験シナリオ生成部は、
前記試験シナリオデータとして、前記変更後のグラフィック画面における前記部品の属性の試験内容を規定するデータを生成する
ことを特徴とする請求項1または2に記載の試験シナリオ生成装置。 The difference data generation unit
Data including the difference between the information indicating the attribute of the component included in the graphic screen before the change and the information indicating the attribute of the component included in the graphic screen after the change is generated as the difference data.
The test scenario generator
The test scenario generator according to claim 1 or 2 , wherein as the test scenario data, data that defines the test content of the attribute of the component on the changed graphic screen is generated.
前記試験シナリオデータを、前記属性の状態毎に生成する
ことを特徴とする請求項3に記載の試験シナリオ生成装置。 The test scenario generator
The test scenario generator according to claim 3 , wherein the test scenario data is generated for each state of the attribute.
前記変更前のグラフィック画面の画像と前記変更後のグラフィック画面の画像との差分を含むデータを差分データとして生成し、
前記試験シナリオ生成部は、
前記試験シナリオデータとして、前記変更後のグラフィック画面における画像の試験内容を規定するデータを生成する
ことを特徴とする請求項1から4のいずれか1つに記載の試験シナリオ生成装置。 The difference data generation unit
Data including the difference between the image of the graphic screen before the change and the image of the graphic screen after the change is generated as difference data.
The test scenario generator
The test scenario generator according to any one of claims 1 to 4 , wherein as the test scenario data, data that defines the test content of the image on the changed graphic screen is generated.
前記差分データと、前記部品のデフォルトの試験シナリオデータとに基づいて、前記変更前のグラフィック画面の試験シナリオデータを修正して、前記試験シナリオデータを生成する
ことを特徴とする請求項1から5のいずれか1つに記載の試験シナリオ生成装置。 The test scenario generator
Claims 1 to 5 are characterized in that the test scenario data of the graphic screen before the change is modified based on the difference data and the default test scenario data of the component to generate the test scenario data. The test scenario generator according to any one of the above.
前記差分データと、前記デフォルトの試験シナリオデータとに基づいて、前記差分の試験内容を規定するデータを前記試験シナリオデータとして生成する
ことを特徴とする請求項1から6のいずれか1つに記載の試験シナリオ生成装置。 The test scenario generator
The present invention according to any one of claims 1 to 6, wherein data defining the test content of the difference is generated as the test scenario data based on the difference data and the default test scenario data. Test scenario generator.
ことを特徴とする請求項1から7のいずれか1つに記載の試験シナリオ生成装置。 The test scenario generator according to any one of claims 1 to 7, further comprising a screen test processing unit that automatically performs a screen test of the changed graphic screen based on the test scenario data. ..
複数の部品が配置されたグラフィック画面が変更された場合における変更前後の前記グラフィック画面の差分を示す差分データを生成する差分データ生成ステップと、
前記差分データ生成ステップによって生成された前記差分データと、予め設定された前記部品のデフォルトの試験シナリオデータとに基づいて、前記変更後のグラフィック画面の試験内容を規定する試験シナリオデータを生成する試験シナリオ生成ステップと、
前記試験シナリオ生成ステップによって生成された前記試験シナリオデータの編集を、入力装置への入力操作に基づいて行う試験シナリオデータ編集ステップと、を含む
ことを特徴とする試験シナリオ生成方法。 This is a computer-based test scenario generation method.
A difference data generation step that generates difference data indicating the difference between the graphic screens before and after the change when the graphic screen in which a plurality of parts are arranged is changed, and a difference data generation step.
A test that generates test scenario data that defines the test content of the changed graphic screen based on the difference data generated by the difference data generation step and the default test scenario data of the component set in advance. Scenario generation steps and
A test scenario generation method including a test scenario data editing step in which the test scenario data generated by the test scenario generation step is edited based on an input operation to an input device.
複数の部品が配置されたグラフィック画面が変更された場合における変更前後の前記グラフィック画面の差分を示す差分データを生成する差分データ生成ステップと、 A difference data generation step that generates difference data indicating the difference between the graphic screens before and after the change when the graphic screen in which a plurality of parts are arranged is changed, and a difference data generation step.
前記差分データ生成ステップによって生成された前記差分データと、予め設定された前記部品のデフォルトの試験シナリオデータとに基づいて、前記変更後のグラフィック画面の試験内容を規定する試験シナリオデータを生成する試験シナリオ生成ステップと、を含み、 A test that generates test scenario data that defines the test content of the changed graphic screen based on the difference data generated by the difference data generation step and the default test scenario data of the component set in advance. Including scenario generation steps and
前記試験シナリオ生成ステップは、 The test scenario generation step is
前記変更後のグラフィック画面の試験シナリオデータに含まれる複数の試験データのうち、前記差分の試験データを、前記差分以外の試験データと区別可能に前記試験シナリオデータに含める Of the plurality of test data included in the test scenario data of the graphic screen after the change, the test data of the difference is included in the test scenario data so as to be distinguishable from the test data other than the difference.
ことを特徴とする試験シナリオ生成方法。 A test scenario generation method characterized by this.
前記差分データ生成ステップによって生成された前記差分データと、予め設定された前記部品のデフォルトの試験シナリオデータとに基づいて、前記変更後のグラフィック画面の試験内容を規定する試験シナリオデータを生成する試験シナリオ生成ステップと、
前記試験シナリオ生成ステップによって生成された前記試験シナリオデータの編集を、入力装置への入力操作に基づいて行う試験シナリオデータ編集ステップと、をコンピュータに実行させる
ことを特徴とする試験シナリオ生成プログラム。 A difference data generation step that generates difference data indicating the difference between the graphic screens before and after the change when the graphic screen in which a plurality of parts are arranged is changed, and a difference data generation step.
A test that generates test scenario data that defines the test content of the changed graphic screen based on the difference data generated by the difference data generation step and the default test scenario data of the component set in advance. Scenario generation steps and
A test scenario generation program comprising causing a computer to edit a test scenario data editing step in which the test scenario data generated by the test scenario generation step is edited based on an input operation to an input device.
前記差分データ生成ステップによって生成された前記差分データと、予め設定された前記部品のデフォルトの試験シナリオデータとに基づいて、前記変更後のグラフィック画面の試験内容を規定する試験シナリオデータを生成する試験シナリオ生成ステップと、をコンピュータに実行させ、 A test that generates test scenario data that defines the test content of the changed graphic screen based on the difference data generated by the difference data generation step and the default test scenario data of the component set in advance. Let the computer perform the scenario generation steps,
前記試験シナリオ生成ステップは、 The test scenario generation step is
前記変更後のグラフィック画面の試験シナリオデータに含まれる複数の試験データのうち、前記差分の試験データを、前記差分以外の試験データと区別可能に前記試験シナリオデータに含める Of the plurality of test data included in the test scenario data of the graphic screen after the change, the test data of the difference is included in the test scenario data so as to be distinguishable from the test data other than the difference.
ことを特徴とする試験シナリオ生成プログラム。 A test scenario generation program characterized by this.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017074797A JP6917753B2 (en) | 2017-04-04 | 2017-04-04 | Test scenario generator, test scenario generation method, and test scenario generation program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017074797A JP6917753B2 (en) | 2017-04-04 | 2017-04-04 | Test scenario generator, test scenario generation method, and test scenario generation program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2018180650A JP2018180650A (en) | 2018-11-15 |
| JP6917753B2 true JP6917753B2 (en) | 2021-08-11 |
Family
ID=64275565
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017074797A Active JP6917753B2 (en) | 2017-04-04 | 2017-04-04 | Test scenario generator, test scenario generation method, and test scenario generation program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6917753B2 (en) |
-
2017
- 2017-04-04 JP JP2017074797A patent/JP6917753B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2018180650A (en) | 2018-11-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109690426B (en) | Ladder Diagram Program Editing Auxiliary Device and Ladder Diagram Program Editing Method | |
| JP4667386B2 (en) | Business model diagram creation support program, business model diagram creation support method, and business model diagram creation support device | |
| KR101772785B1 (en) | Program chart display device, program chart display method, and computer readable recoding medium for recording program chart display program | |
| JP6917753B2 (en) | Test scenario generator, test scenario generation method, and test scenario generation program | |
| KR101230563B1 (en) | Sequence control device using decision table, program creation device and interpreter execution engine | |
| JP5481267B2 (en) | Control program creation device and control program creation device drive method | |
| JP4977681B2 (en) | Data pattern / test data generation / storage method and system | |
| CN116610317A (en) | Customization method, customization device, storage medium and product of page operation tool | |
| JP4437470B2 (en) | Command sequence creation system and method and program | |
| JP2015148925A (en) | Program generation device and method | |
| JP6483507B2 (en) | Control program creating apparatus and control program debugging method | |
| US11222226B2 (en) | Monitoring-screen-data generation device, monitoring-screen-data generation method, and recording medium | |
| JP2008262473A (en) | Equipment maintenance management system | |
| CN117434883B (en) | Visual management method and device for PLC program version | |
| KR20230016483A (en) | Apparatus and method for automatic generation of drawings | |
| JP2014186617A (en) | Screen operation test item execution device | |
| JP7254253B2 (en) | Board chart management device, board chart management system, and board chart management method | |
| JP7456557B1 (en) | Drawing support program, drawing support method, drawing support device, and drawing support system | |
| JP2005092609A (en) | Sequence diagram display apparatus and sequence diagram display program | |
| JP5047890B2 (en) | Design verification apparatus, design verification method, program, and recording medium | |
| JP7765256B2 (en) | Information processing device, information processing method, and information processing program | |
| JP7627148B2 (en) | Simulation Equipment | |
| JP5911739B2 (en) | Control interlock setting device and monitoring control system | |
| JP2012088933A (en) | Software product line development support device, its method and its program | |
| JP2008146206A (en) | Business continuity analysis program and business continuity analyzer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20191205 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20201030 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20201201 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210125 |
|
| 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: 20210622 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210720 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6917753 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |