Concordion assertTrue command is used when the fixture needs to know the expected result in order to perform a test.
Consider the following requirement −
If we want a test to be executed on the User Name and check whether the user name starts with R or not.
When Concordion parses the document, it will set a temporary variable #userName to be the value "Robert De". Then it will check if the userName starts with the letter specified by #letter variable set in next command.
Let us have a working Eclipse IDE in place and follow the steps given below to create a Concordion application −
|1||Create a project with a nameconcordionand create a packagecom.wisdomjobsunder thesrcfolder in the created project.|
|2||Add the required Concordion libraries usingAdd External JARsoption as explained in theConcordion - First Applicationchapter.|
|3||Create Java classSystemunder thecom.wisdomjobspackage.|
|4||Create Fixture classSystemFixtureunder thespecs.wisdomjobspackage.|
|5||Create Specification htmlSystem.htmlunder thespecs.wisdomjobspackage.|
|6||The final step is to create the content of all the Java files and specification file and run the application as explained below.|
Here is the content of the System.java file −
Following is the content of the System.html file −
Once you are done with creating source and specification files, let us run the application as JUnit Test. If everything is fine with your application, then it will produce the following result −
System.html is the output of Concordion test run.
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 © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.