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
106 stars 37 forks source link

Assert a predicate for a specific row based on its index #645

Open Seddryck opened 3 years ago

Seddryck commented 3 years ago

It should be possible to assert that a row with a specific index is validating or not a predicate.

<first-row>
  <predicate operand="#0" type="text">
    <equal>Total</equal>
  </predicate>
</first-row>

It should also be possible to check the last row with <last-row> or any other row's index <n-row index="1"> (corresponding to the second row) or even to the row's index starting by the end of the table with <n-row index="1" reverse="true">

If the row doesn't exist (result-set shorter than expected) the predicate is never validated.