SlideShare a Scribd company logo
1 of 152
Download to read offline
Technical Meeting
Automated Testing with
       VS2010
Suite of Application Lifecycle Management tools



http://msdn.microsoft.com/en-us/library/fda2bad5.aspx
application lifecycle management
http://www.clemensreijnen.nl/post/2008/02/18/ALM-Definitions.aspx
work together
__with work packages
__on alm artifacts
Testing Lifecycle




See also on www.tmap.net:
- The Test Lifecycle Model
- The 4 essentials
http://msdn.microsoft.com/en-us/library/bb385832.aspx
Microsoft Test Manager 2010
Test Case Management




See also on www.tmap.net: Control Phase
Test Plans
    Test Suites
    Test Configurations
Organize the testing effort in a Test Execution Plan
Create dynamic test suites for changing selection criteria
Define various test configurations and share automation across those
Test (Execution) Plans
Test (Execution) Plans
Test Plan Organization
Naming of test plans for agile environments:
Iteration number and name and one extra test plan for end
to end tests.
Test Configurations
Test Configurations
Test Suites
Test Suites Organization
Naming of test suites for agile environments:
Suite per user story (requirement based) and one additional
test suite for regression tests.(query based?)

(test cases are copied to the regression test suite)
Proposed organization
TCM.exe
TCM plan /list
TCM suites /lists planid:16
Share MTM Artifacts




mtm://clemenes-pc:8080/tfs/defaultcollection/p:MSF/Testing/testplan/connect?id=19
mtm://<server name>:<port>/<tfs vdir>/<Collection name>/p:<project name>/<center
 group>/<group specific>
               Open Test results
               Open Test Cases (or any work item)
               Open Test Runs
               Open Test Plans
               Connect to test plans
               mtm://server:8080/tfs/ProjectCollection/p:Project/testing/testcase/open?id=67




http://blogs.msdn.com/b/vstsqualitytools/archive/2010/02/09/sharing-content-in-microsoft-
test-manager.aspx
Test Case Specification




See also on www.tmap.net: Specification Phase
Test Case
    Shared Steps
    Test Data Iterations
Link test cases and requirements to provide requirement traceability
Data drive test cases with different parameters
Refactor common shared steps in test cases
Test Case
Test step types
Test steps
   Make them descriptive
   Not every step is a validation step
   Use the step attachment
Test steps copy-past
Test Data Iterations
Data drive test cases with different parameters
Test Data Iterations
Test data copy-past
Shared Steps
Refactor common shared steps in test cases
Reduce test maintenance by sharing test steps across test cases
Shared Steps
     Shared Step candidates?




• REUSE – Many steps, reused for many test cases . Benefit: time, retyping, boring work.
• EXPECTED CHANGES – for example environment variables change [URL]. Benefit: Time, test cases
   which need this step are updated automatically, also action recording.

• PRE- CONDITIONS – bring the system under test to a certain state and execute the different
   verifications. Benefit: beside time, you are certain the application under test is in the same state for every test case

• BACK TO INITIAL STATE - after test execution bring the environment back to the initial state for
   new test cases. Benefit: beside time, you are certain the application under test is always in a clean state for new test
   cases.
Test Execution
Test Runner

A test that you will want to run multiple times.
Different manual tests that contain common steps.
Verifying a bug is fixed by using a manual test.
Test Case Execution




See also on www.tmap.net: Execution Phase
Test Case Execution
Action recording
TCM
 run
/create
From TCM
run /export id:239 /resultsfile:”c:runresult”
Share with mtm://

 mtm://clemens-pc:8080/tfs/defaultcollection/p:MSF/Testing/testrun/open?id=292
Controlling the testing effort
BUG’s
File a BUG
Diagnostic Data Adapters
File a Bug
File an Exploratory Bug
Verify a Bug
Diagnostic Data Adapters
File a Bug
Submit a Bug using Test Runner
Ways to file a Bug

   Submit a Bug from the Test Runner
   Submit a Bug from the Verify Bugs View
   Submit a Bug from Test Results for a Test
Verify a Bug
Verify a Bug Fix Using Microsoft Test Manager
The Bug Flow
Link build 2 test
plan.                T   Execute   File Bug    Verify fix   Close or
Configure Data       E   Manual                by using     reopen
collectors.          S   Tests                 playback     Bug
                     T


         Build
     definition is
          the
     intergration

