pmMDA.NET test guide


pmMDA.NET is tested with NUnit, a testing framework for .NET.



For this test the UML model pmMDA.NET.Test.zargo is used. The model can be viewed with Argo UML.

Test steps

  1. Create a test database.
  2. Execute the create tables script generated by pmMDA.NET.
  3. Execute the scripts for the data integrity.
  4. Test the properties.
    1. Create a few data objects which are defined in the namespace PmMda.Net.Tests.Properties of the UML model.
    2. Fills the properties of the data objects with values.
    3. Store the data objects to the database using PersistenceHandler.
    4. Load the data objects to other data object instances than the saved data objects.
    5. Compare the id and the property values of the loaded and saved data objects.
  5. Test the indexed properties.
    This test works the same way as the test for the properties. All three collection types (Bag, Map, List) are tested.
  6. Test Inheritance.
    This test works the same way as the test for the properties. The UML model defines the same class hierachy for each inheritance strategy, so every inheritance strategy is tested.
  7. Test lightweight.
    This test works the same way as the test for the properties. The data objects get loaded in their lightweight representation. Some lightweight properties and indexed properties are used to compare the data of the data objects (saved) and the lightweight objects (loaded).

How to test

  1. Open the pmMDA.NET source code with visual studio 2003 (source\pmMDA.NET\pmMDA.NET.sln).
  2. Rebuild the whole solution.
  3. Download and start NUnit.
  4. Open the assembly source\pmMDA.NET\pmMDA.NET.Tests\bin\debugPmMDA.NET.Tests.exe in NUnit.
  5. Start the tests (Hit the run button in NUnit).
  6. Enter the connection data which is used to connect to a MySQL database. The user needs rights to create and modify databases and tables.
    Connection data
  7. Green bullets mean the test has been successfull. Red bullets indicate errors.
    Successfull NUnit test