JP2019525373A - How to generate test cases - Google Patents

How to generate test cases Download PDF

Info

Publication number
JP2019525373A
JP2019525373A JP2019531516A JP2019531516A JP2019525373A JP 2019525373 A JP2019525373 A JP 2019525373A JP 2019531516 A JP2019531516 A JP 2019531516A JP 2019531516 A JP2019531516 A JP 2019531516A JP 2019525373 A JP2019525373 A JP 2019525373A
Authority
JP
Japan
Prior art keywords
test
current
case
base
control
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
JP2019531516A
Other languages
Japanese (ja)
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.)
SHANGHAI HEFU INFORMATION TECHNOLOGY CO., LTD.
Original Assignee
SHANGHAI HEFU INFORMATION TECHNOLOGY CO., 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 SHANGHAI HEFU INFORMATION TECHNOLOGY CO., LTD. filed Critical SHANGHAI HEFU INFORMATION TECHNOLOGY CO., LTD.
Publication of JP2019525373A publication Critical patent/JP2019525373A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Abstract

本発明は、ソフトウェアテストの技術分野に関する、テストケースの生成方法であって、複数のベーステストケースを予め設定し、1つのベーステストケースに対し、正常値リストの正常値又はエラー値リストのエラー値に基づいて、各ベーステスト動作の数値をそれぞれ変更することで、複数の異なる派生テスト動作をそれぞれ形成し、複数の異なる派生テスト動作に基づいて、ベーステストケースに関連付けられた複数の異なる派生テストケースを形成する。全てのベーステストケースと全ての派生テストケースを共にテストケースとし、且つ、全てのベーステスト動作と全ての派生テスト動作を共にテスト動作として、テストケース及びテスト動作に基づきシステムの自動テストを行う。本発明の有益な効果は、テストケースの自動作成を実現し、テスト所要時間が短縮し、テスト効率が向上するとともに、人件費の節約となる。The present invention relates to a test case generation method relating to the technical field of software testing, in which a plurality of base test cases are set in advance, and a normal value in a normal value list or an error in an error value list for one base test case. Based on the value, each of the base test behaviors can be modified to form different derived test behaviors, respectively, and based on the different derived test behaviors, multiple different derivations associated with the base test case Form a test case. All base test cases and all derived test cases are used as test cases, and all base test operations and all derived test operations are used as test operations, and the system is automatically tested based on the test cases and test operations. The beneficial effects of the present invention are that test cases are automatically created, test time is shortened, test efficiency is improved, and labor costs are saved.

Description

本発明は、ソフトウェアテストの技術分野に関し、特に、テストケースの生成方法に関する。   The present invention relates to the technical field of software testing, and more particularly to a test case generation method.

従来のソフトウェアテスト技術には人為的介入段階が存在しており、人がテストケース及びテストケースに含まれる各種テスト動作を手作業で設定するとともに、手作業でテストを実施し、手作業でテスト結果を比較して、比較結果に基づきテストが成功したか否かを判断せねばならない。換言すれば、従来のソフトウェアテスト技術には人為的介入の手順が過剰に存在している。そのため、大量のヒューマンリソースを占有することになり、ソフトウェアテストが長時間化し、テスト効率を低下させている。   In conventional software testing technology, there is a human intervention stage. A person manually sets a test case and various test actions included in the test case, and performs the test manually. The results must be compared to determine whether the test was successful based on the comparison results. In other words, there are an excessive number of human intervention procedures in conventional software testing techniques. This occupies a large amount of human resources, and software testing takes a long time, reducing test efficiency.

また、従来のソフトウェアテスト技術では、一般的に大量のテストケースを使用して多くのテストサンプルを生成しなければ、テスト結果からシステムの機能や安定性を判断することができない。しかし、通常、従来技術においては、テスト担当者が各テストケースやテストケースごとの各テスト動作を手作業で作成又は設定することが求められる。そのため、テストケースの作成に非常に多くの時間を取られ、テスト時間が大幅に伸びる結果、テスト効率を低下させてしまう。また、多くの人件費も費やすことになる。   Further, in the conventional software test technology, generally, unless a large number of test samples are generated using a large number of test cases, the function and stability of the system cannot be determined from the test results. However, in the prior art, it is usually required that a tester manually creates or sets each test case and each test operation for each test case. Therefore, it takes a great deal of time to create a test case, resulting in a significant increase in test time, resulting in a decrease in test efficiency. A lot of labor costs are also spent.

従来技術に存在する上記の課題に基づき、テストケースの自動作成を実現することでテスト所要時間を短縮し、テスト効率を向上するとともに、人件費を節約するテストケースの生成方法にかかる技術方案を提供する。   Based on the above-mentioned problems existing in the prior art, a test method for generating test cases that reduces test time and improves test efficiency by realizing automatic test case creation and saves labor costs. provide.

上記の技術方案は、具体的に以下を含む。   The above technical plan specifically includes the following.

テストケースの自動生成方法であって、複数のベーステストケースを予め設定する。各前記ベーステストケースは複数のベーステスト動作を含み、前記ベーステスト動作ごとに、0乃至複数の正常値を含む正常値リストと、0乃至複数のエラー値を含むエラー値リストが1つずつ対応している。   A test case automatic generation method, in which a plurality of base test cases are set in advance. Each base test case includes a plurality of base test operations, and each base test operation corresponds to a normal value list including 0 to multiple normal values and an error value list including 0 to multiple error values. doing.

1つの前記ベーステストケースに対し、前記正常値リストの前記正常値又は前記エラー値リストの前記エラー値に基づいて、各前記ベーステスト動作の数値をそれぞれ変更することで、複数の異なる派生テスト動作をそれぞれ形成する。また、複数の異なる前記派生テスト動作に基づいて、前記ベーステストケースに関連付けられた複数の異なる派生テストケースを構成する。   For one base test case, a plurality of different derived test operations are performed by changing the numerical value of each of the base test operations based on the normal value of the normal value list or the error value of the error value list. Respectively. A plurality of different derived test cases associated with the base test case are configured based on the plurality of different derived test operations.

全ての前記ベーステストケースと全ての前記派生テストケースを共にテストケースとし、且つ、全ての前記ベーステスト動作と全ての前記派生テスト動作を共にテスト動作として、前記テストケース及び前記テスト動作に基づきシステムの自動テストを行う。   All the base test cases and all the derived test cases are used as test cases, and all the base test operations and all the derived test operations are used as test cases, and the system is based on the test cases and the test operations. Perform an automated test.

好ましくは、当該テストケースの自動生成方法では、前記ベーステストケースについて以下のステップを実行する。
ステップA1:前記ベーステストケースにおける前記ベーステスト動作を拡張テスト動作として1つ選択する。
ステップA2:前記拡張テスト動作に関連付けられた前記正常値リストから前記正常値を1つ選択する。
ステップA3:選択された前記正常値が前記拡張テスト動作の値と同じか否かを判断し、同じであれば前記ステップA2に戻る。
ステップA4:選択された前記正常値に基づいて前記拡張テスト動作に値を付与し、前記派生テスト動作を形成する。
ステップA5:前記派生テスト動作と、前記ベーステストケースにおける前記拡張テスト動作以外の全ての前記ベーステスト動作を組み合わせて前記派生テストケースを形成する。
ステップA6:前記ベーステストケースに未選択の前記ベーステスト動作が存在するか否かを判断し、存在する場合には前記ステップA1に戻り、存在しない場合には退出する。
Preferably, in the test case automatic generation method, the following steps are executed for the base test case.
Step A1: One base test operation in the base test case is selected as an extended test operation.
Step A2: One normal value is selected from the normal value list associated with the extended test operation.
Step A3: It is determined whether or not the selected normal value is the same as the value of the extended test operation, and if it is the same, the process returns to Step A2.
Step A4: Assigning a value to the extended test operation based on the selected normal value to form the derived test operation.
Step A5: The derived test case is formed by combining the derived test operation and all the base test operations other than the extended test operation in the base test case.
Step A6: It is determined whether or not the unselected base test operation exists in the base test case. If it exists, the process returns to Step A1, and if not, exits.

好ましくは、当該テストケースの自動生成方法では、前記ベーステストケースについて以下のステップを実行する。
ステップB1:前記ベーステストケースにおける前記ベーステスト動作を拡張テスト動作として1つ選択する。
ステップB2:前記拡張テスト動作に関連付けられた前記エラー値リストから前記エラー値を1つ選択する。
ステップB3:選択された前記エラー値が前記拡張テスト動作の値と同じか否かを判断し、同じであれば前記ステップB2に戻る。
ステップB4:選択された前記エラー値に基づいて前記拡張テスト動作に値を付与し、前記派生テスト動作を形成する。
ステップB5:前記派生テスト動作と、前記ベーステストケースにおける前記拡張テスト動作以外の全ての前記ベーステスト動作を組み合わせて前記派生テストケースを形成する。
ステップB6:前記ベーステストケースに未選択の前記ベーステスト動作が存在するか否かを判断し、存在する場合には前記ステップB1に戻り、存在しない場合には退出する。
Preferably, in the test case automatic generation method, the following steps are executed for the base test case.
Step B1: One base test operation in the base test case is selected as an extended test operation.
Step B2: One error value is selected from the error value list associated with the extended test operation.
Step B3: It is determined whether or not the selected error value is the same as the value of the extended test operation. If the error value is the same, the process returns to Step B2.
Step B4: Assigning a value to the extended test operation based on the selected error value to form the derived test operation.
Step B5: The derived test case is formed by combining the derived test operation and all the base test operations other than the extended test operation in the base test case.
Step B6: It is determined whether or not the unselected base test operation exists in the base test case, and if it exists, the process returns to Step B1, and if not, exits.

好ましくは、当該テストケースの自動生成方法において、前記ベーステストケースにおける前記ベーステスト動作ごとに、対応する前記エラー値リストの前記エラー値を1つずつ用いて前記ベーステスト動作に値を付与することで、対応する前記派生テスト動作を1つずつ生成するとともに、全ての前記派生テスト動作を組み合わせて前記派生テストケースを形成する。   Preferably, in the automatic test case generation method, for each base test operation in the base test case, a value is given to the base test operation using one error value in the corresponding error value list one by one. Thus, the corresponding derived test operations are generated one by one and all the derived test operations are combined to form the derived test case.

好ましくは、当該テストケースの自動生成方法では、前記ベーステストケースについて以下のステップを実行する。
ステップC1:前記ベーステストケースにおける前記ベーステスト動作を拡張テスト動作として1つ選択する。
ステップC2:前記拡張テスト動作に空の値を付与することで、前記派生テスト動作を形成する。
ステップC3:前記派生テスト動作と、前記ベーステストケースにおける前記拡張テスト動作以外の全ての前記ベーステスト動作を組み合わせて前記派生テストケースを形成する。
ステップC4:前記ベーステストケースに未選択の前記ベーステスト動作が存在するか否かを判断し、存在する場合には前記ステップC1に戻り、存在しない場合には退出する。
Preferably, in the test case automatic generation method, the following steps are executed for the base test case.
Step C1: One base test operation in the base test case is selected as an extended test operation.
Step C2: Forming the derived test operation by assigning an empty value to the extended test operation.
Step C3: The derived test case is formed by combining the derived test operation and all the base test operations other than the extended test operation in the base test case.
Step C4: It is determined whether or not the unselected base test operation exists in the base test case. If it exists, the process returns to Step C1, and if not, the process exits.

好ましくは、当該テストケースの自動生成方法において、前記ベーステストケースにおける前記ベーステスト動作ごとに、前記ベーステスト動作に空の値を付与することで対応する前記派生テスト動作を1つずつ生成するとともに、全ての前記派生テスト動作を組み合わせて前記派生テストケースを形成する。   Preferably, in the automatic generation method of the test case, for each base test operation in the base test case, the corresponding test operation is generated one by one by assigning an empty value to the base test operation. All of the derived test operations are combined to form the derived test case.

好ましくは、当該テストケースの自動生成方法において、複数の前記テストケースを順に配列する。各前記テストケースは順に実行される複数の前記テスト動作に対応している。また、前記テスト動作ごとにテストコントロールが1つずつ対応しており、前記テスト動作ごとに操作方法が1つずつ対応しており、前記テストコントロールごとにテスト画面が1つずつ対応しており、前記テスト動作ごとに複数の予測結果が対応している。   Preferably, in the test case automatic generation method, a plurality of the test cases are arranged in order. Each of the test cases corresponds to a plurality of the test operations that are sequentially executed. In addition, one test control corresponds to each test operation, one operation method corresponds to each test operation, one test screen corresponds to each test control, A plurality of prediction results correspond to each test operation.

今回実行したい全ての前記テストケースに対応する全ての前記テスト動作を前記テストケースの実行順に配列することでテスト動作リストを形成する。   A test operation list is formed by arranging all the test operations corresponding to all the test cases to be executed this time in the execution order of the test cases.

前記テストケースと前記テスト動作に基づいてシステムの自動テストを実行する方法は、具体的に以下を含む。
ステップS1:前記動作リストから現在の動作として前記テスト動作を1つ選択し、前記現在の動作に対応する前記テストケースを現在のケースとしてテストを行う。
ステップS2:テスト過程におけるシステムブラウザの表示画面の番号と、前記現在の動作に対応する前記テスト画面の番号を比較して前記表示画面を特定する。
ステップS3:特定された前記表示画面から、前記現在の動作とマッチングする前記テストコントロールを現在のコントロールとして取得する。
ステップS4:前記現在の動作の動作属性に基づいて、取得した前記現在のコントロールに対応する前記操作方法にしたがって操作した後に、前記現在の動作に対応する操作結果を出力する。
ステップS5:前記操作結果を前記現在の動作に対応する前記予測結果と比較して、前記現在の動作の実行に成功したか否かを判断し、対応する比較結果を前記現在の動作のテスト結果として保存する。
A method for performing an automatic test of a system based on the test case and the test operation specifically includes the following.
Step S1: One test operation is selected as the current operation from the operation list, and the test is performed using the test case corresponding to the current operation as the current case.
Step S2: The number of the display screen of the system browser in the test process is compared with the number of the test screen corresponding to the current operation to identify the display screen.
Step S3: Obtain the test control that matches the current operation as the current control from the identified display screen.
Step S4: After operating according to the operation method corresponding to the acquired current control based on the operation attribute of the current operation, an operation result corresponding to the current operation is output.
Step S5: The operation result is compared with the prediction result corresponding to the current operation to determine whether or not the current operation has been successfully executed, and the corresponding comparison result is used as the test result of the current operation. Save as.