Setup build and
deploy               D               Resolve   Checkin
                     E               Bug       Build
                     V                         Deploy
Test Impact
Test Impact
Assign build 2
test plan.           T   Execute            Assign        Evaluated and reset
                          Execute
                           Execute
Configure Data       E   ‘passed’           ‘NEW’ build   tests impacted by
                          ‘passed’
                           ‘passed’
collectors.          S   Tests              2 Test Plan   code churn
                          Tests
                           Tests
                     T


         Build
     definition is
          the
     intergration

Setup build and
deploy               D            Make      Checkin
                     E            code      Build
                     V            changes   Deploy
Create test from Bug
File an Exploratory Bug
Submit an Exploratory Bug using Test Runner
PRO:
                                                 -   Reuse scenario knowledge business user
                                                 -   No typing detailed test steps
                                                 -   Easy to parameterize
1     Record scenario by business user with      -   Writing standards for test steps
    MTM on application under test. Action        -   MTM capabilities in step 3. (bug, codedUI,
                                                     recommended test etc …)
    recording is captured.                       Most benefit during step 2 (test case writing),
                                                 benefit in step 1: run once in common situation.
                                                 Benefit in step 3: common MTM benefits (record
                                                 playback, fast forward, parameters etc) and
                                                 benefit of well written steps.



2    Create test steps (with parameters) in
    MTM by using the action recording.
                                                 CON:
                                                 - Manual actions and tests.
                                                 - Test steps text are technical names
                                                 - Action recording (step 1) must be clean.
                                                 - Unknown what is validated, during step 2, need
                                                   additional knowledge.
                                                 - The business user must think of the important
                                                   scenarios
3    Save test case and execute it by a tester
                                                 The action recording during step 1 can have
    on application under test, by using MTM.     unnecessary steps, these can be removed during the
                                                 execution (1) or during the specification (2).
RECAP
Test Activities Planning…
Test Case Management
                     RECAP
RECAP
Test Case Specification
RECAP
Test Case Execution
Test Case Management
                     RECAP
Intellitrace
F5
1
Open the employee application
Set the intellitrace options
Set a breakpoint at …
2
When on the breakpoint, save the trace file on your desktop
3
Close Visual Studio and double click the intellitrace file
4
In the intellitrace summary, open the main threat …
5   … and search for
    The values that where entered
    during the previous run.
6
And now from Microsoft Test Manager
6
Set the diagnostic adapter
7
Configure the build… it needs a drop location for the symbols (pdb files)
8
Run the test case and see it crash… file a bug.
9
See the itrace file in the bug report...
10

Close MTM, open VS (with or without the employee application).
Got to the bug and click the itrace file…

See the exception and
start debugging…
11

Go back in time
11

Go back in time … and find the entered values
Regression Test Candidates




See also on www.tmap.net: Completion Phase
Test Automation
met Visual Studio 2010

                          Test automation
       Where? When? How? Who? Why? What?
Where? When? How? Who? Why? What?
Where?   When? How? Who? Why? What?
Where? When? How? Who? Why? What?
VS2010 Test Tools
UI Test Automation Capabilities

                        Fast Forward
                             CodedUI
                  Test Infrastructure
Test Automation Investment Levels
 0   No investment in any kind of automation. Just click and test.



 1   Clean up of the Action log maybe re-execute, for more smooth Fast Forward.



 2   Basic CodedUI. Only use the default generation, add your own assertion.



 3   Advanced CodedUI. Customize the CodedUI and UIMap for optimization.
1   Clean up of the Action
2   Basic CodedUI




             VS2010 ALM MTLM usages patterns for
             Windows Azure hosted application
             development
3   Advanced CodedUI
Fast Forward
Cleaning the action recording
When: executing the same test case on
multiple environments or when using test data
iteration or … and don’t forget the shared
steps
CodedUI
CodedUI
from existing action recording from Manual Tester
CodedUI
from existing action recording from Manual Tester
CodedUI
from existing action recording from Manual Tester




                                                    2




                                                        1




                                                    4


                                                            3
CodedUI
Create a new action recording by Developer
UIMap
UIMap
Data-Driven
Coded UI Test
Test Infrastructure



Where and how to run the automated test?
Test Environments
See also on www.TMap.net:
- Checklist "Intake Test Environment“
- Checklist "Test Environment“
- Infrastructure Phase
Test lab
Visual Studio 2010 Lab Management
Where and how to run the automated test?
physical test environments
virtualized test environments
physical test                 virtualized test
environments                  environments
  MTLM Client                   MTLM Client


                Physical
                Test Client      TFS 2010     System Center Virtual
   TFS 2010
                                              Machine Manager
                                              (SCVMM)

                                              Hyper-V         Library
                Physical                      Host            Shares
                Test Client                     VM
                                                VM
                                                                share

                                                                share
Build
            application
                                        physical test environments
                                        versus
                                        virtualized test environments

                           Provision
Run tests
                          ‘clean’ env




              Deploy
            application
Lab for Physical
Environments, the
different flavors…
Visual Studio   Team
                Foundation
                Server




Test Manager
                             Build Server   Test Agent
                                                 Test Agent
                                                     Test Agent
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
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
                                                     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
                                                  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?)
                        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 TCM 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
Test Controller
Test Agent
New physical environment
Execute CodedUI
During the build with Visual Studio 2010
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
                                                  Test Settings from VS
1
Configure Test Controller.
2
Add new Test Settings file
Set remote execution and
test controller.
3
Create a new build definition
Set the Automated Test Properties
4
Queue a new Build

Watch the Test Agent and
Test Environment
Execute CodedUI
Within a test case as an associated automation manualy
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?)
                        Test Settings from MTM
1
Configure Test Controller.
2
Associate the CodedUI
with a Test Case.
2
Create Test Environment
3
Set test Settings
4
Associate the CodedUI
with a Test Case.
5
Run Automated Tests from Test Manager
Execute CodedUI
Within a test case as an associated automation from the build
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
                        Test Settings from MTM
Execute automated test cases on
different environments
0
Same steps as previous.
1
Configure additional environments in Test Plan properties.
                              Win 7 IE9 configuration
                                 Win 7 IE8 configuration


           TC   MTLM Client
                                                           Win 7 IE8 configuration
                                        Physical
                                        Test Client
                 TFS 2010



                                                           Win 7 IE9 configuration
                                        Physical
                                        Test Client
1
Get Test Plan ID
Get Test Suite
Get Test Configurations
  with TCM.exe
2
Create command line for Test Run for the different Test Configurations

    "run /create /title:""Run on Host for specific Test Point"" /planid:16
    /querytext:""SELECT * FROM TestPoint WHERE ConfigurationId=13""
    /settingsname:""Automated Test on Windows 7 Environment IE9""
    /testenvironment:""Win 7 IE9"" /collection:http://clemenes-
    pc:8080/tfs/defaultcollection /teamproject:EmployeeApplication"



    "run /create /title:""Run on test env for specific Test Point"" /planid:16
    /querytext:""SELECT * FROM TestPoint WHERE ConfigurationId=12""
    /settingsname:""Automated Test on Windows 7 Environment IE8""
    /testenvironment:""Win 7 IE8"" /collection:http://clemenes-
    pc:8080/tfs/defaultcollection /teamproject:EmployeeApplication"
3
Add build commands
6
Queue a new Build

Watch the Test Agent and
Test Environment
Build
            application




                           Provision
Run tests
                          ‘clean’ env




              Deploy
            application
VS2010 Lab Management
• Reproduce the exact conditions of a bug or other development
  issue.

• Build, deploy, and test applications automatically in a clean
  environment.

• Reduce the time required to create and configure machines for
  testing an application.

• Run multiple copies of a test or development at the same time.

• Enable members of a team to create and manage virtual
  environments without requiring system administrator privileges.
MTLM Client




TFS 2010                 System Center Virtual Machine
                         Manager (SCVMM)




                         Hyper-V             Library
                         Host                Shares

                           VM                  share

                           VM                  share
VM
Lab Agent
TFS 2010
staat voor resultaat

More Related Content

What's hot

Unit testing with visual studio 2012
Unit testing with visual studio 2012Unit testing with visual studio 2012
Unit testing with visual studio 2012Abhimanyu Singhal
 
QA with Microsoft Test Manager and Lab Management
QA with Microsoft Test Manager and Lab ManagementQA with Microsoft Test Manager and Lab Management
QA with Microsoft Test Manager and Lab ManagementRofiqi Setiawan
 
