This project is read-only.
1
Vote

XamlObjectWriterException when a saved testcase xaml file is loaded and executed

description

Hi,
I have a working Testcase written in C#. The TestCase starts with cleaning up a couple of directories, using a DeleteStep, which works fine in C# code.
When I save the TestCase to an xaml file, load it again and run the test i get an
XamlObjectWriterException: Collection property BizUnit.TestSteps.File.DeleteStep.'FilePathsToDelete' is null
        . < code creating the testcase>
        .
        totalItemsTest.ExecutionSteps.Add(validatingPickListFileReadStep);
        TestCase.SaveToFile(totalItemsTest, "mySavedTestCase.xml");
        var bizUnit = new BizUnit.BizUnit(TestCase.LoadFromFile("mySavedTestCase.xml"));
        bizUnit.RunTest();
Any clue why this happens?
/regards
            Åke

comments