Concordion-run-command
提供:Dev Guides
一致-コマンドの実行
Concordion runコマンドを使用して、複数の仕様をリンクし、それらを1つの中央ページに表示できます。 このコマンドは、必要に応じてリンクの背景を緑/赤/灰色で表示しながら、すべての仕様を実行できます。
次に、2つの仕様を作成し、それらをリンクします。 link:/concordion/concordion_execute_list [Concordion-Execute on List]およびlink:/concordion_execute_table [Concordion-Execute on Table]の章で作成された仕様を、システム仕様および電卓仕様として再利用します。
例
動作するEclipse IDEを用意し、以下の手順に従ってConcordionアプリケーションを作成します-
Step | Description |
---|---|
1 | Create a project with a name concordion and create a package com.finddevguides under the src folder in the created project. |
2 | Add the required Concordion libraries using Add External JARs option as explained in the Concordion - First Application chapter. |
3 | Create Java class System under the com.finddevguides package. |
4 | Create Fixture classes SystemFixture, CalculatorFixture under the specs.finddevguides package. |
5 | Create Specification html files Systeml, Calculatorl under the specs.finddevguides package. |
6 | The final step is to create the content of all the Java files and specification file and run the application as explained below. |
System.javaファイルの内容は次のとおりです-
SystemFixture.javaファイルの内容は次のとおりです-
以下はCalculatorFixture.javaファイルの内容です-
以下はSystemlファイルの内容です-
以下はCalculatorlファイルの内容です-
ソースファイルと仕様ファイルの作成が完了したら、アプリケーションをJUnitテストとして実行します。 すべてがあなたのアプリケーションでうまくいけば、それは次の結果を生成します-
システムは、Concordionテスト実行の出力です。
[Calculator Service Specifications]リンクをクリックします。 次の出力が表示されます-