好ましくは、当該テストケースの自動生成方法において、上記ステップS1において、前記現在のケースに関連付けられた1つ目の前記テスト動作を実行する際に、前記現在のケースの1つ目の前記テストコントロールに対応する前記テスト画面をスタート画面として抽出する。そして、前記スタート画面に関連付けられたアドレスで前記スタート画面を開くことで、前記現在のケースのテストを開始する。   Preferably, in the automatic test case generation method, when the first test operation associated with the current case is executed in step S1, the first test control of the current case is performed. The test screen corresponding to is extracted as a start screen. The current case test is started by opening the start screen at an address associated with the start screen.

好ましくは、当該テストケースの自動生成方法において、上記ステップS1において、前記現在のケースに関連付けられた各前記テスト動作を実行する前に、前記テスト動作の動作属性に基づいて、前記テスト動作に対応する前記テストコントロールの前記テスト画面を開く必要があるか否かを判断するとともに、必要に応じて前記テスト画面に関連付けられたアドレスを抽出し、前記テスト画面を開く。   Preferably, in the test case automatic generation method, before executing each test operation associated with the current case in step S1, the test operation is handled based on an operation attribute of the test operation. It is determined whether or not it is necessary to open the test screen of the test control, and an address associated with the test screen is extracted as necessary, and the test screen is opened.

好ましくは、当該テストケースの自動生成方法において、上記ステップS1では、前記テストケースを前記現在のケースとみなした後に前記現在のケースの初期化データを抽出し、前記現在のケースのテストを開始するために、前記現在のケースに関連付けられたデータベースのデータについて初期化操作を行う。   Preferably, in the test case automatic generation method, in step S1, initialization data of the current case is extracted after the test case is regarded as the current case, and the test of the current case is started. For this purpose, an initialization operation is performed on the data in the database associated with the current case.

前記現在のケースの1つ目の前記テストコントロールに対応する前記テスト画面のアドレスを前記スタート画面の開始アドレスとして抽出するとともに、前記開始アドレスに基づき、前記現在のケースに関連付けられた起動パラメータを使用して前記スタート画面を開き、前記スタート画面のテストを実行する。   The address of the test screen corresponding to the first test control of the current case is extracted as the start address of the start screen, and the start parameter associated with the current case is used based on the start address Then, the start screen is opened and the test of the start screen is executed.

好ましくは、当該テストケースの自動生成方法において、前記ステップS2は具体的に、前記現在の動作の後続の前記テスト動作に対応する前記テスト画面の番号を取得するとともに、前記表示画面の番号をモニタリングして、前記表示画面の番号が前記テスト画面の番号と一致している場合には前記表示画面の切り替えに成功したとみなし、前記表示画面を特定する。   Preferably, in the test case automatic generation method, the step S2 specifically acquires the number of the test screen corresponding to the test operation subsequent to the current operation, and monitors the number of the display screen. Then, if the number of the display screen matches the number of the test screen, it is considered that the display screen has been successfully switched, and the display screen is specified.

好ましくは、当該テストケースの自動生成方法において、前記ステップS2は具体的に、前記現在の動作の後続の前記テスト画面に対応する番号を取得するとともに、前記表示画面の番号をモニタリングして、前記表示画面の番号が前記テスト画面の番号と一致している場合には前記表示画面の切り替えに成功したとみなし、前記表示画面を特定する。   Preferably, in the test case automatic generation method, the step S2 specifically acquires a number corresponding to the test screen subsequent to the current operation, and monitors the number of the display screen, If the number of the display screen matches the number of the test screen, it is considered that the display screen has been successfully switched, and the display screen is specified.

好ましくは、当該テストケースの自動生成方法において、前記ステップS3では、前記表示画面中の前記テストコントロールを1つ取得した後、前記テストコントロールのコントロール属性と前記現在の動作に対応する前記テストコントロールのコントロール属性をマッチングすることでマッチング結果を得る。そして、前記マッチング結果がマッチングの成功を示している場合には、取得した前記テストコントロールを前記現在のコントロールとして特定する。   Preferably, in the test case automatic generation method, in step S3, after acquiring one test control in the display screen, the control attribute of the test control and the test control corresponding to the current operation are acquired. A matching result is obtained by matching control attributes. If the matching result indicates successful matching, the acquired test control is specified as the current control.

好ましくは、当該テストケースの自動生成方法において、上記ステップS4では、前記コントロールを操作する前にまず前記現在の動作の前記動作属性を判断するとともに、前記動作属性に基づいて前記現在のコントロールに対する操作を決定する。
前記現在の動作の前記動作属性が値の設定である場合には、前記現在のコントロールに対して行う操作は前記コントロールに対する値の付与となる。
前記現在の動作の前記動作属性が操作命令の実行である場合には、前記現在のコントロールに対して行う操作は前記コントロールを操作するための前記操作命令の実行となる。
前記現在の動作の前記動作属性が文字列メッセージの送信である場合には、前記現在のコントロールを操作して対応する前記文字列メッセージを送信する。
前記現在の動作の前記動作属性がメモリコピーである場合には、前記現在のコントロールの値をシステムメモリに保存する。
前記現在の動作の前記動作属性がメモリの値付与である場合には、前記現在のコントロールの値を前記システムメモリに保存する値に変更する。
前記現在の動作の前記動作属性が論理判断の場合、前記システムメモリに保存されている付与値を示すための式について判断し、判断結果に基づいて、前記現在の動作に関連付けられている予め設定された後続の前記テスト動作をスキップする。
前記現在の動作の前記動作属性がファンクションキーの組み合わせによる操作の実行である場合、システムの入力装置に対して対応するファンクションキーの組み合わせ命令を送信することで前記現在のコントロールを操作する。
Preferably, in the test case automatic generation method, in step S4, the operation attribute of the current operation is first determined before the operation of the control, and the operation for the current control is performed based on the operation attribute. To decide.
When the operation attribute of the current operation is a value setting, an operation performed on the current control is to give a value to the control.
When the operation attribute of the current operation is execution of an operation command, an operation performed on the current control is execution of the operation command for operating the control.
When the operation attribute of the current operation is transmission of a character string message, the current control is operated to transmit the corresponding character string message.
If the operation attribute of the current operation is a memory copy, the value of the current control is stored in system memory.
If the operation attribute of the current operation is a value assignment of the memory, the value of the current control is changed to a value stored in the system memory.
When the operation attribute of the current operation is a logical determination, a determination is made as to an expression for indicating a given value stored in the system memory, and a preset value associated with the current operation is determined based on the determination result Skip the subsequent test operation.
When the operation attribute of the current operation is execution of an operation using a function key combination, the current control is operated by transmitting a corresponding function key combination command to the input device of the system.

好ましくは、当該テストケースの自動生成方法において、上記ステップS5では、前記操作結果の種別に応じて前記操作結果と前記予測結果を比較する。
前記操作結果が前記表示画面に含まれる前記コントロールを操作した結果である場合、システムは前記ブラウザ内の前記表示画面に対応する前記コントロールの情報を読み取るとともに、読み取った情報を前記予測結果と比較する。
前記操作結果が前記ブラウザの欄内データに対応する結果である場合、システムは前記ブラウザにおける対応する前記欄内データを読み取り、読み取った情報を前記予測結果と比較する。
前記操作結果がシステムのデータベース内のデータである場合、システムは前記データベース内のデータを読み取って、読み取った情報を前記予測結果と比較する。
Preferably, in the test case automatic generation method, in step S5, the operation result and the prediction result are compared according to the type of the operation result.
When the operation result is a result of operating the control included in the display screen, the system reads information on the control corresponding to the display screen in the browser and compares the read information with the prediction result. .
When the operation result is a result corresponding to the in-column data of the browser, the system reads the corresponding in-column data in the browser and compares the read information with the prediction result.
When the operation result is data in the database of the system, the system reads the data in the database and compares the read information with the prediction result.

好ましくは、当該テストケースの自動生成方法において、上記ステップS5では、前記現在の動作の実行に成功したか否かを判断する。そして、成功した場合には、前記現在の動作に関連付けられた前記操作結果を保存した後、前記ステップS5の実行を継続する。一方、成功しなかった場合には前記現在のケースのテストを終了し、次の前記テストケースに進行して前記ステップS1に戻る。   Preferably, in the test case automatic generation method, in step S5, it is determined whether or not the current operation has been successfully executed. If the operation is successful, the operation result associated with the current operation is saved, and then the execution of step S5 is continued. On the other hand, if the test is not successful, the test for the current case is terminated, the process proceeds to the next test case, and the process returns to step S1.

好ましくは、当該テストケースの自動生成方法において、上記ステップS5では、対応する比較結果を前記現在の動作のテスト結果として保存した後、次の前記テスト動作に進行する。そして、進行した次の前記テスト動作が全体のコントロールに対する操作を示している場合には、前記ステップS4に戻る。   Preferably, in the test case automatic generation method, in step S5, the corresponding comparison result is stored as the test result of the current operation, and then proceeds to the next test operation. When the next test operation that has proceeded indicates an operation for the entire control, the process returns to step S4.

上記技術方案の有益な効果は以下の通りである。即ち、テストケースの自動作成を実現可能なテストケースの生成方法を提供することで、テスト所要時間が短縮し、テスト効率が向上するとともに、人件費の節約となる。   The beneficial effects of the above technical scheme are as follows. That is, by providing a test case generation method capable of automatically creating a test case, the time required for testing is shortened, test efficiency is improved, and labor costs are saved.

図1は、本発明の好ましい実施例におけるテストケース自動生成方法のフローチャートである。FIG. 1 is a flowchart of a test case automatic generation method according to a preferred embodiment of the present invention. 図2は、本発明の好ましい実施例におけるテストケース自動生成方法のフローチャートである。FIG. 2 is a flowchart of a test case automatic generation method according to a preferred embodiment of the present invention. 図3は、本発明の好ましい実施例におけるテストケース自動生成方法のフローチャートである。FIG. 3 is a flowchart of a test case automatic generation method in a preferred embodiment of the present invention. 図4は、本発明の好ましい実施例における前記テストケースの生成方法で生成したテストケースとテスト動作を用いて自動テストする場合の全体フローである。FIG. 4 is an overall flow in the case where an automatic test is performed using a test case generated by the test case generation method and a test operation according to a preferred embodiment of the present invention. 図5は、本発明の好ましい実施例におけるテストケースの事前設定を示す図である。FIG. 5 is a diagram illustrating test case presetting in a preferred embodiment of the present invention. 図6は、本発明の好ましい実施例におけるテストケースの事前設定を示す図である。FIG. 6 is a diagram illustrating test case presetting in a preferred embodiment of the present invention. 図7は、本発明の好ましい実施例における画面の事前設定を示す図である。FIG. 7 is a diagram illustrating screen presetting in a preferred embodiment of the present invention. 図8は、本発明の好ましい実施例におけるテスト動作の事前設定を示す図である。FIG. 8 is a diagram illustrating the presetting of the test operation in the preferred embodiment of the present invention. 図9は、本発明の好ましい実施例におけるコントロールの事前設定を示す図である。FIG. 9 is a diagram showing control presetting in a preferred embodiment of the present invention. 図10は、本発明の好ましい実施例における予測結果を示す図である。FIG. 10 is a diagram showing a prediction result in a preferred embodiment of the present invention. 図11は、本発明の好ましい実施例における予測結果を示す図である。FIG. 11 is a diagram showing a prediction result in a preferred embodiment of the present invention. 図12は、本発明の好ましい実施例における予測結果を示す図である。FIG. 12 is a diagram showing a prediction result in a preferred embodiment of the present invention.

以下に、本発明の実施例にかかる図面を組み合わせて、本発明の実施例の技術方案について明瞭且つ完全に述べる。なお、言うまでもなく、ここで記載する実施例は本発明の実施例の一部にすぎず、全ての実施例ではない。本発明の実施例に基づいて当業者が創造的労働を要さずに取得するその他あらゆる実施例は、いずれも本発明による保護の範囲に属する。   Hereinafter, the technical solutions of the embodiments of the present invention will be described clearly and completely by combining the drawings according to the embodiments of the present invention. Needless to say, the embodiments described here are only a part of the embodiments of the present invention and are not all the embodiments. Any other embodiment obtained by a person skilled in the art based on the embodiment of the present invention without requiring creative labor falls within the scope of protection according to the present invention.

なお、本発明の実施例及び実施例における特徴は、互いに矛盾しないことを前提に組み合わせてもよい。   In addition, you may combine on the assumption that the characteristic in the Example and Example of this invention does not contradict each other.

以下に、図面と具体的実施例を組み合わせて本発明につき更に説明するが、本発明を限定するとの主旨ではない。   Hereinafter, the present invention will be further described in combination with the drawings and specific examples, but this is not intended to limit the present invention.

本発明の好ましい実施例では、従来技術に存在する上記の課題に基づいて、テストケースの生成方法を提供する。当該テストケースの生成方法では、複数のベーステストケースを予め設定する。各ベーステストケースは複数のベーステスト動作を含み、ベーステスト動作ごとに、0乃至複数の正常値を含む正常値リストと、0乃至複数のエラー値を含むエラー値リストが1つずつ対応している。   In a preferred embodiment of the present invention, a test case generation method is provided based on the above problems existing in the prior art. In the test case generation method, a plurality of base test cases are set in advance. Each base test case includes a plurality of base test operations. For each base test operation, a normal value list including 0 to multiple normal values and an error value list including 0 to multiple error values correspond to each other. Yes.

1つのベーステストケースに対し、正常値リストの正常値又はエラー値リストのエラー値に基づいて、各ベーステスト動作の数値をそれぞれ変更することで、複数の異なる派生テスト動作をそれぞれ形成する。また、複数の異なる派生テスト動作に基づいて、ベーステストケースに関連付けられた複数の異なる派生テストケースを構成する。   For one base test case, a plurality of different derived test operations are formed by changing the numerical value of each base test operation based on the normal value of the normal value list or the error value of the error value list. In addition, a plurality of different derived test cases associated with the base test case are configured based on the plurality of different derived test operations.

全てのベーステストケースと全ての派生テストケースを共にテストケースとし、且つ、全てのベーステスト動作と全ての派生テスト動作を共にテスト動作として、テストケース及びテスト動作に基づきシステムの自動テストを行う。   All base test cases and all derived test cases are used as test cases, and all base test operations and all derived test operations are used as test operations, and the system is automatically tested based on the test cases and test operations.

具体的に、上記実施例では、まず1つのベーステストケースと当該ベーステストケースに含まれる複数のベーステスト動作を設定する。即ち、ベーステストケース及び対応する複数のベーステスト動作について対応するパラメータやその他の初期化データ等を設定することで、実行可能な完全なベーステストケース及びベーステスト動作を形成する。   Specifically, in the above embodiment, first, one base test case and a plurality of base test operations included in the base test case are set. That is, by setting corresponding parameters and other initialization data for the base test case and a plurality of corresponding base test operations, a complete executable base test case and base test operation are formed.

続いて、上記実施例では、前記ベーステストケースにおけるベーステスト動作ごとに、それぞれ正常値リストとエラー値リストを1つずつ予め設定する。正常値リストに含まれる数値は全て正常値、即ち当該ベーステスト動作を有効とする値である。また、前記エラー値リストに含まれる数値は全てエラー値、即ち当該ベーステスト動作を無効とする値である。   Subsequently, in the above embodiment, one normal value list and one error value list are preset for each base test operation in the base test case. All the numerical values included in the normal value list are normal values, that is, values that enable the base test operation. The numerical values included in the error value list are all error values, that is, values that invalidate the base test operation.

したがって、上記実施例では、最後に各ベーステスト動作に対応する正常値リスト及びエラー値リストに基づいて、それぞれランダムに複数の異なる派生テスト動作を生成する(例えば、正常値リスト/エラー値リストのいずれかの正常値/エラー値をベーステスト動作に付与して派生テスト動作を形成する)とともに、複数の異なる派生テスト動作を組み合わせて複数の異なる派生テストケースを形成する。前記ベーステストケース及び派生テストケースはいずれもテストケースとみなされ、且つ、これに応じて、前記ベーステスト動作及び派生テスト動作はいずれもテスト動作とみなされる。最後に、前記テストケースとテスト動作によってシステム全体の自動テストを行うことで、システム機能及びシステム動作の安定性をテスト可能である。   Therefore, in the above embodiment, finally, based on the normal value list and the error value list corresponding to each base test operation, a plurality of different derived test operations are randomly generated (for example, normal value list / error value list). Any normal value / error value is applied to the base test operation to form a derived test operation), and a plurality of different derived test operations are combined to form a plurality of different derived test cases. Both the base test case and the derived test case are regarded as test cases, and accordingly, both the base test operation and the derived test operation are regarded as test operations. Finally, it is possible to test the stability of the system function and the system operation by performing an automatic test of the entire system by the test case and the test operation.

上記実施例で言うところの「0乃至複数の正常値」及び「0乃至複数のエラー値」とは、正常値リスト/エラー値リストが空であってもよいし、複数の正常値/エラー値を含んでもよいことを意味している。正常値リストが空の場合には、対応するベーステスト動作の正常値の拡張は実行不要である。同様に、エラー値リストが空の場合には、対応するベーステスト動作のエラー値の拡張は実行不要である。以下では、この点についてこれ以上詳述しない。   In the above embodiment, “0 to multiple normal values” and “0 to multiple error values” may be that the normal value list / error value list may be empty, or a plurality of normal values / error values. It may be included. If the normal value list is empty, it is not necessary to extend the normal value of the corresponding base test operation. Similarly, when the error value list is empty, it is not necessary to execute the expansion of the corresponding error value of the base test operation. In the following, this point will not be described in further detail.

本発明の好ましい実施例では、図1に示すように、ベーステストケースについて以下のステップを実行することで、全てが正常値である派生テスト動作を含む派生テストケースを生成可能である。
ステップA1:ベーステストケースにおけるベーステスト動作を拡張テスト動作として1つ選択する。
ステップA2:拡張テスト動作に関連付けられた正常値リストから正常値を1つ選択する。
ステップA3:選択された正常値が拡張テスト動作の値と同じか否かを判断し、同じであればステップA2に戻る。
ステップA4:選択された正常値に基づいて拡張テスト動作に値を付与し、派生テスト動作を形成する。
ステップA5:派生テスト動作と、ベーステストケースにおける拡張テスト動作以外の全てのベーステスト動作を組み合わせて派生テストケースを形成する。
ステップA6:ベーステストケースに未選択のベーステスト動作が存在するか否かを判断し、存在する場合にはステップA1に戻り、存在しない場合には退出する。
In the preferred embodiment of the present invention, as shown in FIG. 1, a derivative test case including a derivative test operation, all of which are normal values, can be generated by executing the following steps on the base test case.
Step A1: One base test operation in the base test case is selected as an extended test operation.
Step A2: One normal value is selected from the normal value list associated with the extended test operation.
Step A3: It is determined whether or not the selected normal value is the same as the value of the extended test operation. If it is the same, the process returns to Step A2.
Step A4: Assign a value to the extended test operation based on the selected normal value to form a derived test operation.
Step A5: A derived test case is formed by combining the derived test operation and all base test operations other than the extended test operation in the base test case.
Step A6: It is determined whether or not an unselected base test operation exists in the base test case. If it exists, the process returns to Step A1, and if not, exits.

具体的に、本発明の好ましい実施例において、前記ベーステストケースは航空券購入のテストケースとしてもよい。この場合、テストケースに含まれるベーステスト動作としては以下が考えられる。
A.出発日:20160412と入力
B.帰着日:20160418と入力
C.出発地:北京と入力
D.目的地:上海と入力
E.出発人数:2と入力
F.検索
Specifically, in a preferred embodiment of the present invention, the base test case may be a test case for airline ticket purchase. In this case, the following may be considered as the base test operation included in the test case.
A. Enter departure date: 20140412 Return date: Enter 20160418 C.I. From: Enter Beijing. Destination: Enter Shanghai and E. Number of departures: Enter 2 Search

また、ベーステスト動作ごとに対応する正常値リスト及びエラー値リストは、それぞれ次のように設定可能である。
A.出発日:正常値リスト(20160412,20160228,20160229,20160418)、エラー値リスト(00,11000203,20160230,21061255,2016/16/10)
B.帰着日:正常値リスト(20160412,20160228,20160229,20160418)、エラー値リスト(00,11000203,20160230,21061255,2016/16/01)
C.出発地:正常値リスト(北京,天津,石家荘)、エラー値リスト(00,AA,東北,北京11,22北京,アジア,北海道)
D.目的地:正常値リスト(北京,天津,石家荘)、エラー値リスト(00,AA,東北,北京11,22北京,アジア,北海道)
E.出発人数:正常値リスト(1,2,9,99)、エラー値リスト(0,A,−1,100,101)。
The normal value list and error value list corresponding to each base test operation can be set as follows.
A. Departure date: Normal value list (20160412, 20160228, 201660229, 201660418), Error value list (00, 11000203, 20160230, 21061255, 2016/16/10)
B. Return date: normal value list (20160412, 20160228, 201660229, 201660418), error value list (00, 11000203, 20160230, 21061255, 2016/16/01)
C. Origin: Normal value list (Beijing, Tianjin, Shijiazhuang), Error value list (00, AA, Tohoku, Beijing 11, 22 Beijing, Asia, Hokkaido)
D. Destination: Normal value list (Beijing, Tianjin, Shijiazhuang), Error value list (00, AA, Tohoku, Beijing 11, 22 Beijing, Asia, Hokkaido)
E. Number of departures: normal value list (1, 2, 9, 99), error value list (0, A, -1, 100, 101).

前記ベーステスト動作における1つ目の動作を拡張テスト動作として選択するとともに(即ち、テスト動作A)、対応する正常値リストにおける正常値を1つ選択して、当該正常値がベーステスト動作の初期値と同じか否か(例えば、前記正常値リストにおける20160412がベーステスト動作の初期値と同じ)を判断すればよい。そして、同じ場合には、正常値リストから改めて正常値を1つ取得する。   The first operation in the base test operation is selected as an extended test operation (ie, test operation A), and one normal value in the corresponding normal value list is selected, and the normal value is the initial value of the base test operation. What is necessary is just to judge whether it is the same as a value (for example, 20140412 in the said normal value list is the same as the initial value of a base test operation). In the same case, one normal value is acquired from the normal value list again.

上記実施例では、初期値と異なる正常値を取得した後に、当該正常値を用いて拡張テスト動作に値を付与することで、当該拡張テスト動作とは異なる派生テスト動作を形成する。   In the above embodiment, after obtaining a normal value different from the initial value, a value is given to the extended test operation using the normal value, thereby forming a derived test operation different from the extended test operation.

最後に、本実施例では、当該派生テスト動作と元のベーステストケースにおける拡張テスト動作以外のその他のベーステスト動作を組み合わせて、当該ベーステストケースとは異なる派生テストケースとする。例えば、A’(ベーステスト動作Aに正常値を充填して取得した派生テスト動作)、B、C、D、E及びFを組み合わせて派生テストケースとする。   Finally, in this embodiment, the derived test operation is combined with other base test operations other than the extended test operation in the original base test case to obtain a derived test case different from the base test case. For example, A ′ (derived test operation acquired by filling the base test operation A with a normal value), B, C, D, E, and F are combined to form a derived test case.

上記実施例では、ベーステスト動作ごとにその正常値リストにおける各正常値を1回ずつ付与することで、最終的に複数の異なる派生テストケースを形成可能である。例えば、上記実施例では、全てが正常値である14個の派生テストケースを形成可能である。   In the above embodiment, by assigning each normal value in the normal value list once for each base test operation, it is possible to finally form a plurality of different derived test cases. For example, in the above embodiment, 14 derived test cases, all of which are normal values, can be formed.

本発明の好ましい実施例では、図2に示すように、前記ベーステストケースについて以下のステップを実行することで、エラー値の派生テスト動作を含む派生テストケースを生成可能である。
ステップB1:ベーステストケースにおけるベーステスト動作を拡張テスト動作として1つ選択する。
ステップB2:拡張テスト動作に関連付けられたエラー値リストからエラー値を1つ選択する。
ステップB3:選択されたエラー値が拡張テスト動作の値と同じか否かを判断し、同じであればステップB2に戻る。
ステップB4:選択されたエラー値に基づいて拡張テスト動作に値を付与し、派生テスト動作を形成する。
ステップB5:派生テスト動作と、ベーステストケースにおける拡張テスト動作以外の全てのベーステスト動作を組み合わせて派生テストケースを形成する。
ステップB6:ベーステストケースに未選択のベーステスト動作が存在するか否かを判断し、存在する場合にはステップB1に戻り、存在しない場合には退出する。
In the preferred embodiment of the present invention, as shown in FIG. 2, a derived test case including an error value derivation test operation can be generated by executing the following steps on the base test case.
Step B1: One base test operation in the base test case is selected as an extended test operation.
Step B2: One error value is selected from the error value list associated with the extended test operation.
Step B3: It is determined whether or not the selected error value is the same as the value of the extended test operation, and if it is the same, the process returns to Step B2.
Step B4: Assign a value to the extended test operation based on the selected error value to form a derived test operation.
Step B5: A derived test case is formed by combining the derived test operation and all base test operations other than the extended test operation in the base test case.
Step B6: It is determined whether or not an unselected base test operation exists in the base test case. If it exists, the process returns to Step B1, and if not, exits.

具体的に、本発明の好ましい実施例では、上記のステップA1〜A6と同様に、ステップB1〜B6においても、まず拡張テスト動作を決定し、当該拡張テスト動作に関連付けられたエラー値リストからエラー値を1つ選択するとともに、当該エラー値が拡張テスト動作の初期値と同じか否かを判断する(同じ場合には改めて選択する)。続いて、選択されたエラー値に基づいて拡張テスト動作に値を付与し、全く新しい派生テスト動作を形成する。当該派生テスト動作はエラーのテスト動作となる。   Specifically, in the preferred embodiment of the present invention, similarly to steps A1 to A6 described above, in steps B1 to B6, first, an extended test operation is determined, and an error is listed from the error value list associated with the extended test operation. While selecting one value, it is determined whether or not the error value is the same as the initial value of the extended test operation (if it is the same, it is selected again). Subsequently, a value is assigned to the extended test operation based on the selected error value to form a completely new derived test operation. The derived test operation is an error test operation.

最後に、上記実施例では、新たに生成した派生テスト動作とベーステストケースにおける前記拡張テスト動作を除いた残りのベーステスト動作とを組み合わせて新たな派生テストケースとする。   Finally, in the above embodiment, the newly generated derived test operation is combined with the remaining base test operation excluding the extended test operation in the base test case to form a new derived test case.

そして、最終的に、例えば上記のベーステストケースの場合には、ベーステスト動作ごとの各エラー値リストに基づいて順に値を付与することで、31個の異なる派生テストケースを取得可能である。これらの派生テストケースは、いずれもエラー値が付与された派生テスト動作を含む。   Finally, for example, in the case of the above-described base test case, 31 different derived test cases can be acquired by sequentially assigning values based on each error value list for each base test operation. Each of these derived test cases includes a derived test operation to which an error value is assigned.