MTM Test Management System
MTM Test Management SystemMTM Test Management System
MTM Test Management SystemMinu Mishra
 
Coded ui - lesson 9 - test windows
Coded ui - lesson 9 - test windowsCoded ui - lesson 9 - test windows
Coded ui - lesson 9 - test windowsOmer Karpas
 
Intro to Microsoft Test Manager
Intro to Microsoft Test ManagerIntro to Microsoft Test Manager
Intro to Microsoft Test ManagerEsteban Garcia
 
OPASS - Microsoft Test Manager
OPASS - Microsoft Test ManagerOPASS - Microsoft Test Manager
OPASS - Microsoft Test ManagerEsteban Garcia
 
Automation testing by Durgasoft in Hyderabad
Automation testing by Durgasoft in HyderabadAutomation testing by Durgasoft in Hyderabad
Automation testing by Durgasoft in HyderabadDurga Prasad
 
Automation testing material by Durgasoft,hyderabad
Automation testing material by Durgasoft,hyderabadAutomation testing material by Durgasoft,hyderabad
Automation testing material by Durgasoft,hyderabadDurga Prasad
 
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
 
SE2018_Lec 20_ Test-Driven Development (TDD)
SE2018_Lec 20_ Test-Driven Development (TDD)SE2018_Lec 20_ Test-Driven Development (TDD)
SE2018_Lec 20_ Test-Driven Development (TDD)Amr E. Mohamed
 
Visual Studio 2010 Testing Overview
Visual Studio 2010 Testing OverviewVisual Studio 2010 Testing Overview
Visual Studio 2010 Testing OverviewSteve Lange
 
Model-Based Testing: Theory and Practice. Keynote @ MoTiP (ISSRE) 2012.
Model-Based Testing: Theory and Practice. Keynote @ MoTiP (ISSRE) 2012.Model-Based Testing: Theory and Practice. Keynote @ MoTiP (ISSRE) 2012.
Model-Based Testing: Theory and Practice. Keynote @ MoTiP (ISSRE) 2012.Wolfgang Grieskamp
 
STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...Anna Russo
 
Tutorial ranorex
Tutorial ranorexTutorial ranorex
Tutorial ranorexradikalzen
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterVijayChowthri Nagaprakasham
 
Testing tools in visual studio
Testing tools in visual studioTesting tools in visual studio
Testing tools in visual studioMahdi Esmailoghli
 

What's hot (20)

Unit testing with visual studio 2012
Unit testing with visual studio 2012Unit testing with visual studio 2012
Unit testing with visual studio 2012
 
QA with Microsoft Test Manager and Lab Management
QA with Microsoft Test Manager and Lab ManagementQA with Microsoft Test Manager and Lab Management
QA with Microsoft Test Manager and Lab Management
 
MTM Test Management System
MTM Test Management SystemMTM Test Management System
MTM Test Management System
 
Coded ui - lesson 9 - test windows
Coded ui - lesson 9 - test windowsCoded ui - lesson 9 - test windows
Coded ui - lesson 9 - test windows
 
Intro to Microsoft Test Manager
Intro to Microsoft Test ManagerIntro to Microsoft Test Manager
Intro to Microsoft Test Manager
 
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: How to create cross ...
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: How to create cross ...Deep Dive Modern Apps Lifecycle with Visual Studio 2012: How to create cross ...
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: How to create cross ...
 
OPASS - Microsoft Test Manager
OPASS - Microsoft Test ManagerOPASS - Microsoft Test Manager
OPASS - Microsoft Test Manager
 
Automation testing by Durgasoft in Hyderabad
Automation testing by Durgasoft in HyderabadAutomation testing by Durgasoft in Hyderabad
Automation testing by Durgasoft in Hyderabad
 
Automation testing material by Durgasoft,hyderabad
Automation testing material by Durgasoft,hyderabadAutomation testing material by Durgasoft,hyderabad
Automation testing material by Durgasoft,hyderabad
 
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
 
SE2018_Lec 20_ Test-Driven Development (TDD)
SE2018_Lec 20_ Test-Driven Development (TDD)SE2018_Lec 20_ Test-Driven Development (TDD)
SE2018_Lec 20_ Test-Driven Development (TDD)
 
Testing in TFS
Testing in TFSTesting in TFS
Testing in TFS
 
Visual Studio 2010 Testing Overview
Visual Studio 2010 Testing OverviewVisual Studio 2010 Testing Overview
Visual Studio 2010 Testing Overview
 
Model-Based Testing: Theory and Practice. Keynote @ MoTiP (ISSRE) 2012.
Model-Based Testing: Theory and Practice. Keynote @ MoTiP (ISSRE) 2012.Model-Based Testing: Theory and Practice. Keynote @ MoTiP (ISSRE) 2012.
Model-Based Testing: Theory and Practice. Keynote @ MoTiP (ISSRE) 2012.
 
STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
 
Automated Testing
Automated TestingAutomated Testing
Automated Testing
 
Tutorial ranorex
Tutorial ranorexTutorial ranorex
Tutorial ranorex
 
Testing Tools
Testing ToolsTesting Tools
Testing Tools
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional Tester
 
Testing tools in visual studio
Testing tools in visual studioTesting tools in visual studio
Testing tools in visual studio
 

Similar to VS2010 ALM Tools Meeting: Test Automation

Alm 4 Azure with screenshots
Alm 4 Azure with screenshotsAlm 4 Azure with screenshots
Alm 4 Azure with screenshotsClemens 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
 
Mastering Distributed Performance Testing
Mastering Distributed Performance TestingMastering Distributed Performance Testing
Mastering Distributed Performance TestingKnoldus Inc.
 
JUnit with_mocking
JUnit with_mockingJUnit with_mocking
JUnit with_mockingZeeshan Khan
 
2V_presentation
2V_presentation2V_presentation
2V_presentationnrvikhyath
 
2 v presentation_new
2 v presentation_new2 v presentation_new
2 v presentation_newnrvikhyath
 
Test driven development in .Net - 2010 + Eclipse
Test driven development in .Net - 2010 + EclipseTest driven development in .Net - 2010 + Eclipse
Test driven development in .Net - 2010 + EclipseUTC Fire & Security
 
Containerize your Blackbox tests
Containerize your Blackbox testsContainerize your Blackbox tests
Containerize your Blackbox testsKevin Beeman
 
Qtp92 Presentation
Qtp92 PresentationQtp92 Presentation
Qtp92 Presentationa34sharm
 
SOFTWARE VERIFICATION & VALIDATION
SOFTWARE VERIFICATION & VALIDATIONSOFTWARE VERIFICATION & VALIDATION
SOFTWARE VERIFICATION & VALIDATIONAmin Bandeali
 
Software testing ari force institute of tech.
Software testing ari force institute of tech.Software testing ari force institute of tech.
Software testing ari force institute of tech.Sanjith Ml
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basicsmehramit
 
Test planning.ppt
Test planning.pptTest planning.ppt
Test planning.pptUmmERayyan2
 
Planning & building scalable test infrastructure
Planning  & building scalable test infrastructurePlanning  & building scalable test infrastructure
Planning & building scalable test infrastructureVijayan Reddy
 
Mercury Testdirector8.0 using Slides
Mercury Testdirector8.0 using SlidesMercury Testdirector8.0 using Slides
Mercury Testdirector8.0 using Slidestelab
 

Similar to VS2010 ALM Tools Meeting: Test Automation (20)

Alm 4 Azure with screenshots
Alm 4 Azure with screenshotsAlm 4 Azure with screenshots
Alm 4 Azure with screenshots
 
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
 
Mastering Distributed Performance Testing
Mastering Distributed Performance TestingMastering Distributed Performance Testing
Mastering Distributed Performance Testing
 
JUnit with_mocking
JUnit with_mockingJUnit with_mocking
JUnit with_mocking
 
2V_presentation
2V_presentation2V_presentation
2V_presentation
 
2 v presentation_new
2 v presentation_new2 v presentation_new
2 v presentation_new
 
Review of an open source unit test tool- Cucumber_Presentation
Review of an open source unit test tool- Cucumber_PresentationReview of an open source unit test tool- Cucumber_Presentation
Review of an open source unit test tool- Cucumber_Presentation
 
Alm 4 Azure
Alm 4 AzureAlm 4 Azure
Alm 4 Azure
 
Test driven development in .Net - 2010 + Eclipse
Test driven development in .Net - 2010 + EclipseTest driven development in .Net - 2010 + Eclipse
Test driven development in .Net - 2010 + Eclipse
 
Containerize your Blackbox tests
Containerize your Blackbox testsContainerize your Blackbox tests
Containerize your Blackbox tests
 
Test Automation and Keyword-driven testing af Brian Nielsen, CISS/AAU
Test Automation and Keyword-driven testing af Brian Nielsen, CISS/AAUTest Automation and Keyword-driven testing af Brian Nielsen, CISS/AAU
Test Automation and Keyword-driven testing af Brian Nielsen, CISS/AAU
 
Qtp92 Presentation
Qtp92 PresentationQtp92 Presentation
Qtp92 Presentation
 
SOFTWARE VERIFICATION & VALIDATION
SOFTWARE VERIFICATION & VALIDATIONSOFTWARE VERIFICATION & VALIDATION
SOFTWARE VERIFICATION & VALIDATION
 
Software testing ari force institute of tech.
Software testing ari force institute of tech.Software testing ari force institute of tech.
Software testing ari force institute of tech.
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
 
Testing
Testing Testing
Testing
 
Test planning.ppt
Test planning.pptTest planning.ppt
Test planning.ppt
 
Planning & building scalable test infrastructure
Planning  & building scalable test infrastructurePlanning  & building scalable test infrastructure
Planning & building scalable test infrastructure
 
Mercury Testdirector8.0 using Slides
Mercury Testdirector8.0 using SlidesMercury Testdirector8.0 using Slides
Mercury Testdirector8.0 using Slides
 
Unit Testing
Unit TestingUnit Testing
Unit Testing
 

More from 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
 
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
 

More from 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
 
05 test infrastructure
05   test infrastructure05   test infrastructure
05 test infrastructure
 
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
 
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
 

Recently uploaded

SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 

Recently uploaded (20)

SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 

VS2010 ALM Tools Meeting: Test Automation

  • 2. Suite of Application Lifecycle Management tools http://msdn.microsoft.com/en-us/library/fda2bad5.aspx
  • 4. work together __with work packages __on alm artifacts
  • 5. Testing Lifecycle See also on www.tmap.net: - The Test Lifecycle Model - The 4 essentials
  • 8. Test Case Management See also on www.tmap.net: Control Phase
  • 9. Test Plans Test Suites Test Configurations Organize the testing effort in a Test Execution Plan Create dynamic test suites for changing selection criteria Define various test configurations and share automation across those
  • 12. Test Plan Organization Naming of test plans for agile environments: Iteration number and name and one extra test plan for end to end tests.
  • 16. Test Suites Organization Naming of test suites for agile environments: Suite per user story (requirement based) and one additional test suite for regression tests.(query based?) (test cases are copied to the regression test suite)
  • 20. TCM suites /lists planid:16
  • 22. mtm://<server name>:<port>/<tfs vdir>/<Collection name>/p:<project name>/<center group>/<group specific> Open Test results Open Test Cases (or any work item) Open Test Runs Open Test Plans Connect to test plans mtm://server:8080/tfs/ProjectCollection/p:Project/testing/testcase/open?id=67 http://blogs.msdn.com/b/vstsqualitytools/archive/2010/02/09/sharing-content-in-microsoft- test-manager.aspx
  • 23. Test Case Specification See also on www.tmap.net: Specification Phase
  • 24. Test Case Shared Steps Test Data Iterations Link test cases and requirements to provide requirement traceability Data drive test cases with different parameters Refactor common shared steps in test cases
  • 27. Test steps Make them descriptive Not every step is a validation step Use the step attachment
  • 29. Test Data Iterations Data drive test cases with different parameters
  • 32. Shared Steps Refactor common shared steps in test cases Reduce test maintenance by sharing test steps across test cases
  • 33. Shared Steps Shared Step candidates? • REUSE – Many steps, reused for many test cases . Benefit: time, retyping, boring work. • EXPECTED CHANGES – for example environment variables change [URL]. Benefit: Time, test cases which need this step are updated automatically, also action recording. • PRE- CONDITIONS – bring the system under test to a certain state and execute the different verifications. Benefit: beside time, you are certain the application under test is in the same state for every test case • BACK TO INITIAL STATE - after test execution bring the environment back to the initial state for new test cases. Benefit: beside time, you are certain the application under test is always in a clean state for new test cases.
  • 34. Test Execution Test Runner A test that you will want to run multiple times. Different manual tests that contain common steps. Verifying a bug is fixed by using a manual test.
  • 35. Test Case Execution See also on www.tmap.net: Execution Phase
  • 36.
  • 38.
  • 41. From TCM run /export id:239 /resultsfile:”c:runresult”
  • 42. Share with mtm:// mtm://clemens-pc:8080/tfs/defaultcollection/p:MSF/Testing/testrun/open?id=292
  • 43. Controlling the testing effort BUG’s
  • 45. Diagnostic Data Adapters File a Bug File an Exploratory Bug Verify a Bug
  • 47. File a Bug Submit a Bug using Test Runner
  • 48. Ways to file a Bug Submit a Bug from the Test Runner Submit a Bug from the Verify Bugs View Submit a Bug from Test Results for a Test
  • 49. Verify a Bug Verify a Bug Fix Using Microsoft Test Manager
  • 50. The Bug Flow Link build 2 test plan. T Execute File Bug Verify fix Close or Configure Data E Manual by using reopen collectors. S Tests playback Bug T Build definition is the intergration Setup build and deploy D Resolve Checkin E Bug Build V Deploy
  • 52. Test Impact Assign build 2 test plan. T Execute Assign Evaluated and reset Execute Execute Configure Data E ‘passed’ ‘NEW’ build tests impacted by ‘passed’ ‘passed’ collectors. S Tests 2 Test Plan code churn Tests Tests T Build definition is the intergration Setup build and deploy D Make Checkin E code Build V changes Deploy
  • 54.
  • 55. File an Exploratory Bug Submit an Exploratory Bug using Test Runner
  • 56. PRO: - Reuse scenario knowledge business user - No typing detailed test steps - Easy to parameterize 1 Record scenario by business user with - Writing standards for test steps MTM on application under test. Action - MTM capabilities in step 3. (bug, codedUI, recommended test etc …) recording is captured. Most benefit during step 2 (test case writing), benefit in step 1: run once in common situation. Benefit in step 3: common MTM benefits (record playback, fast forward, parameters etc) and benefit of well written steps. 2 Create test steps (with parameters) in MTM by using the action recording. CON: - Manual actions and tests. - Test steps text are technical names - Action recording (step 1) must be clean. - Unknown what is validated, during step 2, need additional knowledge. - The business user must think of the important scenarios 3 Save test case and execute it by a tester The action recording during step 1 can have on application under test, by using MTM. unnecessary steps, these can be removed during the execution (1) or during the specification (2).
  • 63. F5
  • 64. 1 Open the employee application Set the intellitrace options Set a breakpoint at …
  • 65. 2 When on the breakpoint, save the trace file on your desktop
  • 66. 3 Close Visual Studio and double click the intellitrace file
  • 67. 4 In the intellitrace summary, open the main threat …
  • 68. 5 … and search for The values that where entered during the previous run.
  • 69. 6 And now from Microsoft Test Manager
  • 71. 7 Configure the build… it needs a drop location for the symbols (pdb files)
  • 72. 8 Run the test case and see it crash… file a bug.
  • 73. 9 See the itrace file in the bug report...
  • 74. 10 Close MTM, open VS (with or without the employee application). Got to the bug and click the itrace file… See the exception and start debugging…
  • 76. 11 Go back in time … and find the entered values
  • 77. Regression Test Candidates See also on www.tmap.net: Completion Phase
  • 78. Test Automation met Visual Studio 2010 Test automation Where? When? How? Who? Why? What?
  • 79.
  • 80.
  • 81. Where? When? How? Who? Why? What?
  • 82. Where? When? How? Who? Why? What?
  • 83. Where? When? How? Who? Why? What?
  • 84. VS2010 Test Tools UI Test Automation Capabilities Fast Forward CodedUI Test Infrastructure
  • 85. Test Automation Investment Levels 0 No investment in any kind of automation. Just click and test. 1 Clean up of the Action log maybe re-execute, for more smooth Fast Forward. 2 Basic CodedUI. Only use the default generation, add your own assertion. 3 Advanced CodedUI. Customize the CodedUI and UIMap for optimization.
  • 86. 1 Clean up of the Action
  • 87. 2 Basic CodedUI VS2010 ALM MTLM usages patterns for Windows Azure hosted application development
  • 88. 3 Advanced CodedUI
  • 90. Cleaning the action recording When: executing the same test case on multiple environments or when using test data iteration or … and don’t forget the shared steps
  • 92. CodedUI from existing action recording from Manual Tester
  • 93. CodedUI from existing action recording from Manual Tester
  • 94. CodedUI from existing action recording from Manual Tester 2 1 4 3
  • 95. CodedUI Create a new action recording by Developer
  • 96. UIMap
  • 97. UIMap
  • 98.
  • 100. Test Infrastructure Where and how to run the automated test?
  • 101. Test Environments See also on www.TMap.net: - Checklist "Intake Test Environment“ - Checklist "Test Environment“ - Infrastructure Phase
  • 102. Test lab Visual Studio 2010 Lab Management
  • 103. Where and how to run the automated test? physical test environments virtualized test environments
  • 104. physical test virtualized test environments environments MTLM Client MTLM Client Physical Test Client TFS 2010 System Center Virtual TFS 2010 Machine Manager (SCVMM) Hyper-V Library Physical Host Shares Test Client VM VM share share
  • 105. Build application physical test environments versus virtualized test environments Provision Run tests ‘clean’ env Deploy application
  • 106. Lab for Physical Environments, the different flavors… Visual Studio Team Foundation Server Test Manager Build Server Test Agent Test Agent Test Agent
  • 107. 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
  • 108. 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 Run on build environment
  • 109. 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 Test Settings from VS
  • 110. 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?) Test Settings from MTM
  • 111. 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 TCM 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
  • 115.
  • 116.
  • 117.
  • 118.
  • 119.
  • 120. Execute CodedUI During the build with Visual Studio 2010
  • 121. 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 Test Settings from VS
  • 123. 2 Add new Test Settings file Set remote execution and test controller.
  • 124. 3 Create a new build definition Set the Automated Test Properties
  • 125. 4 Queue a new Build Watch the Test Agent and Test Environment
  • 126. Execute CodedUI Within a test case as an associated automation manualy
  • 127. 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?) Test Settings from MTM
  • 133. 5 Run Automated Tests from Test Manager
  • 134. Execute CodedUI Within a test case as an associated automation from the build
  • 135. 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 Test Settings from MTM
  • 136. Execute automated test cases on different environments
  • 137. 0 Same steps as previous.
  • 138. 1 Configure additional environments in Test Plan properties. Win 7 IE9 configuration Win 7 IE8 configuration TC MTLM Client Win 7 IE8 configuration Physical Test Client TFS 2010 Win 7 IE9 configuration Physical Test Client
  • 139. 1 Get Test Plan ID Get Test Suite Get Test Configurations with TCM.exe
  • 140. 2 Create command line for Test Run for the different Test Configurations "run /create /title:""Run on Host for specific Test Point"" /planid:16 /querytext:""SELECT * FROM TestPoint WHERE ConfigurationId=13"" /settingsname:""Automated Test on Windows 7 Environment IE9"" /testenvironment:""Win 7 IE9"" /collection:http://clemenes- pc:8080/tfs/defaultcollection /teamproject:EmployeeApplication" "run /create /title:""Run on test env for specific Test Point"" /planid:16 /querytext:""SELECT * FROM TestPoint WHERE ConfigurationId=12"" /settingsname:""Automated Test on Windows 7 Environment IE8"" /testenvironment:""Win 7 IE8"" /collection:http://clemenes- pc:8080/tfs/defaultcollection /teamproject:EmployeeApplication"
  • 142. 6 Queue a new Build Watch the Test Agent and Test Environment
  • 143. Build application Provision Run tests ‘clean’ env Deploy application
  • 144. VS2010 Lab Management • Reproduce the exact conditions of a bug or other development issue. • Build, deploy, and test applications automatically in a clean environment. • Reduce the time required to create and configure machines for testing an application. • Run multiple copies of a test or development at the same time. • Enable members of a team to create and manage virtual environments without requiring system administrator privileges.
  • 145. MTLM Client TFS 2010 System Center Virtual Machine Manager (SCVMM) Hyper-V Library Host Shares VM share VM share
  • 148.
  • 149.
  • 150.
  • 151.