Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7534865B2 - Test automation equipment - Google Patents
[go: Go Back, main page]

JP7534865B2 - Test automation equipment - Google Patents

Test automation equipment Download PDF

Info

Publication number
JP7534865B2
JP7534865B2 JP2020075215A JP2020075215A JP7534865B2 JP 7534865 B2 JP7534865 B2 JP 7534865B2 JP 2020075215 A JP2020075215 A JP 2020075215A JP 2020075215 A JP2020075215 A JP 2020075215A JP 7534865 B2 JP7534865 B2 JP 7534865B2
Authority
JP
Japan
Prior art keywords
test
test script
checklist
program checklist
execution result
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
JP2020075215A
Other languages
Japanese (ja)
Other versions
JP2021174084A (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 Ltd
Original Assignee
Hitachi 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 Ltd filed Critical Hitachi Ltd
Priority to JP2020075215A priority Critical patent/JP7534865B2/en
Publication of JP2021174084A publication Critical patent/JP2021174084A/en
Application granted granted Critical
Publication of JP7534865B2 publication Critical patent/JP7534865B2/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 automation device.

テストシナリオの抜け漏れを防いでテストの網羅性を高めるために、表形式のプログラムチェックリスト形式でテストを設計し、これに基づいてテストを行う方法が知られている。表形式のプログラムチェックリストを用いて、画面の操作を行うテストを自動化するためには、以下の手順1~手順3が必要である。 In order to prevent omissions in test scenarios and increase the comprehensiveness of tests, a method is known in which tests are designed in the form of a tabular program checklist and then tested based on this. To automate tests that involve screen operations using a tabular program checklist, steps 1 to 3 below are required.

手順1では、表形式のプログラムチェックリストを参照しながら、テストスクリプトを手動で作成する。手順2では、テストスクリプトを画面自動テストツールが自動実行する。手順3では、出力された結果を参照し、表形式のプログラムチェックリストに結果を記載する。この際、手順1と手順3は人手で行われている。例えば、特許文献1には自動テストツールに関する技術が記載されている。 In step 1, a test script is created manually while referring to a tabular program checklist. In step 2, the test script is automatically executed by an automatic screen test tool. In step 3, the output results are referred to and entered in the tabular program checklist. At this time, steps 1 and 3 are performed manually. For example, Patent Document 1 describes technology related to automatic test tools.

特開2001-256077号公報JP 2001-256077 A

上記従来技術では、人手でテストスクリプトを作成している。このため、テストスクリプトの記述法の知識習得負荷、テストスクリプトの作成負荷及びプログラムチェックリストの内容をテストスクリプトに正確に反映する精度に関する課題が存在する。また、出力された結果を表形式のプログラムチェックリストに反映するための工数が必要であるという課題も存在する。 In the above conventional technology, test scripts are created manually. This poses issues related to the burden of acquiring knowledge about how to write test scripts, the burden of creating test scripts, and the accuracy of accurately reflecting the contents of the program checklist in the test script. Another issue is the labor required to reflect the output results in a tabular program checklist.

本発明の目的は、テスト自動化システムにおいて、表形式のプログラムチェックリストを用いた画面自動テストを自動で実行することにある。 The object of the present invention is to automatically execute screen automation tests using a tabular program checklist in a test automation system.

本発明の一態様のテスト自動化装置は、テストスクリプトに記述されたテストスクリプト文字列の解析を行うテストスクリプト解析部と、解析した前記テストスクリプト文字列を、テストシナリオを有する表形式のプログラムチェックリストに整形するプログラムチェックリスト生成部と、前記テストスクリプトに基づいて画面自動テストツールを実行して実行結果ファイルを出力する画面自動テストツール部と、前記実行結果ファイルを解析する実行結果ファイル解析部と、前記実行結果ファイルの解析結果を前記プログラムチェックリストに反映させるテスト結果反映部と、を有することを特徴とする。 The test automation device of one aspect of the present invention is characterized by having a test script analysis unit that analyzes test script character strings written in a test script, a program checklist generation unit that formats the analyzed test script character strings into a tabular program checklist having a test scenario, a screen automation test tool unit that executes a screen automation test tool based on the test script and outputs an execution result file, an execution result file analysis unit that analyzes the execution result file, and a test result reflection unit that reflects the analysis results of the execution result file in the program checklist.

本発明の一態様のテスト自動化装置は、テストシナリオが記述された表形式のプログラムチェックリストからテストスクリプト文字列を抽出してテストスクリプトを生成するテストスクリプト生成部と、生成された前記テストスクリプトに基づいて画面自動テストツールを実行し、実行結果ファイルを出力する画面自動テストツール部と、前記実行結果ファイルを解析する実行結果ファイル解析部と、前記実行結果ファイルの解析結果を前記プログラムチェックリストに反映させるテスト結果反映部と、を有することを特徴とする。 The test automation device of one aspect of the present invention is characterized by having a test script generation unit that generates a test script by extracting test script character strings from a tabular program checklist in which a test scenario is described, a screen automation test tool unit that executes a screen automation test tool based on the generated test script and outputs an execution result file, an execution result file analysis unit that analyzes the execution result file, and a test result reflection unit that reflects the analysis result of the execution result file in the program checklist.

本発明の一態様によれば、テスト自動化システムにおいて、表形式のプログラムチェックリストを用いた画面自動テストを自動で実行することができる According to one aspect of the present invention, a test automation system can automatically perform screen automation testing using a tabular program checklist.

テスト自動化システムの全体構成を示す図である。FIG. 1 illustrates an overall configuration of a test automation system. 実施例のテスト自動化装置の動作を示すフロー図である。FIG. 4 is a flow chart showing the operation of the test automation device according to the embodiment. 実施例のテスト自動化装置の動作を示すイメージ図である。FIG. 2 is a conceptual diagram showing the operation of the test automation device according to the embodiment. 実施例のテスト自動化装置の動作を示すフロー図である。FIG. 4 is a flow chart showing the operation of the test automation device according to the embodiment. 実施例のテスト自動化装置の動作を示すイメージ図である。FIG. 2 is a conceptual diagram showing the operation of the test automation device according to the embodiment. テストスクリプトの記述内容の一例を示す図である。FIG. 13 is a diagram illustrating an example of the contents of a test script. 表形式のプログラムチェックリストの内容を示す図である。FIG. 13 is a diagram showing the contents of a program checklist in table format. 表形式プログラムチェックリストとテストスクリプトとの対応表を示す図である。FIG. 13 is a diagram showing a correspondence table between a tabular program checklist and a test script. 表形式プログラムチェックリストとテストスクリプトとの対応図である。FIG. 11 is a diagram showing the correspondence between a tabular program checklist and a test script. 実行結果ファイルの内容を示す図である。FIG. 13 is a diagram showing the contents of an execution result file. 結果記載済みプログラムチェックリストの内容を示す図である。FIG. 13 is a diagram showing the contents of a program checklist with results recorded. 実行結果ファイルと結果記入済み表形式プログラムチェックリストとの対応表を示す図である。FIG. 13 is a diagram showing a correspondence table between an execution result file and a tabular program checklist with results entered therein. 実行結果ファイルと結果記入済み表形式プログラムチェックリストとの対応図である。FIG. 11 is a diagram showing the correspondence between the execution result file and a tabular program checklist with results entered therein.

以下、図面を用いて、実施例について説明する。 The following describes the examples using the drawings.

図1は、テスト自動化システムの全体構成を示す図である。テスト自動化システムは、テストスクリプトと表形式プログラムチェックリストを相互に変換する。 Figure 1 shows the overall configuration of a test automation system. The test automation system converts test scripts to tabular program checklists and vice versa.

テスト自動化システムは、アプリケーション実行端末100とテスト自動化装置200を有する。アプリケーション実行端末100とテスト自動化システム装置200は、ネットワーク300を介して接続されている。アプリケーション実行端末100はプログラム110を有する。 The test automation system has an application execution terminal 100 and a test automation device 200. The application execution terminal 100 and the test automation system device 200 are connected via a network 300. The application execution terminal 100 has a program 110.

テスト自動化装置200は、記憶装置210、演算装置220、メモリ230、入力装置240及び表示装置250を有する。記憶装置210は、画面自動テストツール部211、テストスクリプト解析部212、プログラムチェックリスト生成部213、実行結果ファイル解析部214、テスト結果反映部215及びテストスクリプト生成部216を有する。 The test automation device 200 has a storage device 210, a computing device 220, a memory 230, an input device 240, and a display device 250. The storage device 210 has a screen automatic test tool unit 211, a test script analysis unit 212, a program checklist generation unit 213, an execution result file analysis unit 214, a test result reflection unit 215, and a test script generation unit 216.

また、記憶装置210は、テストスクリプト260(図6参照)、表形式プログラムチェックリスト261(図7参照)、実行結果ファイル262(図10参照)、結果記載済プログラムチェックリスト263(図11参照)及びブラウザ要素データ264を記憶する。 The storage device 210 also stores a test script 260 (see FIG. 6), a tabular program checklist 261 (see FIG. 7), an execution result file 262 (see FIG. 10), a program checklist with results 263 (see FIG. 11), and browser element data 264.

図2を参照して、実施例のテスト自動化装置の動作について説明する。
図1の入力装置240を介してテストスクリプト260、ブラウザ要素データ264、実行結果ファイル262及び表形式プログラムチェックリスト261が入力される。
図1の表示装置250を介して、表形式プログラムチェックリスト261、実行結果ファイル262及び結果記載済プログラムチェックリスト263が出力される。
The operation of the test automation device of the embodiment will be described with reference to FIG.
A test script 260, browser element data 264, an execution result file 262, and a tabular program checklist 261 are input via the input device 240 in FIG.
A tabular program checklist 261, an execution result file 262, and a result-described program checklist 263 are output via the display device 250 in FIG.

次に、処理の流れについて説明する。
処理1では、テストスクリプト解析部212が、テストスクリプト260とブラウザ要素データ264の読込とテストスクリプト文字列の解析を行う(S201)。
処理2では、プログラムチェックリスト生成部213が、テストスクリプト解析部212が解析した文字列を表形式プログラムチェックリスト261に整形し生成する(S202)。ここで、図9に、テストスクリプト解析部212における表形式プログラムチェックリスト261とテストスクリプト260と対応図を示す。
処理3では、画面自動テストツール部211が、画面自動テストツールを実行して実行結果ファイル262を出力する(S203)。
処理4では、実行結果ファイル解析部214が、実行結果ファイル262の読込と解析を行う(S204)。
処理5では、テスト結果反映部215が、解析済実行結果を表形式のプログラムチェックリスト261に記載する(S205)。ここで、図11に、結果記載済みプログラムチェックリスト263の内容を示す。図11の確認内容の3行目には、シナリオ名がPCL-003の場合、結果が“失敗”であることを示す×印が記述されている。また、図13に、テスト結果反映部215における実行結果ファイル262と結果記入済み表形式プログラムチェックリスト263の対応図を示す。
Next, the process flow will be described.
In process 1, the test script analysis unit 212 reads the test script 260 and the browser element data 264 and analyzes the test script character string (S201).
In process 2, the program checklist generating unit 213 formats and generates the character string analyzed by the test script analyzing unit 212 into a tabular program checklist 261 (S202). Here, FIG. 9 shows the correspondence between the tabular program checklist 261 in the test script analyzing unit 212 and the test script 260.
In process 3, the screen automatic test tool unit 211 executes the screen automatic test tool and outputs the execution result file 262 (S203).
In process 4, the execution result file analysis unit 214 reads and analyzes the execution result file 262 (S204).
In process 5, the test result reflection unit 215 writes the analyzed execution results in a tabular program checklist 261 (S205). Figure 11 shows the contents of the program checklist 263 with results written in it. In the third line of the confirmation contents in Figure 11, when the scenario name is PCL-003, an x mark is written indicating that the result is "failure". Figure 13 shows the correspondence between the execution result file 262 in the test result reflection unit 215 and the tabular program checklist 263 with results written in it.

結果記載済みプログラムチェックリスト263の内容は、表示装置250に表示される。利用者は、表示装置250に表示された結果記載済みプログラムチェックリスト263の内容を確認する。そして、結果が“失敗”であることを示す×印が記述されている場合は、例えば、図1のアプリケーション実行端末100のプログラム110を変更して再度テストを行う。 The contents of the program checklist 263 with results entered are displayed on the display device 250. The user checks the contents of the program checklist 263 with results entered displayed on the display device 250. If an X mark is entered indicating that the result is "failed," the user, for example, modifies the program 110 of the application execution terminal 100 in FIG. 1 and performs the test again.

図3を参照して、テストスクリプトを入力とする利用イメージについて説明する。
最初に、利用者は、事前処理として、テストスクリプト260とブラウザ要素データ264を用意する。
次に、処理1及び処理2で、テストスクリプト260とブラウザ要素データ264を用いて、表形式プログラムチェックリスト261を生成する。
次に、処理3で、テストスクリプト260に基づいて画面自動テストツール部211の画面自動テストツールを用いて、実行結果ファイル262を生成する。
次に、処理4及び処理5で、表形式プログラムチェックリスト261と実行結果ファイル262を用いて、結果記載済プログラムチェックリスト263を生成する。
A usage image in which a test script is input will be described with reference to FIG.
First, the user prepares a test script 260 and browser element data 264 as a pre-processing step.
Next, in processes 1 and 2, a tabular program checklist 261 is generated using the test script 260 and the browser element data 264.
Next, in process 3, an execution result file 262 is generated based on the test script 260 using the screen automatic test tool of the screen automatic test tool unit 211.
Next, in processes 4 and 5, the tabular program checklist 261 and the execution result file 262 are used to generate a result-described program checklist 263.

図4を参照して、実施例のテスト自動化装置の動作について説明する。
図1の入力装置240を介して、表形式プログラムチェックリスト261、テストスクリプト260、ブラウザ要素データ264、実行結果ファイル262及び表形式プログラムチェックリスト261が入力される。
図1の表示装置250を介して、テストスクリプト260、実行結果ファイル262及び結果記載済プログラムチェックリスト263が出力される。
The operation of the test automation device of the embodiment will be described with reference to FIG.
A tabular program checklist 261, a test script 260, browser element data 264, an execution result file 262, and the tabular program checklist 261 are input via the input device 240 in FIG.
A test script 260, an execution result file 262, and a program checklist with results 263 are output via the display device 250 in FIG.

次に、処理の流れについて説明する。
処理1では、テストスクリプト生成部216が、表形式プログラムチェックリスト261を読込んでテストスクリプト文字列を生成する(S401)。
処理2では、画面自動テストツール部211が、画面自動テストツールを実行して実行結果ファイル262を出力する(S402)。
処理3では、実行結果ファイル解析部214が、実行結果ファイル262を読込んで実行結果ファイル262を解析する(S403)。
処理4では、テスト結果反映部215が、解析済の実行結果を表形式のプログラムチェックリスト261に記載する(S404)。
Next, the process flow will be described.
In process 1, the test script generation unit 216 reads the tabular program checklist 261 and generates a test script character string (S401).
In process 2, the screen automatic test tool unit 211 executes the screen automatic test tool and outputs the execution result file 262 (S402).
In process 3, the execution result file analysis unit 214 reads the execution result file 262 and analyzes the execution result file 262 (S403).
In process 4, the test result reflection unit 215 writes the analyzed execution results in the program checklist 261 in tabular form (S404).

ここで、図11に、結果記載済みプログラムチェックリスト263の内容を示す。図11の確認内容の3行目には、シナリオ名がPCL-003の場合、結果が“失敗”であることを示す×印が記述されている。また、図13に、テスト結果反映部215における実行結果ファイル262と結果記入済み表形式プログラムチェックリスト263の対応図を示す。 Figure 11 shows the contents of the program checklist with results 263. In the third line of the confirmation contents in Figure 11, when the scenario name is PCL-003, an X is written to indicate that the result is "failure." Figure 13 shows the correspondence between the execution result file 262 in the test result reflection unit 215 and the tabular program checklist with results 263.

結果記載済みプログラムチェックリスト263の内容は、表示装置250に表示される。利用者は、表示装置250に表示された結果記載済みプログラムチェックリスト263の内容を確認する。そして、結果が“失敗”であることを示す×印が記述されている場合は、例えば、図1のアプリケーション実行端末100のプログラム110を変更して再度テストを行う。 The contents of the program checklist 263 with results entered are displayed on the display device 250. The user checks the contents of the program checklist 263 with results entered displayed on the display device 250. If an X mark is entered indicating that the result is "failed," the user, for example, modifies the program 110 of the application execution terminal 100 in FIG. 1 and performs the test again.

図5を参照して、表形式プログラムチェックリストを入力とする利用イメージについて説明する。 Referring to Figure 5, we will explain how to use the system with a tabular program checklist as input.

最初に、利用者は、事前処理として、表形式プログラムチェックリスト261とブラウザ要素データ264を用意する。
次に、処理1で、表形式プログラムチェックリスト261を用いてテストスクリプト260を生成する。
次に、処理2で、テストスクリプト260に基づいて画面自動テストツール部211の画面自動テストツールを用いて、実行結果ファイル262を生成する。
次に、処理3及び処理4で、表形式プログラムチェックリスト261、ブラウザ要素データ264及び実行結果ファイル262を用いて、結果記載済のプログラムチェックリスト263を生成する。
First, the user prepares a tabular program checklist 261 and browser element data 264 as pre-processing.
Next, in process 1, a test script 260 is generated using the tabular program checklist 261.
Next, in process 2, an execution result file 262 is generated based on the test script 260 using the screen automatic test tool of the screen automatic test tool unit 211.
Next, in processes 3 and 4, the tabular program checklist 261, the browser element data 264, and the execution result file 262 are used to generate a program checklist 263 with results described therein.

図6は、テストスクリプト260の記述内容の一例を示す図である。
図6では、図書館の検索動作を例に取り説明する。
FIG. 6 is a diagram showing an example of the description content of the test script 260. As shown in FIG.
FIG. 6 illustrates an example of a library search operation.

前提条件(Background)として、ブラウザサイズを(1200,800)に設定し、”/ja/login/”をブラウザで開く。 As a prerequisite (Background), set the browser size to (1200, 800) and open "/ja/login/" in the browser.

シナリオ(Scenario:PCL-001)の場合は、”図書”で検索を実行する。
この際、「チェック条件」として、”ログイン”ボタンを押し、”book-search.蔵書検索”を押す。そして、”book-search.書籍名”に”図書”を入力する。次に、”検索”ボタンを押す。
In the case of scenario (PCL-001), a search is performed for "books".
In this case, as the "check conditions", press the "Login" button, then press "book-search. Book search". Then, enter "Book" in "book-search. Book name". Next, press the "Search" button.

「確認内容」として、”book-search.蔵書一覧の1番目”が”図書館の歴史1巻”であることを確認する。
「事後条件」として、”book-search.メインメニュー”を押す。
As the "confirmation content", confirm that the first item in "book-search.book list" is "History of Libraries, Volume 1."
As the "Post-condition", press "book-search.main menu".

シナリオ(Scenario:PCL-002)の場合は、”著者”で検索を実行する。
この際、「チェック条件」として、”ログイン”ボタンを押し、”book-search.蔵書検索”を押す。そして、”book-search.書籍名”に”著者”を入力する。次に、”検索”ボタンを押す。
In the case of scenario (PCL-002), a search is performed for "author".
In this case, as the "check condition", press the "Login" button, then press "book-search.Book search". Then, enter "Author" in "book-search.Book name". Next, press the "Search" button.

「確認内容」として、”book-search.蔵書一覧の1番目”が”著者の歴史1巻”であることを確認する。
「事後条件」として、”book-search.メインメニュー”を押す。
As the "confirmation content", confirm that the first item in "book-search.book list" is "Author's History, Volume 1."
As the "Post-condition", press "book-search.main menu".

シナリオ(Scenario:PCL-003)の場合は、”名前”で検索を実行する。
この際、「チェック条件」として、”ログイン”ボタンを押し、”book-search.蔵書検索”を押す。そして、”book-search.書籍名”に”名前”を入力する。次に、”検索”ボタンを押す。
In the case of scenario (Scenario: PCL-003), a search is performed by "Name".
In this case, as the "check condition", press the "Login" button, then press "book-search. Book search". Then, enter your "Name" in "book-search. Book name". Next, press the "Search" button.

「確認内容」として、”book-search.蔵書一覧の1番目”が”名前の歴史1巻”であることを確認する。
「事後条件」として、”book-search.メインメニュー”を押す。
As the "confirmation content", confirm that the first item in "book-search.book list" is "History of Names, Vol. 1."
As the "Post-condition", press "book-search.main menu".

図7は、表形式のプログラムチェックリスト261の内容を示す図である。
図7では、図書館の検索動作を例に取り説明する。
FIG. 7 is a diagram showing the contents of the program checklist 261 in table format.
In FIG. 7, a library search operation will be described as an example.

「テストシナリオ記述」として、前提条件、チェック条件、確認内容、事後条件が記述されている。 The "test scenario description" describes the prerequisites, check conditions, confirmation contents, and post-conditions.

前提条件には、ブラウザサイズを(〇〇、△△)に設定が記述される。この場合、“〇〇”は1200であり、“△△”は800である。 The prerequisite states that the browser size is set to (XX, △△). In this case, "XX" is 1200 and "△△" is 800.

また、前提条件には、”〇〇”をブラウザで開くことが記述される。この場合、“〇〇”は”/ja/login/”である。 The prerequisite also states that "XX" should be opened in a browser. In this case, "XX" is "/ja/login/".

チェック条件には、”〇〇”ボタンを押すが記述される。この場合、“〇〇”は”ログイン”である。 The check condition is to press the "XX" button. In this case, "XX" is "Login".

また、チェック条件には、”〇〇”を押すが記述される。この場合、“〇〇”は”book-search.蔵書検索”である。 The check condition is also written as "press XX". In this case, XX is "book-search. Book search".

また、チェック条件には、”〇〇”に“△△”を入力するが記述される。この場合、“〇〇”は “book-search.書籍名”である。“△△”は、“図書”、“著者”、“名前”である。 The check condition states that "△△" is entered into "〇〇". In this case, "〇〇" is "book-search.Book name". "△△" is "Book", "Author", and "Name".

また、チェック条件には、”〇〇”ボタンを押すが記述される。この場合、“〇〇”は”検索”である。 The check condition is also written as "press the "〇〇" button. In this case, "〇〇" is "search."

確認内容には、“〇〇”が“△△”で◎◎ことが記述される。この場合、“〇〇”は“book-search.蔵書一覧の1番目”である。“△△”は、“図書館の歴史1巻”、“著者の歴史1巻”“名前の歴史1巻”である。“◎◎”は“ある”である。 The confirmation details state that "XX" is "△△" and ◎◎. In this case, "XX" is "book-search. Book listing number 1." "△△" is "The History of Libraries, Vol. 1," "The History of Authors, Vol. 1," and "The History of Names, Vol. 1." "◎◎" means "there is."

事後条件には、”〇〇”を押すが記述される。この場合、“〇〇”は”book-search.メインメニュー”である。 The post-condition is written as "press XX". In this case, XX is "book-search.main-menu".

プログラムチェックリストの右側には、シナリオ(Scenario:PCL-001)である“図書”で検索が記述される。また、シナリオ(Scenario:PCL-002)である“著者”で検索が記述される。また、シナリオ(Scenario:PCL-003)である“名前”で検索が記述される。 On the right side of the program checklist, a search is described for "Books" in the scenario (Scenario: PCL-001). A search is also described for "Authors" in the scenario (Scenario: PCL-002). A search is also described for "Names" in the scenario (Scenario: PCL-003).

図8は、テストスクリプト解析部212及びテストスクリプト生成部216における表形式プログラムチェックリスト261及びテストスクリプト260の対応表を示す図である。 Figure 8 shows a correspondence table between the tabular program checklist 261 and the test script 260 in the test script analysis unit 212 and the test script generation unit 216.

対応表には、番号、表形式プログラムチェックリスト、テストスクリプト及び記述内容が記述されている。 The correspondence table contains the number, a tabular program checklist, a test script, and description content.

番号1には、シート、フィーチャ、記述内容として「1つの機能についてのテストケースの集合」が記述されている。番号2には、列、シナリオ、記述内容として「1件のテストケースについての操作の集合」が記述されている。 Number 1 describes "a set of test cases for one function" as the sheet, feature, and description. Number 2 describes "a set of operations for one test case" as the column, scenario, and description.

番号3には、前提条件行、Background、記述内容として「テストケースの前提条件」が記述されている。番号4には、チェック条件行、Thenステップ前のステップ、記述内容として「テストケースの入力条件や画面操作内容」が記述されている。 Number 3 contains the prerequisite line, Background, and the description "prerequisites for the test case." Number 4 contains the check condition line, the step before the Then step, and the description "input conditions and screen operation contents for the test case."

番号5には、確認内容行、Thenステップ、記述内容として「テストケースの検証項目」が記述されている。番号6には、事後条件行、Thenステップ後のステップ、記述内容として「テストケース終了前に行う画面操作内容」が記述されている。 Number 5 contains a confirmation content line, a Then step, and the description "Test case verification items." Number 6 contains a post-condition line, the step after the Then step, and the description "Screen operations to be performed before the test case ends."

図10は実行結果ファイル262の内容を示す図である。
図10に示すように、実行結果ファイルは、フィーチャ名、シナリオ名、結果、失敗行、実行日時及びブラウザを有する。
FIG. 10 is a diagram showing the contents of the execution result file 262. As shown in FIG.
As shown in FIG. 10, the execution result file includes a feature name, a scenario name, a result, a failed line, an execution date and time, and a browser.

例えば、フィーチャ名がPCLでシナリオ名がPCL-001の場合は、結果は“成功”であり、実行日時は“2019/10/01”であり、ブラウザは“ブラウザA”である。 For example, if the feature name is PCL and the scenario name is PCL-001, the result is "Success", the execution date and time is "2019/10/01", and the browser is "Browser A".

また、フィーチャ名がPCLでシナリオ名がPCL-003の場合は、結果は“失敗”であり、失敗行は“7”であり、実行日時は“2019/10/01”であり、ブラウザは“ブラウザA”である。 Also, if the feature name is PCL and the scenario name is PCL-003, the result is "Failed", the failed line is "7", the execution date and time is "2019/10/01", and the browser is "Browser A".

図12は、テスト結果反映部215における実行結果ファイル262と結果記入済み表形式プログラムチェックリスト263との対応表を示す。
図12に示すように、対応表は、番号、結果ファイル、結果記入済み表形式プログラムチェックリストを有する。
FIG. 12 shows a correspondence table between the execution result file 262 and the tabular program checklist 263 with results entered in it in the test result reflecting section 215.
As shown in FIG. 12, the correspondence table includes a number, a result file, and a tabular program checklist with results entered.

例えば、番号1では、結果ファイルはフィーチャ名であり、結果記入済み表形式プログラムチェックリストはシートである。番号2では、結果ファイルはシナリオ名であり、結果記入済み表形式プログラムチェックリストは列である。 For example, in number 1, the result file is the feature name and the tabular program checklist with results is the sheet. In number 2, the result file is the scenario name and the tabular program checklist with results is the column.

番号3では、結果ファイルは結果であり、結果記入済み表形式プログラムチェックリストは各列の「〇」を「×」にするか否かである。番号4では、結果ファイルは失敗行であり、結果記入済み表形式プログラムチェックリストは各列の「〇」を「×」にする位置である。 In number 3, the result file is the result, and the tabular program checklist with results is whether or not to change the "O" in each column to an "X." In number 4, the result file is the failure row, and the tabular program checklist with results is the position to change the "O" in each column to an "X."

番号5では、結果ファイルは実行日時であり、結果記入済み表形式プログラムチェックリストは確認日である。番号6では、結果ファイルはブラウザであり、結果記入済み表形式プログラムチェックリストはブラウザである。 In number 5, the result file is the execution date and the tabular program checklist with the results is the check date. In number 6, the result file is the browser and the tabular program checklist with the results is the browser.

このように、上記実施例では、表形式プログラムチェックリスト261に記述されたテストシナリオと画面自動テスト実行に必要なテストスクリプト260を相互に自動的に変換する。また、表形式のプログラムチェックリスト261上から画面自動テストを実行し、表形式のプログラムチェックリスト261に実行結果を記載する。 In this manner, in the above embodiment, the test scenario described in the tabular program checklist 261 and the test script 260 required to execute the automatic screen test are automatically converted into each other. In addition, the automatic screen test is executed from the tabular program checklist 261, and the execution results are recorded in the tabular program checklist 261.

上記実施例によれば、表形式プログラムチェックリスト261を用いた画面自動テストの手順のうち、表形式プログラムチェックリスト261を参照しながらテストスクリプト260を作成する手順と、出力された結果を参照して表形式プログラムチェックリスト261に結果を記載する手順とを自動で実行することができる。 According to the above embodiment, among the procedures for automatic screen testing using the tabular program checklist 261, the procedure for creating a test script 260 while referring to the tabular program checklist 261 and the procedure for entering the results in the tabular program checklist 261 while referring to the output results can be automatically executed.

これにより、画面自動テスト作成者のテストスクリプト260の記述法の知識習得負荷及びテストスクリプト260の作成負荷を軽減することができる。また、表形式プログラムチェックリスト261の内容をテストスクリプト260に反映する精度を向上させることができる。さらに、テスト結果記載者が出力された結果を表形式プログラムチェックリスト261に反映する工数を軽減することができる。 This reduces the burden on the screen automatic test creator of acquiring knowledge of how to write the test script 260 and the burden on the creator of the test script 260. It also improves the accuracy with which the contents of the tabular program checklist 261 are reflected in the test script 260. It also reduces the amount of work required for the test result writer to reflect the output results in the tabular program checklist 261.

100 アプリケーション実行端末
110 プログラム
200 テスト自動化装置
300 ネットワーク
210 記憶装置
211 画面自動テストツール部
212 テストスクリプト解析部
213 プログラムチェックリスト生成部
214 実行結果ファイル解析部
215 テスト結果反映部
216 テストスクリプト生成部
220 演算装置
230 メモリ
240 入力装置
250 表示装置
260 テストスクリプト
261 表形式プログラムチェックリスト
262 実行結果ファイル
263 結果記載済プログラムチェックリスト
264 ブラウザ要素データ
100 Application execution terminal 110 Program 200 Test automation device 300 Network 210 Storage device 211 Screen automatic test tool section 212 Test script analysis section 213 Program checklist generation section 214 Execution result file analysis section 215 Test result reflection section 216 Test script generation section 220 Arithmetic device 230 Memory 240 Input device 250 Display device 260 Test script 261 Tabular program checklist 262 Execution result file 263 Result-described program checklist 264 Browser element data

Claims (4)

テストスクリプトに記述されたテストスクリプト文字列の解析を行うテストスクリプト解析部と、
解析した前記テストスクリプト文字列を、テストシナリオを有する表形式のプログラムチェックリストに整形するプログラムチェックリスト生成部と、
前記テストシナリオが記述された前記プログラムチェックリストから前記テストスクリプト文字列を抽出して前記テストスクリプトを生成するテストスクリプト生成部と、
前記テストスクリプトに基づいて画面自動テストツールを実行して実行結果ファイルを出力する画面自動テストツール部と、
前記実行結果ファイルを解析する実行結果ファイル解析部と、
前記実行結果ファイルの解析結果を前記プログラムチェックリストに反映させるテスト結果反映部と、
を有し、
前記テストスクリプトと前記プログラムチェックリストを相互に変換することを特徴とするテスト自動化装置。
a test script analysis unit that analyzes a test script character string written in a test script;
a program checklist generation unit that formats the analyzed test script character string into a tabular program checklist having a test scenario;
a test script generation unit that extracts the test script character string from the program checklist in which the test scenario is described and generates the test script;
a screen automatic test tool unit that executes a screen automatic test tool based on the test script and outputs an execution result file;
an execution result file analysis unit that analyzes the execution result file;
a test result reflecting unit that reflects an analysis result of the execution result file in the program checklist;
having
A test automation device which converts the test script and the program checklist into each other .
前記プログラムチェックリスト生成部は、
前記テストスクリプトに記述された前記テストスクリプト文字列を前記テストシナリオに変換して前記プログラムチェックリストに記述することを特徴とする請求項1に記載のテスト自動化装置。
The program checklist generation unit,
2. The test automation device according to claim 1, wherein the test script character string described in the test script is converted into the test scenario and described in the program checklist.
前記実行結果ファイルには、
前記テストシナリオごとに、実行結果として成功情報又は失敗情報が記述され、
前記テスト結果反映部は、
前記成功情報又は前記失敗情報を前記プログラムチェックリストに記述することにより、前記実行結果ファイルの前記解析結果を前記プログラムチェックリストに反映させることを特徴とする請求項1に記載のテスト自動化装置。
The execution result file includes:
For each of the test scenarios, success or failure information is described as an execution result;
The test result reflection unit is
2. The test automation device according to claim 1, wherein the success information or the failure information is written in the program checklist, thereby reflecting the analysis result of the execution result file in the program checklist.
前記テストスクリプト生成部は、
前記プログラムチェックリストに記述された前記テストシナリオを、前記テストスクリプト文字列に変換して前記テストスクリプトに記述することを特徴とする請求項に記載のテスト自動化装置。
The test script generation unit
2. The test automation device according to claim 1 , wherein the test scenario described in the program checklist is converted into the test script character string and described in the test script.
JP2020075215A 2020-04-21 2020-04-21 Test automation equipment Active JP7534865B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020075215A JP7534865B2 (en) 2020-04-21 2020-04-21 Test automation equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020075215A JP7534865B2 (en) 2020-04-21 2020-04-21 Test automation equipment

Publications (2)

Publication Number Publication Date
JP2021174084A JP2021174084A (en) 2021-11-01
JP7534865B2 true JP7534865B2 (en) 2024-08-15

Family

ID=78281840

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020075215A Active JP7534865B2 (en) 2020-04-21 2020-04-21 Test automation equipment

Country Status (1)

Country Link
JP (1) JP7534865B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007304660A (en) 2006-05-08 2007-11-22 Hitachi Information Systems Ltd Command execution result recording system and command execution result recording method
JP2014186617A (en) 2013-03-25 2014-10-02 Hitachi Solutions Ltd Screen operation test item execution device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007304660A (en) 2006-05-08 2007-11-22 Hitachi Information Systems Ltd Command execution result recording system and command execution result recording method
JP2014186617A (en) 2013-03-25 2014-10-02 Hitachi Solutions Ltd Screen operation test item execution device

Also Published As

Publication number Publication date
JP2021174084A (en) 2021-11-01

Similar Documents

Publication Publication Date Title
US7100150B2 (en) Method and apparatus for testing embedded examples in GUI documentation
JP4148527B2 (en) Functional test script generator
US8392886B2 (en) System, program product, and methods to enable visual recording and editing of test automation scenarios for web application
US8239831B2 (en) Visual interface for automated software testing
US5926638A (en) Program debugging system for debugging a program having graphical user interface
US8881105B2 (en) Test case manager
US8245186B2 (en) Techniques for offering and applying code modifications
US7856619B2 (en) Method and system for automated testing of a graphic-based programming tool
US11074162B2 (en) System and a method for automated script generation for application testing
US20080127103A1 (en) Dynamic deneration and implementation of globalization verification testing for user interface controls
US20060230319A1 (en) Automated migration of software instructions
EP2477116A1 (en) Method and system for debugging a job running on a legacy system
CN105743736A (en) Automated testing method and system
Arya et al. Keyword driven automated testing framework for web application
JPH08241191A (en) GUI automatic evaluation device
CN110888641B (en) Script automatic generation method and device, server and storage medium
US20100095279A1 (en) Method for automatically testing menu items of application software
CN113742240B (en) User interface testing method, device, storage medium and electronic device
JP7534865B2 (en) Test automation equipment
JP4846030B2 (en) Operation verification apparatus, operation verification method, and operation verification program
JP4795404B2 (en) Operation verification apparatus and operation verification program
CN119829454A (en) Browser automatic test method, system, terminal equipment and storage medium
CN111078529A (en) Client write-in module testing method and device and electronic equipment
JP2011164783A (en) Device, method and program for verifying operation
KR102052338B1 (en) Visualization method for tracking analysis of testcase design information, testcase generating apparatus, and computer-readable recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230410

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240206

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240403

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240802

R150 Certificate of patent or registration of utility model

Ref document number: 7534865

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150