本発明の好ましい実施例では、ベーステストケースにおけるベーステスト動作ごとに、対応するエラー値リストのエラー値を1つずつ用いてベーステスト動作に値を付与することで、対応する派生テスト動作を1つずつ生成するとともに、全ての派生テスト動作を組み合わせて派生テストケースを形成する。即ち、上記実施例では、ベーステスト動作ごとにエラー値を1つ選択することで、異なるエラー値が付与された派生テスト動作をそれぞれ形成するとともに、更に、エラーの派生テスト動作のみを含む派生テストケースを形成する。   In a preferred embodiment of the present invention, for each base test operation in the base test case, a value is assigned to the base test operation using one error value in the corresponding error value list, so that the corresponding derived test operation is 1 Each is generated one by one and all derived test operations are combined to form a derived test case. That is, in the above embodiment, by selecting one error value for each base test operation, a derived test operation with different error values is formed, and a derived test including only an error derived test operation. Form a case.

つまり、上述したベーステストケースの場合には、最終的に形成されるエラーの派生テスト動作のみを含む派生テストケースは1つとなる。   In other words, in the case of the above-described base test case, there is only one derived test case including only a derived error derived test operation.

本発明の好ましい実施例では、図3に示すように、ベーステストケースについて以下のステップを実行することで、全てが空の派生テストケースを生成可能である。
ステップC1:ベーステストケースにおけるベーステスト動作を拡張テスト動作として1つ選択する。
ステップC2:拡張テスト動作に空の値を付与することで、派生テスト動作を形成する。
ステップC3:派生テスト動作と、ベーステストケースにおける拡張テスト動作以外の全てのベーステスト動作組み合わせて派生テストケースを形成する。
ステップC4:ベーステストケースに未選択のベーステスト動作が存在するか否かを判断し、存在する場合にはステップC1に戻り、存在しない場合には退出する。
In the preferred embodiment of the present invention, as shown in FIG. 3, an empty derived test case can be generated by performing the following steps on the base test case.
Step C1: One base test operation in the base test case is selected as an extended test operation.
Step C2: A derived test operation is formed by assigning an empty value to the extended test operation.
Step C3: A derived test case is formed by combining the derived test operation and all base test operations other than the extended test operation in the base test case.
Step C4: It is determined whether or not an unselected base test operation exists in the base test case. If it exists, the process returns to Step C1, and if not, the process exits.

具体的に、本発明の好ましい実施例では、ベーステストケースにおけるベーステスト動作ごとに空の値をそれぞれ付与することで、値が空の派生テスト動作を含む派生テストケースを形成可能である。上述したベーステストケースの場合には、最終的に、値が空の派生テスト動作を含む5つの派生テストケースを形成可能である。   Specifically, in a preferred embodiment of the present invention, it is possible to form a derived test case including a derived test operation with an empty value by assigning an empty value to each base test operation in the base test case. In the case of the above-described base test case, finally, five derived test cases including a derived test operation with an empty value can be formed.

本発明の好ましい実施例では、ベーステストケースにおけるベーステスト動作ごとに空の値をそれぞれ付与することで、値が空の派生テスト動作のみを含む派生テストケースを形成可能である。上述したベーステストケースの場合には、最終的に、値が空の派生テスト動作のみを含む派生テストケースを1つ形成可能である。   In a preferred embodiment of the present invention, it is possible to form a derived test case including only a derived test operation having an empty value by assigning an empty value to each base test operation in the base test case. In the case of the above-described base test case, finally, one derived test case including only a derived test operation whose value is empty can be formed.

したがって、上述したように、1つのベーステストケースを利用して、最終的には51個までの派生テストケースを生成可能である。また、派生テストケースの生成前に正常値リスト/エラー値リストに含まれる値の数を修正すれば、より多くの派生テストケースを生成して、異なる自動テストニーズに応えることが可能となる。   Therefore, as described above, it is possible to finally generate up to 51 derived test cases using one base test case. Further, if the number of values included in the normal value list / error value list is corrected before the generation of the derived test cases, more derived test cases can be generated to meet different automatic test needs.

本発明の好ましい実施例では、上述した0個の正常値を含む正常値リストの場合、上記の派生テストケースの生成に対応するステップ(即ち、正常値を含む派生テストケースの生成)をスキップ可能であるが、全てが空の派生テストケースを生成すべく、ステップC1〜C4のステップについては実行してもよい。同様に、0個のエラー値を含むエラー値リストの場合にも、エラー値を含む派生テストケースを生成するステップをスキップ可能であるが、全てが空の派生テストケースを生成すべく、ステップC1〜C4のステップについては実行してもよい。   In the preferred embodiment of the present invention, in the case of the normal value list including 0 normal values, the step corresponding to the generation of the derived test case (that is, generation of the derived test case including the normal value) can be skipped. However, steps C1 to C4 may be executed in order to generate a derived test case that is all empty. Similarly, in the case of an error value list including zero error values, the step of generating a derived test case including an error value can be skipped, but in order to generate an all derived test case, step C1 Steps C4 to C4 may be executed.

上述したように、本発明の技術方案では、ベーステスト動作ごとに正常値リストとエラー値リストを設け、正常値リスト及びエラー値リストの値と空の値に基づいて各ベーステスト動作に値を付与するとともに、値を付与して形成される異なる派生テスト動作を組み合わせることで複数の異なる派生テストケースを形成する。これにより、1つのベーステストケースを複数の異なる派生テストケースに拡張して、テストケースの自動拡張操作を完了する。   As described above, in the technical solution of the present invention, a normal value list and an error value list are provided for each base test operation, and a value is assigned to each base test operation based on the values of the normal value list and the error value list and empty values. A plurality of different derivation test cases are formed by combining the different derivation test operations formed by giving values and adding values. Thus, one base test case is extended to a plurality of different derived test cases, and the test case automatic extension operation is completed.

本発明の好ましい実施例において、上記テストケースの自動拡張を完了した後、複数のテストケースを順に配列する。各テストケースは順に実行される複数のテスト動作に対応している。また、テスト動作ごとにテストコントロールが1つずつ対応しており、テスト動作ごとに操作方法が1つずつ対応しており、テストコントロールごとにテスト画面が1つずつ対応しており、テスト動作ごとに複数の予測結果が対応している。 In a preferred embodiment of the present invention, after completing the test case automatic extension, a plurality of test cases are arranged in order. Each test case corresponds to a plurality of test operations executed in sequence. Moreover, one test control corresponds to each test operation, one operation method corresponds to each test operation, one test screen corresponds to each test control, and each test operation corresponds to each test operation. A plurality of prediction results correspond to.

今回実行したい全てのテストケースに対応する全てのテスト動作をテストケースの実行順に配列することでテスト動作リストを形成する。   The test operation list is formed by arranging all the test operations corresponding to all the test cases to be executed this time in the execution order of the test cases.

図4に示すように、テストケースとテスト動作に基づいてシステムの自動テストを実行する方法は、具体的に以下を含む。
ステップS1:動作リストから現在の動作としてテスト動作を1つ選択し、現在の動作に対応するテストケースを現在のケースとしてテストを行う。
ステップS2:テスト過程におけるシステムブラウザの表示画面の番号と、現在の動作に対応するテスト画面の番号を比較して表示画面を特定する。
ステップS3:特定された表示画面から、現在の動作とマッチングするテストコントロールを現在のコントロールとして取得する。
ステップS4:現在の動作の動作属性に基づいて、取得した現在のコントロールに対応する操作方法にしたがって操作した後に、現在の動作に対応する操作結果を出力する。
ステップS5:操作結果を現在の動作に対応する予測結果と比較して、現在の動作の実行に成功したか否かを判断し、対応する比較結果を現在の動作のテスト結果として保存する。
As shown in FIG. 4, a method for executing an automatic test of a system based on a test case and a test operation specifically includes the following.
Step S1: One test operation is selected as the current operation from the operation list, and the test is performed using the test case corresponding to the current operation as the current case.
Step S2: The display screen is identified by comparing the number of the display screen of the system browser in the test process with the number of the test screen corresponding to the current operation.
Step S3: A test control that matches the current operation is acquired as the current control from the identified display screen.
Step S4: After operating according to the operation method corresponding to the acquired current control based on the operation attribute of the current operation, an operation result corresponding to the current operation is output.
Step S5: The operation result is compared with the prediction result corresponding to the current action to determine whether or not the execution of the current action is successful, and the corresponding comparison result is stored as the test result of the current action.

具体的実施例では、まず複数のテストケースを予め設定する。各テストケースには複数のテスト動作が含まれており、テスト動作ごとにテストコントロールが1つずつ対応している。また、テストコントロールごとにテスト画面が1つずつ対応しているため、各テストケースには複数のテスト画面が対応付けられている。   In a specific embodiment, first, a plurality of test cases are preset. Each test case includes a plurality of test operations, and one test control corresponds to each test operation. In addition, since one test screen corresponds to each test control, a plurality of test screens are associated with each test case.

具体的に、前記テストケースは順に予め設定される。即ち、一定の実行順にしたがって複数のテストケースを予め設定しておき、1つのテストケースの実行が完了すると、次のテストケースの実行に移行する。同様に、同一のテストケースにおいて、異なるテスト動作も順に配列される。また、テスト動作ごとにテストコントロールが1つずつ対応しており、テストコントロールごとにテスト画面が1つずつ対応している。前記テスト画面は、スタート画面と後続画面に分けられる。1つのテストケースに対しスタート画面は1つのみであるが、後続画面は複数存在してもよい。前記スタート画面はテストケースの実行の1つ目の画面とし、後続画面は前記スタート画面の後に順に配列される表示画面とすればよい。各テスト画面(スタート画面及び後続画面を含む)は、いずれも1つのテストコントロールの操作に対応する画面である。例えば、ユーザがこのテストケースにログインする場合には、ユーザ名及びパスワードを入力するテスト動作と、ログインコントロールをクリックするテスト動作が含まれ得る。前記ログインコントロールに対応するテスト画面は、ユーザがユーザ名及びパスワードを入力可能となるよう提供されるログイン画面とすればよく、且つ、当該画面をテストケースのスタート画面とすればよい。前記テストケースにおける複数の後続画面は、ログイン成功後に表示されるシステムブラウザのその他の画面としてもよいし、ログインの失敗を表示する画面としてもよい。前記画面は、テストロジックにしたがって配列される。   Specifically, the test cases are preset in order. That is, a plurality of test cases are set in advance according to a certain execution order, and when execution of one test case is completed, the process proceeds to execution of the next test case. Similarly, different test operations are arranged in order in the same test case. One test control corresponds to each test operation, and one test screen corresponds to each test control. The test screen is divided into a start screen and a subsequent screen. Although there is only one start screen for one test case, a plurality of subsequent screens may exist. The start screen may be a first screen for executing a test case, and the subsequent screen may be a display screen arranged in order after the start screen. Each test screen (including a start screen and a subsequent screen) is a screen corresponding to one test control operation. For example, when a user logs in to the test case, a test operation for inputting a user name and a password and a test operation for clicking a login control can be included. The test screen corresponding to the login control may be a login screen provided so that the user can input a user name and a password, and the screen may be a test case start screen. The plurality of subsequent screens in the test case may be other screens of the system browser displayed after successful login, or may be screens displaying login failure. The screens are arranged according to test logic.

上記実施例において、テストケースの設定インターフェースは図5〜6のようになる。当該テストケースのスタート画面の名称は「アカウント情報」、当該テストケースの名称は「アカウント・パスワード修正インターフェースへ移行」、当該テストケースの前期の関連テストケースは「アカウント情報インターフェースへ移行」である。また、これに対応して、当該テストケースの前期の関連テストケースは、更に、「ログイン」、「システム管理へ移行」及び「アカウント情報インターフェースへ移行」を含む。上記の前期の関連テストケースは順に配列される。図2に示すテストケースの設定インターフェースは可視化インターフェースであり、従来技術におけるコードレベルの設定インターフェースではないため、テストケースの設定プロセスを簡略化できる。また、図3は、上記の予め設定されるテストケースのリストを示す。   In the above embodiment, the test case setting interface is as shown in FIGS. The name of the start screen of the test case is “account information”, the name of the test case is “transfer to the account / password correction interface”, and the related test case of the previous test case is “transfer to the account information interface”. Correspondingly, related test cases in the first half of the test case further include “login”, “shift to system management”, and “transfer to account information interface”. The related test cases in the previous period are arranged in order. Since the test case setting interface shown in FIG. 2 is a visualization interface and not a code level setting interface in the prior art, the test case setting process can be simplified. FIG. 3 shows a list of the test cases set in advance.

上記実施例において、テストケースに関連付けられたテスト画面(スタート画面及び後続画面を含む)の設定インターフェースは図7のようになる。図7の画面情報には、画面番号(ID)、画面名及び画面アクセスアドレスが含まれる。アクセスアドレスとは、URL(Uniform Resoure Locator,統一資源位置指定子)アドレスのことである。前記画面設定インターフェースも同様に可視化されたインターフェースである。   In the above embodiment, the setting interface of the test screen (including the start screen and the subsequent screen) associated with the test case is as shown in FIG. The screen information in FIG. 7 includes a screen number (ID), a screen name, and a screen access address. The access address is a URL (Uniform Resource Locator) address. The screen setting interface is also a visualized interface.

上記実施例において、テスト動作の設定インターフェースは図8のようになる。図8において、テスト動作は「検索条件入力」と設定可能であり、複数の表示画面名、複数のコントロール名、複数の動作属性(方法)及び複数のテスト動作に付与される値等が関連付けられている。前記テスト動作の設定インターフェースも同様に可視化されているため、操作が容易である。   In the above embodiment, the test operation setting interface is as shown in FIG. In FIG. 8, the test operation can be set as “search condition input”, and a plurality of display screen names, a plurality of control names, a plurality of operation attributes (methods), values given to the plurality of test operations, and the like are associated with each other. ing. Since the setting interface for the test operation is also visualized, the operation is easy.

上記実施例において、各テスト動作に対応する操作方法は、一連の演算を通じて動作属性から取得可能である。また、前記動作属性は対応の式で表すことができる。   In the above embodiment, the operation method corresponding to each test operation can be acquired from the operation attribute through a series of operations. The operation attribute can be expressed by a corresponding expression.

上記実施例では、設定を完了した異なるテストケースに関連付けられるテスト動作から動作リストを形成する。具体的には、例えば、テストケースA、B、Cが順に配列されるようそれぞれ設定されているとする。テストケースAには、テスト動作A1、A2、A3が順に配列されるようそれぞれ設定されており、テストケースBには、テスト動作B1、B2が順に配列されるようそれぞれ設定されており、テストケースCには、テスト動作C1、C2、C3、C4が順に配列されるようそれぞれ設定されている。この場合、前記動作リストは、A1、A2、A3、B1、B2、C1、C2、C3、C4の順に配列すればよい。   In the above embodiment, an operation list is formed from test operations associated with different test cases for which setting has been completed. Specifically, for example, it is assumed that the test cases A, B, and C are set so as to be arranged in order. The test case A is set so that the test operations A1, A2, and A3 are sequentially arranged, and the test case B is set so that the test operations B1 and B2 are sequentially arranged. C is set such that test operations C1, C2, C3, and C4 are sequentially arranged. In this case, the operation list may be arranged in the order of A1, A2, A3, B1, B2, C1, C2, C3, and C4.

上記実施例において、各テスト動作に関連付けられるコントロールの設定インターフェースは図9のようになる。図6において、各コントロールのコントロール情報には、コントロール番号(ID)、コントロールタイトル、コントロール種別、コントロールのフロントエンド技術、コントロール特定用の属性名称、コントロール特定用の属性値、コントロールの最大値/最小値/最大長さ/最小長さ、コントロールのデフォルト値、コントロールの正常値リスト/エラー値リスト等が含まれる。前記コントロールの設定画面も可視化画面である。   In the above embodiment, the control setting interface associated with each test operation is as shown in FIG. In FIG. 6, the control information of each control includes a control number (ID), a control title, a control type, a control front-end technology, an attribute name for specifying the control, an attribute value for specifying the control, and a maximum / minimum value of the control. Value / maximum length / minimum length, control default value, control normal value list / error value list, etc. are included. The control setting screen is also a visualization screen.

上記実施例において、前記テストケース、テスト動作、画面及びコントロール等の設定については、1)システムにより予め設定するか、2)システムに各テスト要素を予め設定しておき、ユーザが対応する可視化インターフェースを通じて異なるテスト要素を選択し、組み合わせて、テストケース、テスト動作、画面及びコントロール等の設定情報を形成する、という2種類の方式が可能である。   In the above embodiment, the test case, test operation, screen, control and the like are set by 1) the system in advance, or 2) the test elements are set in the system in advance, and the visualization interface corresponding to the user It is possible to use two types of methods in which different test elements are selected and combined to form setting information such as test cases, test operations, screens and controls.

なお、上記実施例で記載した予測結果の設定インターフェースについては後に詳述する。   The prediction result setting interface described in the above embodiment will be described in detail later.

上記実施例では、今回実行したい全テストケースについて、各テストケースの配列順序にしたがってテストケースに含まれる全てのテスト動作を1つの動作リストに配置する。   In the above embodiment, for all test cases to be executed this time, all the test operations included in the test cases are arranged in one operation list according to the arrangement order of the test cases.

前記ステップS1では、まずテスト動作を1つ選択してテストの実行を開始する。具体的には、当該テスト動作について対応するテストケースを決定し、決定したテストケースを現在のケースとしてテストを開始すればよい。   In step S1, first, one test operation is selected and execution of the test is started. Specifically, a test case corresponding to the test operation may be determined, and the test may be started with the determined test case as the current case.

上記実施例では、現在の動作と現在のケースを特定した後、ブラウザの表示画面の切替状態をモニタリングすることで、現時点でブラウザにロード済みの表示画面の画面番号を探し出し、現在の動作におけるテスト画面の番号と当該表示画面の番号とを比較する。即ち、現在の表示画面における画面番号に基づいて、現在の動作に対応するテスト画面とのマッチングを行い、現時点のブラウザの表示画面を現在のケースにおける現在の動作に対応するテスト画面として特定する。   In the above embodiment, after identifying the current operation and the current case, the browser display screen switching status is monitored to find the screen number of the display screen loaded in the browser at the current time, and the test in the current operation The screen number is compared with the display screen number. That is, based on the screen number on the current display screen, matching with the test screen corresponding to the current operation is performed, and the current browser display screen is specified as the test screen corresponding to the current operation in the current case.

上記実施例では、表示画面を特定した後、表示画面の表示内容を分析し、表示画面における全てのコントロールのリアルタイム情報を取得する。そして、表示画面から取得したコントロールの関連情報に基づいて、テスト動作に対応するコントロール情報(例えば、特定用の属性)とマッチングすることで、正確なコントロールを特定するとともに、特定されたコントロールの位置情報を記録すればよい。具体的には、表示画面中のコントロールを1つ取得した後に、コントロールのコントロール属性と現在の動作に対応するテストコントロールのコントロール属性をマッチングすることでマッチング結果を得る。そして、マッチング結果がマッチングの成功を示している場合には、取得したコントロールを現在のコントロールとして特定する。例えば、コントロールを1つ取得した後に、当該コントロールとテスト動作に対応するテストコントロールとを比較して、異なる場合には現在の動作のコントロールではないことを意味し、同じ場合には現在の動作のコントロールであることを意味する。そして、マッチングに成功したコントロールを現在のコントロールとみなす。したがって、前記コントロールの特定方式としては、まず、テスト動作に対応するテストコントロールを用い、現在表示中の表示画面であるテスト画面を特定する。表示画面に含まれるコントロールは1つとは限らない。そのため、当該表示画面において、更にコントロール属性を比較することで前記テスト動作に対応するテストコントロールを特定し、テストコントロールの特定を完了する。   In the above embodiment, after specifying the display screen, the display content of the display screen is analyzed, and real-time information of all controls on the display screen is acquired. Based on the control related information acquired from the display screen, matching with control information corresponding to the test operation (for example, an attribute for identification) identifies the exact control, and the position of the identified control Information can be recorded. Specifically, after obtaining one control on the display screen, the control result of the control and the control attribute of the test control corresponding to the current operation are matched to obtain a matching result. When the matching result indicates that the matching is successful, the acquired control is specified as the current control. For example, after acquiring one control, the control is compared with the test control corresponding to the test operation, and if it is different, it means that it is not the control of the current operation. Means control. The control that succeeds in matching is regarded as the current control. Accordingly, as a method for specifying the control, first, a test screen corresponding to a test operation is used to specify a test screen which is a currently displayed display screen. The number of controls included in the display screen is not necessarily one. Therefore, the control attribute corresponding to the test operation is specified by further comparing the control attributes on the display screen, and the test control specification is completed.

上記実施例では、テストコントロールの特定後に、現在の動作の動作属性に基づいて当該テストコントロールに対し相応の操作を実行可能となる。そして、現在の動作の実行が完了すると、現在の動作に対応する操作結果を記録する。   In the above embodiment, after the test control is specified, a corresponding operation can be executed on the test control based on the operation attribute of the current operation. When the execution of the current operation is completed, the operation result corresponding to the current operation is recorded.

上記実施例では、操作結果の取得後に、当該操作結果を現在の動作に対応する予測結果と比較することで、現在の動作の操作に成功したか否かを判断し、比較結果を記録する。   In the above-described embodiment, after the operation result is acquired, the operation result is compared with a prediction result corresponding to the current action, thereby determining whether or not the operation of the current action is successful and recording the comparison result.

上記プロセスの実行完了後、現在の動作については実行を終えたと判断すると、次のテスト動作に移行して上記ステップS1に戻る。   When it is determined that the current operation has been completed after the completion of the execution of the process, the process proceeds to the next test operation and returns to step S1.

上述したように、本発明の技術方案では、可視化した操作方法によって、テストケース、テスト動作、テストコントロール、テスト画面及び予測結果等のテストパラメータを予め設定するプロセスを簡単・明瞭としている。且つ、設定されたこれらテストパラメータに基づいて、可視化したソフトウェアテストをスピーディー且つ自動的に実行可能なことから、ソフトウェアテストのニーズに応えることが可能となり、且つ、ソフトウェアテストの効率も向上する。   As described above, the technical solution of the present invention makes the process of setting test parameters such as test cases, test operations, test controls, test screens, and prediction results in advance simple and clear by using a visualized operation method. In addition, since the visualized software test can be executed speedily and automatically based on the set test parameters, it is possible to meet the needs of the software test and improve the efficiency of the software test.

本発明の好ましい実施例では、上記ステップS1において、現在のケースに関連付けられた各テスト動作を実行する前に、テスト動作の動作属性に基づいて、テスト動作に対応するテストコントロールのテスト画面を開く必要があるか否かを判断するとともに、必要に応じてテスト画面に関連付けられたアドレスを抽出し、テスト画面を開く。具体的に、上記実施例では、各テスト動作を実行する前に、当該テスト動作に対応するテストコントロールのテスト画面をロードする必要があるか否かを判断し、必要であれば対応するテスト画面をロードする一方、不要な場合には画面を一切変更しない。上記実施例において、前記テスト画面の抽出及びロードは、対応するコントロールの対応画面のURLアドレスを抽出することで実現される。具体的には、対応するコントロールの対応画面に関連付けられたURLアドレスを抽出し、現在のケースが指定する起動パラメータを使用するとともに、ブラウザにおいて対応するURLアドレスを開くことで、現在のケースをテストする。その時点で指定されたブラウザがすでに開いている場合には、画面に関連付けられたURLアドレスを抽出してブラウザの表示画面を更新するだけでよい。且つ、上記実施例で言うところのテスト動作の動作属性には、テスト動作と、その前後の動作との関連性が含まれる。システムは、テスト動作とその前後の動作との関連性を判断した後、対応するURLアドレスを抽出して相応のテスト画面を開く必要があるか否かを判断する。   In the preferred embodiment of the present invention, before executing each test operation associated with the current case in step S1, the test screen of the test control corresponding to the test operation is opened based on the operation attribute of the test operation. It is determined whether or not it is necessary, and an address associated with the test screen is extracted as necessary, and the test screen is opened. Specifically, in the above embodiment, before executing each test operation, it is determined whether or not it is necessary to load a test control test screen corresponding to the test operation. If you don't need it, don't change the screen at all. In the above embodiment, the test screen is extracted and loaded by extracting the URL address of the corresponding screen of the corresponding control. Specifically, the URL address associated with the corresponding screen of the corresponding control is extracted, the activation parameter specified by the current case is used, and the corresponding URL address is opened in the browser to test the current case. To do. If the browser specified at that time is already open, it is only necessary to extract the URL address associated with the screen and update the browser display screen. In addition, the operation attribute of the test operation referred to in the above embodiment includes the relationship between the test operation and the operation before and after the test operation. After determining the relevance between the test operation and the operation before and after that, the system determines whether it is necessary to extract the corresponding URL address and open the corresponding test screen.

本発明の他の好ましい実施例では、上記ステップS1において、現在のケースに関連付けられた1つ目のテスト動作を実行する際に、現在のケースに対応する1つ目のテストコントロールのテスト画面をスタート画面として抽出する。そして、スタート画面に関連付けられたアドレスでスタート画面を開くことで、現在のケースのテストを開始する。具体的に、上記実施例では、テストケースにおける1つ目のテスト動作を実行する際にのみ、当該テスト動作に対応するテストコントロールのテスト画面をスタート画面としてロードする。具体的に、最初にテストを開始する際には、前記動作リストにおける1つ目のテスト動作を選択してテストを開始すればよい。テスト動作を選択した後、当該テスト動作を現在の動作とし、且つ、現在の動作に基づいて対応するテストケースを特定するとともに、当該テストケースを現在のケースとする。続いて、当該現在の動作に対応するテストコントロールの対応テスト画面を抽出し、テストを開始する。上記実施例では、最初にテストを開始する際のテスト動作を1つ目のテスト動作とするため、上記で抽出される画面が対応する現在のケースのスタート画面となるはずである。なお、スタート画面をロード及び抽出する方法は上記の実施例と同様である。即ち、スタート画面のURLアドレスを抽出するとともに、現在のケースが指定する起動パラメータを使用して、所定のシステムブラウザで開くことにより実現する。   In another preferred embodiment of the present invention, when the first test operation associated with the current case is executed in step S1, the test screen of the first test control corresponding to the current case is displayed. Extract as start screen. The current case test is then started by opening the start screen at the address associated with the start screen. Specifically, in the above embodiment, only when the first test operation in the test case is executed, the test screen of the test control corresponding to the test operation is loaded as the start screen. Specifically, when the test is started for the first time, the test may be started by selecting the first test operation in the operation list. After selecting the test operation, the test operation is set as the current operation, a corresponding test case is specified based on the current operation, and the test case is set as the current case. Subsequently, the test screen corresponding to the test operation corresponding to the current operation is extracted, and the test is started. In the above embodiment, since the first test operation is the test operation at the start of the test, the screen extracted above should be the start screen of the corresponding current case. The method for loading and extracting the start screen is the same as in the above embodiment. That is, it is realized by extracting the URL address of the start screen and opening it with a predetermined system browser using the start parameters specified by the current case.

本発明の好ましい実施例では、前記各テストケースの実行を開始する前に、まず当該テストケースの初期化データを設定する。即ち、テストケースのデータについて初期化操作を行う。データの初期化操作には、データベース内の対応するデータについて初期化処理を実施することで、それ以前のテストデータが残留することによる今回のテストへの影響を回避することや、データベース内に対応する初期化データを追加することでテストの初期化テスト環境を形成し、テスト開始環境の統一性を保証すること等が含まれ得る。   In a preferred embodiment of the present invention, before starting execution of each test case, first, initialization data of the test case is set. That is, the initialization operation is performed on the test case data. For the data initialization operation, by performing initialization processing for the corresponding data in the database, it is possible to avoid the effect on the current test due to the remaining test data remaining in the database, and to support in the database This includes adding initialization data to form an initialization test environment for the test, ensuring uniformity of the test start environment, and the like.

