1.

What Is Concordion Execute Command?

Answer»

Concordion execute command is used run the operation of concordion fixture. Consider the following requirement −

The sum of TWO numbers 2 and 3 will be 5.

If we WANT to write a specification for a sum function which will accept two numbers and OUTPUT their sum, then the specification will be as follows −

<p>The Sum of two numbers <SPAN concordion:set = "#firstNumber">2</span> and 
<span concordion:set = "#secondNumber">3</span> will be
<span concordion:execute = "#result = sum(#firstNumber, #secondNumber)">
</span><span concordion:assertEquals = "#result">5</span>.</p>

Concordion execute command is used run the operation of concordion fixture. Consider the following requirement −

The sum of two numbers 2 and 3 will be 5.

If we want to write a specification for a sum function which will accept two numbers and output their sum, then the specification will be as follows −

<p>The Sum of two numbers <span concordion:set = "#firstNumber">2</span> and 
<span concordion:set = "#secondNumber">3</span> will be
<span concordion:execute = "#result = sum(#firstNumber, #secondNumber)">
</span><span concordion:assertEquals = "#result">5</span>.</p>



Discussion

No Comment Found