Setting the Tag Expression Programmatically

,

To set the tag expression without using the UTF tag expressions editor, use the TagExpression property of the UnitTestSettings class, as shown in the following example:

public MainPage()
{
    InitializeComponent();

    UnitTestSettings settings = UnitTestSystem.CreateDefaultSettings();
    settings.TagExpression = "ChatClientUITests";

    Content = UnitTestSystem.CreateTestPage(settings);
}


Note

Unfortunately, the test harness does not allow you to programmatically change the Tag in the current version of the Windows Phone Toolkit UTF. Nonetheless, it is shown here in anticipation of a future release of the UTF.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.3.136