したがって、本発明の好ましい実施例では、新たなテスト動作を実行する際に、まず当該テスト動作がいずれかのテストケースにおける1つ目のテスト動作であるか否かを判断する必要がある。そして、1つ目の場合には、テストケースについてデータの初期化操作を行ってからテスト動作を実行する一方、1つ目でない場合には当該テスト動作をそのまま実行する。   Therefore, in the preferred embodiment of the present invention, when executing a new test operation, it is necessary to first determine whether the test operation is the first test operation in any test case. In the first case, the test operation is executed after performing the data initialization operation for the test case, while in the other case, the test operation is executed as it is.

或いは、本発明における他の好ましい実施例では、各テストケースのスタート画面をラベリングしておく。そして、テスト過程においてスタート画面に進行した場合には、対応するテストケースについてデータの初期化操作を行ってから、スタート画面に対応するテスト動作を実行する。   Alternatively, in another preferred embodiment of the present invention, the start screen of each test case is labeled. When the process proceeds to the start screen during the test process, the data initialization operation is performed for the corresponding test case, and then the test operation corresponding to the start screen is executed.

本発明における好ましい実施例では、上記ステップS1においてテストケースを現在のケースとみなした後に、現在のケースのテストを開始すべく現在のケースの初期化データを抽出する。   In the preferred embodiment of the present invention, after the test case is regarded as the current case in step S1, initialization data of the current case is extracted in order to start the test of the current case.

現在のケースの1つ目のテストコントロールに対応するテスト画面のアドレスをスタート画面として抽出した後、現在のケースが指定する起動パラメータを使用してスタート画面を開き、テストを実行する。   After extracting the address of the test screen corresponding to the first test control of the current case as the start screen, the start screen is opened using the start parameters specified by the current case, and the test is executed.

上記実施例で言うところの起動パラメータとは、上記のスタート画面としてのテスト画面を開く際の基準ネットワークパラメータのことである。   The startup parameters referred to in the above embodiments are reference network parameters when the test screen as the start screen is opened.

本発明の好ましい実施例において、上記ステップS2は具体的に、現在の動作の後続のテスト動作に対応するテスト画面の番号を取得するとともに、表示画面の番号をモニタリングして、表示画面の番号がテスト画面の番号と一致している場合には表示画面の切り替えに成功したとみなし、表示画面を特定する。具体的に、上記ステップS2では、現在の表示画面の番号が現在の動作の後続の動作に対応するテスト画面の番号と一致している場合には、現在の表示画面の切り替えに成功したとみなして、当該表示画面を現在の動作の後続の動作におけるテスト画面として特定する。   In the preferred embodiment of the present invention, the above step S2 specifically obtains the number of the test screen corresponding to the test operation subsequent to the current operation, monitors the number of the display screen, and determines the number of the display screen. If it matches the test screen number, it is considered that the display screen has been successfully switched, and the display screen is specified. Specifically, in step S2, if the number of the current display screen matches the number of the test screen corresponding to the subsequent operation of the current operation, the current display screen is considered to have been successfully switched. Thus, the display screen is specified as a test screen in the subsequent operation of the current operation.

本発明の他の好ましい実施例において、上記ステップS2は具体的に、現在の動作の後続のテスト画面に対応する番号を取得するとともに、表示画面の番号をモニタリングして、表示画面の番号がテスト画面の番号と一致している場合には表示画面の切り替えに成功したとみなし、表示画面を特定する。具体的に、上記ステップS2では、現在の表示画面の番号が現在の動作の後続の画面の番号と一致している場合には、現在の表示画面の切り替えに成功したとみなして、当該表示画面を現在の動作の後続の画面と特定する。   In another preferred embodiment of the present invention, the step S2 specifically obtains a number corresponding to a subsequent test screen of the current operation and monitors the number of the display screen so that the number of the display screen is tested. If it matches the screen number, it is considered that the display screen has been successfully switched, and the display screen is specified. Specifically, in step S2, if the number of the current display screen matches the number of the subsequent screen of the current operation, it is assumed that the current display screen has been successfully switched, and the display screen Is identified as the subsequent screen of the current action.

本発明の好ましい実施例において、上記ステップS4では、コントロールを操作する前にまず現在の動作の動作属性を判断するとともに、動作属性に基づいて現在のコントロールに対する操作を決定する。   In the preferred embodiment of the present invention, in step S4, the operation attribute of the current operation is first determined before operating the control, and the operation for the current control is determined based on the operation attribute.

現在の動作の動作属性が値の設定である場合には、現在のコントロールに対して行う操作はコントロールに対する値の付与となる。例えば、コントロールに対し予め設定した数値を付与する等となる。   When the operation attribute of the current operation is a value setting, an operation performed on the current control is to assign a value to the control. For example, a preset numerical value is given to the control.

現在の動作の動作属性が操作命令の実行である場合には、現在のコントロールに対して行う操作はコントロールを操作するための操作命令の実行となる。例えば、操作命令が「クリック」の場合、現在のコントロールに対しコントロールのクリック操作を実行すればよい。   When the operation attribute of the current operation is execution of an operation command, the operation performed on the current control is execution of the operation command for operating the control. For example, when the operation command is “click”, a control click operation may be executed on the current control.

現在の動作の動作属性がファンクションキーの組み合わせによる操作の実行である場合には、システムの入力装置に対して対応するファンクションキーの組み合わせ命令を送信することで現在のコントロールを操作する。例えば、ファンクションキーの組み合わせが、入力キーボード上の「Shift」キー、「Alt」キー及び「Enter」キーの組み合わせである場合、システムはキーボードに対し前記3つのキーの組み合わせ命令を出力するよう通知すべく、対応するファンクションキーの組み合わせ命令をキーボードに送信すればよい。   When the operation attribute of the current operation is execution of an operation using a function key combination, the current control is operated by transmitting a corresponding function key combination command to the input device of the system. For example, if the combination of function keys is a combination of “Shift” key, “Alt” key, and “Enter” key on the input keyboard, the system notifies the keyboard to output the combination command of the three keys. Therefore, a corresponding function key combination command may be transmitted to the keyboard.

現在の動作の動作属性が文字列メッセージの送信である場合には、現在のコントロールを操作して対応する文字列メッセージを送信する。具体的には、ブラウザを通じて対応する文字列メッセージを送信すればよい。   When the operation attribute of the current operation is transmission of a character string message, the corresponding character string message is transmitted by operating the current control. Specifically, a corresponding character string message may be transmitted through a browser.

現在の動作の動作属性がメモリコピーである場合には、現在のコントロールに付与される値をシステムメモリに保存する。具体的には、現在のコントロールに付与される値、又はその他特定の値をシステムメモリに保存することで、即ち、システムメモリの「クリップボード」機能を実現する。   If the operation attribute of the current operation is memory copy, the value assigned to the current control is stored in the system memory. Specifically, a value assigned to the current control or other specific value is stored in the system memory, that is, the “clipboard” function of the system memory is realized.

現在の動作の動作属性がメモリからの値付与である場合には、現在の動作の動作属性に基づいて、システムメモリに保存されている値を現在のコントロールに付与する。   When the operation attribute of the current operation is value addition from the memory, a value stored in the system memory is assigned to the current control based on the operation attribute of the current operation.

現在の動作の動作属性が論理判断の場合、メモリに保存されている値について判断し、判断結果に基づいて予め設定された後続のテスト動作をスキップする。具体的に、論理判断とは、システムメモリ内の付与値を示す式について判断することをいう。例えば、当該式が予め設定された何らかの値よりも大きい/小さいか否かを判断するか、システムメモリに保存されている値がtrue/falseであるか否かを判断する。また、上記のスキップ動作を示すスキッププランについては、各テスト動作のテスト属性に予め設定しておけばよい。具体的な判断プロセスとしては、前記システムメモリに保存されている数値を示す式について判断する。そして、判断結果に基づき、上記の予め設定されたスキッププランを実行すべきか否かを決定し、1又は複数の後続のテスト動作をスキップする。なお、上記実施例においては、前記スキッププランが後続の動作を1つも含まなくともよい。即ち、判断結果がどうであれ、どの後続動作もスキップしなくともよい。   When the operation attribute of the current operation is logic determination, the value stored in the memory is determined, and the subsequent test operation set in advance based on the determination result is skipped. Specifically, logical judgment means judgment on an expression indicating a given value in the system memory. For example, it is determined whether or not the expression is larger / smaller than some preset value, or whether or not the value stored in the system memory is true / false. The skip plan indicating the above skip operation may be set in advance in the test attribute of each test operation. As a specific determination process, an expression indicating a numerical value stored in the system memory is determined. Then, based on the determination result, it is determined whether or not to execute the preset skip plan, and one or a plurality of subsequent test operations are skipped. In the above embodiment, the skip plan may not include any subsequent operation. That is, regardless of the determination result, it is not necessary to skip any subsequent operation.

本発明の好ましい実施例では、上述したように、現在の画面が進行した場合、ブラウザの表示内容をモニタリングすることで新たな画面の番号を特定するとともに、新たなテストコントロールを特定する。   In the preferred embodiment of the present invention, as described above, when the current screen progresses, the display content of the browser is monitored to identify a new screen number and to identify a new test control.

本発明の好ましい実施例では、上記ステップS5において、操作結果の種別に応じて操作結果と予測結果を比較する。   In a preferred embodiment of the present invention, in step S5, the operation result is compared with the prediction result according to the type of operation result.

操作結果が表示画面のコントロールを操作した結果である場合、システムはブラウザ内の表示画面に含まれる対応するコントロールの情報を読み取るとともに、読み取った情報を予測結果と比較する。具体的に、コントロールの情報と予測結果を比較する際には、まとまったコントロールを一括して比較する。例えば、現在の表示画面における全てのコントロールに対応する情報を取得して、予測結果とそれぞれ比較する。   When the operation result is a result of operating the control on the display screen, the system reads information on the corresponding control included in the display screen in the browser and compares the read information with the prediction result. Specifically, when comparing the control information and the prediction result, the grouped controls are compared together. For example, information corresponding to all controls on the current display screen is acquired and compared with prediction results.

操作結果がブラウザの欄内データに対応する結果である場合、システムはブラウザにおける対応する欄内データを読み取り、読み取った情報を予測結果と比較する。   When the operation result is a result corresponding to the in-column data of the browser, the system reads the corresponding in-column data in the browser and compares the read information with the prediction result.

操作結果がシステムのデータベース内のデータである場合、システムはデータベース内のデータを読み取って、読み取った情報を予測結果と比較する。   If the operation result is data in the database of the system, the system reads the data in the database and compares the read information with the predicted result.

具体的に、本発明の好ましい実施例において、前記予測結果が予め設定されたインターフェースは図10〜12のようになる。
図10は、画面内のコントロールの予測結果を示す。予測結果には、コントロールのID、コントロールタイトル、予測結果の種別及び予測結果の値が含まれ得る。
図11は、テーブル類の予測結果を示す。予測結果には、コントロールID、コントロールのタイトル、予測件数、比較件数及びテーブルデータ等の属性が含まれ得る。
図12は、データベース類の予測結果を示す。予測結果には、検索条件、ソート条件、制限行数及びデータ等の属性が含まれ得る。
Specifically, in a preferred embodiment of the present invention, an interface in which the prediction result is preset is as shown in FIGS.
FIG. 10 shows the prediction result of the control in the screen. The prediction result may include a control ID, a control title, a prediction result type, and a prediction result value.
FIG. 11 shows the prediction results of the tables. The prediction result may include attributes such as control ID, control title, number of predictions, number of comparisons, and table data.
FIG. 12 shows the prediction results of the databases. The prediction result may include attributes such as a search condition, a sort condition, a limited number of rows, and data.

本発明の好ましい実施例では、コントロールの比較の場合、システムはブラウザにおける対応するコントロールの情報を読み取るとともに、読み取った情報を予測結果と比較する。   In the preferred embodiment of the present invention, for control comparison, the system reads the corresponding control information in the browser and compares the read information with the prediction result.

欄内データの比較の場合、システムはブラウザにおける対応する欄内データを読み取るとともに、読み取った情報を予測結果と比較する。   In the case of comparison of column data, the system reads the corresponding column data in the browser and compares the read information with the prediction result.

また、データベースの比較の場合、システムは所定のデータベース内のデータを読み取るとともに、読み取った情報を予測結果と比較する。   In the case of database comparison, the system reads data in a predetermined database and compares the read information with a prediction result.

本発明の好ましい実施例において、上記ステップS5では、現在の動作の実行に成功したか否かを判断する。そして、成功した場合には、現在の動作に関連付けられた操作結果を保存した後、ステップS5の実行を継続する。一方、成功しなかった場合には現在のケースのテストを終了し、次のテストケースに進行してステップS1に戻る。   In the preferred embodiment of the present invention, in step S5, it is determined whether or not the current operation has been successfully executed. If the operation is successful, the operation result associated with the current operation is saved, and then the execution of step S5 is continued. On the other hand, if the test is not successful, the test for the current case is terminated, the process proceeds to the next test case, and the process returns to step S1.

具体的に、本発明の好ましい実施例では、現在の動作の実行に成功した場合には、同一の現在のケースにおける次のテスト動作に自動的に進行して実行する(ステップS5の実行を継続する)とともに、実行に成功した操作結果を保存する。   Specifically, in the preferred embodiment of the present invention, if execution of the current operation is successful, it automatically proceeds to the next test operation in the same current case and executes (continues execution of step S5). And the operation result that has been successfully executed is saved.

また、現在の動作の実行に失敗した場合には、現在のケースのテストを終了し、次のテストケースに進行して実行する(ステップS1に戻る)。つまり、動作リストのうち現在のケースに対応する後続のテスト動作については進行して、次のテストケースにおける1つ目のテスト動作から改めてテストを開始する。   If execution of the current operation fails, the test for the current case is terminated, and the test proceeds to the next test case (returns to step S1). That is, the subsequent test operation corresponding to the current case in the operation list proceeds, and the test is started again from the first test operation in the next test case.

