Uploaded image for project: 'Unitils'
  1. UNI-219

Record for same table in two files, table is emptied between first and second file

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: dataset
    • Labels:
      None

      Description

      file1.xml

      <dataset>
             <mytable name="John Doe"/>
      </dataset>

      file2.xml

      <dataset>
             <mytable name="Jane Doe"/>
      </dataset>

      result.xml

      <dataset>
             <mytable name="John Doe"/>
             <mytable name="Jane Doe"/>
      </dataset>

      This two tests fail in the assert stage since only the Jane Doe record will be present in the table:

      public class MyTests {
         @Test
         @MultiDataSet({
             @DataSet(database="my_db", value="file1.xml"),
             @DataSet(database="my_db", value="file2.xml")
         })
         @AssertDataSet(database="my_db", value="result.xml")
         public void myTest1() {

         }

         @Test
         @MultiDataSet({
             @DataSet(database="my_db", value={"file1.xml","file2.xml"}),
         })
         @AssertDataSet(database="my_db", value="result.xml")
         public void myTest2() {

         }
      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              devijvers Steven Devijver
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: