JP6941980B2 - Test scenario execution system and test scenario execution method - Google Patents
Test scenario execution system and test scenario execution method Download PDFInfo
- Publication number
- JP6941980B2 JP6941980B2 JP2017119708A JP2017119708A JP6941980B2 JP 6941980 B2 JP6941980 B2 JP 6941980B2 JP 2017119708 A JP2017119708 A JP 2017119708A JP 2017119708 A JP2017119708 A JP 2017119708A JP 6941980 B2 JP6941980 B2 JP 6941980B2
- Authority
- JP
- Japan
- Prior art keywords
- screen content
- scenario
- test
- component
- test scenario
- 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
- 238000012360 testing method Methods 0.000 title claims description 161
- 238000000034 method Methods 0.000 title claims description 22
- 238000012545 processing Methods 0.000 claims description 45
- 230000014509 gene expression Effects 0.000 claims description 10
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 238000012986 modification Methods 0.000 description 56
- 230000004048 modification Effects 0.000 description 56
- 238000012937 correction Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 5
- 238000010998 test method Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、テストシナリオ実行システムおよびテストシナリオ実行方法に関する。 The present invention relates to a test scenario execution system and a test scenario execution method.
昨今のWebアプリケーション等のソフトウェアの開発においては、ビルド、テスト、デプロイといった手順を経て生成されたソフトウェアがコンピュータに実装される。ソフトウェアのビルドとは、ソースコードをコンパイルするなどして実行可能ファイルを生成することである。ソフトウェアのテストとは、ビルドされた実行可能ファイルを実行して動作を検証することである。また、ソフトウェアのデプロイとは、テストされた実行可能ファイルを実際の利用環境に配置することである。 In the recent development of software such as Web applications, software generated through procedures such as build, test, and deployment is implemented in a computer. Building software is to generate an executable file by compiling the source code. Software testing is the execution of a built executable file to verify its operation. Also, deploying software means placing the tested executable file in the actual usage environment.
上記のようなソフトウェアのテストを実行する場合、テストの手順を定めたテストシナリオや、そのテストシナリオを実行するためのテストスクリプトをあらかじめ準備する。テストシナリオはXpath形式で記述されるため、画面コンテンツに変更が生じた場合に不整合が発生する。このような問題点に鑑み、例えば、特許文献1では、Web画面上に表示される操作対象のオブジェクト名等を示すキーワードと、Xpath形式で記述されたそのキーワードの位置情報とを対応付けておき、Web画面に変更が生じた場合、上記キーワードをキーにしてテストシナリオでの修正箇所を出力している。
When executing a software test as described above, prepare a test scenario that defines the test procedure and a test script for executing the test scenario in advance. Since the test scenario is described in Xpath format, inconsistency occurs when the screen content is changed. In view of such problems, for example, in
上記特許文献1では、Web画面上に表示される操作対象のオブジェクト名等を示すキーワードをあらかじめ定めておかなければならないため、ユーザがキーワードを忘れた場合には、従来同様に修正作業に時間がかかってしまう。また、キーワードが定められていない場合には修正箇所を出力することができない。さらに、Web画面とは別に修正箇所が出力されるため、ユーザは、Web画面コンテンツを修正したときの、テストシナリオとの対応の不整合を直感的に把握することができない。
In the above-mentioned
本発明は、Web画面に表示されている部品と、Web画面コンテンツを修正したときの、テストシナリオとの対応の不整合を直感的に把握することができるテストシナリオ実行システムおよびテストシナリオ実行方法を提供することを目的とする。 The present invention provides a test scenario execution system and a test scenario execution method that can intuitively grasp the inconsistency between the parts displayed on the Web screen and the test scenario when the Web screen content is modified. The purpose is to provide.
上記課題を解決し、目的を達成するために、本発明にかかるテストシナリオ実行システムは、ソフトウェアのシナリオテストを実行するテストシナリオ実行システムであって、第1のテストシナリオから得られる第1の画面コンテンツと、前記第1の画面コンテンツを修正したときに得られる第2のテストシナリオから得られる第2の画面コンテンツとの差分箇所を特定する第1の処理部と、特定された前記差分箇所と、前記第1のテストシナリオまたは前記第2のテストシナリオと、前記第1の画面コンテンツまたは前記第2の画面コンテンツに基づいて、前記第1の画面コンテンツまたは前記第2の画面コンテンツにより表示される画面上の変更箇所を表示部に表示する第2の処理部と、を備えることを特徴とするシナリオテスト実行システムとして構成される。 In order to solve the above problems and achieve the object, the test scenario execution system according to the present invention is a test scenario execution system that executes a software scenario test, and is a first screen obtained from the first test scenario. A first processing unit that specifies a difference portion between the content and the second screen content obtained from the second test scenario obtained when the first screen content is modified, and the specified difference portion. , The first screen content or the second screen content is displayed based on the first test scenario or the second test scenario and the first screen content or the second screen content. It is configured as a scenario test execution system characterized by including a second processing unit that displays changed parts on the screen on the display unit.
また、本発明は、上記テストシナリオ実行システムで用いられるテストシナリオ実行方法としても把握される。 The present invention is also understood as a test scenario execution method used in the above test scenario execution system.
本発明によれば、Web画面コンテンツを修正したときの、テストシナリオとの対応の不整合を直感的に把握することができる。 According to the present invention, it is possible to intuitively grasp the inconsistency of the correspondence with the test scenario when the Web screen content is modified.
以下に添付図面を参照して、本発明にかかるテストシナリオ実行システムおよびテストシナリオ実行方法の実施の形態を詳細に説明する。 Hereinafter, embodiments of the test scenario execution system and the test scenario execution method according to the present invention will be described in detail with reference to the accompanying drawings.
図1は、本実施の形態におけるテストシナリオ実行システムの構成例を示す図である。
図1では、テストシナリオ実行システムが1つのコンピュータ内部に構成される例を示しているが、ネットワークやバスを介した複数のコンピュータにより構成されていてもよい。
FIG. 1 is a diagram showing a configuration example of a test scenario execution system according to the present embodiment.
Although FIG. 1 shows an example in which the test scenario execution system is configured inside one computer, it may be configured by a plurality of computers via a network or a bus.
テストシナリオ実行システムを構成するコンピュータ1000は、テストを実行するユーザが使用する装置である。図1に示すように、コンピュータ1000は、CPU(Central Processing Unit)110と、主記憶装置(メモリ)120と、入出力装置130と、通信インタフェース140と、補助記憶装置150とを有して構成されている。コンピュータ100を構成するこれらの各部は、内部バスによって接続されている。
The
CPU110は、主記憶装置120に保持されるプログラムを実行する演算装置である。入出力装置130は、ユーザインタフェースを提供するキーボード、マウスといった入力装置、およびLCD(Liquid Crystal Display)といった表示装置から構成される装置である。通信インタフェース140は、ネットワークを介した通信インタフェースを提供するNIC(Network Interface Card)といった通信機器から構成される装置である。補助記憶装置150は、プログラムの実行に伴って生成されるデータやプログラムに使用されるデータを保持するHDD(Hard Disk Drive)といった記憶装置から構成される装置である。
The
図2は、主記憶装置120が記憶するプログラムを示すブロック図である。
図2に示すように、主記憶装置120は、ブラウザ表示部1201と、テストシナリオ生成部1202と、テストスクリプト実行部1204と、比較判定部1205とを記憶する。
FIG. 2 is a block diagram showing a program stored in the
As shown in FIG. 2, the
ブラウザ表示部1201は、あらかじめ補助記憶装置150に記憶された画面コンテンツ1501、修正画面コンテンツ1502を表示装置に出力する。テストシナリオ生成部1202は、入力装置から入力された情報からテストシナリオを生成する。テストスクリプト実行部1204は、テストスクリプトを実行し、画面コンテンツ1501を表示装置に表示する。比較判定部1205は、テストスクリプトが実行された際に、最新の画面コンテンツと直近の画面コンテンツとを比較し、修正箇所を判定する。比較判定部1205は、機能的には、第1の処理部と第2の処理部とを有している。上記各部が行う具体的な処理については後述する。続いて、図1に戻って、補助記憶装置150について説明する。
The
図3は、補助記憶装置150が記憶するデータを示すブロック図である。
図3に示すように、補助記憶装置150は、画面コンテンツ1501と、テストシナリオ1503と、部品リスト1504と、修正画面コンテンツ1505と、修正部品リスト1508とを記憶する。
FIG. 3 is a block diagram showing data stored in the
As shown in FIG. 3, the
画面コンテンツ1501は、例えば、XML(Extensible Markup Language)やHTML(HyperText Markup Language)によって記載されるドキュメントである。画面コンテンツ1501によって、ユーザが操作可能なWeb画面がブラウザ表示部1201により表示される。上記ドキュメントでは、DOM表現により各要素が記述されている。DOM(Document Object Model)とは、xmlやhtmlの各要素にアクセスするための仕様である。
The
図4は、画面コンテンツ1501の例を示す図である。
図4(a)は、HTMLの記載例を示す図であり、図4(b)は、HTMLで記載されたWeb画面例を示す図である。図4(a)に示すように、画面コンテンツ1501は、タグで囲まれた様々な要素が記述されている。図4(b)は、図4(a)に示したHTMLで記述された画面コンテンツ1501が表示装置にフルスクリーンで表示されたWeb画面の例を示す図である。図4(b)に示すように、表示装置には、「Example」をタイトルとする画面コンテンツ1501が表示されている。また、画面コンテンツ1501には、部品として入力欄1301と検索ボタン1302が含まれていることがわかる。なお、部品とは、入力欄やボタン、チェックボックス等、Web画面に表示されるコンポーネントである。
FIG. 4 is a diagram showing an example of the
FIG. 4A is a diagram showing a description example of HTML, and FIG. 4B is a diagram showing a Web screen example described in HTML. As shown in FIG. 4A, the
テストシナリオ1503は、Webアプリケーション等のソフトウェア(以下、単にWebアプリケーションとする。)のテスト手順を記述したドキュメントである。Webアプリケーションのテスト手順は、あらかじめユーザによって入力装置から入力され、補助記憶装置150に記憶される。
The
図5は、テストシナリオ1503の例を示す図である。
図5に示すように、テストシナリオ1503には、Xpath形式でテストシナリオが記述されている。図6では、例えば、業務ポータル画面撮影のテスト手順として、ログイン画面でユーザID(user1)、パスワード(password)を入力し、ログインボタンを押下するテストシナリオがXpath形式、DOM表現で記述されている。テストシナリオ1503に記述されている要素と、その要素のXpath形式、DOM表現とをあらかじめ対応付けておく。
FIG. 5 is a diagram showing an example of
As shown in FIG. 5, the
なお、図6に示すように、テストシナリオ1503は、Xpath指定だけでなく、id指定で記述され、あるいはこれらが混在して記述されてもよい。図6では、例えば、手順1としてtop.htmlをオープンした後、手順2として入力欄(input)に「user1」を入力し、手順3としてボタン(button)を押下し、手順4としてURL(Uniform Resource Locator)が「http://xxx/result.html」を検索結果として表示し、手順5として検索結果にuser1@mail.comを表示することが記述されている。図5では、図4に示した入力欄1301、検索ボタン1302に対する操作がテストシナリオに含まれていることがわかる。
As shown in FIG. 6, the
部品リスト1504は、テストシナリオ、画面コンテンツで用いられる部品の対応関係を示すリストである。 The parts list 1504 is a list showing the correspondence between parts used in the test scenario and screen contents.
図7は、部品リスト1504の例を示す図である。
図7に示すように、部品リスト1504は、テストシナリオ1503に記述された部品である部品表現と、その部品の画面コンテンツ1501における位置である部品位置と、その部品のDOMであるDOM表現と、その部品が画面コンテンツ1501に表示されるときの画像である画像片とが対応付けて記憶されている。図7では、例えば、テストシナリオ1503では部品表現としてbutton[id=search]が記述され、その部品であるボタンが画面コンテンツ1501の座標(x1,y1)に配置され、ボタンのサイズが幅w1、高さh1であることがわかる。また、この部品のDOM表現は、<button>検索</button>で規定され、画面コンテンツ1501にはその部品をあらわす画像αが表示されることがわかる。部品リスト1504は、テスト実施時に自動で作成され、補助記憶装置150に記憶される。
FIG. 7 is a diagram showing an example of the
As shown in FIG. 7, the
修正画面コンテンツ1505、修正部品リスト1508は、それぞれ、ユーザによって変更された後の最新のバージョンの画面コンテンツ1501、部品リスト1504である。修正画面コンテンツ1505、修正部品リスト1508は、それぞれ、画面コンテンツ1501、部品リスト1504と同様であるため、ここではその説明を省略する。
The modified
本例では、修正画面コンテンツ1505、修正部品リスト1508が、それぞれ1つずつ記憶されている例を記載しているが、変更されるごとにこれらのファイルを時系列に履歴保持してもよい。変更される都度これらのファイルを記憶しておくことにより、過去に遡及して変更箇所を特定することができる。続いて、本システムで行われる処理について説明する。
In this example, the
図8は、本システムで行われるテストシナリオ実行処理の処理手順を示すフローチャートである。以下では、ユーザからの操作によって、テストシナリオ生成部1202がテストシナリオ1503を生成し、その後、画面コンテンツ1501、テストシナリオ1503が変更され、修正画面コンテンツ1505、が記憶されているものとする。
FIG. 8 is a flowchart showing a processing procedure of the test scenario execution process performed in this system. In the following, it is assumed that the test
図8に示すように、テストシナリオ実行処理では、比較判定部1205の第1の処理部は、画面コンテンツ1501と修正画面コンテンツ1505とを比較し、HTMLの差分箇所があるか否かを判定する(ステップS801)。例えば、比較判定部1205の第1の処理部は、画面コンテンツ1501のDOM表現が変更、追加、削除されていれば、その変更、追加、削除箇所がHTML上の差分箇所となる。
As shown in FIG. 8, in the test scenario execution process, the first processing unit of the
比較判定部1205の第1の処理部が、画面コンテンツ1501と修正画面コンテンツ1505とを比較し、HTMLの差分箇所があると判定した場合(ステップS801;Yes)、テストスクリプト実行部1204は、全ての差分箇所について以下の処理が実行されたか否かを判定する(ステップS802)。なお、テストスクリプト実行部1204は、比較判定部1205の第1の処理部が、画面コンテンツ1501と修正画面コンテンツ1505とを比較し、HTMLの差分箇所がないと判定した場合(ステップS801;No)、何もせずに本処理を終了させる。
When the first processing unit of the
テストスクリプト実行部1204が、全ての差分箇所について以下の処理が実行されていないと判定した場合(ステップS802;No)、比較判定部1205の第2の処理部は、未処理の差分箇所から差分となる部品を特定し、特定した部品が部品リスト1504または修正部品リスト1508にあるか否かを判定する(ステップS803、S804)。例えば、比較判定部1205の第2の処理部は、図4(a)に示したHTMLの中から差分箇所を判定し、その差分箇所の表現と、図7に示した部品リスト1504のDOM表現とを比較し、一致するDOM表現があるか否かを判定し、一致するDOM表現があると判定した場合、その差分箇所は部品による差分であると判定し、その差分となる部品を特定する。
When the test
比較判定部1205の第2の処理部は、HTML上で差分となる部品が部品リスト1504または修正部品リスト1508にあると判定した場合(ステップS804;Yes)、さらに、その部品に対応する部品表現がテストシナリオにあるか否かを判定する(ステップS805)。例えば、比較判定部1205の第2の処理部は、図7に示した部品リスト1504または修正部品リスト1508を参照しステップS803で特定した部品のDOM表現に対応する部品表現を読み取り、読み取った部品表現をキーにしてテストシナリオ1503を参照し、キーにした部品表現がテストシナリオ1503に含まれているか否かを判定する。
When the second processing unit of the
比較判定部1205の第2の処理部は、その部品に対応する部品表現がテストシナリオ1503に含まれていると判定した場合(ステップS805;Yes)、その部品表現がテストシナリオ1503で使用されている部品表現(変更部品)であると判定し(ステップS806)、ブラウザ表示部1201は、テストシナリオでのその部品の記述箇所と、Web画面上でのその部品の部品位置とを表示(第1の表示)する(ステップS807)。表示例については図9を用いて後述する。上記部品位置は、例えば、図7に示した部品リスト1504において、ステップS803で特定したDOM表現やステップS805でキーにした部品表現に対応する部品位置である。
When the second processing unit of the
比較判定部1205の第2の処理部は、その部品に対応する部品表現がテストシナリオにないと判定した場合(ステップS805;No)、その部品表現はテストシナリオ1503では使用されていない部品表現(変更部品)であると判定し(ステップS808)、ブラウザ表示部1201は、Web画面上でのその部品の部品位置を表示(第2の表示)する(ステップS809)。表示例については図9を用いて後述する。上記部品位置は、例えば、図7に示した部品リスト1504において、ステップS803で特定したDOM表現やステップS805でキーにした部品表現に対応する部品位置である。
When the second processing unit of the
ステップS804において、比較判定部1205の第2の処理部は、HTML上で差分となる部品が部品リスト1504または修正部品リスト1508にないと判定した場合(ステップS804;No)、さらに、その部品に対応する部品表現がテストシナリオにあるか否かを判定する(ステップS810)。判定方法についてはステップS805と同様であるため、ここではその説明を省略する。
In step S804, when the second processing unit of the
比較判定部1205の第2の処理部は、その部品に対応する部品表現がテストシナリオにあると判定した場合(ステップS810;Yes)、その部品表現がテストシナリオ1503で使用されている部品表現(新規部品)であると判定し(ステップS811)、ブラウザ表示部1201は、テストシナリオでのその部品の記述箇所と、Web画面上でのその部品の部品位置とを表示(第3の表示)する(ステップS812)。表示例については図9を用いて後述する。上記部品位置は、例えば、図7に示した部品リスト1504において、ステップS803で特定したDOM表現やステップS805でキーにした部品表現に対応する部品位置である。
When the second processing unit of the
比較判定部1205の第2の処理部は、その部品に対応する部品表現がテストシナリオにないと判定した場合(ステップS810;No)、その部品表現はテストシナリオ1503では使用されていない部品表現(新規部品)であると判定し(ステップS813)、ブラウザ表示部1201は、Web画面上でのその部品の部品位置を表示(第4の表示)する(ステップS814)。表示例については図9を用いて後述する。上記部品位置は、例えば、図7に示した部品リスト1504において、ステップS803で特定したDOM表現やステップS805でキーにした部品表現に対応する部品位置である。
When the second processing unit of the
ステップS802において、比較判定部1205の第2の処理部は、全ての差分箇所について以下の処理が実行されたと判定した場合(ステップS802;Yes)、部品リスト1504と修正部品リスト1508とを比較し、修正部品リスト1508に存在しない部品を消失部品と判定する(ステップS815)。例えば、比較判定部1205は、部品リスト1504の画像片が修正部品リスト1508の画像片に記憶されていない場合、その画像片で表示される部品が削除されたと判定する。
In step S802, when the second processing unit of the
そして、ブラウザ表示部1201は、消失部品と判定されたWeb画面上での部品位置を表示(第5の表示)する(ステップS816)。表示例については図9を用いて後述する。上記部品位置は、例えば、図7に示した部品リスト1504において、ステップS803で特定したDOM表現やステップS805でキーにした部品表現に対応する部品位置である。ステップS816の処理が終了すると、図8に示したテストシナリオ実行処理が終了する。
Then, the
図9は、Web画面に変更部品、追加部品、削除部品の位置を表示する例を示す図である。図9に示すように、Web画面には、ステップS806、S808で判定された変更部品、ステップS811、S813で判定された新規部品、ステップS815で判定された削除部品を示す部品位置が表示されている。 FIG. 9 is a diagram showing an example of displaying the positions of changed parts, additional parts, and deleted parts on a Web screen. As shown in FIG. 9, on the Web screen, the component positions indicating the changed parts determined in steps S806 and S808, the new parts determined in steps S811 and S813, and the deleted parts determined in step S815 are displayed. There is.
図9では、図4(b)に示した入力欄1301の表示位置が変更されたため、図7に示した部品リスト1504の部品位置に表示されている入力欄1301が、入力欄1301Aとして点線の矩形で表示されていることを示している。また、検索ボタン1302のDOM表現が「検索実行」に変更されたため、図7に示した部品リスト1504の部品位置に表示されている検索ボタン1302が、検索ボタン1302Aとして、入力欄1301Aと同種の点線の矩形で表示されていることを示している。
In FIG. 9, since the display position of the
さらに、入力欄1301、検索ボタン1302は、シナリオテストにも使用されているため、図5に示したテストシナリオ1503の中で、図7に示した部品リスト1504のDOM表現に対応する部品表現に、入力欄1301A、検索ボタン1302Aと同種の点線の矩形で囲まれていることを示している。このように、図8のステップS807では、変更部品が明示されたWeb画面およびテストシナリオが、表示装置に表示される。表示方法については、例えば、変更部品が明示されたWeb画面と、変更部品が明示されたテストシナリオとを表示装置に並列に表示させることにより、ユーザは、Web画面上の変更部品と、テストシナリオ上での変更が必要となる部品とを一目で確認することができる。
Further, since the
また、図9では、図4(b)に示したテキスト1303の表示位置が変更されたため、部品リスト1504に記憶されている部品位置に表示されているテキスト1303が、テキスト1303Aとして実線の矩形で表示されていることを示している。なお、テキスト1303は、シナリオテストに使用されていない。このため、図8のステップS809では、変更部品が明示されたWeb画面が、表示装置に表示される。表示方法については、例えば、変更部品が明示されたWeb画面と、変更部品が明示されていないテストシナリオとを表示装置に並列に表示させることにより、ユーザは、Web画面上の変更部品と、テストシナリオ上での変更が必要となる部品がないことを一目で確認することができる。
Further, in FIG. 9, since the display position of the
また、図9では、図4(b)では表示されていなかったテキスト1304が表示されているため、部品リスト1504の部品位置にテキスト1304として二重線の矩形で表示されていることを示している。さらに、テキスト1304は、シナリオテストにも使用されているため、テストシナリオ1503の中で、部品リスト1504のDOM表現に対応する部品表現に、テキスト1304と同種の二重線の矩形で囲まれる。このように、図8のステップS812では、新規に追加された部品が明示されたWeb画面およびテストシナリオが、表示装置に表示される。表示方法については、例えば、追加部品が明示されたWeb画面と、追加部品が明示されたテストシナリオとを表示装置に並列に表示させることにより、ユーザは、Web画面上の追加部品と、テストシナリオ上での追加が必要となる部品とを一目で確認することができる。
Further, in FIG. 9, since the
また、図9では、図4(b)では表示されていなかったテキスト1305が表示されているため、部品リスト1504に記憶されている部品位置にテキスト1305として一点鎖線の矩形で表示されていることを示している。なお、テキスト1303は、シナリオテストに使用されていない。このため、図8のステップS814では、新規に追加部品が明示されたWeb画面が、表示装置に表示される。表示方法については、例えば、追加部品が明示されたWeb画面と、追加部品が明示されていないテストシナリオとを表示装置に並列に表示させることにより、ユーザは、Web画面上の変更部品と、テストシナリオ上での追加が必要となる部品がないことを一目で確認することができる。
Further, in FIG. 9, since the text 1305 that was not displayed in FIG. 4B is displayed, the text 1305 is displayed as the text 1305 in the rectangular shape of the alternate long and short dash line at the component position stored in the
さらに、図9では、図4(b)で表示されていたテキスト1306が削除されて表示されなくなっているため、部品リスト1504に記憶されていた元の部品位置にテキスト1306Aとして二点鎖線の矩形で表示されていることを示している。
Further, in FIG. 9, since the
なお、削除された部品についても、シナリオテストで使用されているか否かによって、銃置き変更部品や追加部品と同様に、Web画面とテストシナリオとを並列に表示することができる。 As for the deleted parts, the Web screen and the test scenario can be displayed in parallel in the same manner as the gun rest changing parts and the additional parts depending on whether or not they are used in the scenario test.
例えば、テキスト1306がシナリオテストに使用されている場合には、部品リスト1504のDOM表現に対応する部品表現に、テキスト1306と同種の二点鎖線の矩形で囲む。このように、削除された部品が明示されたWeb画面およびテストシナリオが表示装置に表示される。例えば、追加部品が明示されたWeb画面と、追加部品が明示されたテストシナリオとが表示装置に並列に表示されることにより、ユーザは、Web画面上の削除部品と、テストシナリオ上での削除が必要となる部品とを一目で確認することができる。
For example, when the
また、テキスト1306がシナリオテストに使用されていない場合には、削除された部品が明示されたWeb画面を表示装置に表示する。例えば、削除部品が明示されたWeb画面と、削除部品が明示されていないテストシナリオとを表示装置に並列に表示させることにより、ユーザは、Web画面上の変更部品と、テストシナリオ上での削除が必要となる部品がないことを一目で確認することができる。
When the
以上説明したように、本システムでは、上記のようなテストシナリオ実行処理を実行することにより、Web画面コンテンツを修正したときの、テストシナリオとの対応の不整合を直感的に把握することができる。 As described above, in this system, by executing the test scenario execution process as described above, it is possible to intuitively grasp the inconsistency of the correspondence with the test scenario when the Web screen content is modified. ..
すなわち、ソフトウェアのシナリオテストを実行するテストシナリオ実行システムにおいて、比較判定部1205を構成する第1の処理部が、修正前のテストシナリオから得られる修正前の画面コンテンツと、修正前の画面コンテンツを修正したときに得られる修正後のテストシナリオから得られる修正後の画面コンテンツとの差分箇所を特定し、比較判定部1205を構成する第2の処理部が、特定された差分箇所と、修正前のテストシナリオまたは修正後のテストシナリオと、修正前の画面コンテンツまたは修正後の画面コンテンツとに基づいて、修正前の画面コンテンツまたは修正後の画面コンテンツにより表示される画面上の変更箇所を表示部に表示するので、上記不整合の箇所を容易に把握することができる。
That is, in the test scenario execution system that executes the scenario test of the software, the first processing unit constituting the
また、上記第2の処理部は、修正前の画面コンテンツに含まれる部品と当該部品の位置とを対応付けた修正前の部品リストまたは修正後の画面コンテンツに含まれる部品と当該部品の位置とを対応付けた修正後の部品リストとに基づいて、修正前の画面コンテンツまたは修正後の画面コンテンツにおける部品の位置と、修正前のテストシナリオまたは修正後のテストシナリオにおける部品の記述箇所と、を表示部に表示するので、画面コンテンツの差分箇所が部品の修正で生じたものであるかを容易に判断することができ、部品の修正により差分箇所が生じている場合には、対応するシナリオ上の部品を容易に見つけることができる。 Further, the second processing unit includes a parts list before modification in which the parts included in the screen content before modification and the positions of the parts are associated with each other, or a parts included in the screen content after modification and the positions of the parts. Based on the modified parts list associated with, the position of the component in the screen content before modification or the screen content after modification, and the description part of the component in the test scenario before modification or the test scenario after modification. Since it is displayed on the display unit, it is possible to easily determine whether the difference part of the screen content is caused by the correction of the part, and if the difference part is caused by the correction of the part, the corresponding scenario Parts can be easily found.
なお、上記第2の処理部は、上記記述箇所の部品がDOMの擬似クラスであるnth−child表現により記述されているか否かを判定し、上記記述箇所の部品が上記nth−child表現により記述されていると判定した場合、他のnth−child表現により記述されている部品を検索し、上記記述箇所とともに変更すべき箇所として表示部に表示してもよい。例えば、ある部品の記述がnth−child(even)からnth−child(odd)に変更された場合には、他の部品の記述をnth−child(odd)からnth−child(even)に変更するように、表示部に表示してもよい。このような表示により、ユーザは、修正された部品に関連するnth−child表現で記述された部品やどのように修正すべきかを容易に把握することができる。 The second processing unit determines whether or not the component of the description location is described by the DOM pseudo-class nth-child representation, and the component of the description location is described by the nz-child representation. If it is determined that the parts have been described, the parts described by other nth-child expressions may be searched and displayed on the display unit together with the above-mentioned description parts as parts to be changed. For example, when the description of a certain part is changed from nth-child (even) to nth-child (odd), the description of another part is changed from nth-child (odd) to nth-child (even). As shown above, it may be displayed on the display unit. With such a display, the user can easily grasp the part described in the nth-child representation related to the modified part and how to modify it.
また、上記第2の処理部は、上記記述箇所の部品がXpath形式により記述されているか否かを判定し、上記記述箇所の部品がXpath形式により記述されていると判定した場合、当該部品の記述を、あらかじめ定められた上記Xpath形式に対応する他の形式の記述に修正した変更案を表示部に表示してもよい。例えば、Xpath形式で記述されている部品をid形式やnth−of−type形式等の他の形式に書き換える。どのような形式に書き換えるのかについては、ユーザにとって利便性が高いと考える形式をあらかじめ登録しておけばよい。 Further, the second processing unit determines whether or not the part of the description location is described in the Xpath format, and when it is determined that the component of the description location is described in the Xpath format, the second processing unit of the description location A modified proposal in which the description is modified to a description in another format corresponding to the above-mentioned Xpath format defined in advance may be displayed on the display unit. For example, the parts described in the Xpath format are rewritten to other formats such as the id format and the nth-of-type format. Regarding what kind of format to rewrite, it is sufficient to register in advance a format that is considered to be highly convenient for the user.
また、上記第2の処理部は、複数の修正前の画面コンテンツまたは修正後の画面コンテンツの中から、上記記述箇所の部品と同じ部品が記述された修正前の画面コンテンツまたは修正後の画面コンテンツを特定し、特定した修正前の画面コンテンツまたは修正後の画面コンテンツの上記同じ部品の記述箇所を表示部に表示してもよい。例えば、修正前の画面コンテンツに含まれる部品をキーにして、その部品と同じ部品が用いられている他の修正前の画面コンテンツを検索し、その画面コンテンツとその記述箇所とを画面に表示する。このような表示を行うことにより、ユーザは、同様に修正が必要となる画面コンテンツやその位置を容易に把握することができる。 In addition, the second processing unit is the screen content before modification or the screen content after modification in which the same parts as the parts described above are described from among the plurality of screen contents before modification or screen content after modification. May be specified, and the description portion of the same part of the specified screen content before modification or screen content after modification may be displayed on the display unit. For example, using a part included in the screen content before modification as a key, search for other screen content before modification that uses the same component as that part, and display the screen content and its description on the screen. .. By performing such a display, the user can easily grasp the screen content and its position that need to be modified as well.
また、上記第2の処理部は、部品の変更により生じた上記差分箇所を示す部品の位置または部品の記述箇所と、部品の追加により生じた上記差分箇所を示す部品の位置または部品の記述箇所と、部品の削除により生じた上記差分箇所を示す部品の位置または部品の記述箇所とを、例えば、図9に示したように、第1の表示〜第5の表示のように互いに異なる線種で表示する。したがって、ユーザは、部品の修正が、変更によるものであるか、追加によるものであるか、削除によるものであるかを一目で把握することができる。 In addition, the second processing unit includes a component position or component description location indicating the difference location caused by the change of the component, and a component position or component description location indicating the difference location caused by the addition of the component. And the position of the part indicating the difference point caused by the deletion of the part or the description part of the part, for example, as shown in FIG. 9, line types different from each other as shown in the first display to the fifth display. Display with. Therefore, the user can grasp at a glance whether the modification of the part is due to a change, an addition, or a deletion.
例えば、上記第2の処理部は、上記差分箇所が修正前の部品リストまたは修正後の部品リストに含まれる部品であるか否かを判定し、上記差分箇所が修正前の部品リストまたは修正後の部品リストに含まれる部品であると判定した場合、当該部品が修正前のテストシナリオまたは修正後のテストシナリオに使用されているか否かを判定し、当該部品が修正前のテストシナリオまたは修正後のテストシナリオに使用されていると判定した場合には、修正前の画面コンテンツまたは修正後の画面コンテンツと、修正前のテストシナリオまたは修正後のテストシナリオに、当該部品の箇所を表示する第1の表示を実行し、当該部品が修正前のテストシナリオまたは修正後のテストシナリオに使用されていないと判定した場合には、修正前の画面コンテンツまたは修正後の画面コンテンツに当該部品の箇所を表示する第2の表示を実行する。 For example, the second processing unit determines whether or not the difference portion is a part included in the parts list before modification or the parts list after modification, and the difference portion is the parts list before modification or after modification. If it is determined that the part is included in the parts list of, it is determined whether or not the part is used in the test scenario before modification or the test scenario after modification, and the part is in the test scenario before modification or after modification. If it is determined that it is used in the test scenario of, the part of the part is displayed in the screen content before modification or the screen content after modification, and the test scenario before modification or test scenario after modification. If it is determined that the part is not used in the test scenario before modification or the test scenario after modification, the part of the component is displayed in the screen content before modification or the screen content after modification. Perform a second display.
また、上記第2の処理部は、上記差分箇所が修正前の部品リストまたは修正前の部品リストに含まれる部品でないと判定した場合、当該部品が修正前のテストシナリオまたは修正後のテストシナリオに使用されているか否かを判定し、当該部品が修正前のテストシナリオまたは修正後のテストシナリオに使用されていると判定した場合には、修正前の画面コンテンツまたは修正後の画面コンテンツと、修正前のテストシナリオまたは修正後のテストシナリオに、当該部品の箇所を表示する第3の表示を実行し、当該部品が修正前のテストシナリオまたは修正後のテストシナリオに使用されていないと判定した場合には、修正前の画面コンテンツまたは修正後の画面コンテンツに当該部品の箇所を表示する第4の表示を実行する。 Further, when the second processing unit determines that the difference portion is not a part included in the parts list before modification or the parts list before modification, the relevant part is set to the test scenario before modification or the test scenario after modification. If it is determined whether or not the part is used and it is determined that the part is used in the test scenario before modification or the test scenario after modification, the screen content before modification or the screen content after modification and the modification When a third display is executed to display the location of the part in the previous test scenario or the modified test scenario, and it is determined that the component is not used in the unmodified test scenario or the modified test scenario. Executes a fourth display for displaying the portion of the component in the screen content before the modification or the screen content after the modification.
また、上記第2の処理部は、修正前の部品リストと修正後の部品リストとのいずれかに存在しない部品があるか否かを判定し、いずれかに存在しない部品があると判定した場合、当該部品が存在した箇所を修正前の画面コンテンツまたは修正後の画面コンテンツに表示する第5の表示を実行する。 Further, the second processing unit determines whether or not there is a part that does not exist in either the parts list before the correction or the parts list after the correction, and determines that there is a part that does not exist in any of them. , The fifth display for displaying the location where the component exists in the screen content before the modification or the screen content after the modification is executed.
したがって、これらの表示処理が実行されることにより、画面コンテンツだけでなくテストシナリオでも修正が必要となる部品であるか否かを容易に把握することができる。 Therefore, by executing these display processes, it is possible to easily grasp whether or not the component needs to be modified not only in the screen content but also in the test scenario.
なお、本システムで実行される各処理は、実際には、装置にインストールされたプログラムを実行することにより実現される。上記プログラムは、ROM等に予め組み込まれて提供されたり、インストール可能な形式又は実行可能な形式のファイルで記録媒体に記録して提供したり、配布してもよい。 Each process executed in this system is actually realized by executing a program installed in the device. The above program may be provided by being embedded in a ROM or the like in advance, or may be recorded and provided on a recording medium in an installable format or an executable format file, or may be distributed.
1000 コンピュータ
110 CPU
120 主記憶装置(メモリ)
1201 ブラウザ表示部
1202 テストシナリオ生成部
1204 テストスクリプト実行部
1205 比較判定部
130 入出力装置
140 通信インタフェース
150 補助記憶装置
1501 画面コンテンツ
1503 テストシナリオ
1504 部品リスト
1505 修正画面コンテンツ
1508 修正部品リスト。
1000
120 Main storage device (memory)
1201
Claims (7)
第1のテストシナリオから得られる第1の画面コンテンツと、前記第1の画面コンテンツを修正したときに得られる第2のテストシナリオから得られる第2の画面コンテンツとの差分箇所を特定する第1の処理部と、
特定された前記差分箇所と、前記第1のテストシナリオまたは前記第2のテストシナリオと、前記第1の画面コンテンツまたは前記第2の画面コンテンツとに基づいて、前記第1の画面コンテンツまたは前記第2の画面コンテンツにより表示される画面上の変更箇所を表示部に表示する第2の処理部と、
を備えることを特徴とするシナリオテスト実行システム。 A test scenario execution system that executes software scenario tests.
A first that identifies a difference between the first screen content obtained from the first test scenario and the second screen content obtained from the second test scenario obtained when the first screen content is modified. Processing part and
The first screen content or the first screen content based on the identified difference portion, the first test scenario or the second test scenario, and the first screen content or the second screen content. A second processing unit that displays the changed part on the screen displayed by the screen content of 2 on the display unit, and
A scenario test execution system characterized by being equipped with.
ことを特徴とする請求項1に記載のシナリオテスト実行システム。 The second processing unit determines whether or not the component of the description portion in the first test scenario or the second test scenario is described by the nth-child representation which is a pseudo class of DOM (Document Object Model). When the determination is made and it is determined that the part described by the description part is described by the nth-child expression, the part described by another ntth-child expression is searched and displayed as a part to be changed together with the description part. Display in the section,
The scenario test execution system according to claim 1.
ことを特徴とする請求項1または2に記載のシナリオテスト実行システム。 The second processing unit determines whether or not the component of the description portion in the first test scenario or the second test scenario is described in the Xpath format, and the component of the description portion is described in the Xpath format. If it is determined that the description has been made, a proposed change in which the description of the part is modified to the description of another format corresponding to the predetermined Xpath format is displayed on the display unit.
The scenario test execution system according to claim 1 or 2.
ことを特徴とする請求項1〜3のいずれか1項に記載のシナリオテスト実行システム。 In the second processing unit, the same parts as the parts described in the first test scenario or the second test scenario are described from among the plurality of the first screen contents or the second screen contents. The first screen content or the second screen content is specified, and the description portion of the same component of the specified first screen content or the second screen content is displayed on the display unit.
The scenario test execution system according to any one of claims 1 to 3.
ことを特徴とする請求項1〜4のいずれか1項に記載のシナリオテスト実行システム。 The second processing unit includes a first parts list in which a part included in the first screen content and a position of the part are associated with each other, or a part included in the second screen content and a position of the part. The position of the component in the first screen content or the second screen content and the component in the first test scenario or the second test scenario based on the second component list associated with the above. Is displayed on the display unit.
The scenario test execution system according to any one of claims 1 to 4, wherein the scenario test execution system is characterized.
ことを特徴とする請求項5に記載のシナリオテスト実行システム。 The second processing unit is the position of the component or the description location of the component indicating the difference portion caused by the change of the component, and the position of the component indicating the difference portion caused by the addition of the component or the said portion. The description part of the part and the position of the part indicating the difference part caused by the deletion of the part or the description part of the part are displayed differently from each other.
The scenario test execution system according to claim 5.
前記コンピュータのプロセッサが、
第1のテストシナリオから得られる第1の画面コンテンツと、前記第1の画面コンテンツを修正したときに得られる第2のテストシナリオから得られる第2の画面コンテンツとの差分箇所を特定し、
特定された前記差分箇所と、前記第1のテストシナリオまたは前記第2のテストシナリオと、前記第1の画面コンテンツまたは前記第2の画面コンテンツとに基づいて、前記第1の画面コンテンツまたは前記第2の画面コンテンツにより表示される画面上の変更箇所を表示部に表示する、
ことを特徴とするシナリオテスト実行方法。 A test scenario execution method in which a computer executes a software scenario test.
The processor of the computer
The difference between the first screen content obtained from the first test scenario and the second screen content obtained from the second test scenario obtained when the first screen content is modified is specified.
The first screen content or the first screen content based on the identified difference portion, the first test scenario or the second test scenario, and the first screen content or the second screen content. Display the changed part on the screen displayed by the screen content of 2 on the display part,
Scenario test run wherein a call.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017119708A JP6941980B2 (en) | 2017-06-19 | 2017-06-19 | Test scenario execution system and test scenario execution method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017119708A JP6941980B2 (en) | 2017-06-19 | 2017-06-19 | Test scenario execution system and test scenario execution method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019003549A JP2019003549A (en) | 2019-01-10 |
JP6941980B2 true JP6941980B2 (en) | 2021-09-29 |
Family
ID=65005976
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017119708A Active JP6941980B2 (en) | 2017-06-19 | 2017-06-19 | Test scenario execution system and test scenario execution method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6941980B2 (en) |
-
2017
- 2017-06-19 JP JP2017119708A patent/JP6941980B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019003549A (en) | 2019-01-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Kouzis-Loukas | Learning scrapy | |
US10324828B2 (en) | Generating annotated screenshots based on automated tests | |
TWI386817B (en) | System for and method of providing a user interface for a computer-based software application | |
US12010165B2 (en) | Cross-platform module for loading across a plurality of device types | |
AU2018241159B2 (en) | Contextual solicitation in a starter application | |
US20070192871A1 (en) | Document management method and apparatus thereof | |
US20150317042A1 (en) | System and Methods for Loading an Application and its Modules in a Client Device | |
JP2011086142A (en) | Image forming apparatus and program controlling method | |
US20180089154A1 (en) | Computer implemented system and method for transforming web content for display on multiple form factors | |
JP6668953B2 (en) | Data processing device and program | |
US11836510B2 (en) | Snapshot capture of computing device user interfaces | |
JP4846030B2 (en) | Operation verification apparatus, operation verification method, and operation verification program | |
JP6941980B2 (en) | Test scenario execution system and test scenario execution method | |
JP5471277B2 (en) | Image forming apparatus and program operation method | |
CN102402598A (en) | Application file system access | |
JP6231260B2 (en) | Screen control system, screen control program, screen creation support program, and screen control method | |
JP5281029B2 (en) | Confirmation system and method | |
JP5048537B2 (en) | Workflow processing device | |
JP2014071789A (en) | Information processing device and program | |
JP2015219740A (en) | Information processor, information processing method and program | |
JP2011164788A (en) | Device, method and program for verifying operation | |
JP4903278B2 (en) | Operation verification apparatus, operation verification method, and operation verification program | |
JP2007304778A (en) | Test method for program, program, test device and application development system | |
US20160308746A1 (en) | Data registration system, data registration method, program and non-transitory recording medium | |
JP2024094938A (en) | Information processing device, information processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200619 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210414 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210525 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210721 |
|
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: 20210824 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210907 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6941980 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |