SlideShare una empresa de Scribd logo
1 de 57
Descargar para leer sin conexión
ALM 4 Azure
Automated ALM for Azure Cloud Development




                                      1
AGENDA
• ALM
• Azure
• ALM 4 Azure


                2
Clemens Reijnen
• Sogeti | Management Consultant




                              www.ClemensReijnen.nl
                                   @ClemensReijnen
                           Clemens.Reijnen@Sogeti.nl

                                               3
application lifecycle management
                                                                    4
http://www.clemensreijnen.nl/post/2008/02/18/ALM-Definitions.aspx
ALM - Agile | Lean
Application Lifecycle Management
Collaborate over Processes and Products with tools.




Agile, Lean and also TMap, DyA, ITIL
Methodologies, principles customized, adopted
and merged from all ALM roles.




                                                optimized environments for supporting
                                                the ALM team goals
                                                                                        5
work together
__with work packages
__on alm artifacts
                       6
7
http://msdn.microsoft.com/en-us/library/bb385832.aspx
Guest OS Versioning




identical – independent environments    8
Development & Deployment

 SDK



         *.cspkg




         Config
         *.cscfg




                       9
Start




        10
ALM 4 Azure




                         Cloud System
Goals:   Collaborative
         High Quality
         Flexible
         Automated
         Repeatable
         Efficient
                          11
Scenario 1: Dev only
Scenario 2: Dev and Test
Scenario 3: Dev, Test and Build, Deploy
Scenario 4: Dev, Auto Tests and Build, Deploy
Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test
            and Operations




                                                   12
Scenario 1: Dev only
Scenario 2: Dev and Test
Scenario 3: Dev, Test and Build, Deploy
Scenario 4: Dev, Auto Tests and Build, Deploy
Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test
            and Operations




                                                   13
Scenario 1:
Developer only


       1                                            Source                                     Production
                                                    Repository                       Staging
                      C#                                                    3
    TEAM              (implementatie + unittests)      (TFS)




   Developers implementeren het systeem
    Local unittesting

                                                               ‘SprintReview’Build
                                                                Compile
                                                                Run Unit Tests
                                                               2




                                                                                                   14
Stages of Service Deployment




                         Taken from:
DEMO
Deploying a
Cloud Service
from Visual
Studio
                   16
Scenario 1:
Developer only



                                  Pro: Con:
       Easy installation and configuration No collaboration
    Single click deployment from VS2010 Easy deployment errors (configuration)
                                           What about test and ops




                                                                                 17
Scenario 1: Dev only
Scenario 2: Dev and Test
Scenario 3: Dev, Test and Build, Deploy
Scenario 4: Dev, Auto Tests and Build, Deploy
Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test
            and Operations




                                                   18
Scenario 2:
Developer with
manual tester


                                                       Source                                         Production
                                                       Repository                           Staging
                         C#                                                    3
     TEAM                (implementatie + unittests)      (TFS)




  1 Developers implementeren het systeem
    Local unittesting

   Testers specificeren testcases                                 ‘SprintReview’Build   4
    “Dry” run van tests tegen Development Fabric                  Compile
                                                                   Run Unit Tests
                                                                  2




                                                                                                          19
Microsoft Test
Manager




                 21
Source                                       Production
                              Repository                          Staging
     TEAM                        (TFS)           3




 1


                                                          4


                                         2




            1                    2                            4
 Functional, system,      Build Verification         Platform accepatance
manual tests executed   Tests (unit tests) and         tests executed on
in compute emulator      other quality gates,          Azure stating with
     with MTM.          executed in the build.               MTM.
1
    Get the CSX folder and CSFG file



2


3


4
DEMO
Test a Cloud
Service with
Microsoft Test
Manager
                    24
Diagnostic adapters
DEMO
Azure Logs
Diagnostic Data
Adapter

                     26
Capabilities
•   Link test cases to requirements
•   Fast Forward
•   Test data Iterations
•   Test case management
•   Test configurations

Interesting capabilities 4 Azure
• Shared steps ( 4 VISP Swap )
• Diagnostic adapters ( Rich bug reports )

Not working capabilities in Azure
• Test Impact 4 manual tests
• Intelli Trace 4 manual tests (although possible custom
  adapter)
                                                           27
Scenario 2:
Developer with
manual tester




                                        Pro: Con:
          Easy installation and configuration   Easy deployment errors (configuration)
       Single click deployment from VS2010      Time consuming (deploy and test)
  Testers connected, same heartbeat as dev      Not repeatable (annoyed testers)
                               Proven quality   Testers connected 




                                                                                         28
Scenario 1: Dev only
Scenario 2: Dev and Test
Scenario 3: Dev, Test and Build, Deploy
Scenario 4: Dev, Auto Tests and Build, Deploy
Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test
            and Operations




                                                   29
Scenario 3:
Developer with manual tester
and deployment build

                                                                             3
                                                       Source                                                       Production
                                                       Repository                                      Staging
                         C#
     TEAM                (implementatie + unittests)      (TFS)




  1 Developers implementeren het systeem
    Local unittesting

   Testers specificeren testcases                                 ‘SprintReview’Build        4
    Dry run van tests tegen Development Fabric                    Compile
                                                                   Run Unit Tests
                                                                  2
                                                                   Package (CSRun.exe, CSPack,exe, CSManage.exe)
                                                                   Deploy 2 Staging (CMdLets, Powershell)




                                                                                                                        30
Automatic Deployment
                    Management API
                    CSPack
                    CSRun
                    CSManage
                    PowerShell CmdLets
                    Build Targets
http://scottdensmore.typepad.com/blog/2010/03/azure-deployment-for-your-build-server.html