本発明の好ましい実施例では、1つの現在の動作における操作結果が完了すると、ブラウザの表示ページ(即ち、操作結果を表すページ)をスクリーンショットにより保存するとともに、スクリーンショット内に現在の動作に対応するコントロールの位置を表記する(その前のコントロールの特定を元に表記する)。   In a preferred embodiment of the present invention, when an operation result in one current operation is completed, a browser display page (that is, a page representing the operation result) is saved as a screenshot, and the current operation is supported in the screenshot. Indicates the position of the control to be performed (based on the previous control specified).

本発明の好ましい実施例において、上記ステップS5では、対応する比較結果を現在の動作のテスト結果として保存した後、次のテスト動作に進行する。そして、進行した次のテスト動作が全体のコントロールに対する操作を示している場合には、ステップS4に戻る。   In the preferred embodiment of the present invention, in step S5, the corresponding comparison result is stored as the test result of the current operation, and then proceeds to the next test operation. If the next test operation that has proceeded indicates an operation for the entire control, the process returns to step S4.

本発明の好ましい実施例において、上記ステップS5では、対応する比較結果を現在の動作のテスト結果として保存した後、次のテスト動作に進行する。   In the preferred embodiment of the present invention, in step S5, the corresponding comparison result is stored as the test result of the current operation, and then proceeds to the next test operation.

本発明の好ましい実施例において、前記テストケースの生成方法は主流なソフトウェアシステムのいずれにも適用可能である。これは、主流ソフトウェアシステムの動作方法の駆動を保証するよう、予め設定される前記テストケース、テスト動作、テストコントロール、テスト画面等のデータベースにおいて、主流ソフトウェアシステムが使用を要する駆動方法の実現形態を予め保証しているからである。   In a preferred embodiment of the present invention, the test case generation method is applicable to any mainstream software system. This is an implementation form of the driving method that the mainstream software system needs to use in the database of test cases, test operations, test controls, test screens, etc. that are set in advance so as to guarantee the driving of the operation method of the mainstream software system. This is because it is guaranteed in advance.

以上は本発明の好ましい実施例にすぎず、本発明の実施形態及び保護の範囲を制限するものではない。当業者であれば、本発明の明細書及び図面の内容を利用して実施される等価の置き換えや自明の変更により得られる方案が、いずれも本発明による保護の範囲に含まれるものと意識し得る。
The above are only preferred examples of the present invention, and do not limit the scope of the embodiment and protection of the present invention. A person skilled in the art is aware that any method obtained by equivalent replacement or obvious change implemented using the contents of the specification and drawings of the present invention is included in the scope of protection of the present invention. obtain.

Claims (17)

