Search This Blog

Wednesday, May 28, 2014

Specification Based Tests-Concordion

Concordion is Specification based tool having following benefits : -

  • Specifications are specified in plane HTML language by business analysts
  • Developers takes the HTML file and instrument(Adding few specific attributes) to it
  • Specific Java fixture class prepared to process the instrumented HTML file
  • Outputs produced as a result of test run having the pass fail result whose design driven by CSS sheet
 (1)Adding Specifications : -



(2) Instrumenting the HTML file : -









 (3) Defining Fixture Class to Drive the Specification : -



HelloWorldTest.java file is called because the 'getGreeting()' has been defined within this file and it returns the Same Verbiage i.e 'Hello World!'.

HTML output -PASS Condition








 HTML output -FAIL Condition

Failure observed when there is a mismatch in wording returned from java fixture class and wording speified in HTML file.So if we change the HTML wording to say 'Hello World' .



Now lets see the Failed output HTML report : -



As noticed its failure reporting is user friendly and design driven by CSS sheet.
I hope you enjoyed the post :)

No comments:

Post a Comment