Let us begin programming with Concordion. earlier than you start writing your first instance using Concordion, you need to make certain that you have set up your Concordion environment properly as explained in Concordia - environment Setup tutorial. We also assume that you have a little bit working knowledge of Eclipse IDE.
So allow us to continue to put in writing a simple Concordion application so one can print the following acceptance test –
The first step is to create a simple Java project using Eclipse IDE. Follow the option File → new → Project and finally select Java Project wizard from the wizard list. Now name your project as Concordion using the wizard window as follows –
Once your project is created successfully, you will have the following content in your Project Explorer –
Let us add concordion and its dependencies in our project. To do this, right-click on your project name concordion and then follow the options available in the context menu: Build Path → Configure Build Path to display the Java Build Path window as follows –
Now use Add External JARs button available under Libraries tab to add the following core JAR from the Concordion folder.
Now let us create actual source files under the concordion project. First, we need to create a package called com.wisdomjobs. To do this, right-click on src in the package explorer section and follow the option: New → Package.
Next, we will create System .java file under the com.wisdomjobs package.
Here is the content of System.java file −
Now let us create actual specification files under the concordion project. First, we need to create a new source folder named specs. This folder will contain specification files like JUnitFixture or test runner and html files which are specifications. Now we need to create a package called specs.wisdomjobs. To do this, right-click on spec in the package explorer section and follow the option: New → Package.
Next, we will create System.html and SystemFixture.java files under the specs.wisdomjobs package. Thereafter, we will add concordion.css under specs source folder.
Here is the content of the System.html file −
Here is the content of the SystemFixture.java file −
Here is the content of the concordion.css file −
There are two important points to note about the specification html file and the Test Fixture −
Right-click on the content area of SystemFixture and select Run as > JUnit Test Case. You will see the following output with junit success.
System.html is the output of Concordion test run.
Congratulations, you have created your first Concordion Acceptance test successfully. Further, let us start doing something more interesting in the next few chapters.
Concordion Related Interview Questions
|Marketing Strategy Interview Questions||J2EE Interview Questions|
|Core Java Interview Questions||Android Interview Questions|
|Java Swing Interview Questions||Java Interview Questions|
|JavaMail API Interview Questions||Java collections framework Interview Questions|
|Java 8 Interview Questions||Java Collections Interview Questions|
|Java Exception Handling Interview Questions||Java Concurrency Interview Questions|
|Java String Interview Questions||Java Hadoop Developer Interview Questions|
|Java Serialization Interview Questions||Java Programmer Interview Questions|
|Java Inheritance Interview Questions||Java IO Interview Questions|
|Hadoop Testing Interview Questions|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.