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

New alteration "duplicate" #617

Closed Seddryck closed 3 years ago

Seddryck commented 3 years ago

Creates one or more duplicates of the incoming rows. You should be able to specify a condition if the row should be duplicated or not. You should also be able to specify how many times a row should be duplicated (should accept variable or column name or a script). You should be able to add additional columns including an index of the duplication (0 being the original, 1 the first copy ...) or the number of duplications requested.

<alteration>
   <duplicate>
      <predicate operand="[Aggregation]">
            <equal>Year</equal>
      </predicate>
      <times>11</times>
      <output>
          <column name="MonthIndex" value="index">
      </output>
   </duplicate>
</alteration>
Seddryck commented 3 years ago

Implemented and documented in 1.23.0-beta.68 or on nuget via Update-Package NBi.Framework -version 1.23.0-beta0068.