Click here to Skip to main content
15,885,546 members
Articles / Desktop Programming / XAML

Automate your UI using Microsoft Automation Framework

Rate me:
Please Sign up or sign in to vote.
4.93/5 (34 votes)
1 Jan 2011CPOL11 min read 264.6K   9.4K   98  
Learn how to leverage UI automation in testing your UI and also to support accessibility features
  • calculatortests.zip
    • CalculatorTests.sln
    • CalculatorTests
    • TestResults
      • askaila_AKAILA-LT-W7 2010-07-11 16_04_40.trx
      • askaila_AKAILA-LT-W7 2010-07-11 16_05_18.trx
      • askaila_AKAILA-LT-W7 2010-07-11 16_08_42.trx
      • askaila_AKAILA-LT-W7 2010-07-11 16_08_42
        • In
          • AKAILA-LT-W7
        • Out
          • AgentRestart.dat
      • askaila_AKAILA-LT-W7 2010-07-11 16_11_14.trx
      • askaila_AKAILA-LT-W7 2010-07-11 16_12_36.trx
      • askaila_AKAILA-LT-W7 2010-07-11 16_32_57.trx
      • askaila_AKAILA-LT-W7 2010-07-11 16_38_34.trx
      • askaila_AKAILA-LT-W7 2010-07-11 16_38_34
        • In
          • AKAILA-LT-W7
        • Out
          • AgentRestart.dat
      • askaila_AKAILA-LT-W7 2010-07-11 16_55_07.trx
      • askaila_AKAILA-LT-W7 2010-07-11 16_55_07
        • Out
      • askaila_AKAILA-LT-W7 2010-07-11 16_55_58.trx
      • askaila_AKAILA-LT-W7 2010-07-11 16_55_58
        • Out
      • askaila_AKAILA-LT-W7 2010-07-11 16_56_48.trx
      • askaila_AKAILA-LT-W7 2010-07-11 16_56_48
        • In
          • AKAILA-LT-W7
        • Out
          • AgentRestart.dat
      • askaila_AKAILA-LT-W7 2010-07-11 16_57_49.trx
      • askaila_AKAILA-LT-W7 2010-07-11 16_58_27.trx
      • askaila_AKAILA-LT-W7 2010-07-11 16_58_27
        • In
          • AKAILA-LT-W7
        • Out
          • AgentRestart.dat
      • askaila_AKAILA-LT-W7 2010-07-11 16_59_14.trx
      • askaila_AKAILA-LT-W7 2010-07-11 16_59_49.trx
      • askaila_AKAILA-LT-W7 2010-07-12 14_17_06.trx
      • askaila_AKAILA-LT-W7 2010-07-12 14_17_06
        • In
          • AKAILA-LT-W7
        • Out
          • AgentRestart.dat
      • askaila_AKAILA-LT-W7 2010-07-12 14_17_36.trx
      • askaila_AKAILA-LT-W7 2010-07-12 14_17_58.trx
      • askaila_AKAILA-LT-W7 2010-07-12 14_17_58
        • In
          • AKAILA-LT-W7
        • Out
          • AgentRestart.dat
      • askaila_AKAILA-LT-W7 2010-07-12 14_18_40.trx
      • askaila_AKAILA-LT-W7 2010-07-12 14_18_53.trx
      • askaila_AKAILA-LT-W7 2010-07-12 14_18_53
        • In
          • AKAILA-LT-W7
        • Out
          • AgentRestart.dat
      • askaila_AKAILA-LT-W7 2010-07-12 14_19_12.trx
      • askaila_AKAILA-LT-W7 2010-07-14 15_56_54.trx
      • askaila_AKAILA-LT-W7 2010-07-14 15_59_29.trx
      • askaila_AKAILA-LT-W7 2010-07-15 09_47_21.trx
      • askaila_AKAILA-LT-W7 2010-07-27 15_38_10.trx
      • askaila_AKAILA-LT-W7 2010-12-29 21_20_00.trx

namespace CalculatorTests
{
    internal enum EvaluateOption
    {
        UIEvaluate,
        ActualEvaluate
    }

    internal interface IOperand
    {
        int Evaluate(EvaluateOption option, Calculator calculator);
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) MixModes Inc. | Research In Motion
Canada Canada
Ashish worked for Microsoft for a number of years in Microsoft Visual Studio (Architect edition) and Windows Live division as a developer. Before that he was a developer consultant mainly involved in distributed service development / architecture. His main interests are distributed software architecture, patterns and practices and mobile device development.

Currently Ashish serves as a Technical Lead at RIM leading next generation BlackBerry media experience and also runs his own company MixModes Inc. specializing in .NET / WPF / Silverlight technologies. You can visit MixModes at http://mixmodes.com or follow it on Twitter @MixModes

In his free time he is an avid painter, hockey player and enjoys travelling. His blog is at: http://ashishkaila.serveblog.net

Comments and Discussions