JP6941980B2 - Test scenario execution system and test scenario execution method - Google Patents

Test scenario execution system and test scenario execution method Download PDF

Info

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
Application number
JP2017119708A
Other languages
Japanese (ja)
Other versions
JP2019003549A (en
Inventor
前岡 淳
淳 前岡
仁 芳ケ迫
仁 芳ケ迫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Systems Ltd
Original Assignee
Hitachi Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Systems Ltd filed Critical Hitachi Systems Ltd
Priority to JP2017119708A priority Critical patent/JP6941980B2/en
Publication of JP2019003549A publication Critical patent/JP2019003549A/en
Application granted granted Critical
Publication of JP6941980B2 publication Critical patent/JP6941980B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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 Patent Document 1, a keyword indicating an object name or the like of an operation target displayed on a Web screen is associated with the position information of the keyword described in the Xpath format. , When a change occurs in the Web screen, the correction part in the test scenario is output by using the above keyword as a key.

特開2014−106589号公報Japanese Unexamined Patent Publication No. 2014-106589

上記特許文献1では、Web画面上に表示される操作対象のオブジェクト名等を示すキーワードをあらかじめ定めておかなければならないため、ユーザがキーワードを忘れた場合には、従来同様に修正作業に時間がかかってしまう。また、キーワードが定められていない場合には修正箇所を出力することができない。さらに、Web画面とは別に修正箇所が出力されるため、ユーザは、Web画面コンテンツを修正したときの、テストシナリオとの対応の不整合を直感的に把握することができない。 In the above-mentioned Patent Document 1, since it is necessary to predetermine a keyword indicating an object name or the like of an operation target displayed on a Web screen, if the user forgets the keyword, it takes time for the correction work as in the conventional case. It will take. Also, if the keyword is not defined, the corrected part cannot be output. Further, since the corrected portion is output separately from the Web screen, the user cannot intuitively grasp the inconsistency of the correspondence with the test scenario when the Web screen content is corrected.

本発明は、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.

本実施の形態におけるテストシナリオ実行システムの構成例を示す図である。It is a figure which shows the configuration example of the test scenario execution system in this embodiment. 主記憶装置が記憶するプログラムを示すブロック図である。It is a block diagram which shows the program which a main storage device stores. 補助記憶装置が記憶するデータを示すブロック図である。It is a block diagram which shows the data which an auxiliary storage device stores. 画面コンテンツの例を示す図である。It is a figure which shows the example of the screen content. 仮想化情報の例を示す図である。It is a figure which shows the example of the virtualization information. テストスクリプトの例を示す図である。It is a figure which shows the example of the test script. 部品リストの例を示す図である。It is a figure which shows the example of the parts list. 本システムで行われるテストシナリオ実行処理の処理手順を示すフローチャートである。It is a flowchart which shows the processing procedure of the test scenario execution processing performed in this system. Web画面に変更部品、追加部品、削除部品の位置を表示する例を示す図である。It is a figure which shows the example which displays the position of the changed part, the added part, and the deleted part on the Web screen.

以下に添付図面を参照して、本発明にかかるテストシナリオ実行システムおよびテストシナリオ実行方法の実施の形態を詳細に説明する。 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 computer 1000 that constitutes the test scenario execution system is a device used by the user who executes the test. As shown in FIG. 1, the computer 1000 includes a CPU (Central Processing Unit) 110, a main storage device (memory) 120, an input / output device 130, a communication interface 140, and an auxiliary storage device 150. Has been done. Each of these parts constituting the computer 100 is connected by an internal bus.

CPU110は、主記憶装置120に保持されるプログラムを実行する演算装置である。入出力装置130は、ユーザインタフェースを提供するキーボード、マウスといった入力装置、およびLCD(Liquid Crystal Display)といった表示装置から構成される装置である。通信インタフェース140は、ネットワークを介した通信インタフェースを提供するNIC(Network Interface Card)といった通信機器から構成される装置である。補助記憶装置150は、プログラムの実行に伴って生成されるデータやプログラムに使用されるデータを保持するHDD(Hard Disk Drive)といった記憶装置から構成される装置である。 The CPU 110 is an arithmetic unit that executes a program held in the main storage device 120. The input / output device 130 is a device including an input device such as a keyboard and a mouse that provide a user interface, and a display device such as an LCD (Liquid Crystal Display). The communication interface 140 is a device composed of a communication device such as a NIC (Network Interface Card) that provides a communication interface via a network. The auxiliary storage device 150 is a device including a storage device such as an HDD (Hard Disk Drive) that holds data generated when the program is executed and data used for the program.

図2は、主記憶装置120が記憶するプログラムを示すブロック図である。
図2に示すように、主記憶装置120は、ブラウザ表示部1201と、テストシナリオ生成部1202と、テストスクリプト実行部1204と、比較判定部1205とを記憶する。
FIG. 2 is a block diagram showing a program stored in the main storage device 120.
As shown in FIG. 2, the main storage device 120 stores a browser display unit 1201, a test scenario generation unit 1202, a test script execution unit 1204, and a comparison determination unit 1205.

ブラウザ表示部1201は、あらかじめ補助記憶装置150に記憶された画面コンテンツ1501、修正画面コンテンツ1502を表示装置に出力する。テストシナリオ生成部1202は、入力装置から入力された情報からテストシナリオを生成する。テストスクリプト実行部1204は、テストスクリプトを実行し、画面コンテンツ1501を表示装置に表示する。比較判定部1205は、テストスクリプトが実行された際に、最新の画面コンテンツと直近の画面コンテンツとを比較し、修正箇所を判定する。比較判定部1205は、機能的には、第1の処理部と第2の処理部とを有している。上記各部が行う具体的な処理については後述する。続いて、図1に戻って、補助記憶装置150について説明する。 The browser display unit 1201 outputs the screen content 1501 and the modified screen content 1502 stored in the auxiliary storage device 150 in advance to the display device. The test scenario generation unit 1202 generates a test scenario from the information input from the input device. The test script execution unit 1204 executes the test script and displays the screen content 1501 on the display device. When the test script is executed, the comparison determination unit 1205 compares the latest screen content with the latest screen content and determines the correction portion. The comparison determination unit 1205 functionally has a first processing unit and a second processing unit. The specific processing performed by each of the above parts will be described later. Subsequently, returning to FIG. 1, the auxiliary storage device 150 will be described.

図3は、補助記憶装置150が記憶するデータを示すブロック図である。
図3に示すように、補助記憶装置150は、画面コンテンツ1501と、テストシナリオ1503と、部品リスト1504と、修正画面コンテンツ1505と、修正部品リスト1508とを記憶する。
FIG. 3 is a block diagram showing data stored in the auxiliary storage device 150.
As shown in FIG. 3, the auxiliary storage device 150 stores the screen content 1501, the test scenario 1503, the parts list 1504, the correction screen contents 1505, and the correction parts list 1508.

画面コンテンツ1501は、例えば、XML(Extensible Markup Language)やHTML(HyperText Markup Language)によって記載されるドキュメントである。画面コンテンツ1501によって、ユーザが操作可能なWeb画面がブラウザ表示部1201により表示される。上記ドキュメントでは、DOM表現により各要素が記述されている。DOM(Document Object Model)とは、xmlやhtmlの各要素にアクセスするための仕様である。 The screen content 1501 is, for example, a document described by XML (Extensible Markup Language) or HTML (HyperText Markup Language). The screen content 1501 displays a Web screen that can be operated by the user on the browser display unit 1201. In the above document, each element is described by the DOM representation. The DOM (Document Object Model) is a specification for accessing each element of xml and html.

図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 screen content 1501.
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 screen content 1501 describes various elements surrounded by tags. FIG. 4B is a diagram showing an example of a Web screen in which the screen content 1501 described in HTML shown in FIG. 4A is displayed in full screen on a display device. As shown in FIG. 4B, the display device displays the screen content 1501 having the title “Excel”. Further, it can be seen that the screen content 1501 includes the input field 1301 and the search button 1302 as parts. The component is a component displayed on a Web screen such as an input field, a button, and a check box.

テストシナリオ1503は、Webアプリケーション等のソフトウェア(以下、単にWebアプリケーションとする。)のテスト手順を記述したドキュメントである。Webアプリケーションのテスト手順は、あらかじめユーザによって入力装置から入力され、補助記憶装置150に記憶される。 The test scenario 1503 is a document describing a test procedure of software such as a Web application (hereinafter, simply referred to as a Web application). The test procedure of the Web application is input in advance by the user from the input device and stored in the auxiliary storage device 150.

図5は、テストシナリオ1503の例を示す図である。
図5に示すように、テストシナリオ1503には、Xpath形式でテストシナリオが記述されている。図6では、例えば、業務ポータル画面撮影のテスト手順として、ログイン画面でユーザID(user1)、パスワード(password)を入力し、ログインボタンを押下するテストシナリオがXpath形式、DOM表現で記述されている。テストシナリオ1503に記述されている要素と、その要素のXpath形式、DOM表現とをあらかじめ対応付けておく。
FIG. 5 is a diagram showing an example of test scenario 1503.
As shown in FIG. 5, the test scenario 1503 describes the test scenario in the Xpath format. In FIG. 6, for example, as a test procedure for shooting a business portal screen, a test scenario in which a user ID (user1) and a password (password) are input on the login screen and the login button is pressed is described in Xpath format and DOM expression. .. The elements described in the test scenario 1503 are associated with the Xpath format and DOM representation of the elements in advance.

なお、図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 test scenario 1503 may be described not only by specifying Xpath but also by specifying id, or a mixture of these may be described. In FIG. 6, for example, as step 1, top. After opening html, enter "user1" in the input field (input) as step 2, press the button (button) as step 3, and URL (Uniform Resource Locator) is "http: // xxx /" as step 4. "Resource.html" is displayed as the search result, and user1 @ mail. It is described to display com. In FIG. 5, it can be seen that the operation for the input field 1301 and the search button 1302 shown in FIG. 4 is included in the test scenario.

部品リスト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 parts list 1504.
As shown in FIG. 7, the component list 1504 includes a component representation that is a component described in the test scenario 1503, a component position that is a position in the screen content 1501 of the component, and a DOM representation that is the DOM of the component. An image piece, which is an image when the component is displayed on the screen content 1501, is stored in association with the image piece. In FIG. 7, for example, in the test scenario 1503, button [id = search] is described as a part representation, the button which is the part is arranged at the coordinates (x1, y1) of the screen content 1501, and the size of the button is width w1. It can be seen that the height is h1. Further, it can be seen that the DOM representation of this part is defined by the <button> search </ button>, and the screen content 1501 displays the image α representing the part. The parts list 1504 is automatically created at the time of performing the test and stored in the auxiliary storage device 150.

修正画面コンテンツ1505、修正部品リスト1508は、それぞれ、ユーザによって変更された後の最新のバージョンの画面コンテンツ1501、部品リスト1504である。修正画面コンテンツ1505、修正部品リスト1508は、それぞれ、画面コンテンツ1501、部品リスト1504と同様であるため、ここではその説明を省略する。 The modified screen content 1505 and the modified component list 1508 are the latest version of the screen content 1501 and the component list 1504 after being modified by the user, respectively. Since the modified screen content 1505 and the modified parts list 1508 are the same as the screen contents 1501 and the parts list 1504, respectively, the description thereof will be omitted here.

本例では、修正画面コンテンツ1505、修正部品リスト1508が、それぞれ1つずつ記憶されている例を記載しているが、変更されるごとにこれらのファイルを時系列に履歴保持してもよい。変更される都度これらのファイルを記憶しておくことにより、過去に遡及して変更箇所を特定することができる。続いて、本システムで行われる処理について説明する。 In this example, the modification screen content 1505 and the modification component list 1508 are stored one by one, but these files may be retained in chronological order each time they are changed. By storing these files each time they are changed, it is possible to retroactively identify the changed part. Next, the processing performed by this system will be described.

図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 scenario generation unit 1202 generates the test scenario 1503 by the operation from the user, then the screen content 1501 and the test scenario 1503 are changed, and the modified screen content 1505 is stored.

図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 comparison determination unit 1205 compares the screen content 1501 with the modified screen content 1505 and determines whether or not there is a difference in the HTML. (Step S801). For example, in the first processing unit of the comparison determination unit 1205, if the DOM expression of the screen content 1501 is changed, added, or deleted, the changed, added, or deleted portion becomes the difference portion on the HTML.

比較判定部1205の第1の処理部が、画面コンテンツ1501と修正画面コンテンツ1505とを比較し、HTMLの差分箇所があると判定した場合(ステップS801;Yes)、テストスクリプト実行部1204は、全ての差分箇所について以下の処理が実行されたか否かを判定する(ステップS802)。なお、テストスクリプト実行部1204は、比較判定部1205の第1の処理部が、画面コンテンツ1501と修正画面コンテンツ1505とを比較し、HTMLの差分箇所がないと判定した場合(ステップS801;No)、何もせずに本処理を終了させる。 When the first processing unit of the comparison determination unit 1205 compares the screen content 1501 and the correction screen content 1505 and determines that there is a difference in HTML (step S801; Yes), the test script execution unit 1204 is all. It is determined whether or not the following processing has been executed for the difference portion of (step S802). When the first processing unit of the comparison determination unit 1205 compares the screen content 1501 and the correction screen content 1505 and determines that there is no difference in HTML in the test script execution unit 1204 (step S801; No). , End this process without doing anything.

テストスクリプト実行部1204が、全ての差分箇所について以下の処理が実行されていないと判定した場合(ステップS802;No)、比較判定部1205の第2の処理部は、未処理の差分箇所から差分となる部品を特定し、特定した部品が部品リスト1504または修正部品リスト1508にあるか否かを判定する(ステップS803、S804)。例えば、比較判定部1205の第2の処理部は、図4(a)に示したHTMLの中から差分箇所を判定し、その差分箇所の表現と、図7に示した部品リスト1504のDOM表現とを比較し、一致するDOM表現があるか否かを判定し、一致するDOM表現があると判定した場合、その差分箇所は部品による差分であると判定し、その差分となる部品を特定する。 When the test script execution unit 1204 determines that the following processing has not been executed for all the difference points (step S802; No), the second processing unit of the comparison judgment unit 1205 makes a difference from the unprocessed difference points. The parts to be used are specified, and it is determined whether or not the specified parts are in the parts list 1504 or the modified parts list 1508 (steps S803 and S804). For example, the second processing unit of the comparison determination unit 1205 determines the difference portion from the HTML shown in FIG. 4A, represents the difference portion, and represents the DOM of the parts list 1504 shown in FIG. 7. And, it is determined whether or not there is a matching DOM expression, and if it is determined that there is a matching DOM expression, it is determined that the difference part is a difference due to a part, and the component that is the difference is specified. ..

比較判定部1205の第2の処理部は、HTML上で差分となる部品が部品リスト1504または修正部品リスト1508にあると判定した場合(ステップS804;Yes)、さらに、その部品に対応する部品表現がテストシナリオにあるか否かを判定する(ステップS805)。例えば、比較判定部1205の第2の処理部は、図7に示した部品リスト1504または修正部品リスト1508を参照しステップS803で特定した部品のDOM表現に対応する部品表現を読み取り、読み取った部品表現をキーにしてテストシナリオ1503を参照し、キーにした部品表現がテストシナリオ1503に含まれているか否かを判定する。 When the second processing unit of the comparison determination unit 1205 determines that the component to be the difference is in the component list 1504 or the modified component list 1508 on HTML (step S804; Yes), the component representation corresponding to the component is further performed. Is in the test scenario (step S805). For example, the second processing unit of the comparison determination unit 1205 reads and reads the component representation corresponding to the DOM representation of the component specified in step S803 with reference to the component list 1504 or the modified component list 1508 shown in FIG. The test scenario 1503 is referred to by using the expression as a key, and it is determined whether or not the component expression used as the key is included in the test scenario 1503.

比較判定部1205の第2の処理部は、その部品に対応する部品表現がテストシナリオ1503に含まれていると判定した場合(ステップS805;Yes)、その部品表現がテストシナリオ1503で使用されている部品表現(変更部品)であると判定し(ステップS806)、ブラウザ表示部1201は、テストシナリオでのその部品の記述箇所と、Web画面上でのその部品の部品位置とを表示(第1の表示)する(ステップS807)。表示例については図9を用いて後述する。上記部品位置は、例えば、図7に示した部品リスト1504において、ステップS803で特定したDOM表現やステップS805でキーにした部品表現に対応する部品位置である。 When the second processing unit of the comparison determination unit 1205 determines that the component representation corresponding to the component is included in the test scenario 1503 (step S805; Yes), the component representation is used in the test scenario 1503. It is determined that the part is represented (changed part) (step S806), and the browser display unit 1201 displays the description part of the part in the test scenario and the part position of the part on the Web screen (first). (Display) (step S807). A display example will be described later with reference to FIG. The component positions are, for example, component positions corresponding to the DOM representation specified in step S803 and the component representation keyed in step S805 in the component list 1504 shown in FIG. 7.

比較判定部1205の第2の処理部は、その部品に対応する部品表現がテストシナリオにないと判定した場合(ステップS805;No)、その部品表現はテストシナリオ1503では使用されていない部品表現(変更部品)であると判定し(ステップS808)、ブラウザ表示部1201は、Web画面上でのその部品の部品位置を表示(第2の表示)する(ステップS809)。表示例については図9を用いて後述する。上記部品位置は、例えば、図7に示した部品リスト1504において、ステップS803で特定したDOM表現やステップS805でキーにした部品表現に対応する部品位置である。 When the second processing unit of the comparison determination unit 1205 determines that the component representation corresponding to the component is not in the test scenario (step S805; No), the component representation is not used in the test scenario 1503 (step S805; No). It is determined that the component is a modified component (step S808), and the browser display unit 1201 displays the component position of the component on the Web screen (second display) (step S809). A display example will be described later with reference to FIG. The component positions are, for example, component positions corresponding to the DOM representation specified in step S803 and the component representation keyed in step S805 in the component list 1504 shown in FIG. 7.

ステップS804において、比較判定部1205の第2の処理部は、HTML上で差分となる部品が部品リスト1504または修正部品リスト1508にないと判定した場合(ステップS804;No)、さらに、その部品に対応する部品表現がテストシナリオにあるか否かを判定する(ステップS810)。判定方法についてはステップS805と同様であるため、ここではその説明を省略する。 In step S804, when the second processing unit of the comparison determination unit 1205 determines that the component to be the difference on the HTML is not in the component list 1504 or the modified component list 1508 (step S804; No), the component is further added. It is determined whether or not the corresponding component representation is in the test scenario (step S810). Since the determination method is the same as in step S805, the description thereof will be omitted here.

比較判定部1205の第2の処理部は、その部品に対応する部品表現がテストシナリオにあると判定した場合(ステップS810;Yes)、その部品表現がテストシナリオ1503で使用されている部品表現(新規部品)であると判定し(ステップS811)、ブラウザ表示部1201は、テストシナリオでのその部品の記述箇所と、Web画面上でのその部品の部品位置とを表示(第3の表示)する(ステップS812)。表示例については図9を用いて後述する。上記部品位置は、例えば、図7に示した部品リスト1504において、ステップS803で特定したDOM表現やステップS805でキーにした部品表現に対応する部品位置である。 When the second processing unit of the comparison determination unit 1205 determines that the component representation corresponding to the component is in the test scenario (step S810; Yes), the component representation is the component representation used in the test scenario 1503 (step S810; Yes). (Step S811), the browser display unit 1201 displays the description location of the part in the test scenario and the part position of the part on the Web screen (third display). (Step S812). A display example will be described later with reference to FIG. The component positions are, for example, component positions corresponding to the DOM representation specified in step S803 and the component representation keyed in step S805 in the component list 1504 shown in FIG. 7.

比較判定部1205の第2の処理部は、その部品に対応する部品表現がテストシナリオにないと判定した場合(ステップS810;No)、その部品表現はテストシナリオ1503では使用されていない部品表現(新規部品)であると判定し(ステップS813)、ブラウザ表示部1201は、Web画面上でのその部品の部品位置を表示(第4の表示)する(ステップS814)。表示例については図9を用いて後述する。上記部品位置は、例えば、図7に示した部品リスト1504において、ステップS803で特定したDOM表現やステップS805でキーにした部品表現に対応する部品位置である。 When the second processing unit of the comparison determination unit 1205 determines that the component representation corresponding to the component is not in the test scenario (step S810; No), the component representation is not used in the test scenario 1503 (step S810; No). It is determined that the component is a new component (step S813), and the browser display unit 1201 displays the component position of the component on the Web screen (fourth display) (step S814). A display example will be described later with reference to FIG. The component positions are, for example, component positions corresponding to the DOM representation specified in step S803 and the component representation keyed in step S805 in the component list 1504 shown in FIG. 7.

ステップS802において、比較判定部1205の第2の処理部は、全ての差分箇所について以下の処理が実行されたと判定した場合(ステップS802;Yes)、部品リスト1504と修正部品リスト1508とを比較し、修正部品リスト1508に存在しない部品を消失部品と判定する(ステップS815)。例えば、比較判定部1205は、部品リスト1504の画像片が修正部品リスト1508の画像片に記憶されていない場合、その画像片で表示される部品が削除されたと判定する。 In step S802, when the second processing unit of the comparison determination unit 1205 determines that the following processing has been executed for all the difference points (step S802; Yes), the parts list 1504 and the correction parts list 1508 are compared. , A component that does not exist in the modified component list 1508 is determined to be a lost component (step S815). For example, when the image piece of the parts list 1504 is not stored in the image piece of the modified parts list 1508, the comparison determination unit 1205 determines that the part displayed by the image piece has been deleted.

そして、ブラウザ表示部1201は、消失部品と判定されたWeb画面上での部品位置を表示(第5の表示)する(ステップS816)。表示例については図9を用いて後述する。上記部品位置は、例えば、図7に示した部品リスト1504において、ステップS803で特定したDOM表現やステップS805でキーにした部品表現に対応する部品位置である。ステップS816の処理が終了すると、図8に示したテストシナリオ実行処理が終了する。 Then, the browser display unit 1201 displays (fifth display) the position of the component on the Web screen determined to be the lost component (step S816). A display example will be described later with reference to FIG. The component positions are, for example, component positions corresponding to the DOM representation specified in step S803 and the component representation keyed in step S805 in the component list 1504 shown in FIG. 7. When the process of step S816 is completed, the test scenario execution process shown in FIG. 8 is completed.

図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 input field 1301 shown in FIG. 4B has been changed, the input field 1301 displayed at the part position of the parts list 1504 shown in FIG. 7 is a dotted line as the input field 1301A. It shows that it is displayed as a rectangle. Further, since the DOM expression of the search button 1302 has been changed to "search execution", the search button 1302 displayed at the part position of the parts list 1504 shown in FIG. 7 is used as the search button 1302A and is of the same type as the input field 1301A. It shows that it is displayed as a dotted rectangle.

さらに、入力欄1301、検索ボタン1302は、シナリオテストにも使用されているため、図5に示したテストシナリオ1503の中で、図7に示した部品リスト1504のDOM表現に対応する部品表現に、入力欄1301A、検索ボタン1302Aと同種の点線の矩形で囲まれていることを示している。このように、図8のステップS807では、変更部品が明示されたWeb画面およびテストシナリオが、表示装置に表示される。表示方法については、例えば、変更部品が明示されたWeb画面と、変更部品が明示されたテストシナリオとを表示装置に並列に表示させることにより、ユーザは、Web画面上の変更部品と、テストシナリオ上での変更が必要となる部品とを一目で確認することができる。 Further, since the input field 1301 and the search button 1302 are also used for the scenario test, in the test scenario 1503 shown in FIG. 5, the part representation corresponding to the DOM representation of the parts list 1504 shown in FIG. 7 is used. , Is surrounded by a dotted rectangle of the same type as the input field 1301A and the search button 1302A. As described above, in step S807 of FIG. 8, the Web screen and the test scenario in which the changed parts are clearly shown are displayed on the display device. Regarding the display method, for example, by displaying the Web screen in which the changed parts are clearly shown and the test scenario in which the changed parts are shown in parallel on the display device, the user can display the changed parts on the Web screen and the test scenario. You can see at a glance which parts need to be changed above.

また、図9では、図4(b)に示したテキスト1303の表示位置が変更されたため、部品リスト1504に記憶されている部品位置に表示されているテキスト1303が、テキスト1303Aとして実線の矩形で表示されていることを示している。なお、テキスト1303は、シナリオテストに使用されていない。このため、図8のステップS809では、変更部品が明示されたWeb画面が、表示装置に表示される。表示方法については、例えば、変更部品が明示されたWeb画面と、変更部品が明示されていないテストシナリオとを表示装置に並列に表示させることにより、ユーザは、Web画面上の変更部品と、テストシナリオ上での変更が必要となる部品がないことを一目で確認することができる。 Further, in FIG. 9, since the display position of the text 1303 shown in FIG. 4B has been changed, the text 1303 displayed at the component position stored in the component list 1504 is represented by a solid rectangle as the text 1303A. Indicates that it is displayed. The text 1303 is not used for the scenario test. Therefore, in step S809 of FIG. 8, a Web screen in which the changed parts are clearly displayed is displayed on the display device. Regarding the display method, for example, by displaying the Web screen in which the changed parts are specified and the test scenario in which the changed parts are not specified in parallel on the display device, the user can test the changed parts on the Web screen. You can see at a glance that there are no parts that need to be changed in the scenario.

また、図9では、図4(b)では表示されていなかったテキスト1304が表示されているため、部品リスト1504の部品位置にテキスト1304として二重線の矩形で表示されていることを示している。さらに、テキスト1304は、シナリオテストにも使用されているため、テストシナリオ1503の中で、部品リスト1504のDOM表現に対応する部品表現に、テキスト1304と同種の二重線の矩形で囲まれる。このように、図8のステップS812では、新規に追加された部品が明示されたWeb画面およびテストシナリオが、表示装置に表示される。表示方法については、例えば、追加部品が明示されたWeb画面と、追加部品が明示されたテストシナリオとを表示装置に並列に表示させることにより、ユーザは、Web画面上の追加部品と、テストシナリオ上での追加が必要となる部品とを一目で確認することができる。 Further, in FIG. 9, since the text 1304 that was not displayed in FIG. 4B is displayed, it is shown that the text 1304 is displayed as the text 1304 at the component position in the component list 1504 as a double-line rectangle. There is. Further, since the text 1304 is also used for the scenario test, in the test scenario 1503, the part representation corresponding to the DOM representation of the parts list 1504 is surrounded by a double-line rectangle similar to the text 1304. As described above, in step S812 of FIG. 8, the Web screen and the test scenario in which the newly added parts are clearly displayed are displayed on the display device. Regarding the display method, for example, by displaying the Web screen in which the additional parts are specified and the test scenario in which the additional parts are specified in parallel on the display device, the user can display the additional parts on the Web screen and the test scenario. You can see at a glance which parts need to be added above.

また、図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 component list 1504. Is shown. The text 1303 is not used for the scenario test. Therefore, in step S814 of FIG. 8, a Web screen in which newly added parts are clearly indicated is displayed on the display device. Regarding the display method, for example, by displaying the Web screen in which the additional parts are specified and the test scenario in which the additional parts are not specified in parallel on the display device, the user can test the changed parts on the Web screen. You can see at a glance that there are no parts that need to be added in the scenario.

さらに、図9では、図4(b)で表示されていたテキスト1306が削除されて表示されなくなっているため、部品リスト1504に記憶されていた元の部品位置にテキスト1306Aとして二点鎖線の矩形で表示されていることを示している。 Further, in FIG. 9, since the text 1306 displayed in FIG. 4B has been deleted and is no longer displayed, the rectangular chain line rectangle as the text 1306A at the original component position stored in the component list 1504. Indicates that it is displayed as.

なお、削除された部品についても、シナリオテストで使用されているか否かによって、銃置き変更部品や追加部品と同様に、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 text 1306 is used for the scenario test, the part representation corresponding to the DOM representation of the parts list 1504 is surrounded by a two-dot chain rectangle of the same type as the text 1306. In this way, the Web screen and the test scenario in which the deleted parts are clearly displayed are displayed on the display device. For example, by displaying the Web screen in which the additional parts are specified and the test scenario in which the additional parts are specified in parallel on the display device, the user can delete the deleted parts on the Web screen and the test scenario. You can check at a glance which parts are required.

また、テキスト1306がシナリオテストに使用されていない場合には、削除された部品が明示されたWeb画面を表示装置に表示する。例えば、削除部品が明示されたWeb画面と、削除部品が明示されていないテストシナリオとを表示装置に並列に表示させることにより、ユーザは、Web画面上の変更部品と、テストシナリオ上での削除が必要となる部品がないことを一目で確認することができる。 When the text 1306 is not used in the scenario test, a Web screen clearly showing the deleted parts is displayed on the display device. For example, by displaying the Web screen in which the deleted parts are specified and the test scenario in which the deleted parts are not specified in parallel on the display device, the user can delete the changed parts on the Web screen and the test scenario. It can be confirmed at a glance that there are no parts that require.

以上説明したように、本システムでは、上記のようなテストシナリオ実行処理を実行することにより、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 comparison determination unit 1205 selects the screen content before modification and the screen content before modification obtained from the test scenario before modification. The difference part with the modified screen content obtained from the modified test scenario obtained at the time of modification is specified, and the second processing unit constituting the comparison judgment unit 1205 is the specified difference part and the uncorrected difference part. Based on the test scenario of the test scenario or the test scenario after the modification and the screen content before the modification or the screen content after the modification, the display part displays the changed part on the screen displayed by the screen content before the modification or the screen content after the modification. Since it is displayed in, the above-mentioned inconsistent part can be easily grasped.

また、上記第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 computer 110 CPU
120 Main storage device (memory)
1201 Browser display unit 1202 Test scenario generation unit 1204 Test script execution unit 1205 Comparison judgment unit 130 Input / output device 140 Communication interface 150 Auxiliary storage device 1501 Screen content 1503 Test scenario 1504 Parts list 1505 Modified screen content 1508 Modified parts list.

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.
前記第2の処理部は、前記第1のテストシナリオまたは前記第2のテストシナリオにおける記述箇所の部品がDOM(Document Object Model)の擬似クラスであるnth−child表現により記述されているか否かを判定し、前記記述箇所の部品が前記nth−child表現により記述されていると判定した場合、他のnth−child表現により記述されている部品を検索し、前記記述箇所とともに変更すべき箇所として表示部に表示する、
ことを特徴とする請求項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.
前記第2の処理部は、前記第1のテストシナリオまたは前記第2のテストシナリオにおける記述箇所の部品がXpath形式により記述されているか否かを判定し、前記記述箇所の部品がXpath形式により記述されていると判定した場合、当該部品の記述を、あらかじめ定められた前記Xpath形式に対応する他の形式の記述に修正した変更案を表示部に表示する、
ことを特徴とする請求項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.
前記第2の処理部は、複数の前記第1の画面コンテンツまたは前記第2の画面コンテンツの中から、前記第1のテストシナリオまたは前記第2のテストシナリオにおける記述箇所の部品と同じ部品が記述された前記第1の画面コンテンツまたは前記第2の画面コンテンツを特定し、特定した前記第1の画面コンテンツまたは前記第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.
前記第2の処理部は、前記第1の画面コンテンツに含まれる部品と当該部品の位置とを対応付けた第1の部品リストまたは前記第2の画面コンテンツに含まれる部品と当該部品の位置とを対応付けた第2の部品リストとに基づいて、前記第1の画面コンテンツまたは前記第2の画面コンテンツにおける前記部品の位置と、前記第1のテストシナリオまたは前記第2のテストシナリオにおける前記部品の記述箇所と、を前記表示部に表示する、
ことを特徴とする請求項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.
前記第2の処理部は、前記部品の変更により生じた前記差分箇所を示す前記部品の位置または前記部品の記述箇所と、前記部品の追加により生じた前記差分箇所を示す前記部品の位置または前記部品の記述箇所と、前記部品の削除により生じた前記差分箇所を示す前記部品の位置または前記部品の記述箇所とを、互いに異なる表示とする、
ことを特徴とする請求項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.
JP2017119708A 2017-06-19 2017-06-19 Test scenario execution system and test scenario execution method Active JP6941980B2 (en)

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)

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