XAML Compliance Suite V1


Generally, when theres an open spec format, theres usually a set of tests that ensure that the spec is being followed right. As as example, the Acid tests help in deterning the support of web standards in different web browsers. So when it came to XAML, we (Xaml team) decided that we should have a basic set of tests that can be used to determine whether the parser implementation is compliant with the XAML spec. You can find the latest XAML spec at (LINK)

So here we have it, V1 of the XAML Compliance suite of tests. The suite consists of two parts: a custom type library and a collection of xaml files that use those types.  The types are self verifiable – so using the library would need users to have a simple function that exercises their parser with the xaml files. A simple loader for the System.Xaml parser is included in the project as a sample. Since the types are CLR based they can easily be used with other parsers without needing a dependency on WPF.

The sample loader has the following usage:

Usage: SystemXamlLoader.exe XamlFileRepositoryPath TypesDll LogOnlyFailures
        XamlFileRepositoryPath: Path to directory of test xaml files
        TypesDll: Dll containing custom types to load.
        LogOnlyFailures: True|False. Defaults to True

E.g: SystemXamlLoader.exe Xaml Xaml.Test.dll false

The zipped up suite is attached

Share this post

 

XamlComplianceSuite.zip

Comments (14)

  1. Thank you for submitting this cool story – Trackback from DotNetShoutout

  2. You've been kicked (a good thing) – Trackback from DotNetKicks.com

  3. John J says:

    Thanks for getting this out. Long due.

  4. Lester and his team (the XAML test team) just released v1 of the XAML compliance suite – a set of basic

  5. John "Z-Bo" Zabroski says:

    There should also be an extended test suite, in my humble opinion.

    For example, the XAML spec "recommends" various best practices and provides "warnings" for potentially unsafe usages for XAML, but a XAML parser does not directly ship with Debug-mode-only methods that allow you to verify the content of a XAML file.

  6. llester says:

    zabroski, the suite will be extended over time. Currently, the suite targets the MUST rules of the format

  7. This is Windows Client Developer roundup #32. The Windows Client Developer Roundup aggregates information

  8. This is Windows Client Developer roundup #32. The Windows Client Developer Roundup aggregates information

  9. This is Windows Client Developer roundup #32. The Windows Client Developer Roundup aggregates information

  10. Jackson Harper says:

    Beautiful.  What license is this released under?  I've started a sivlerlight test harness for the tests.

    Cheers,

    Jackson

  11. llester says:

    Jackson, You are welcome to use these tests for testing your product. btw, terms of use are at the botton of the page.

  12. Roy says:

    Thanks 4 sharing

  13. progg.ru says:

    Thank you for submitting this cool story – Trackback from progg.ru

  14. While answering a question in StackOverflow I decide to note down all the resources available for testing