http://blogs.msdn.com/b/tomholl/archive/2011/02/23/using-msbuild-to-deploy-to-multiple-windows-
azure-environments.aspx
                                                                                            31
Deploy during build
   1. Change .ccproj project
     •   New build target which uses the built-in CorePublish target

   2. Create PowerShell script
     •   Called by build target and uses Azure CMDLets

   3. Edit Build Config
     •   Add the necessary parameters

   4. Do something with certificates
     •   Put the Azure certificate on the build server


                                                                       32
DEMO
Deploy a Cloud
Solution within
the Build

                     33
Scenario 3:
Developer with manual tester
and deployment build




                                                                Pro: Con:
             Easy installation and configuration                           Time consuming testing
                No click deployment from build                             Application can contain ‘annoying’ bugs
            Repeatable ‘proven’ deployments*                               Build workflow knowledge necessary
     Testers connected, same heartbeat as dev                              Powershell, ccproj tweaks, target files,
                                  Proven quality                           certificates

 *demo needs some additional environment tweaks for different csfg files
                                                     per environment


                                                                                                                      34
Scenario 1: Dev only
Scenario 2: Dev and Test
Scenario 3: Dev, Test and Build, Deploy
Scenario 4: Dev, Auto Tests and Build, Deploy
Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test
            and Operations




                                                   35
Scenario 4:
Developer with automated regresion
tests, manual tests and deployment build

                                                                             3
                                                        Source                                                      Production
                                                       Repository                                      Staging
                         C#
     TEAM                (implementatie + unittests)      (TFS)
                         Test cases
                         (automated UI tests)

  1 Developers implementeren het systeem
    Local unittesting
                                                                                             4
   Testers specificeren testcases                                 ‘SprintReview’Build
    Dry run van tests tegen Development Fabric                    Compile
    Automation van testcases      5                               Run Unit Tests
      (moeten gedraaide testcases zijn voor CodedUI)              2
    UI automation tests run tegen Development Fabric              Package (CSRun.exe, CSPack,exe, CSManage.exe)
      en associëren met test plan                                  Deploy 2 Staging (CMdLets, Powershell)




                                                                                                                        36
CodedUI
Where? When? How? Who? Why? What?
Where?   When? How? Who? Why? What?
Different URL’s

                  1



                      2


                          40
UIMap Editor




               41
DEMO
Create automatic
Tests for the Cloud
Application with
CodedUI
                      42
Where to run the auto test?
   a) At the Build server?

   b) In the Development environment?

   c) In the Test environment?

   d) In the Azure environment?



                                        43
Visual Studio   Team
                Foundation
                Server




Test Manager
                             Build Server   Test Agent
                                                 Test Agent
                                                     Test Agent




                                                                  44
Configurations for automated test execution:
                                   On physical environments (no lab)



                       TFS 2010

 VS 2010                      Build Controller
                                                    Build Agent




           MTM 2010               Test Controller


                                                                  Test Agent




                                                                     45
Automated Test Settings




                          46
Configurations for automated test execution:



                                  A




Flavor A: Execution from VS2010…
 Real developer test / test automation dry run
 (Triggered by: right mouse click – run tests, in test project)
 http://msdn.microsoft.com/en-us/library/dd286580.aspx

 No additional configuration needed*
 * Data Diagnostic Settings in the Local.Testsettings file are configurable.




                                                    Pro: Con:
                                     Easy setup No collection of test results in TFS
                    Debug-able test automation Run on developer environment                             47
Configurations for automated test execution:


                                                             B




Flavor B: Execution during build with Build controller…
                                 not recommended, strange to run UI tests on build
  Part of Build Verification Tests
  (triggered by: build)

  Set the Build Service to run in interactive mode
  http://blogs.msdn.com/b/mathew_aniyan/archive/2009/05/26/coded-ui-test-in-a-team-build.aspx
  Configure the build to run the tests
  http://msdn.microsoft.com/en-us/library/ms182465.aspx#CreateBuildType
  * Data Diagnostic Settings in the *.Testsettings file are configurable.




                                              Pro: Con:
                                         Easy setup No collection of test results in TFS
                        Test results in build result Build Controller needs to run in interactive mode
                                                     Tests are executed on build environment 48
                                                     Run on build environment
Configurations for automated test execution:




                                                                     C


Flavor C: Execution during build with Test controller… B
                                       Preferred configuration above flavor
  Part of Build Verification Tests on multiple test agents
  (triggered by: build)

  Configure Test Controller (don’t register it with a project collection )
  http://msdn.microsoft.com/en-us/library/dd648127.aspx#TestControllers
  Configure Test Agents on clients (interactive mode)
  http://msdn.microsoft.com/en-us/library/dd648127.aspx#TestAgents
  Configure *.Testsettings file in solution to use Test Controller and Test Agents
  Configure the build to run the tests (see B)




                                                    Pro: Con:
                 Test run on test environments No collection of test results in TFS
           Tests run on multiple environments Harder to configure
                     Test Results in Build result Need for specific test client environments            49
                                                  Test Settings from VS
Configurations for automated test execution:




                                               D


Flavor D: Execution from Microsoft Test Manager…than BVT
                                         Other type of test
  Part of Regression Tests
  (triggered by: MTM user, right mouse click on test case, run)

  Configure Test Controller (register it with a project collection )
  Configure Test Agents on clients (interactive mode, can be the same as MTM)
  Configure Lab Center in MTM to use test controller and create test ‘agent’ environment.
  http://msdn.microsoft.com/en-us/library/ee390842.aspx
  http://msdn.microsoft.com/en-us/library/dd293551.aspx
  Associate CodedUI test with WI Test Case from VS.
  http://www.richard-banks.org/2010/11/how-to-use-codedui-tests-watin-and-mtm.html


                                                   Pro: Con:
                 Test run on test environments Manually triggered by Tester
           Tests run on multiple environments Hard to configure
                   Test Result in MTM and TFS Need for specific test client (same as MTM?)
                                                                                         50
                        Test Settings from MTM
Configurations for automated test execution:




                                                               E


Flavor E: Execution from MTM duringPreferred configuration above flavor C
                                     Build…
  Part of BVT                                                                 Flavor D and E can be configured together
  (triggered by: Build)

  Configure Test Controller (register it with a project collection )
  Configure Test Agents on clients (interactive mode, can be the same as MTM)
  Configure Lab Center in MTM to use test controller and create test ‘agent’ environment.
  Associate CodedUI test with WI Test Case from VS.
  Create Build task to run MTC or MSTEST task for Test Plan
  http://blogs.microsoft.co.il/blogs/shair/archive/2010/10/30/how-to-run-coded-ui-tests-from-command-line.aspx


                                                Pro: Con:
                 Test run on test environments Hard to configure
           Tests run on multiple environments Need for specific test client (same as MTM?)
                   Test Result in MTM and TFS
                             Triggered by build                                          51
DEMO
Automatic test a
Cloud Service with
Microsoft Test and
Lab Manager
infrastructure       52
Scenario 4:
Developer with automated regresion
tests, manual tests and deployment build




                                                                Pro: Con:
               No click deployment from build                              Build workflow knowledge necessary
           Repeatable ‘proven’ deployments*                                Powershell, ccproj tweaks, target files,
    Testers connected, same heartbeat as dev                               Certificates
                               Proven quality                              Test Infrastructure knowledge necessary
    Automated BVT on different Environments                                A balanced thinking of test automation
                       Comfortable Acc Testing
                                   Done Done

 *demo needs some additional environment tweaks for different csfg files
                                                     per environment                                                  53
Scenario 1: Dev only
Scenario 2: Dev and Test
Scenario 3: Dev, Test and Build, Deploy
Scenario 4: Dev, Auto Tests and Build, Deploy
Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test
            and Operations




                                                   54
Automated ALM for Azure Cloud development
Efficient, repeatable with proven quality fast
flexible delivering of useful functionality …                                                                                        4
                                                                        Acceptation
Making optimal use of the characteristics of Azure:
- Identical environments (Guest OS versioning).
- Separate in depended staging production environments.                   ‘Release ’Drop
- Easy up and downgrade of applications.                                   Package (same as test env
- Unambiguous deployment mechanism                                       3 package)
- rich diagnostic capabilities                                             Acc testing met MTM en
- Simplified Application Deployment & Management                             Diagnostic Data Collectors
- …




                                                               BUILD                                                            Production
                                                                (TFS)                                              Staging
                               C#
            TEAM               (implementation + unittests)
                               Test cases
                               (automated UI tests)

           Developers implement the system
            Local unit testing

           Testers specify test cases                                    ‘SprintReview’Build
            Dry run tests cases against Development Fabric               Compile
            Automation of test cases                                     Run Unit Tests
       1                                                                 
                                                                         2 Package (CSRun.exe, CSPack,exe, CSManage.exe)
            UI automation tests execute against Development              Deploy 2 Staging (CMdLets, Powershell)
             Fabric and associate with a test case                        Run automated Test Suites (MTC.exe) with different
                                                                            environments (test controller – agents infrastructure)
           Operations determine instrumentation data                      Collect and publish test results
            DFO, SLA                                                     “Build Verification Tests” green -> deployment 2 ‘test
            Usages Metrics, payment                                        'production                                                  55
Scenario 1: Dev only
Scenario 2: Dev and Test
Scenario 3: Dev, Test and Build, Deploy
Scenario 4: Dev, Auto Tests and Build, Deploy
Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test
            and Operations
Scenario 6: TFS on Azure
Scenario 7: Other Infrastructure on Azure

                                                   56
57

Más contenido relacionado

La actualidad más candente

Lab 7b) test a web application
Lab 7b) test a web applicationLab 7b) test a web application
Lab 7b) test a web applicationtechbed
 
PowerPoint Presentation
PowerPoint PresentationPowerPoint Presentation
PowerPoint Presentationrhofkens
 
Alliance Successful Selenium Automation
Alliance Successful Selenium AutomationAlliance Successful Selenium Automation
Alliance Successful Selenium Automationsadams22
 
Technical meeting automated testing with vs2010
Technical meeting automated testing with vs2010Technical meeting automated testing with vs2010
Technical meeting automated testing with vs2010Clemens Reijnen
 
Att lyckas med integration av arbetet från flera scrum team - Christophe Acho...
Att lyckas med integration av arbetet från flera scrum team - Christophe Acho...Att lyckas med integration av arbetet från flera scrum team - Christophe Acho...
Att lyckas med integration av arbetet från flera scrum team - Christophe Acho...manssandstrom
 
Tccc10 tooling testingci-vs2010teamcity
Tccc10 tooling testingci-vs2010teamcityTccc10 tooling testingci-vs2010teamcity
Tccc10 tooling testingci-vs2010teamcityBaskin Tapkan
 
Agile Open Source Performance Testing Workshop for Business Managers
Agile Open Source Performance Testing Workshop for Business ManagersAgile Open Source Performance Testing Workshop for Business Managers
Agile Open Source Performance Testing Workshop for Business ManagersClever Moe
 
Visual Studio 2010: A Perspective - David Chappell
Visual Studio 2010: A Perspective - David ChappellVisual Studio 2010: A Perspective - David Chappell
Visual Studio 2010: A Perspective - David ChappellSpiffy
 
Постоянное тестирование интеграции
Постоянное тестирование интеграцииПостоянное тестирование интеграции
Постоянное тестирование интеграцииSQALab
 
Silk4j Tcm6 174177
Silk4j Tcm6 174177Silk4j Tcm6 174177
Silk4j Tcm6 174177titita13
 
Turbocharge Your Automation Framework to Shorten Regression Execution Time
Turbocharge Your Automation Framework to Shorten Regression Execution TimeTurbocharge Your Automation Framework to Shorten Regression Execution Time
Turbocharge Your Automation Framework to Shorten Regression Execution TimeJosiah Renaudin
 
Android Meetup Slovenija #3 - Testing with Robolectric by Ivan Kust
Android Meetup Slovenija #3 - Testing with Robolectric by Ivan KustAndroid Meetup Slovenija #3 - Testing with Robolectric by Ivan Kust
Android Meetup Slovenija #3 - Testing with Robolectric by Ivan KustInfinum
 
AD208 - End to End Quality Processes for Top Notch XPages Apps
AD208 - End to End Quality Processes for Top Notch XPages AppsAD208 - End to End Quality Processes for Top Notch XPages Apps
AD208 - End to End Quality Processes for Top Notch XPages Appsbeglee
 

La actualidad más candente (20)

Lab 7b) test a web application
Lab 7b) test a web applicationLab 7b) test a web application
Lab 7b) test a web application
 
PowerPoint Presentation
PowerPoint PresentationPowerPoint Presentation
PowerPoint Presentation
 
Alliance Successful Selenium Automation
Alliance Successful Selenium AutomationAlliance Successful Selenium Automation
Alliance Successful Selenium Automation
 
Technical meeting automated testing with vs2010
Technical meeting automated testing with vs2010Technical meeting automated testing with vs2010
Technical meeting automated testing with vs2010
 
Att lyckas med integration av arbetet från flera scrum team - Christophe Acho...
Att lyckas med integration av arbetet från flera scrum team - Christophe Acho...Att lyckas med integration av arbetet från flera scrum team - Christophe Acho...
Att lyckas med integration av arbetet från flera scrum team - Christophe Acho...
 
Hudson: from build jobs to build pipelines
Hudson: from build jobs to build pipelinesHudson: from build jobs to build pipelines
Hudson: from build jobs to build pipelines
 
Tccc10 tooling testingci-vs2010teamcity
Tccc10 tooling testingci-vs2010teamcityTccc10 tooling testingci-vs2010teamcity
Tccc10 tooling testingci-vs2010teamcity
 
Agile Open Source Performance Testing Workshop for Business Managers
Agile Open Source Performance Testing Workshop for Business ManagersAgile Open Source Performance Testing Workshop for Business Managers
Agile Open Source Performance Testing Workshop for Business Managers
 
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Software Testing wit...
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Software Testing wit...Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Software Testing wit...
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Software Testing wit...
 
Visual Studio 2010: A Perspective - David Chappell
Visual Studio 2010: A Perspective - David ChappellVisual Studio 2010: A Perspective - David Chappell
Visual Studio 2010: A Perspective - David Chappell
 
Постоянное тестирование интеграции
Постоянное тестирование интеграцииПостоянное тестирование интеграции
Постоянное тестирование интеграции
 
Unit Testing
Unit TestingUnit Testing
Unit Testing
 
2012 01-jenkins-udeploy
2012 01-jenkins-udeploy2012 01-jenkins-udeploy
2012 01-jenkins-udeploy
 
Continuous Delivery
Continuous DeliveryContinuous Delivery
Continuous Delivery
 
Silk4j Tcm6 174177
Silk4j Tcm6 174177Silk4j Tcm6 174177
Silk4j Tcm6 174177
 
Turbocharge Your Automation Framework to Shorten Regression Execution Time
Turbocharge Your Automation Framework to Shorten Regression Execution TimeTurbocharge Your Automation Framework to Shorten Regression Execution Time
Turbocharge Your Automation Framework to Shorten Regression Execution Time
 
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Application Lifecycl...
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Application Lifecycl...Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Application Lifecycl...
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: Application Lifecycl...
 
Android Meetup Slovenija #3 - Testing with Robolectric by Ivan Kust
Android Meetup Slovenija #3 - Testing with Robolectric by Ivan KustAndroid Meetup Slovenija #3 - Testing with Robolectric by Ivan Kust
Android Meetup Slovenija #3 - Testing with Robolectric by Ivan Kust
 
Testing In Java
Testing In JavaTesting In Java
Testing In Java
 
AD208 - End to End Quality Processes for Top Notch XPages Apps
AD208 - End to End Quality Processes for Top Notch XPages AppsAD208 - End to End Quality Processes for Top Notch XPages Apps
AD208 - End to End Quality Processes for Top Notch XPages Apps
 

Similar a Alm 4 Azure

Coded UI - Test automation Practices from the Field
Coded UI - Test automation Practices from the FieldCoded UI - Test automation Practices from the Field
Coded UI - Test automation Practices from the FieldClemens Reijnen
 
Visual Studio 2010 Testing & Lab Management Tools
Visual Studio 2010 Testing & Lab Management ToolsVisual Studio 2010 Testing & Lab Management Tools
Visual Studio 2010 Testing & Lab Management ToolsAyman El-Hattab
 
Visual Studio 2010 ALM Tools Overview
Visual Studio 2010 ALM Tools Overview Visual Studio 2010 ALM Tools Overview
Visual Studio 2010 ALM Tools Overview Ayman El-Hattab
 
Automated testing DrupalCamp in Asheville
Automated testing DrupalCamp in AshevilleAutomated testing DrupalCamp in Asheville
Automated testing DrupalCamp in AshevillePromet Source
 
Continuous Delivery Applied
Continuous Delivery AppliedContinuous Delivery Applied
Continuous Delivery AppliedExcella
 
Continuous Delivery Applied (Agile Richmond)
Continuous Delivery Applied (Agile Richmond)Continuous Delivery Applied (Agile Richmond)
Continuous Delivery Applied (Agile Richmond)Mike McGarr
 
Continuous Delivery Applied (AgileDC)
Continuous Delivery Applied (AgileDC)Continuous Delivery Applied (AgileDC)
Continuous Delivery Applied (AgileDC)Mike McGarr
 
No More No Repro
No More No ReproNo More No Repro
No More No ReproAnna Russo
 
Team Development and Release Management
Team Development and Release ManagementTeam Development and Release Management
Team Development and Release ManagementSalesforce Partners
 
Model For Applying Unit Test
Model For Applying Unit TestModel For Applying Unit Test
Model For Applying Unit TestHieu Le Trung
 
Managing Test Labs Without the Headaches
Managing Test Labs Without the HeadachesManaging Test Labs Without the Headaches
Managing Test Labs Without the HeadachesImaginet
 
Full Testing Experience - Visual Studio and TFS 2010
 Full Testing Experience - Visual Studio and TFS 2010 Full Testing Experience - Visual Studio and TFS 2010
Full Testing Experience - Visual Studio and TFS 2010Ed Blankenship
 
Leveraging Azure for Performance Testing
Leveraging Azure for Performance TestingLeveraging Azure for Performance Testing
Leveraging Azure for Performance TestingTarun Arora
 
Containerize your Blackbox tests
Containerize your Blackbox testsContainerize your Blackbox tests
Containerize your Blackbox testsKevin Beeman
 

Similar a Alm 4 Azure (20)

Coded UI - Test automation Practices from the Field
Coded UI - Test automation Practices from the FieldCoded UI - Test automation Practices from the Field
Coded UI - Test automation Practices from the Field
 
Visual Studio 2010 Testing & Lab Management Tools
Visual Studio 2010 Testing & Lab Management ToolsVisual Studio 2010 Testing & Lab Management Tools
Visual Studio 2010 Testing & Lab Management Tools
 
Visual Studio 2010 ALM Tools Overview
Visual Studio 2010 ALM Tools Overview Visual Studio 2010 ALM Tools Overview
Visual Studio 2010 ALM Tools Overview
 
Automated testing DrupalCamp in Asheville
Automated testing DrupalCamp in AshevilleAutomated testing DrupalCamp in Asheville
Automated testing DrupalCamp in Asheville
 
05 test infrastructure
05   test infrastructure05   test infrastructure
05 test infrastructure
 
Continuous Delivery Applied
Continuous Delivery AppliedContinuous Delivery Applied
Continuous Delivery Applied
 
Agile Software Development & Tools
Agile Software Development & ToolsAgile Software Development & Tools
Agile Software Development & Tools
 
Continuous Delivery Applied
Continuous Delivery AppliedContinuous Delivery Applied
Continuous Delivery Applied
 
Continuous Delivery Applied (Agile Richmond)
Continuous Delivery Applied (Agile Richmond)Continuous Delivery Applied (Agile Richmond)
Continuous Delivery Applied (Agile Richmond)
 
Continuous Integration & the Release Maturity Model
Continuous Integration & the Release Maturity Model Continuous Integration & the Release Maturity Model
Continuous Integration & the Release Maturity Model
 
Coding Naked
Coding NakedCoding Naked
Coding Naked
 
Continuous Delivery Applied (AgileDC)
Continuous Delivery Applied (AgileDC)Continuous Delivery Applied (AgileDC)
Continuous Delivery Applied (AgileDC)
 
No More No Repro
No More No ReproNo More No Repro
No More No Repro
 
Team Development and Release Management
Team Development and Release ManagementTeam Development and Release Management
Team Development and Release Management
 
Model For Applying Unit Test
Model For Applying Unit TestModel For Applying Unit Test
Model For Applying Unit Test
 
Managing Test Labs Without the Headaches
Managing Test Labs Without the HeadachesManaging Test Labs Without the Headaches
Managing Test Labs Without the Headaches
 
Full Testing Experience - Visual Studio and TFS 2010
 Full Testing Experience - Visual Studio and TFS 2010 Full Testing Experience - Visual Studio and TFS 2010
Full Testing Experience - Visual Studio and TFS 2010
 
Leveraging Azure for Performance Testing
Leveraging Azure for Performance TestingLeveraging Azure for Performance Testing
Leveraging Azure for Performance Testing
 
Selenium Camp 2012
Selenium Camp 2012Selenium Camp 2012
Selenium Camp 2012
 
Containerize your Blackbox tests
Containerize your Blackbox testsContainerize your Blackbox tests
Containerize your Blackbox tests
 

Más de Clemens Reijnen

Azure for software development teams
Azure for software development teamsAzure for software development teams
Azure for software development teamsClemens Reijnen
 
06 operations and feedback
06   operations and feedback06   operations and feedback
06 operations and feedbackClemens Reijnen
 
04 test controlling and tracking
04   test controlling and tracking04   test controlling and tracking
04 test controlling and trackingClemens Reijnen
 
03 test specification and execution
03   test specification and execution03   test specification and execution
03 test specification and executionClemens Reijnen
 
Test Tooling in Visual Studio 2012 an overview
Test Tooling in Visual Studio 2012 an overviewTest Tooling in Visual Studio 2012 an overview
Test Tooling in Visual Studio 2012 an overviewClemens Reijnen
 
ALM - Getting Testing done in a Sprint
ALM - Getting Testing done in a SprintALM - Getting Testing done in a Sprint
ALM - Getting Testing done in a SprintClemens Reijnen
 
TFS11 on Azure the basics
TFS11 on Azure the basicsTFS11 on Azure the basics
TFS11 on Azure the basicsClemens Reijnen
 
MTLM Visual Studio 2010 ALM workshop - day1
MTLM Visual Studio 2010 ALM workshop  - day1MTLM Visual Studio 2010 ALM workshop  - day1
MTLM Visual Studio 2010 ALM workshop - day1Clemens Reijnen
 
MTLM Visual Studio 2010 ALM - day2
MTLM Visual Studio 2010 ALM - day2MTLM Visual Studio 2010 ALM - day2
MTLM Visual Studio 2010 ALM - day2Clemens Reijnen
 
MTLM Visual Studio 2010 ALM workshop
MTLM Visual Studio 2010 ALM workshopMTLM Visual Studio 2010 ALM workshop
MTLM Visual Studio 2010 ALM workshopClemens Reijnen
 
Talk Through Sogeti ALM 4 Azure
Talk Through Sogeti ALM 4 AzureTalk Through Sogeti ALM 4 Azure
Talk Through Sogeti ALM 4 AzureClemens Reijnen
 
TMap for VS2010 - SlideShare.
TMap for VS2010 - SlideShare.TMap for VS2010 - SlideShare.
TMap for VS2010 - SlideShare.Clemens Reijnen
 

Más de Clemens Reijnen (18)

Azure for software development teams
Azure for software development teamsAzure for software development teams
Azure for software development teams
 
06 operations and feedback
06   operations and feedback06   operations and feedback
06 operations and feedback
 
04 test controlling and tracking
04   test controlling and tracking04   test controlling and tracking
04 test controlling and tracking
 
03 test specification and execution
03   test specification and execution03   test specification and execution
03 test specification and execution
 
02 test planning
02   test planning02   test planning
02 test planning
 
01 the value of quality
01   the value of quality01   the value of quality
01 the value of quality
 
A Collaborative culture
A Collaborative cultureA Collaborative culture
A Collaborative culture
 
Test Tooling in Visual Studio 2012 an overview
Test Tooling in Visual Studio 2012 an overviewTest Tooling in Visual Studio 2012 an overview
Test Tooling in Visual Studio 2012 an overview
 
ALM - Getting Testing done in a Sprint
ALM - Getting Testing done in a SprintALM - Getting Testing done in a Sprint
ALM - Getting Testing done in a Sprint
 
TFS11 on Azure advanced
TFS11 on Azure advancedTFS11 on Azure advanced
TFS11 on Azure advanced
 
TFS11 on Azure the basics
TFS11 on Azure the basicsTFS11 on Azure the basics
TFS11 on Azure the basics
 
MTLM Visual Studio 2010 ALM workshop - day1
MTLM Visual Studio 2010 ALM workshop  - day1MTLM Visual Studio 2010 ALM workshop  - day1
MTLM Visual Studio 2010 ALM workshop - day1
 
MTLM Visual Studio 2010 ALM - day2
MTLM Visual Studio 2010 ALM - day2MTLM Visual Studio 2010 ALM - day2
MTLM Visual Studio 2010 ALM - day2
 
MTLM Visual Studio 2010 ALM workshop
MTLM Visual Studio 2010 ALM workshopMTLM Visual Studio 2010 ALM workshop
MTLM Visual Studio 2010 ALM workshop
 
Scrum with VS2010
Scrum with VS2010  Scrum with VS2010
Scrum with VS2010
 
Talk Through Sogeti ALM 4 Azure
Talk Through Sogeti ALM 4 AzureTalk Through Sogeti ALM 4 Azure
Talk Through Sogeti ALM 4 Azure
 
TMap for VS2010 - SlideShare.
TMap for VS2010 - SlideShare.TMap for VS2010 - SlideShare.
TMap for VS2010 - SlideShare.
 
Work agile with VS2010
Work agile with VS2010Work agile with VS2010
Work agile with VS2010
 

Último

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 

Último (20)

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 

