Seddryck / NBi

NBi is a testing framework (add-on to NUnit) for Business Intelligence and Data Access. The main goal of this framework is to let users create tests with a declarative approach based on an Xml syntax. By the means of NBi, you don't need to develop C# or Java code to specify your tests! Either, you don't need Visual Studio or Eclipse to compile your test suite. Just create an Xml file and let the framework interpret it and play your tests. The framework is designed as an add-on of NUnit but with the possibility to port it easily to other testing frameworks.
http://www.nbi.io
Apache License 2.0
107 stars 37 forks source link

Add support for loop-condition to define a sequence #625

Open Seddryck opened 3 years ago

Seddryck commented 3 years ago

It should be possible to define a seed, a step and a condition while/until the loop is executed.

<loop-condition seed="100" step="20" style="post">
  <until>
    <modulo second-operand="7">0</modulo>
  </until>
</loop>

while means that the loop will stop when the condition will be not be validated anymore. at the opposite until will stop the execution of the loop when the condition will be validated. In a post condition, the loop is executed then the condition is evaluated. In a pre condition the condition is first evaluated and then the next element of the sequence is evaluated.

This loop should return a sequence of 3 elements: {100, 120, 140}