Automatisches Testen ohne Frust mit CodedUI

Slides:



Advertisements
Ähnliche Präsentationen
Windows Vista Deployment
Advertisements

Windows Vista für Entwickler
Wenn…… the conditional. Using the conditional tense The conditional tense is used to talk about something that happens only after something else happened.
Lancing: What is the future? Lutz Heinemann Profil Institute for Clinical Research, San Diego, US Profil Institut für Stoffwechselforschung, Neuss Science.
This presentation is timed so you will only need to click on the left mouse button when it is time to move to the next slide. Right click on this screen.
Windows Small Business Server 2008
Gehärtet von Anfang an { Windows 2008: Spezielle Aufgaben }
Microsoft Office Forms Server
GPO Commodity Marketing April, 2013
Kooperationsmöglichkeiten im Bereich Medienkompetenzförderung Heidelberg, 06.Juni 2011 Jürgen Nilgen Area Sales Lead Germany | Microsoft Learning.
Windows Essential Business Server 2008
| DC-IAP/SVC3 | © Bosch Rexroth Pneumatics GmbH This document, as well as the data, specifications and other information set forth in.
BAS5SE | Fachhochschule Hagenberg | Daniel Khan | S SPR5 MVC Plugin Development SPR6P.
Video Streaming mit Silverlight
der Imperativ Nicht Vergessen! (Don’t forget)
The free XML Editor for Windows COOKTOP Semistrukturierte Daten 1 Vortrag Semistrukturierte Daten 1 COOKTOP The free XML-Editor for Windows
Deutsch 1 G Stunde. Donnerstag, der 18. Oktober 2012 Deutsch 1, G Stunde Heute ist ein E- Tag Unit: Family & homeFamilie & Zuhause Objectives: Phrases.
G Stunde DEUTSCH 1. Unit: Family & homeFamilie & Zuhause Objectives: Phrases about date, weather and time-telling Alphabet – pronunciation and words The.
Deutsch 1 G Stunde. Montag, der 22. Oktober 2012 Deutsch 1, G Stunde Heute ist ein F- Tag Unit: Family & homeFamilie & Zuhause Objectives: Conjugations.
Deutsch 1 G Stunde. Donnerstag, der 18. Oktober 2012 Deutsch 1, G Stunde Heute ist ein D- Tag Unit: Family & homeFamilie & Zuhause Objectives: Phrases.
Your name Bedeutung von Internet- Technologien Gruppe 1 Andreas Feuerstein Philipp Hochratner Christian Weinzinger.
René Leupold IS Developer Comgate Solutions AG Entity Framework Ein Überblick.
Neno Loje Berater & MVP für Visual Studio ALM und TFS (ehemals VSTS) Hochqualitative Produkte mit Visual Studio & TFS 2010.
Dariusz Parys Developer Evangelist Microsoft Deutschland GmbH.
Ralf M. Schnell Technical Evangelist Microsoft Deutschland GmbH.
Frank Fischer + Bernhard Frank Microsoft Deutschland GmbH.
Roger Boesch Developer Technical Specialist Developer and Platform Group.
Swiss TechNet Events Herzlich Willkommen Windows 8.1 Überblick & moderne Workplace Szenarien 25. November 2013 Martin Weber, Tech Solutions Professional,
Thomas Claudius Huber Senior Consultant Trivadis AG Silverlight 5 die Neuerungen.
Quelle: Standish Group, 2006 Fourth Quarter Research Report, CHAOS Research Results.
SQL Azure Administration
3/28/2017 8:11 PM Visual Studio Tools für Office { Rapid Application Development für Office } Jens Häupel Platform Strategy Manager Microsoft Deutschland.
Spricht Ihre Anwendung schon Open XML?
Dirk Primbs Developer Evangelist Microsoft Deutschland GmbH.
Dariusz Parys Developer Evangelist Microsoft Deutschland GmbH Christian Weyer Solutions Architect thinktecture.
MVVM in Windows 8 und Windows Phone 8
PresenterCompanyContact Windows Azure ASP.NET Web-Anwendungen schnell und zuverlässig bereitstellen.
You need to use your mouse to see this presentation
Department of Computer Science Homepage HTML Preprocessor Perl Database Revision Control System © 1998, Leonhard Jaschke, Institut für Wissenschaftliches.
DEUTSCHLAND UND DIE MEDIEN
Virtual Earth Visualisierung von Geodaten Daniel Walzenbach, Microsoft Deutschland GmbH
Cyber-Security und Datenschutz in der Cloud Wie passt das zusammen?
Kölner Karneval By Logan Mack
Ein Projekt des Technischen Jugendfreizeit- und Bildungsvereins (tjfbv) e.V. kommunizieren.de Blended Learning for people with disabilities.
Premium AEROTEC S.R.L., Brasov Plant Noul spatiu de joaca tematic al Parcului Central Brasov construit de Premium AEROTEC cu sustinerea Primariei Brasov.
Office Business Anwendungen mit SharePoint Fabian Moritz | MVP Office SharePoint Server.
© All rights reserved. Zend Technologies, Inc. Jenseits von var_dump(): Debugging in ZF Jan Burkl System Engineer.
Microsoft Cloud Day Herzlich willkommen!. Microsoft Cloud Day MSDN Veranstaltung Die Cloud Plattform als Erfolgsbaustein – Wie Sie als Softwarefirma von.
Die nächste Generation von Microsoft Office System 2007 Microsoft Office System Gernot Kühn Technologieberater Office System Mittelstandsbetreuung.
Negation is when you dont have or dont do something.
Thomas Claudius Huber Senior Consultant Trivadis AG WCF RIA Services Datengetriebene Apps.
Greetings and goodbyes Deutschland v. USA
Technische Universität München 1 CADUI' June FUNDP Namur G B I The FUSE-System: an Integrated User Interface Design Environment Frank Lonczewski.
You need to use your mouse to see this presentation
Page 1 XXX21/08/2014 Implemented by Benutzen Sie diese Titelfolie für Programme und Projekte im Ausland. Setzen Sie das „einheitliche Logo der Zusammenarbeit“
…und nun aber zum heutigen Vortrag Die Herausforderung: Krisen und andere Verwerfungen Die Herangehensweise: Kosten senken & Produktivität erhöhen Das.
Mit IT IS enbex Hand in Hand Zeitgemäße Unternehmen sind auf schnellen und sicheren Datenaustausch angewiesen IT IS AG.
Sprachneuerungen des .NET Frameworks 3.5
Weg mit Fehlern, die kein Entwickler versteht …
Weak pushover verbs..... lieben kaufen spielen suchen....are verbs that do exactly as they are told. They stick to a regular pattern that does not change!
Ralf M. Schnell Technical Evangelist Microsoft Deutschland GmbH
Christian Binder Senior Platform Strategy Manager Microsoft Deutschland GmbH.
Ralf M. Schnell Technical Evangelist Microsoft Deutschland GmbH.
Arbeiten in einem agilen Team mit VS & TFS 11
LLP DE-COMENIUS-CMP Dieses Projekt wurde mit Unterstützung der Europäischen Kommission finanziert. Die Verantwortung für den Inhalt dieser.
Azure Backup, Azure Backup Server und Azure Site Recovery
Azure Active Directory und Azure Active Directory Domain Services
Lync and Learn mit Manfred Helber Thema heute:
Azure Mobile Services Deep dive into node.js scripting
Firmeninternes Softwarelogo
 Präsentation transkript:

Automatisches Testen ohne Frust mit CodedUI Nico Orschel Consultant AIT TeamSystemPro

Was ist CodedUI? Framework für UI Testautomatisierung Verfügbar ab Visual Studio 2010 Premium Unterstützung verschiedener Technologien durch spezifische Provider (z.B. WinForms, WPF, Webanwendungen, Silverlight 4.0 ) Microsoft Testmanager und CodedUI verwenden identisches Tracking-Framework

Unterstützte Plattformen

Tracking Technologien UI Test Implementierung Windows Forms Microsoft Active Accessibility (MSAA) Windows Presentation Foundation UI Automation (UIA) Internet Explorer MSHTML Firefox JavaScript und Firefox DOM Silverlight Code Injection und Reflection  

UITest Architecture Technology Abstraction Layer Web Plug-ins (MSHTML/DOM) Interpreter Coded UI Test Code Generation Test Runner Playback Recorder Rich Client Plug-ins (UIA/MSAA) Filter/ Aggregation Rules API Property Provider 3rd Party Plug-ins Action Invoker My UI Custom properties & code Customize recording Write a client that does something else! Technology Abstraction Layer Add/Modify API Write technology adapters

MSAA MSAA = Microsoft Assessabilty Automation Standard zur Ansteuerung von Anwendungen für Screenreader Verfügbar/Bestandteil seit Windows 95 Testautomatisierung von WinForms Controls erfolgt über MSAA Wichtige Properties im Zusammenhang mit Testautomatisierung AccessabiltyName und AccessabiltyDescription

Accessabilty Problemdiagnose Probleme mit den Standards MSAA und UIA ohne Hilfsmittel schwierig zu identifizieren Diagnose mit folgenden Programmen möglich Custom Tool UISpy (nur MSAA, Windows SDK) AccChecker (UIA und MSAA Best Practice Scan) Download unter https://acccheck.codeplex.com/

demo… WinForms

Tip 1: MSAA: AccessibilityName und AccessibilityDescription zuweisen

Tip 2: ACChecker - dein Freund und Helfer (bei MSAA / UIA Problemen)

UIA UIA = User Interface Automation Nachfolger des Standards MSAA Bestandteil des System ab Windows 2003 und Vista Standard WPF Controls (.NetFx 3.0 und neuer) implementieren UIA UIA Properties AutomationId und AutomationName sind essentiel für die Testautomatisierung Definition kann implizit oder explizit erfolgen

demo… WPF

Tip 3: UIA: AutomationName und AutomationID zuweisen

Silverlight Support für Silverlight 4.0 Anwendungen mit Feature Pack 2 verfügbar Unterschiede zu WPF Einbindung der Assembly Microsoft.VisualStudio.TestTools.UITest.Extension.SilverlightUIAutomationHelper Gemeinsamkeiten mit WPF: AutomationProperties analog zu WPF AutomationId AutomationName

demo… Silverlight

Tip 4: UIA: AutomationName und AutomationID zuweisen

Web Erweiterung für das CodedUI Framework Ursprung: Microsoft Product Group Vereinfacht die Entwicklung und Wartung von automatischen Tests (von Webanwendungen) Vorteil “Keine” UIMap mehr notwendig Weniger, lesbarer und warbarerr Code Ausführen von JavaScript Code

demo… Web

Tip 5: Wartbarer Testautomation-Code mit CUITe

Tip 6: “If you don’t know what you want tested, how are you going to automate it?”

Info to Speakers Please add the following two Slides to the End of your Deck! Thank you!

Give us your feedback! Please help us make TechDays even better by Evaluating this Session. Thank you!

AIT TeamSystemPro Team TeamSystemPro@aitgmbh.de

3/28/2017 8:10 PM © 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. © 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.

Weiterführende Informationen AIT Gmbh & Co. KG http://www.aitgmbh.de Artikelserie zu CodedUI Optimierung http://blog.aitgmbh.de/2011/01/07/codedui-diagnose-von-msaa-oder-uia-problemen-in-anwendungen-teil-1/ http://blog.aitgmbh.de/2011/01/20/codedui-wpf-anwendungen-fr-codedui-vorbereiten-teil-2/ http://blog.aitgmbh.de/2011/01/28/codedui-winforms-anwendungen-fr-uitest-vorbereiten-teil-3/ Set a Unique Automation Property for Silverlight Controls for Testing http://msdn.microsoft.com/en-us/library/gg413373.aspx

Weiterführende Informationen CUITe (Coded UI Test enhanced) Framework https://cuite.codeplex.com/ UI Accessibility Checker https://acccheck.codeplex.com/ Using UI Automation for Automated Testing http://msdn.microsoft.com/en-us/library/aa348551.aspx