テストケースの自動生成方法であって、複数のベーステストケースを予め設定し、各前記ベーステストケースは複数のベーステスト動作を含み、前記ベーステスト動作ごとに、0乃至複数の正常値を含む正常値リストと、0乃至複数のエラー値を含むエラー値リストが1つずつ対応しており、
1つの前記ベーステストケースに対し、前記正常値リストの前記正常値又は前記エラー値リストの前記エラー値に基づいて、各前記ベーステスト動作の数値をそれぞれ変更することで、複数の異なる派生テスト動作をそれぞれ形成し、複数の異なる前記派生テスト動作に基づいて、前記ベーステストケースに関連付けられた複数の異なる派生テストケースを構成し、
全ての前記ベーステストケースと全ての前記派生テストケースを共にテストケースとし、且つ、全ての前記ベーステスト動作と全ての前記派生テスト動作を共にテスト動作として、前記テストケース及び前記テスト動作に基づきシステムの自動テストを行うことを特徴とするテストケースの自動生成方法。
A test case automatic generation method, wherein a plurality of base test cases are set in advance, each base test case includes a plurality of base test operations, and each base test operation includes a normal value including 0 to a plurality of normal values. There is one value list and one error value list containing 0 to multiple error values,
For one base test case, a plurality of different derived test operations are performed by changing the numerical value of each of the base test operations based on the normal value of the normal value list or the error value of the error value list. And forming a plurality of different derived test cases associated with the base test case based on a plurality of different derived test operations,
All the base test cases and all the derived test cases are used as test cases, and all the base test operations and all the derived test operations are used as test cases, and the system is based on the test cases and the test operations. An automatic test case generation method characterized by performing an automatic test.
前記テストケースの自動生成方法では、前記ベーステストケースについて、
前記ベーステストケースにおける前記ベーステスト動作を拡張テスト動作として1つ選択するステップA1と、
前記拡張テスト動作に関連付けられた前記正常値リストから前記正常値を1つ選択するステップA2と、
選択された前記正常値が前記拡張テスト動作の値と同じか否かを判断し、同じであれば前記ステップA2に戻るステップA3と、
選択された前記正常値に基づいて前記拡張テスト動作に値を付与し、前記派生テスト動作を形成するステップA4と、
前記派生テスト動作と、前記ベーステストケースにおける前記拡張テスト動作以外の全ての前記ベーステスト動作に基づいて、これらを組み合わせて1つの前記派生テストケースを形成するステップA5と、
前記ベーステストケースに未選択の前記ベーステスト動作が存在するか否かを判断し、存在する場合には前記ステップA1に戻り、存在しない場合には退出するステップA6と、を実行することを特徴とする請求項1に記載のテストケースの自動生成方法。
In the test case automatic generation method, for the base test case,
Selecting one of the base test operations in the base test case as an extended test operation; and
Selecting one of the normal values from the normal value list associated with the extended test operation; and
Determining whether the selected normal value is the same as the value of the extended test operation, and if it is the same, step A3 returning to step A2;
Assigning a value to the extended test operation based on the selected normal value to form the derived test operation; and
Step A5 combining the derived test operation and all the base test operations other than the extended test operation in the base test case to combine them to form one derived test case;
It is determined whether or not the unselected base test operation exists in the base test case, and if it exists, the process returns to step A1, and if not, step A6 is executed. The test case automatic generation method according to claim 1.
前記テストケースの自動生成方法では、前記ベーステストケースについて、
前記ベーステストケースにおける前記ベーステスト動作を拡張テスト動作として1つ選択するステップB1と、
前記拡張テスト動作に関連付けられた前記エラー値リストから前記エラー値を1つ選択するステップB2と、
選択された前記エラー値が前記拡張テスト動作の値と同じか否かを判断し、同じであれば前記ステップB2に戻るステップB3と、
選択された前記エラー値に基づいて前記拡張テスト動作に値を付与し、1つの前記派生テスト動作を形成するステップB4と、
前記派生テスト動作と、前記ベーステストケースにおける前記拡張テスト動作以外の全ての前記ベーステスト動作に基づき、これらを組み合わせて1つの前記派生テストケースを形成するステップB5と、
前記ベーステストケースに未選択の前記ベーステスト動作が存在するか否かを判断し、存在する場合には前記ステップB1に戻り、存在しない場合には退出するステップB6と、を実行することを特徴とする請求項1に記載のテストケースの自動生成方法。
In the test case automatic generation method, for the base test case,
Step B1 of selecting one of the base test operations in the base test case as an extended test operation;
Selecting one of the error values from the error value list associated with the extended test operation; and
Determining whether or not the selected error value is the same as the value of the extended test operation, and if so, step B3 returning to step B2;
Assigning a value to the extended test operation based on the selected error value to form one of the derived test operations;
Step B5 combining the derived test operation and all the base test operations other than the extended test operation in the base test case to combine them to form one derived test case;
It is determined whether or not there is an unselected base test operation in the base test case, and if it exists, the process returns to step B1, and if not, step B6 is executed. The test case automatic generation method according to claim 1.
前記ベーステストケースにおける前記ベーステスト動作ごとに、対応する前記エラー値リストの前記エラー値を1つずつ用いて前記ベーステスト動作に値を付与することで、対応する前記派生テスト動作を1つずつ生成するとともに、全ての前記派生テスト動作を組み合わせて1つの前記派生テストケースを形成することを特徴とする請求項1に記載のテストケースの自動生成方法。   For each of the base test operations in the base test case, by assigning a value to the base test operation using the error values of the corresponding error value list one by one, the corresponding derived test operation is performed one by one The test case automatic generation method according to claim 1, wherein all the derived test operations are combined to form one derived test case. 前記テストケースの自動生成方法では、前記ベーステストケースについて、
前記ベーステストケースにおける前記ベーステスト動作を拡張テスト動作として1つ選択するステップC1と、
前記拡張テスト動作に空の値を付与することで、1つの前記派生テスト動作を形成するステップC2と、
前記派生テスト動作と、前記ベーステストケースにおける前記拡張テスト動作以外の全ての前記ベーステスト動作に基づいて、これらを組み合わせて1つの前記派生テストケースを形成するステップC3と、
前記ベーステストケースに未選択の前記ベーステスト動作が存在するか否かを判断し、存在する場合には前記ステップC1に戻り、存在しない場合には退出するステップC4と、を実行することを特徴とする請求項1に記載のテストケースの自動生成方法。
In the test case automatic generation method, for the base test case,
Selecting one of the base test operations in the base test case as an extended test operation; and
Forming one of the derived test operations by assigning an empty value to the extended test operation; and
Based on all of the base test operations other than the extended test operation in the base test case and the derived test operation, and combining them to form one derived test case; and
It is determined whether or not the unselected base test operation exists in the base test case, and if it exists, the process returns to step C1, and if not, step C4 is executed. The test case automatic generation method according to claim 1.
前記ベーステストケースにおける前記ベーステスト動作ごとに、前記ベーステスト動作に空の値を付与することで対応する前記派生テスト動作を1つずつ生成するとともに、全ての前記派生テスト動作を組み合わせて1つの前記派生テストケースを形成することを特徴とする請求項1に記載のテストケースの自動生成方法。   For each base test operation in the base test case, the corresponding test test operation is generated one by one by assigning an empty value to the base test operation, and all the derived test operations are combined into one The test case automatic generation method according to claim 1, wherein the derived test case is formed. 複数の前記テストケースを順に配列し、各前記テストケースは順に実行される複数の前記テスト動作に対応しており、前記テスト動作ごとにテストコントロールが1つずつ対応しており、前記テスト動作ごとに操作方法が1つずつ対応しており、前記テストコントロールごとにテスト画面が1つずつ対応しており、前記テスト動作ごとに複数の予測結果が対応しており、
今回実行したい全ての前記テストケースに対応する全ての前記テスト動作を前記テストケースの実行順に配列することでテスト動作リストを形成し、
前記テストケースと前記テスト動作に基づいてシステムの自動テストを実行する方法は、
前記動作リストから現在の動作として前記テスト動作を1つ選択し、前記現在の動作に対応する前記テストケースを現在のケースとしてテストを行うステップS1と、
テスト過程におけるシステムブラウザの表示画面の番号と、前記現在の動作に対応する前記テスト画面の番号を比較して前記表示画面を特定するステップS2と、
特定された前記表示画面から、前記現在の動作とマッチングする前記テストコントロールを現在のコントロールとして取得するステップS3と、
前記現在の動作の動作属性に基づいて、取得した前記現在のコントロールに対応する前記操作方法にしたがって操作した後に、前記現在の動作に対応する操作結果を出力するステップS4と、
前記操作結果を前記現在の動作に対応する前記予測結果と比較して、前記現在の動作の実行に成功したか否かを判断し、対応する比較結果を前記現在の動作のテスト結果として保存するステップS5と、を含むことを特徴とする請求項1に記載のテストケースの自動生成方法。
A plurality of the test cases are arranged in order, each of the test cases corresponds to a plurality of the test operations to be executed in order, one test control corresponds to each test operation, and each test operation One operation method corresponds to each, one test screen corresponds to each test control, a plurality of prediction results correspond to each test operation,
A test operation list is formed by arranging all the test operations corresponding to all the test cases to be executed this time in the execution order of the test cases,
A method for performing an automatic test of a system based on the test case and the test operation is as follows:
Selecting one test operation as the current operation from the operation list, and performing a test with the test case corresponding to the current operation as the current case;
A step of identifying the display screen by comparing the number of the display screen of the system browser in the test process with the number of the test screen corresponding to the current operation;
Obtaining from the identified display screen the test control matching the current action as a current control; S3;
Step S4 of outputting an operation result corresponding to the current operation after operating according to the operation method corresponding to the acquired current control based on the operation attribute of the current operation;
The operation result is compared with the prediction result corresponding to the current operation to determine whether the current operation has been successfully executed, and the corresponding comparison result is stored as the test result of the current operation. The test case automatic generation method according to claim 1, further comprising step S <b> 5.
前記ステップS1において、前記現在のケースに関連付けられた1つ目の前記テスト動作を実行する際に、前記現在のケースの1つ目の前記テストコントロールに対応する前記テスト画面をスタート画面として抽出し、前記スタート画面に関連付けられたアドレスで前記スタート画面を開くことで、前記現在のケースのテストを開始することを特徴とする請求項7に記載のテストケースの自動生成方法。   In the step S1, when the first test operation associated with the current case is executed, the test screen corresponding to the first test control of the current case is extracted as a start screen. 8. The test case automatic generation method according to claim 7, wherein the test of the current case is started by opening the start screen at an address associated with the start screen. 前記ステップS1において、前記現在のケースに関連付けられた各前記テスト動作を実行する前に、前記テスト動作の動作属性に基づいて、前記テスト動作に対応する前記テストコントロールの前記テスト画面を開く必要があるか否かを判断するとともに、必要に応じて前記テスト画面に関連付けられたアドレスを抽出し、前記テスト画面を開くことを特徴とする請求項7に記載のテストケースの自動生成方法。   In step S1, before executing each test operation associated with the current case, it is necessary to open the test screen of the test control corresponding to the test operation based on the operation attribute of the test operation. 8. The method for automatically generating a test case according to claim 7, further comprising: determining whether or not there is an address, extracting an address associated with the test screen as necessary, and opening the test screen. 前記ステップS1では、前記テストケースを前記現在のケースとみなした後に前記現在のケースの初期化データを抽出し、前記現在のケースのテストを開始するために、前記現在のケースに関連付けられたデータベースのデータについて初期化操作を行い、
前記現在のケースの1つ目の前記テストコントロールに対応する前記テスト画面のアドレスを前記スタート画面の開始アドレスとして抽出するとともに、前記開始アドレスに基づき、前記現在のケースに関連付けられた起動パラメータを使用して前記スタート画面を開き、前記スタート画面のテストを実行することを特徴とする請求項7に記載のテストケースの自動生成方法。
In step S1, the database associated with the current case is used to extract initialization data of the current case after considering the test case as the current case and to start testing the current case. Initialize the data of
The address of the test screen corresponding to the first test control of the current case is extracted as the start address of the start screen, and the start parameter associated with the current case is used based on the start address 8. The test case automatic generation method according to claim 7, wherein the start screen is opened and the test of the start screen is executed.
前記ステップS2は具体的に、前記現在の動作の後続の前記テスト動作に対応する前記テスト画面の番号を取得するとともに、前記表示画面の番号をモニタリングして、前記表示画面の番号が前記テスト画面の番号と一致している場合には前記表示画面の切り替えに成功したとみなし、前記表示画面を特定することを特徴とする請求項7に記載のテストケースの自動生成方法。   Specifically, the step S2 acquires the number of the test screen corresponding to the test operation subsequent to the current operation, and monitors the number of the display screen, so that the number of the display screen is the test screen. 8. The test case automatic generation method according to claim 7, wherein the display screen is specified by determining that the display screen has been successfully switched when the number matches the number of the display screen. 前記ステップS2は具体的に、前記現在の動作の後続の前記テスト画面に対応する番号を取得するとともに、前記表示画面の番号をモニタリングして、前記表示画面の番号が前記テスト画面の番号と一致している場合には前記表示画面の切り替えに成功したとみなし、前記表示画面を特定することを特徴とする請求項7に記載のテストケースの自動生成方法。   Specifically, the step S2 obtains a number corresponding to the test screen subsequent to the current operation and monitors the number of the display screen so that the number of the display screen matches the number of the test screen. The test case automatic generation method according to claim 7, wherein if it is, the display screen is identified as being successful in switching the display screen. 前記ステップS3では、前記表示画面中の前記テストコントロールを1つ取得した後、前記テストコントロールのコントロール属性と前記現在の動作に対応する前記テストコントロールのコントロール属性をマッチングすることでマッチング結果を得て、前記マッチング結果がマッチングの成功を示している場合には、取得した前記テストコントロールを前記現在のコントロールとして特定することを特徴とする請求項7に記載のテストケースの自動生成方法。   In step S3, after obtaining one test control in the display screen, a matching result is obtained by matching the control attribute of the test control with the control attribute of the test control corresponding to the current operation. The test case automatic generation method according to claim 7, wherein when the matching result indicates successful matching, the acquired test control is specified as the current control. 前記ステップS4では、前記コントロールを操作する前にまず前記現在の動作の前記動作属性を判断するとともに、前記動作属性に基づいて前記現在のコントロールに対する操作を決定し、
前記現在の動作の前記動作属性が値の設定である場合には、前記現在のコントロールに対して行う操作は前記コントロールに対する値の付与となり、
前記現在の動作の前記動作属性が操作命令の実行である場合には、前記現在のコントロールに対して行う操作は前記コントロールを操作するための前記操作命令の実行となり、
前記現在の動作の前記動作属性が文字列メッセージの送信である場合には、前記現在のコントロールを操作して対応する前記文字列メッセージを送信し、
前記現在の動作の前記動作属性がメモリコピーである場合には、前記現在のコントロールの値をシステムメモリに保存し、
前記現在の動作の前記動作属性がメモリの値付与である場合には、前記現在のコントロールの値を前記システムメモリに保存する値に変更し、
前記現在の動作の前記動作属性が論理判断の場合、前記システムメモリに保存されている付与値を示すための式について判断し、判断結果に基づいて、前記現在の動作に関連付けられている予め設定された後続の前記テスト動作をスキップし、
前記現在の動作の前記動作属性がファンクションキーの組み合わせによる操作の実行である場合、システムの入力装置に対して対応するファンクションキーの組み合わせ命令を送信することで前記現在のコントロールを操作することを特徴とする請求項7に記載のテストケースの自動生成方法。
In the step S4, before operating the control, the operation attribute of the current operation is first determined, and an operation for the current control is determined based on the operation attribute.
When the operation attribute of the current operation is a value setting, an operation performed on the current control is to give a value to the control,
When the operation attribute of the current operation is execution of an operation command, an operation performed on the current control is execution of the operation command for operating the control,
If the action attribute of the current action is sending a string message, operate the current control to send the corresponding string message;
If the operation attribute of the current operation is a memory copy, store the value of the current control in system memory;
If the operation attribute of the current operation is a memory value assignment, change the value of the current control to a value stored in the system memory;
When the operation attribute of the current operation is a logical determination, a determination is made as to an expression for indicating a given value stored in the system memory, and a preset value associated with the current operation is determined based on the determination result Skip the subsequent test operation,
When the operation attribute of the current operation is execution of an operation by a combination of function keys, the current control is operated by transmitting a corresponding function key combination command to an input device of the system. The test case automatic generation method according to claim 7.
前記ステップS5では、前記操作結果の種別に応じて前記操作結果と前記予測結果を比較し、
前記操作結果が前記表示画面に含まれる前記コントロールを操作した結果である場合、システムは前記ブラウザ内の前記表示画面に対応する前記コントロールの情報を読み取るとともに、読み取った情報を前記予測結果と比較し、
前記操作結果が前記ブラウザの欄内データに対応する結果である場合、システムは前記ブラウザにおける対応する前記欄内データを読み取り、読み取った情報を前記予測結果と比較し、
前記操作結果がシステムのデータベース内のデータである場合、システムは前記データベース内のデータを読み取って、読み取った情報を前記予測結果と比較することを特徴とする請求項7に記載のテストケースの自動生成方法。
In the step S5, the operation result and the prediction result are compared according to the type of the operation result,
When the operation result is a result of operating the control included in the display screen, the system reads information on the control corresponding to the display screen in the browser and compares the read information with the prediction result. ,
When the operation result is a result corresponding to the browser column data, the system reads the corresponding column data in the browser, compares the read information with the prediction result,
8. The test case automatic according to claim 7, wherein when the operation result is data in a database of the system, the system reads the data in the database and compares the read information with the prediction result. Generation method.
前記ステップS5では、前記現在の動作の実行に成功したか否かを判断し、成功した場合には、前記現在の動作に関連付けられた前記操作結果を保存した後、前記ステップS5の実行を継続し、成功しなかった場合には前記現在のケースのテストを終了し、次の前記テストケースに進行して前記ステップS1に戻ることを特徴とする請求項7に記載のテストケースの自動生成方法。   In step S5, it is determined whether or not the execution of the current operation has been successful. If successful, the operation result associated with the current operation is saved, and then the execution of step S5 is continued. 8. If not successful, the test of the current case is terminated, the process proceeds to the next test case, and the process returns to step S1. . 前記ステップS5では、対応する比較結果を前記現在の動作のテスト結果として保存した後、次の前記テスト動作に進行し、進行した次の前記テスト動作が全体のコントロールに対する操作を示している場合には、前記ステップS4に戻ることを特徴とする請求項7に記載のテストケースの自動生成方法。   In the step S5, after the corresponding comparison result is stored as the test result of the current operation, the process proceeds to the next test operation, and the next test operation that has progressed indicates an operation for the entire control. 8. The method of claim 7, wherein the method returns to step S4.
JP2019531516A 2016-08-26 2017-08-23 How to generate test cases Pending JP2019525373A (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201610739639.0 2016-08-26
CN201610739639.0A CN106326125B (en) 2016-08-26 2016-08-26 A kind of method for generating test case
PCT/CN2017/098689 WO2018036531A1 (en) 2016-08-26 2017-08-23 Test case generation method

Publications (1)

Publication Number Publication Date
JP2019525373A true JP2019525373A (en) 2019-09-05

Family

ID=57791838

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019531516A Pending JP2019525373A (en) 2016-08-26 2017-08-23 How to generate test cases

Country Status (3)

Country Link
JP (1) JP2019525373A (en)
CN (1) CN106326125B (en)
WO (1) WO2018036531A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326125B (en) * 2016-08-26 2019-04-05 上海合福信息科技有限公司 A kind of method for generating test case
US10452839B1 (en) * 2016-12-09 2019-10-22 Symantec Corporation Cascade classifier ordering
CN110245065A (en) * 2018-03-09 2019-09-17 北京京东尚科信息技术有限公司 The method and apparatus of automatic test
CN109726113A (en) * 2018-08-17 2019-05-07 平安普惠企业管理有限公司 Method for generating test case, unit and computer readable storage medium
CN110633217A (en) * 2019-09-19 2019-12-31 中国银行股份有限公司 Interface checking method and device
CN110955593B (en) * 2019-10-28 2023-07-14 北京三快在线科技有限公司 Client testing method and device, electronic equipment and readable storage medium
CN110928790B (en) * 2019-11-27 2024-02-02 中国银行股份有限公司 Test case construction method and device and test equipment
CN111309619A (en) * 2020-02-24 2020-06-19 苏宁云计算有限公司 Method and device for automatically generating test case

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007323573A (en) * 2006-06-05 2007-12-13 Internatl Business Mach Corp <Ibm> Functional test script generator
JP2008242738A (en) * 2007-03-27 2008-10-09 Fujitsu Ltd Program, apparatus and method for creating test specification
US20090319832A1 (en) * 2008-06-23 2009-12-24 International Business Machines Corporation Method and apparatus of effective functional test data generation for web service testing
JP2012038162A (en) * 2010-08-09 2012-02-23 Ricoh Co Ltd Automatic test tool program and automatic test method
JP2015022356A (en) * 2013-07-16 2015-02-02 日本電信電話株式会社 Test scenario variation creation device, method, and program
JP2016048470A (en) * 2014-08-27 2016-04-07 日本電気株式会社 Application test support apparatus, data processing method thereof, and program

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6928393B2 (en) * 2003-06-18 2005-08-09 Microsoft Corporation Method and system for supporting negative testing in combinatorial test case generators
CN101025686A (en) * 2007-03-22 2007-08-29 中兴通讯股份有限公司 Automation test system and test script generating and operating method
CN103164330A (en) * 2011-12-14 2013-06-19 航天信息股份有限公司 Automatic generation method for software test case
US9111040B2 (en) * 2013-01-15 2015-08-18 International Business Machines Corporation Integration of a software content space with test planning and test case generation
JP6032095B2 (en) * 2013-03-27 2016-11-24 富士通株式会社 Test case generation method, test case generation apparatus, and test case generation program
US9311223B2 (en) * 2013-05-21 2016-04-12 International Business Machines Corporation Prioritizing test cases using multiple variables
CN103838675B (en) * 2014-03-21 2016-03-23 上海富欣智能交通控制有限公司 The method of the automatic generating test use case of computer interlock system
CN105159827B (en) * 2015-08-21 2017-09-19 北京航空航天大学 A kind of reliability accelerated test method towards gui software
CN105373476B (en) * 2015-11-17 2018-01-19 北京新能源汽车股份有限公司 The generation method and system of automatic test case in automobile controller
CN106326125B (en) * 2016-08-26 2019-04-05 上海合福信息科技有限公司 A kind of method for generating test case

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007323573A (en) * 2006-06-05 2007-12-13 Internatl Business Mach Corp <Ibm> Functional test script generator
JP2008242738A (en) * 2007-03-27 2008-10-09 Fujitsu Ltd Program, apparatus and method for creating test specification
US20090319832A1 (en) * 2008-06-23 2009-12-24 International Business Machines Corporation Method and apparatus of effective functional test data generation for web service testing
JP2012038162A (en) * 2010-08-09 2012-02-23 Ricoh Co Ltd Automatic test tool program and automatic test method
JP2015022356A (en) * 2013-07-16 2015-02-02 日本電信電話株式会社 Test scenario variation creation device, method, and program
JP2016048470A (en) * 2014-08-27 2016-04-07 日本電気株式会社 Application test support apparatus, data processing method thereof, and program

Also Published As

Publication number Publication date
CN106326125B (en) 2019-04-05
WO2018036531A1 (en) 2018-03-01
CN106326125A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
JP2019525373A (en) How to generate test cases
CN108304201B (en) Object updating method, device and equipment
WO2018036529A1 (en) Method for generating visual test report
WO2014188502A1 (en) Management system, management program, and management method
US11176169B2 (en) Recommending visual and execution templates to enable automation of control and data exploration across systems
US10203850B2 (en) Data editing apparatus, data editing method, and data editing program
WO2020008991A1 (en) Verification automation device, verification automation method, and computer-readable recording medium
JP6441786B2 (en) Test support apparatus, test support method, and program
JP5968451B2 (en) Computer system and program
US20130263143A1 (en) Information processing method and system
US11656601B2 (en) Method and electronic generation device for generating at least one configuration file for an automation tool, related computer program
WO2018036528A1 (en) Automatic testing method
JP6434435B2 (en) Information processing apparatus, operation support method, and operation support program
JP2019525372A (en) How to generate a test design document
JP2011039786A (en) Software test support device, software test support method and program
JP4941674B2 (en) Simulation system
WO2022180704A1 (en) Display control device, display control method, and display control program
JP2015184824A (en) Information processing program, information processing method and information processor
JP2013149094A (en) Extraction system, extraction method and program
US8775873B2 (en) Data processing apparatus that performs test validation and computer-readable storage medium
JP2006227820A (en) Program test system and program test method
WO2020230241A1 (en) Testing device, testing method, and program
US11921496B2 (en) Information processing apparatus, information processing method and computer readable medium
JP2015148925A (en) Program generation device and method
JP2011123780A (en) Test management device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190426

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200625

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200803

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20210309