Van start met VS 2012 en TFS 2012 @FokkoVeegens · Coded UI tests Coded UI op Build Server ... Geen...

Post on 27-Jul-2020

2 views 0 download

Transcript of Van start met VS 2012 en TFS 2012 @FokkoVeegens · Coded UI tests Coded UI op Build Server ... Geen...

Van start met VS 2012 en TFS 2012

@FokkoVeegens

Aanleiding

Voorbereidingen

Unit tests

Coded UI tests

Coded UI op Build Server

Rapporteren over resultaten

Agenda

Agile > Kortere iteraties

Complexe software

Kwaliteit behouden

Idee dat automatisch testen moeilijk is…

Aanleiding

Time

Sales

Automatisch testen met minimale effort

Automatisch Unit testen op de Build Server

Automatisch UI testen op de Build Server

Rapportages over resultaten

Geen gebruik van Lab Management

Geen gebruik van Test Manager

Opzet/doel

TFS!

Code in Source Control

Build Server◦ Visual Studio (Premium) installeren

◦ Build Drop directory

Demo

Voorbereidingen

TDD

Arrange/Act/Assert

Green field

Brown field

Demo

Unit tests

C# code

Ondersteunde OS’es

◦ Windows 7

◦ Windows Server 2008 R2

◦ Windows 8

Ondersteunde technologiën (o.a.)

◦ Internet Explorer 8

◦ Internet Explorer 9

◦ Internet Explorer 10 (desktop)

◦ Windows Forms (>= 2.0) and WPF (>= 3.5) third party controls

◦ Chrome

◦ Firefox

◦ Silverlight (plugin)

◦ SharePoint

◦ Dynamics CRM web client

Coded UI tests

Kandidaten voor UI tests◦ Stabiele functionaliteit

◦ Veel gebruikte functionaliteit

◦ Kritische functionaliteit

Let op met data!◦ Standaard vulling database

◦ Eventueel mocking voor data

Demo

Coded UI tests

Inrichting Build Server/test server◦ Test Controller/Test Agent

◦ Service user zelfde als Build Service

◦ Test Agent > Interactive

◦ Build agent > Interactive

◦ Machine moet ingelogd zijn

Demo

Coded UI tests

Architectuur

Demo

Coded UI tests

Build Activity

Web◦ MSBuild Arguments > /p:DeployOnBuild=True

Winforms◦ Clickonce/copy/WIX etc

Demo

Deployment

Demo!

Automatisch draaien Coded UI

Standaard rapportages (Scrum template)◦ Build Success over time

◦ Build Summary

◦ Test rapportages werken niet zonder Test Cases/Test

Plan/Test results

Custom rapportages◦ Excel

◦ SSRS

Demo

Rapportage

Fokko Veegens

ALM Consultant bij Delta-N

@FokkoVeegens

http://www.delta-n.nl

http://veegens.wordpress.com

http://nl.linkedin.com/in/fokkoveegens

Over mij

How to: Configure and Run Scheduled Tests After Building Your

Application

◦ http://msdn.microsoft.com/en-us/library/ms182465.aspx

How to: Set Up Your Test Agent to Run Tests that Interact with the

Desktop

◦ http://msdn.microsoft.com/en-us/library/ee291332(v=vs.110).aspx

Run Tests in Your Build Process

◦ http://msdn.microsoft.com/en-us/library/ms253138(v=vs.110).aspx

Test Agent + Test Controller download

◦ http://www.microsoft.com/en-us/download/details.aspx?id=38186

Mijn blog (hier zal deze presentatie te downloaden zijn):

◦ http://veegens.wordpress.com

Links

?

Vragen