JP2006260390A - Test case generating program and method - Google Patents

Test case generating program and method Download PDF

Info

Publication number
JP2006260390A
JP2006260390A JP2005079475A JP2005079475A JP2006260390A JP 2006260390 A JP2006260390 A JP 2006260390A JP 2005079475 A JP2005079475 A JP 2005079475A JP 2005079475 A JP2005079475 A JP 2005079475A JP 2006260390 A JP2006260390 A JP 2006260390A
Authority
JP
Japan
Prior art keywords
test
test case
screen
data
column
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.)
Pending
Application number
JP2005079475A
Other languages
Japanese (ja)
Inventor
Eiji Namikawa
英二 並河
Kazuaki Morikawa
和明 森川
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.)
Nomura Research Institute Ltd
Original Assignee
Nomura Research Institute 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 Nomura Research Institute Ltd filed Critical Nomura Research Institute Ltd
Priority to JP2005079475A priority Critical patent/JP2006260390A/en
Publication of JP2006260390A publication Critical patent/JP2006260390A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To automatically generate a test case and test data in relation to Web application. <P>SOLUTION: A computer functions as an object screen acquiring means for acquiring object screen for generating a test case from screen transition definition information, a column in screen acquiring means for acquiring a column for test from screen constituting information constituting an object screen, a column check information acquiring means for acquiring restrictions for the column for test from data definition information, and a test case data generating means for generating a test case and test data, by making the restrictions for the column for test match with a test case template, to generate the test case and the test data. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、Webアプリケーションに必要な各種定義情報を用いて自動的にテストケースを生成可能なプログラム及び方法に関する。   The present invention relates to a program and a method capable of automatically generating a test case using various definition information necessary for a Web application.

ソフトウェア・プログラムの自動テストに関する従来技術は、おおよそ以下の6領域に分類することができる。1.テスト項目の自動生成技術、2.テスト手順の自動生成技術、3.テストデータの自動生成技術、4.テスト・スクリプトの自動生成技術、5.自動テスト実行技術、6.テスト結果の自動出力技術。そして、上記4.のテスト・スクリプトの自動生成技術に関連する公知文献が存在する(例えば、特許文献1参照)。   Prior art relating to automatic testing of software programs can be roughly classified into the following six areas. 1. 1. Automatic test item generation technology 2. Automatic test procedure generation technology 3. Automatic test data generation technology 4. Test script automatic generation technology Automatic test execution technology, 6. Automatic output of test results. And the above 4. There is a publicly known document related to the test script automatic generation technology (see, for example, Patent Document 1).

また、WebアプリケーションをModel(ロジック)、View(プレゼンテーション)、Controller(制御)の3つの部分に分割して、それぞれを別個に作成することによって、機能分離を明確化し、各機能の独立性を確保して、プログラミングの分業を効率的に進めることができる。また、コンポーネント間の依存性を最小限に抑えることによって、他の部分が変更されたことによる影響を受けにくくすることもできる。こうすることでコンポーネントの再利用性が高まる。また、他のコンポーネントが変更されたことによるメンテナンスも最小限に抑えることができ、保守性も高まる。   In addition, the Web application is divided into three parts: Model (logic), View (presentation), and Controller (control), and each is created separately to clarify the function separation and ensure the independence of each function. Thus, the division of programming can be carried out efficiently. Also, by minimizing the dependency between components, it is possible to make it less susceptible to the effects of other parts being changed. This increases the reusability of the component. In addition, maintenance due to changes in other components can be minimized, and maintainability is improved.

このようなMVCモデルは、Webサイト上の決済サービスや、統合認証、バックエンド接続、セッション管理など、Webアプリケーション構築の開発生産性向上を目的に、広く活用されている。   These MVC models are widely used for the purpose of improving development productivity of Web application construction, such as payment services on Web sites, integrated authentication, back-end connection, and session management.

具体的には、Java(登録商標)言語、COBOL言語又はC言語などによって業務ロジックを記述する部分(Model)、HTML(HyperText Markup Language)やJSP(Java(登録商標)Server Pages)によるWeb画面の構成を記述する部分(View)、Servletによる業務処理とWeb画面表示の連携制御を記述する部分(Controller)というように分割して、それぞれを別個に作成する。
特開2002−14845号公報
Specifically, a part that describes business logic in Java (registered trademark) language, COBOL language or C language (Model), HTML (HyperText Markup Language) or JSP (Java (registered trademark) Server Pages) Web screen Divide it into a part that describes the configuration (View) and a part that describes the cooperative control of business processing and Web screen display by Servlet (Controller), and create each separately.
Japanese Patent Laid-Open No. 2002-14845

しかし、従来技術を用いてWebアプリケーションに関するテストケースを生成するためには、MVCモデルにおいて一般的とは言えない定義情報(アプリケーションを開発する過程では不要な画面遷移配列情報)をテストケース生成のために別途作成する必要がある。   However, in order to generate a test case related to a Web application using the conventional technology, definition information (screen transition arrangement information unnecessary in the process of developing an application) that is not general in the MVC model is used to generate a test case. It is necessary to create it separately.

また、HTMLなどによって記述される画面構成情報は、以下の理由によりテストケースを作成するための「画面定義情報」を独自に作成することは困難である。   In addition, it is difficult to independently create “screen definition information” for creating test cases for screen configuration information described in HTML or the like for the following reasons.

理由1:HTMLの表現力は非常に高く、また多様な作成ツールが存在するため、独自の画面定義情報からHTMLファイルを生成するという方法は非効率である。   Reason 1: The expressive power of HTML is very high, and there are various creation tools. Therefore, the method of generating an HTML file from unique screen definition information is inefficient.

理由2:HTMLファイルの記述内容の変更はデザイナーが行うことが多く、デザイナーが独自の画面定義情報を作成することは非現実的である。   Reason 2: The description content of the HTML file is often changed by the designer, and it is unrealistic for the designer to create unique screen definition information.

さらに、テストケースの絞り込みが自動では難しく、ケース数が非常に多くなってしまうという問題もある。   Furthermore, it is difficult to narrow down test cases automatically, and there is a problem that the number of cases becomes very large.

そこで、本発明は、Webアプリケーション開発において一般的に作成される画面遷移定義情報、データ定義情報、及びHTML、JSPなどで記述された画面構成情報のみを利用してテストケースを生成可能なプログラム及び方法を提供することを目的とする。   Therefore, the present invention provides a program capable of generating a test case using only screen transition definition information, data definition information, and screen configuration information described in HTML, JSP, etc., which are generally created in Web application development. It aims to provide a method.

本発明の第1の特徴は、テストケース及びテストデータを生成するためにコンピュータを、画面遷移定義情報からテストケース生成の対象画面を取得する対象画面取得手段、対象画面を構成する画面構成情報からテスト対象カラムを取得する画面内カラム取得手段、データ定義情報から、テスト対象カラムに対する制約を取得するカラムチェック情報取得手段、テスト対象カラムに対する制約とテストケーステンプレートをマッチングさせ、テストケースとテストデータを生成するテストケースデータ生成手段、として機能させることにある。   The first feature of the present invention is that the computer is used to generate the test case and test data, the target screen acquisition means for acquiring the target screen for test case generation from the screen transition definition information, and the screen configuration information constituting the target screen. In-screen column acquisition means for acquiring test target columns, column check information acquisition means for acquiring constraints on test target columns from data definition information, matching constraints on test target columns with test case templates, and test cases and test data It is intended to function as test case data generation means for generating.

画面遷移定義情報及びデータ定義情報はXML(eXtensible Markup Language)によって記述され、画面構成情報はHTMLのみによって記述され又はHTML記述中にJava(登録商標)コードが埋め込まれていることが好ましい。   It is preferable that the screen transition definition information and the data definition information are described in XML (eXtensible Markup Language), and the screen configuration information is described only in HTML or a Java (registered trademark) code is embedded in the HTML description.

本発明の第1の特徴によれば、Webアプリケーション開発において一般的に作成される画面遷移定義情報、データ定義情報、及びHTML、JSPなどで記述された画面構成情報のみを利用してテストケースを生成することができる。   According to the first feature of the present invention, a test case is obtained using only screen transition definition information, data definition information, and screen configuration information described in HTML, JSP, etc., which are generally created in Web application development. Can be generated.

画面構成情報は頻繁に変更される。また、画面構成情報は、Webアプリケーション全体の開発の担当者とは別のデザイナーが行うことが一般的であるが、デザイナーは一般的に画面構成情報の他にテストケース生成用の定義情報を作成することは不得意である。よって、画面構成情報の記述内容の変更を自動的にテストケースに取り入れ可能であることの効果は大きい。   The screen configuration information is changed frequently. In addition, the screen configuration information is generally performed by a designer other than the person in charge of developing the entire Web application, but the designer generally creates definition information for generating test cases in addition to the screen configuration information. I am not good at doing it. Therefore, the effect of being able to automatically incorporate changes in the description content of the screen configuration information into the test case is significant.

また、実行可能な設計情報を元にテストケースを生成するので、ケース数を抑えることができる。   In addition, since test cases are generated based on executable design information, the number of cases can be reduced.

以下に図面に基づいて、本発明を実施するための最良の形態を説明する。なお、以下の説明は、単なる例示に過ぎず、本発明の技術的範囲は以下の説明に限定されるものではない。   The best mode for carrying out the present invention will be described below with reference to the drawings. The following description is merely an example, and the technical scope of the present invention is not limited to the following description.

図1は、実施例1におけるWebアプリケーションサーバ20の概略構成を示す。図1に示すように、サーバ20はクライアント10のWebブラウザからリクエストを受け取り、レスポンスを返す。具体的には、サーバ20は、画面遷移定義XMLファイル21a、データ定義XMLファイル21bと、これら定義ファイルを読み込んで動作するコントローラ22と、コントローラから処理要求を受け取り、所定のデータなどを返すJava(登録商標)BL(ビジネスロジックを構築するJava(登録商標)アプリケーション)23と、コントローラからページ表示要求を受け取り、ページ表示をレスポンスとしてクライアントへ返すJSP24とを記憶部(図示せず)に記憶する。   FIG. 1 shows a schematic configuration of a Web application server 20 in the first embodiment. As shown in FIG. 1, the server 20 receives a request from the Web browser of the client 10 and returns a response. Specifically, the server 20 receives the processing request from the controller, the screen transition definition XML file 21a, the data definition XML file 21b, the controller 22 that operates by reading these definition files, and returns predetermined data. (Registered trademark) BL (Java (registered trademark) application for building business logic) 23 and JSP 24 that receives a page display request from the controller and returns the page display to the client as a response are stored in a storage unit (not shown).

図2は、実施例1におけるテストケース生成装置の構成を示すブロック図である。図2に示すように、テストケース生成装置30は、中央処理装置(CPU)31と、メインメモリ32と、入力装置33と、ファイル装置34と、出力装置36とを備え、それら各装置がバス37を介してデータをやり取りすることができる。   FIG. 2 is a block diagram illustrating a configuration of the test case generation device according to the first embodiment. As shown in FIG. 2, the test case generation device 30 includes a central processing unit (CPU) 31, a main memory 32, an input device 33, a file device 34, and an output device 36, each of which is a bus. Data can be exchanged via 37.

中央処理装置(CPU)31は、テストケース及びテストデータを生成するために、画面遷移定義情報からテストケース生成の対象画面を取得する対象画面取得手段、対象画面を構成する画面構成情報からテスト対象カラムを取得する画面内カラム取得手段、データ定義情報から、テスト対象カラムに対する制約を取得するカラムチェック情報取得手段、テスト対象カラムに対する制約とテストケーステンプレートをマッチングさせ、テストケースとテストデータを生成するテストケースデータ生成手段、として機能する。   The central processing unit (CPU) 31 is a target screen acquisition means for acquiring a test case generation target screen from the screen transition definition information in order to generate a test case and test data, and a test target from the screen configuration information constituting the target screen. In-screen column acquisition means for acquiring columns, column check information acquisition means for acquiring constraints on test target columns from data definition information, matching test case templates with constraints on test target columns, and generating test cases and test data It functions as a test case data generation means.

メインメモリ32は、テストケース生成プログラム40のワークエリアとして使用される。出力装置36には、液晶ディスプレイ、CRTディスプレイ等が含まれる。生成されたテストケースの内容などが出力装置36に出力される。   The main memory 32 is used as a work area for the test case generation program 40. The output device 36 includes a liquid crystal display, a CRT display, and the like. The contents of the generated test case are output to the output device 36.

入力装置33にはキーボードや、FDドライブやネットワークインターフェースカードなどが含まれる。この入力装置を用いて各種ファイルを作成又は読み込む。   The input device 33 includes a keyboard, an FD drive, a network interface card, and the like. Various files are created or read using this input device.

ファイル装置34には、ハードディスクドライブが含まれる。入力装置33を用いて作成又は読み込まれた画面遷移定義XMLファイル21a、データ定義XMLファイル21b、Java(登録商標)BLソースファイル23、JSPソースファイル24等がファイル装置34aに格納され、テストケース生成プログラム40を構成する対象画面取得モジュール42、画面内カラム取得モジュール43、カラムチェック情報取得モジュール44、テストケースデータ生成モジュール45、JSP情報取得モジュール46等はファイル装置34bに格納されるものとする。   The file device 34 includes a hard disk drive. A screen transition definition XML file 21a, a data definition XML file 21b, a Java (registered trademark) BL source file 23, a JSP source file 24, and the like created or read using the input device 33 are stored in the file device 34a to generate a test case. It is assumed that the target screen acquisition module 42, the in-screen column acquisition module 43, the column check information acquisition module 44, the test case data generation module 45, the JSP information acquisition module 46, and the like constituting the program 40 are stored in the file device 34b.

対象画面取得モジュール42は、画面遷移定義XMLファイル21aを読み込み、テストケース生成の対象となる画面を取得する。画面遷移定義XMLファイル21aは、あるページで、あるアクションが要求されたら、どのJava(登録商標)BLを実行し、その返値に応じてどのページへ遷移するか等を定義する。   The target screen acquisition module 42 reads the screen transition definition XML file 21a and acquires a screen to be a test case generation target. The screen transition definition XML file 21a defines which Java (registered trademark) BL is executed when a certain action is requested on a certain page, and which page is transitioned according to the return value.

JSPソースファイル24は、JSPパーサによって構文解析される。構文解析方法は、Java(登録商標)言語の構造定義を例えば大きく3つの部分に分けて行う。1つ目の部分は、プログラム、ファイル、ファイル中の関数宣言や大域変数宣言等の宣言文により表現されるプログラムの全体構造である。2つ目の部分は、制御文、ブロック又は式等のプログラムの基本構造である。3つ目の部分は、変数や関数の名前や型、定数、演算子及びそれらの宣言等のプログラムの基本要素である。   The JSP source file 24 is parsed by a JSP parser. In the parsing method, the structure definition of the Java (registered trademark) language is roughly divided into, for example, three parts. The first part is the overall structure of the program, the file, and the program expressed by a declaration statement such as a function declaration or global variable declaration in the file. The second part is the basic structure of the program such as control statements, blocks or expressions. The third part is the basic elements of the program such as the names and types of variables and functions, constants, operators and their declarations.

構文解析結果は、XMLファイルとしてJSPリポジトリ(不図示)に格納される。そして、JSPリポジトリから低レベルなAPIを介してJSP情報が取得され、取得されたJSP情報は画面内カラム取得モジュール43へ出力される。   The parsing result is stored as an XML file in a JSP repository (not shown). Then, JSP information is acquired from the JSP repository via a low-level API, and the acquired JSP information is output to the in-screen column acquisition module 43.

JSPパーサ(解析器)、JSPリポジトリ用の低レベルAPIとしては名古屋大学大学院情報科学研究科(阿草研究室)開発のWapidが使用可能である。   As a low-level API for JSP parsers and JSP repositories, Wapid developed by the Graduate School of Information Science at Nagoya University (Aso Lab) can be used.

画面内カラム取得モジュール43は、テストケース生成対象画面からテストケース生成対象カラムを取得する。   The in-screen column acquisition module 43 acquires a test case generation target column from the test case generation target screen.

カラムチェック情報取得モジュール44は、データ定義XMLファイル21bを読み込み、テストケース生成対象カラムのチェック情報を取得する。データ定義XMLファイル21bは、カラムID、カラムIDに対応するカラム日本語名、データチェック情報等を定義する。   The column check information acquisition module 44 reads the data definition XML file 21b and acquires check information of the test case generation target column. The data definition XML file 21b defines a column ID, a column Japanese name corresponding to the column ID, data check information, and the like.

テストケースデータ生成モジュール45は、テストケース生成対象カラムに対する制約とテストケーステンプレート25とをマッチングさせ、テストケースとテストデータとを生成する。   The test case data generation module 45 matches the constraint on the test case generation target column with the test case template 25 to generate a test case and test data.

図3は、実施例1におけるテストケース生成処理の流れを示すフローチャートである。図3に示すように、ステップS11で、画面遷移定義XMLファイル21aを読み込み、
ステップS12で、テストケース生成の対象となる画面を取得し、
ステップS21で、JSPソースファイルを読み込み、
ステップS22で、JSPソースファイルの構文を解析し、
ステップS23で、JSP構文解析結果をJSPリポジトリに登録し、
ステップS41で、JSPリポジトリからテストケース生成の対象となるカラムを取得し、
ステップS42で、データ定義XMLファイル21bを読み込み、
ステップS43で、カラムチェック情報を取得し、
ステップS44で、テストケーステンプレートを読み込み、
ステップS45で、テストケース及びテストデータを生成する。
FIG. 3 is a flowchart illustrating the flow of the test case generation process in the first embodiment. As shown in FIG. 3, in step S11, the screen transition definition XML file 21a is read,
In step S12, a screen for test case generation is acquired,
In step S21, the JSP source file is read,
In step S22, the syntax of the JSP source file is analyzed,
In step S23, the JSP parsing result is registered in the JSP repository.
In step S41, a column for test case generation is acquired from the JSP repository,
In step S42, the data definition XML file 21b is read,
In step S43, column check information is acquired,
In step S44, the test case template is read,
In step S45, a test case and test data are generated.

図4は画面遷移定義XMLファイルの一例を、図5はJSPソースファイルの一例を、図6はデータ定義XMLファイルの一例を、図7はテストケーステンプレートの一例を、図8及び図9は生成されたテストケースの一例をそれぞれ示す。これら具体的なファイルに基づいて実施例をより具体的に説明する。   4 shows an example of a screen transition definition XML file, FIG. 5 shows an example of a JSP source file, FIG. 6 shows an example of a data definition XML file, FIG. 7 shows an example of a test case template, and FIGS. An example of each test case is shown. The embodiment will be described more specifically based on these specific files.

図4に示すように、画面遷移定義XMLファイル21aには遷移先として、9行目にquery.jspが、18行目にSysError.jspが、29行目にsearchOk.jspなどが記載されている。   As shown in FIG. 4, in the screen transition definition XML file 21a, as a transition destination, query.jsp is described in the ninth line, SysError.jsp in the 18th line, searchOk.jsp in the 29th line, and the like. .

ステップS11で、対象画面取得モジュール42はこれらquery.jsp等を遷移先として抽出する。   In step S11, the target screen acquisition module 42 extracts these query.jsp and the like as transition destinations.

図5に示すように、JSPソースファイル24にはデータが入力されるカラムとして、15行目に”kaiin_no”が、22行目に”kounyuu_bu”などが記載されている。   As shown in FIG. 5, “kaiin_no” is described in the 15th line, “kounyuu_bu” and the like in the 22nd line as columns into which data is input in the JSP source file 24.

ステップS41で、画面内カラム取得モジュール43はこれら”kaiin_no”等をチェックの対象となるカラム(データ項目)として抽出する。   In step S41, the in-screen column acquisition module 43 extracts “kaiin_no” and the like as columns (data items) to be checked.

図6に示すように、データ定義XMLファイル21bにはカラムに対する制約が記載されている。具体的には、3〜21行目はIDが”kaiin_no”であるカラムに関し、そのうちの6行目はタイプがStringであること、9行目の
<chkTyp>IS_NOT_NULL</chkTyp>
は必須データ項目である(Nullが許容されない)こと、13行目の<chkTyp>IS_ALNUM</chkTyp>
は入力されるデータが全て数値でなければならないこと、17〜18行目の
<chkTyp>IS_IN_MAX_SIZE</chkTyp>
<opt>8</opt>
は入力されるデータが最大8桁であることを示す。また、22〜35行目はIDが”kounyuu_bi”であるカラムに関し、そのうちの25行目はタイプがStringであること、28行目は必須データ項目である(Nullが許容されない)こと、32行目の
<chkTyp>IS_DATE</chkTyp>
はチェックタイプが日付タイプであることを示す。
As shown in FIG. 6, the data definition XML file 21b describes restrictions on the columns. Specifically, the 3rd to 21st lines relate to the column whose ID is “kaiin_no”, of which the 6th line is of type String and the 9th line
<chkTyp> IS_NOT_NULL </ chkTyp>
Is a required data item (Null is not allowed), <chkTyp> IS_ALNUM </ chkTyp> on line 13
Means that all input data must be numeric values, lines 17-18
<chkTyp> IS_IN_MAX_SIZE </ chkTyp>
<opt> 8 </ opt>
Indicates that the input data is a maximum of 8 digits. Lines 22-35 relate to the column whose ID is “kounyuu_bi”, of which line 25 is type String, line 28 is a mandatory data item (Null is not allowed), line 32 Ocular
<chkTyp> IS_DATE </ chkTyp>
Indicates that the check type is a date type.

ステップS43で、カラムチェック情報取得モジュール44は、このようなデータ型、必須データ項目かなどの各カラムの制約を抽出する。   In step S43, the column check information acquisition module 44 extracts constraints on each column such as the data type and the essential data item.

図7に示すように、テストケーステンプレート25には、5〜8行目にテスト対象となるカラムのチェックタイプが、12〜15行目にはテストケース生成クラスの指定が記載されている。図6の32行目に示したように、”kounyuu_bi”カラムのチェックタイプは”IS_DATE”であり、図7の7行目に示したようにチェックタイプが”IS_DATE”であるカラムは、図7の14行目に示したテストケース生成クラスによってテストケースを生成される。つまり、ステップS45で、”kounyuu_bi”カラムについて図7の14行目に示したテストケース生成クラスによってテストケース及びテストデータが生成される。   As shown in FIG. 7, in the test case template 25, the check type of the column to be tested is described in the 5th to 8th lines, and the specification of the test case generation class is described in the 12th to 15th lines. As shown in the 32nd line of FIG. 6, the check type of the “kounyuu_bi” column is “IS_DATE”, and as shown in the 7th line of FIG. 7, the column whose check type is “IS_DATE” is shown in FIG. A test case is generated by the test case generation class shown in the 14th line. That is, in step S45, a test case and test data are generated by the test case generation class shown in the 14th line of FIG. 7 for the “kounyuu_bi” column.

図8に示すように、生成された第1のテストケースは、3行目に記述されているように日付正常系チェックという名前であって、10行目に記述されているようにテスト対象カラムが”kounyuu_bi”であって、13行目に記述されているようにテストデータが”20040430”である。   As shown in FIG. 8, the generated first test case is named the date normal system check as described in the third line, and the test target column as described in the tenth line. Is “kounyuu_bi” and the test data is “20040430” as described in the thirteenth line.

また、図9に示すように、生成された第2のテストケースは、3行目に記述されているように日付異常系チェックという名前であって、9行目に記述されているようにテスト対象カラムが”kounyuu_bi”であって、12行目に記述されているようにテストデータが”20040431”であって、15〜22行目に記述されているようにテスト実行スクリプトが
P:\home\webapps\shopping\test\script\SHOPPING00003.rsp
又は
P:\home\webapps\shopping\test\script\SHOPPING00004.rsp
であって、28〜29行目に記述されているようにテスト結果が表示した画面イメージがビットマップファイルとして出力される。
Also, as shown in FIG. 9, the generated second test case is named “Date Abnormality Check” as described in the third line, and the test as described in the ninth line. The target column is “kounyuu_bi”, the test data is “20040431” as described in the 12th line, and the test execution script is described as described in the 15th to 22nd lines.
P: \ home \ webapps \ shopping \ test \ script \ SHOPPING00003.rsp
Or
P: \ home \ webapps \ shopping \ test \ script \ SHOPPING00004.rsp
The screen image displaying the test result as described in the 28th to 29th lines is output as a bitmap file.

前記の如く、実施例1によれば、Webアプリケーション開発で一般的に作成される画面遷移定義情報(XML)、データ定義情報(XML)、画面構成情報(HTML、JSP)のみを利用してテストケースを生成することができる。   As described above, according to the first embodiment, testing is performed using only screen transition definition information (XML), data definition information (XML), and screen configuration information (HTML, JSP) that are generally created in Web application development. Cases can be generated.

実施例1におけるWebアプリケーションサーバ20の概略構成を示す図である。It is a figure which shows schematic structure of the Web application server 20 in Example 1. FIG. 実施例1におけるテストケース生成装置の構成を示すブロック図である。It is a block diagram which shows the structure of the test case production | generation apparatus in Example 1. FIG. 実施例1におけるテストケース生成処理の流れを示すフローチャートである。6 is a flowchart illustrating a flow of test case generation processing in the first embodiment. 実施例1における画面遷移定義XMLファイルの一例を示す図である。6 is a diagram illustrating an example of a screen transition definition XML file according to Embodiment 1. FIG. 実施例1におけるJSPソースファイルの一例を示す図である。6 is a diagram illustrating an example of a JSP source file according to Embodiment 1. FIG. 実施例1におけるデータ定義XMLファイルの一例を示す図である。6 is a diagram illustrating an example of a data definition XML file in Embodiment 1. FIG. 実施例1におけるテストケーステンプレートの一例を示す図である。6 is a diagram illustrating an example of a test case template according to Embodiment 1. FIG. 実施例1において生成された第1のテストケースの一例を示す図である。6 is a diagram illustrating an example of a first test case generated in the first embodiment. FIG. 実施例1において生成された第2のテストケースの一例を示す図である。It is a figure which shows an example of the 2nd test case produced | generated in Example 1. FIG.

符号の説明Explanation of symbols

21a…画面遷移定義XMLファイル、 21b…データ定義XMLファイル、
23…Java(登録商標)BLソースファイル、 24…JSPソースファイル、
25…テストケーステンプレート、
30…テストケース生成装置、 31…中央処理装置、
32…メインメモリ、 33…入力装置、
34…ファイル装置、 36…出力装置、
37…バス、 40…テストケース生成プログラム、
42…対象画面取得モジュール、 43…画面内カラム取得モジュール、
44…カラムチェック情報取得モジュール、
45…テストケースデータ生成モジュール、
46…JSP情報取得モジュール
21a ... Screen transition definition XML file, 21b ... Data definition XML file,
23 ... Java (registered trademark) BL source file, 24 ... JSP source file,
25 ... Test case template,
30 ... Test case generator 31 ... Central processing unit,
32 ... main memory, 33 ... input device,
34 ... File device, 36 ... Output device,
37 ... bus, 40 ... test case generation program,
42 ... Target screen acquisition module, 43 ... In-screen column acquisition module,
44 ... Column check information acquisition module,
45 ... Test case data generation module,
46 ... JSP information acquisition module

Claims (4)

テストケース及びテストデータを生成するためにコンピュータを、
画面遷移定義情報からテストケース生成の対象画面を取得する対象画面取得手段、
前記対象画面を構成する画面構成情報からテスト対象カラムを取得する画面内カラム取得手段、
データ定義情報から、前記テスト対象カラムに対する制約を取得するカラムチェック情報取得手段、
前記テスト対象カラムに対する前記制約とテストケーステンプレートをマッチングさせ、テストケースとテストデータを生成するテストケースデータ生成手段、として機能させることを特徴とするテストケース生成プログラム。
A computer to generate test cases and test data,
Target screen acquisition means for acquiring the target screen for test case generation from the screen transition definition information,
In-screen column acquisition means for acquiring a test target column from the screen configuration information constituting the target screen,
Column check information acquisition means for acquiring constraints on the test target column from data definition information;
A test case generation program that functions as test case data generation means for generating a test case and test data by matching the constraint on the test target column with a test case template.
前記画面遷移定義情報及び前記データ定義情報がXMLファイルであって、前記画面構成情報がJSPファイル又はHTMLファイルである請求項1記載のテストケース生成プログラム。   The test case generation program according to claim 1, wherein the screen transition definition information and the data definition information are XML files, and the screen configuration information is a JSP file or an HTML file. テストケース及びテストデータを生成するためにコンピュータが、
画面遷移定義情報からテストケース生成の対象画面を取得する手順、
前記対象画面を構成する画面構成情報からテスト対象カラムを取得する手順、
データ定義情報から、前記テスト対象カラムに対する制約を取得する手順、
前記テスト対象カラムに対する前記制約とテストケーステンプレートをマッチングさせ、テストケースとテストデータを生成する手順を実行することを特徴とするテストケース生成方法。
A computer for generating test cases and test data;
Procedure to obtain the test case generation target screen from the screen transition definition information,
A procedure for acquiring a test target column from the screen configuration information constituting the target screen;
A procedure for obtaining constraints on the test target column from the data definition information,
A test case generation method comprising: executing a procedure for generating a test case and test data by matching the constraint on the test target column with a test case template.
前記画面遷移定義情報及び前記データ定義情報がXMLファイルであって、前記画面構成情報がJSPファイル又はHTMLファイルである請求項3記載のテストケース生成方法。

The test case generation method according to claim 3, wherein the screen transition definition information and the data definition information are XML files, and the screen configuration information is a JSP file or an HTML file.

JP2005079475A 2005-03-18 2005-03-18 Test case generating program and method Pending JP2006260390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005079475A JP2006260390A (en) 2005-03-18 2005-03-18 Test case generating program and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005079475A JP2006260390A (en) 2005-03-18 2005-03-18 Test case generating program and method

Publications (1)

Publication Number Publication Date
JP2006260390A true JP2006260390A (en) 2006-09-28

Family

ID=37099526

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005079475A Pending JP2006260390A (en) 2005-03-18 2005-03-18 Test case generating program and method

Country Status (1)

Country Link
JP (1) JP2006260390A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008242738A (en) * 2007-03-27 2008-10-09 Fujitsu Ltd Program, apparatus and method for creating test specification
JP2010539576A (en) * 2007-09-14 2010-12-16 エアバス オペレーションズ (エスアーエス) Method for automatic script generation for testing the validity of operational software of an airborne system and device for implementing the method
JP2011204069A (en) * 2010-03-26 2011-10-13 Nec Corp Testing method, and automatic test specification and test data generation apparatus
JP2011233077A (en) * 2010-04-30 2011-11-17 International Business Maschines Corporation Information processor, test case generation method, program and recording medium
JP2012037938A (en) * 2010-08-03 2012-02-23 Toshiba Corp Program and device for generating test code
JP2016048470A (en) * 2014-08-27 2016-04-07 日本電気株式会社 Application test support apparatus, data processing method thereof, and program
JP2019021341A (en) * 2018-10-11 2019-02-07 日本電気株式会社 Application test support apparatus, data processing method thereof, and program
JP2019153265A (en) * 2018-03-05 2019-09-12 キヤノンマーケティングジャパン株式会社 Information processing apparatus, processing method of the same and program
JP2019153264A (en) * 2018-03-05 2019-09-12 キヤノンマーケティングジャパン株式会社 Information processing apparatus, processing method of the same and program
JP2019160267A (en) * 2018-03-08 2019-09-19 キヤノンマーケティングジャパン株式会社 Information processing unit, processing method thereof and program
JP2019197528A (en) * 2018-05-07 2019-11-14 キヤノンマーケティングジャパン株式会社 Program, information processor, and method for processing
CN110765001A (en) * 2019-09-06 2020-02-07 赛诺贝斯(北京)营销技术股份有限公司 Modularized automatic test method and device for application system
CN110874326A (en) * 2019-11-21 2020-03-10 望海康信(北京)科技股份公司 Test case generation method and device, computer equipment and storage medium
CN111159262A (en) * 2018-11-08 2020-05-15 百度在线网络技术(北京)有限公司 Automatic driving simulation data processing method and device
CN111159262B (en) * 2018-11-08 2024-06-04 阿波罗智能技术(北京)有限公司 Automatic driving simulation data processing method and device

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008242738A (en) * 2007-03-27 2008-10-09 Fujitsu Ltd Program, apparatus and method for creating test specification
JP2010539576A (en) * 2007-09-14 2010-12-16 エアバス オペレーションズ (エスアーエス) Method for automatic script generation for testing the validity of operational software of an airborne system and device for implementing the method
JP2011204069A (en) * 2010-03-26 2011-10-13 Nec Corp Testing method, and automatic test specification and test data generation apparatus
JP2011233077A (en) * 2010-04-30 2011-11-17 International Business Maschines Corporation Information processor, test case generation method, program and recording medium
JP2012037938A (en) * 2010-08-03 2012-02-23 Toshiba Corp Program and device for generating test code
JP2016048470A (en) * 2014-08-27 2016-04-07 日本電気株式会社 Application test support apparatus, data processing method thereof, and program
JP2019153264A (en) * 2018-03-05 2019-09-12 キヤノンマーケティングジャパン株式会社 Information processing apparatus, processing method of the same and program
JP2019153265A (en) * 2018-03-05 2019-09-12 キヤノンマーケティングジャパン株式会社 Information processing apparatus, processing method of the same and program
JP2019160267A (en) * 2018-03-08 2019-09-19 キヤノンマーケティングジャパン株式会社 Information processing unit, processing method thereof and program
JP7323755B2 (en) 2018-03-08 2023-08-09 キヤノンマーケティングジャパン株式会社 Information processing system, its control method and program
JP2019197528A (en) * 2018-05-07 2019-11-14 キヤノンマーケティングジャパン株式会社 Program, information processor, and method for processing
JP7311740B2 (en) 2018-05-07 2023-07-20 キヤノンマーケティングジャパン株式会社 Information processing system, its control method, and program
JP2019021341A (en) * 2018-10-11 2019-02-07 日本電気株式会社 Application test support apparatus, data processing method thereof, and program
CN111159262A (en) * 2018-11-08 2020-05-15 百度在线网络技术(北京)有限公司 Automatic driving simulation data processing method and device
CN111159262B (en) * 2018-11-08 2024-06-04 阿波罗智能技术(北京)有限公司 Automatic driving simulation data processing method and device
CN110765001A (en) * 2019-09-06 2020-02-07 赛诺贝斯(北京)营销技术股份有限公司 Modularized automatic test method and device for application system
CN110874326A (en) * 2019-11-21 2020-03-10 望海康信(北京)科技股份公司 Test case generation method and device, computer equipment and storage medium
CN110874326B (en) * 2019-11-21 2023-10-27 望海康信(北京)科技股份公司 Test case generation method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
JP2006260390A (en) Test case generating program and method
US10592319B2 (en) API notebook tool
KR100661393B1 (en) Web site management system and method applying web programming environment
CN100504871C (en) Method and system for forms integration of an external data model
US8126901B2 (en) Method and apparatus for generating a dynamic web page
CN110020307B (en) Drawing method and device for client end view
US20120311467A1 (en) Computer-implemented method, system and computer program product for displaying a user interface component
US20040158820A1 (en) System for generating an application framework and components
US8826297B2 (en) Creating web services from an existing web site
US20030221184A1 (en) Template-based application development system
US20060168115A1 (en) Method and system of encapsulating web site transactions for computer-aided generation of web services
US20060015839A1 (en) Development of software systems
WO2021249356A1 (en) Form data verification method, system, server, and user terminal
US20140282123A1 (en) Executable guidance experiences based on implicitly generated guidance models
US20220334853A1 (en) System and method for accelerating modernization of user interfaces in a computing environment
US9760345B2 (en) Recursive ontology-based systems engineering
CN113360139A (en) Integration method and device of front-end frame, electronic equipment and storage medium
KR20110041836A (en) Xsl/xml-based web application development system and method using this system
KR20090002032A (en) Executing module for playing ui plug-in in universal web browser, ui plug-in development apparatus and method thereof
CN112667202B (en) Software design method and device combining MDA and BPMN
JP4630572B2 (en) Consistency check program and consistency check device
JP3067707B2 (en) Client / server program generation method
Prasanthan et al. Low Code Backend As A Service Platform
KR20240009129A (en) Automatic application creation system based on user account input information
CN114764328A (en) Page generation method and device, electronic equipment and storage medium