Alm 4 Azure

  • 1. ALM 4 Azure Automated ALM for Azure Cloud Development 1
  • 3. Clemens Reijnen • Sogeti | Management Consultant www.ClemensReijnen.nl @ClemensReijnen Clemens.Reijnen@Sogeti.nl 3
  • 4. application lifecycle management 4 http://www.clemensreijnen.nl/post/2008/02/18/ALM-Definitions.aspx
  • 5. ALM - Agile | Lean Application Lifecycle Management Collaborate over Processes and Products with tools. Agile, Lean and also TMap, DyA, ITIL Methodologies, principles customized, adopted and merged from all ALM roles. optimized environments for supporting the ALM team goals 5
  • 6. work together __with work packages __on alm artifacts 6
  • 8. Guest OS Versioning identical – independent environments 8
  • 9. Development & Deployment SDK *.cspkg Config *.cscfg 9
  • 10. Start 10
  • 11. ALM 4 Azure Cloud System Goals: Collaborative High Quality Flexible Automated Repeatable Efficient 11
  • 12. Scenario 1: Dev only Scenario 2: Dev and Test Scenario 3: Dev, Test and Build, Deploy Scenario 4: Dev, Auto Tests and Build, Deploy Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test and Operations 12
  • 13. Scenario 1: Dev only Scenario 2: Dev and Test Scenario 3: Dev, Test and Build, Deploy Scenario 4: Dev, Auto Tests and Build, Deploy Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test and Operations 13
  • 14. Scenario 1: Developer only 1 Source Production Repository Staging C# 3 TEAM (implementatie + unittests) (TFS) Developers implementeren het systeem  Local unittesting ‘SprintReview’Build  Compile  Run Unit Tests 2 14
  • 15. Stages of Service Deployment Taken from:
  • 17. Scenario 1: Developer only Pro: Con: Easy installation and configuration No collaboration Single click deployment from VS2010 Easy deployment errors (configuration) What about test and ops 17
  • 18. Scenario 1: Dev only Scenario 2: Dev and Test Scenario 3: Dev, Test and Build, Deploy Scenario 4: Dev, Auto Tests and Build, Deploy Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test and Operations 18
  • 19. Scenario 2: Developer with manual tester Source Production Repository Staging C# 3 TEAM (implementatie + unittests) (TFS) 1 Developers implementeren het systeem  Local unittesting Testers specificeren testcases ‘SprintReview’Build 4  “Dry” run van tests tegen Development Fabric  Compile  Run Unit Tests 2 19
  • 20.
  • 22. Source Production Repository Staging TEAM (TFS) 3 1 4 2 1 2 4 Functional, system, Build Verification Platform accepatance manual tests executed Tests (unit tests) and tests executed on in compute emulator other quality gates, Azure stating with with MTM. executed in the build. MTM.
  • 23. 1 Get the CSX folder and CSFG file 2 3 4
  • 24. DEMO Test a Cloud Service with Microsoft Test Manager 24
  • 27. Capabilities • Link test cases to requirements • Fast Forward • Test data Iterations • Test case management • Test configurations Interesting capabilities 4 Azure • Shared steps ( 4 VISP Swap ) • Diagnostic adapters ( Rich bug reports ) Not working capabilities in Azure • Test Impact 4 manual tests • Intelli Trace 4 manual tests (although possible custom adapter) 27
  • 28. Scenario 2: Developer with manual tester Pro: Con: Easy installation and configuration Easy deployment errors (configuration) Single click deployment from VS2010 Time consuming (deploy and test) Testers connected, same heartbeat as dev Not repeatable (annoyed testers) Proven quality Testers connected  28
  • 29. Scenario 1: Dev only Scenario 2: Dev and Test Scenario 3: Dev, Test and Build, Deploy Scenario 4: Dev, Auto Tests and Build, Deploy Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test and Operations 29
  • 30. Scenario 3: Developer with manual tester and deployment build 3 Source Production Repository Staging C# TEAM (implementatie + unittests) (TFS) 1 Developers implementeren het systeem  Local unittesting Testers specificeren testcases ‘SprintReview’Build 4  Dry run van tests tegen Development Fabric  Compile  Run Unit Tests 2  Package (CSRun.exe, CSPack,exe, CSManage.exe)  Deploy 2 Staging (CMdLets, Powershell) 30
  • 31. Automatic Deployment Management API CSPack CSRun CSManage PowerShell CmdLets Build Targets http://scottdensmore.typepad.com/blog/2010/03/azure-deployment-for-your-build-server.html http://blogs.msdn.com/b/tomholl/archive/2011/02/23/using-msbuild-to-deploy-to-multiple-windows- azure-environments.aspx 31
  • 32. Deploy during build 1. Change .ccproj project • New build target which uses the built-in CorePublish target 2. Create PowerShell script • Called by build target and uses Azure CMDLets 3. Edit Build Config • Add the necessary parameters 4. Do something with certificates • Put the Azure certificate on the build server 32
  • 33. DEMO Deploy a Cloud Solution within the Build 33
  • 34. Scenario 3: Developer with manual tester and deployment build Pro: Con: Easy installation and configuration Time consuming testing No click deployment from build Application can contain ‘annoying’ bugs Repeatable ‘proven’ deployments* Build workflow knowledge necessary Testers connected, same heartbeat as dev Powershell, ccproj tweaks, target files, Proven quality certificates *demo needs some additional environment tweaks for different csfg files per environment 34
  • 35. Scenario 1: Dev only Scenario 2: Dev and Test Scenario 3: Dev, Test and Build, Deploy Scenario 4: Dev, Auto Tests and Build, Deploy Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test and Operations 35
  • 36. Scenario 4: Developer with automated regresion tests, manual tests and deployment build 3 Source Production Repository Staging C# TEAM (implementatie + unittests) (TFS) Test cases (automated UI tests) 1 Developers implementeren het systeem  Local unittesting 4 Testers specificeren testcases ‘SprintReview’Build  Dry run van tests tegen Development Fabric  Compile  Automation van testcases 5  Run Unit Tests (moeten gedraaide testcases zijn voor CodedUI) 2  UI automation tests run tegen Development Fabric  Package (CSRun.exe, CSPack,exe, CSManage.exe) en associëren met test plan  Deploy 2 Staging (CMdLets, Powershell) 36
  • 38. Where? When? How? Who? Why? What?
  • 39. Where? When? How? Who? Why? What?
  • 42. DEMO Create automatic Tests for the Cloud Application with CodedUI 42
  • 43. Where to run the auto test? a) At the Build server? b) In the Development environment? c) In the Test environment? d) In the Azure environment? 43
  • 44. Visual Studio Team Foundation Server Test Manager Build Server Test Agent Test Agent Test Agent 44
  • 45. Configurations for automated test execution: On physical environments (no lab) TFS 2010 VS 2010 Build Controller Build Agent MTM 2010 Test Controller Test Agent 45
  • 47. Configurations for automated test execution: A Flavor A: Execution from VS2010… Real developer test / test automation dry run (Triggered by: right mouse click – run tests, in test project) http://msdn.microsoft.com/en-us/library/dd286580.aspx No additional configuration needed* * Data Diagnostic Settings in the Local.Testsettings file are configurable. Pro: Con: Easy setup No collection of test results in TFS Debug-able test automation Run on developer environment 47
  • 48. Configurations for automated test execution: B Flavor B: Execution during build with Build controller… not recommended, strange to run UI tests on build Part of Build Verification Tests (triggered by: build) Set the Build Service to run in interactive mode http://blogs.msdn.com/b/mathew_aniyan/archive/2009/05/26/coded-ui-test-in-a-team-build.aspx Configure the build to run the tests http://msdn.microsoft.com/en-us/library/ms182465.aspx#CreateBuildType * Data Diagnostic Settings in the *.Testsettings file are configurable. Pro: Con: Easy setup No collection of test results in TFS Test results in build result Build Controller needs to run in interactive mode Tests are executed on build environment 48 Run on build environment
  • 49. Configurations for automated test execution: C Flavor C: Execution during build with Test controller… B Preferred configuration above flavor Part of Build Verification Tests on multiple test agents (triggered by: build) Configure Test Controller (don’t register it with a project collection ) http://msdn.microsoft.com/en-us/library/dd648127.aspx#TestControllers Configure Test Agents on clients (interactive mode) http://msdn.microsoft.com/en-us/library/dd648127.aspx#TestAgents Configure *.Testsettings file in solution to use Test Controller and Test Agents Configure the build to run the tests (see B) Pro: Con: Test run on test environments No collection of test results in TFS Tests run on multiple environments Harder to configure Test Results in Build result Need for specific test client environments 49 Test Settings from VS
  • 50. Configurations for automated test execution: D Flavor D: Execution from Microsoft Test Manager…than BVT Other type of test Part of Regression Tests (triggered by: MTM user, right mouse click on test case, run) Configure Test Controller (register it with a project collection ) Configure Test Agents on clients (interactive mode, can be the same as MTM) Configure Lab Center in MTM to use test controller and create test ‘agent’ environment. http://msdn.microsoft.com/en-us/library/ee390842.aspx http://msdn.microsoft.com/en-us/library/dd293551.aspx Associate CodedUI test with WI Test Case from VS. http://www.richard-banks.org/2010/11/how-to-use-codedui-tests-watin-and-mtm.html Pro: Con: Test run on test environments Manually triggered by Tester Tests run on multiple environments Hard to configure Test Result in MTM and TFS Need for specific test client (same as MTM?) 50 Test Settings from MTM
  • 51. Configurations for automated test execution: E Flavor E: Execution from MTM duringPreferred configuration above flavor C Build… Part of BVT Flavor D and E can be configured together (triggered by: Build) Configure Test Controller (register it with a project collection ) Configure Test Agents on clients (interactive mode, can be the same as MTM) Configure Lab Center in MTM to use test controller and create test ‘agent’ environment. Associate CodedUI test with WI Test Case from VS. Create Build task to run MTC or MSTEST task for Test Plan http://blogs.microsoft.co.il/blogs/shair/archive/2010/10/30/how-to-run-coded-ui-tests-from-command-line.aspx Pro: Con: Test run on test environments Hard to configure Tests run on multiple environments Need for specific test client (same as MTM?) Test Result in MTM and TFS Triggered by build 51
  • 52. DEMO Automatic test a Cloud Service with Microsoft Test and Lab Manager infrastructure 52
  • 53. Scenario 4: Developer with automated regresion tests, manual tests and deployment build Pro: Con: No click deployment from build Build workflow knowledge necessary Repeatable ‘proven’ deployments* Powershell, ccproj tweaks, target files, Testers connected, same heartbeat as dev Certificates Proven quality Test Infrastructure knowledge necessary Automated BVT on different Environments A balanced thinking of test automation Comfortable Acc Testing Done Done *demo needs some additional environment tweaks for different csfg files per environment 53
  • 54. Scenario 1: Dev only Scenario 2: Dev and Test Scenario 3: Dev, Test and Build, Deploy Scenario 4: Dev, Auto Tests and Build, Deploy Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test and Operations 54
  • 55. Automated ALM for Azure Cloud development Efficient, repeatable with proven quality fast flexible delivering of useful functionality … 4 Acceptation Making optimal use of the characteristics of Azure: - Identical environments (Guest OS versioning). - Separate in depended staging production environments. ‘Release ’Drop - Easy up and downgrade of applications.  Package (same as test env - Unambiguous deployment mechanism 3 package) - rich diagnostic capabilities  Acc testing met MTM en - Simplified Application Deployment & Management Diagnostic Data Collectors - … BUILD Production (TFS) Staging C# TEAM (implementation + unittests) Test cases (automated UI tests) Developers implement the system  Local unit testing Testers specify test cases ‘SprintReview’Build  Dry run tests cases against Development Fabric  Compile  Automation of test cases  Run Unit Tests 1  2 Package (CSRun.exe, CSPack,exe, CSManage.exe)  UI automation tests execute against Development  Deploy 2 Staging (CMdLets, Powershell) Fabric and associate with a test case  Run automated Test Suites (MTC.exe) with different environments (test controller – agents infrastructure) Operations determine instrumentation data  Collect and publish test results  DFO, SLA  “Build Verification Tests” green -> deployment 2 ‘test  Usages Metrics, payment 'production 55
  • 56. Scenario 1: Dev only Scenario 2: Dev and Test Scenario 3: Dev, Test and Build, Deploy Scenario 4: Dev, Auto Tests and Build, Deploy Scenario 5: Dev, Auto Tests, Build, Deploy, Acc test and Operations Scenario 6: TFS on Azure Scenario 7: Other Infrastructure on Azure 56
  • 57. 57