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

Iterative result-set based on a result-set #628

Open Seddryck opened 3 years ago

Seddryck commented 3 years ago

At the moment it's possible to define an iteration for an iterative result-set on base of a single sequence. But applying the same principle it should be possible to define a result-set in place of the sequence and execute the current row of the iteration to define parameters to the nested result-set.

<result-set>
  <iteration>
    <result-set>
      <query> select 'be' as Country, '2016' as Year union select 'be', '2017' union select 'fr', '2017'
    </result-set>
  </iteration>
  <result-set>
    <file>
      <path>~Data_{[Country]}_{[Year]}.csv</path>
    </file>
  </result-set>
</result-set>