Unit testing your metro style apps built using XAML

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Preface Demo A Quick Thank You How Did We Do It?
Feature: Identity Management - Login © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Interactivity Navigating a data model Working with large quantities of data Entry Editing and adding data User feedback and validation Presentation.
Multitenant Model Request/Response General Model.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Announcing Demo Announcing.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
travel Suru Windows 7 Release NET 4.0 / Surface 2.0 Release Multi-Touch Controls Multi-Touch API Surface Multi-Touch Controls & API Surface.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
NEXT: Overview – Sharing skills & code.
demo Receive Inventory Export Parse and Normalize.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: Employee Self Service Timecard Entry © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
SQL Server SQL Azure Visual Studio“Quadrant” SQL Server Modeling Services Entity Framework ADO.NET“M”/EDM Data Services …
announcing Dev Manager Do I understand what we’ve built? Developer Can I bet on using this shared component? Testers What’s changed since I last.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

DataModel VisualizationExternal Assets Workbook Excel Services API BrowserRich Apps EWA JSOMBrowser REST BrowserRich Apps.
DoRon Motter Development Lead Microsoft Corporation
6/10/ :23 PM TOOL-504T A deep dive into Visual Studio 11 Express for designing Metro style apps using XAML Joanna Mason & Unni Ravindranathan Program.
Manual testing of Windows Metro style apps built using HTML
Возможности Excel 2010, о которых следует знать
Title of Presentation 11/22/2018 3:34 PM
Deep dive on app data roaming
Baseline: How Are We Doing Now?
Visual Studio 2012 and Blend
Title of Presentation 12/2/2018 3:48 PM
TechEd /6/2018 8:16 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Create rich, data-driven Web apps with ASP.NET 4.5 Web Forms
Silverlight Debugging
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Leveraging existing code in Metro style apps
Jason Zander Unplugged
5/1/2019 3:29 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Title of Presentation 5/12/ :53 PM
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Title of Presentation 7/24/2019 8:53 PM
Bringing existing managed code into Metro style apps
Welcome to Architect Insight 2010
Presentation transcript:

Unit testing your metro style apps built using XAML TOOL-529T Unit testing your metro style apps built using XAML Peter Provost Senior Program Manager Microsoft Corporation © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Agenda New unit testing capabilities in Visual Studio 11 Unit testing managed XAML apps Unit testing native code Recap Key takeaways How to use the new Visual Studio unit testing features Design your new XAML app for high quality & testability

What is unit testing? Unit testing is a method by which individual units of source code are tested to determine if they are fit for use A unit is the smallest testable part of an app Unit tests are typically written and run by software developers to ensure that code meets its design and behaves as intended

Other kinds of testing Integration testing Confirm that the parts work when put together Functional or system testing Confirm that the whole system meets the specified requirements Exploratory testing A tester intentionally explores areas of the system, looking for inconsistencies or incorrect behavior

Effective unit testing is one of the biggest contributors to high quality software.

Unit testing features in Visual Studio 11

Unit test explorer New, extensible test runner interface in Visual Studio 11 All important information available at a glance Designed for developers writing tests Fast and scalable Available in Win8Express, Pro, Premium and Ultimate editions

Test framework extensibility How do you want to test today? New plugin model can support any unit testing framework Built in support for VS managed tests (aka MS-Test) New VS native unit testing framework

Visual Studio 11 Unit Test Explorer demo Visual Studio 11 Unit Test Explorer A quick look at the new Unit Test Explorer and unit testing Metro style apps

Unit testing managed XAML apps

Unit Testing an existing managed XAML app demo Unit Testing an existing managed XAML app What happens when you take an existing app that was not designed for testing and try to add unit tests to it?

Windows 8 concepts & issues The AppContainer sandbox Isolates your app from the system and vice-versa Prevents use of many .NET APIs Requires a special kind of unit test project Dealing with XAML issues XAML can only be properly rendered within your app Try to avoid putting much in the code-behind file

Key elements for success Design for testability Test units in isolation from one another Isolate dependencies Write tests while you code and run them often

Unit Testing an existing managed XAML app demo Unit Testing an existing managed XAML app Using some well-known patterns to separate logic from UI, we can make the app very easy to test.

Unit testing native code

Native Unit Testing framework In Visual Studio 11 we will be introducing a new Unit Testing Framework for C/C++ Speedy test authoring with terse syntax Light weight, performant test discovery and execution Tests are isolated and do not pollute the environment Fully featured and extensible: fixtures, attributes, assertions, logging, expected exceptions

Testing native C++ overview Write your tests in the same language you write your code Design for testability, test in isolation, run your tests frequently Deal with the Windows 8 specific concepts and issues

Unit testing native code demo Unit testing native code If you are using native code today, or plan to use it for your new apps, you can have the same unit testing experience

Recap

Unit testing Metro style XAML apps Visual Studio 11 brings a new focus on developer testing with an improved user experience and extension model Managed or native code, you choose! You should use well-known design patterns like MVVM for improved testability

Related sessions [TOOL-455T] Developing and testing on Windows 8 with Hyper-V [TOOL-515T] Tips and tricks for developing Metro style apps using XAML [TOOL-530T] Manual testing of Windows Metro style apps built using HTML [TOOL-793T] Working on an agile team with Visual Studio 11 and Team Foundation Server 11

thank you Feedback and questions http://forums.dev.windows.com Session feedback http://bldw.in/SessionFeedback

6/4/2018 4:27 AM © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.