Automated UI Testing with
    Visual Studio 2010
        Andrew Woodward




 @AndrewWoody #spsuk #rwsbs
                     #vstest
@AndrewWoody #spsuk #rwsbs
@AndrewWoody #spsuk #rwsbs
@AndrewWoody #spsuk #rwsbs
@AndrewWoody #spsuk #rwsbs
Release




                      Test



  Development




@AndrewWoody #spsuk #rwsbs
@AndrewWoody #spsuk #rwsbs
Tests
Generalist                                            Specialist
Manual       Some         Strong       Strong         Expert
Testing      Scripting    Scripting    Coding         coding
                          Skills


UAT          Functional   Functional   Integration    Unit Tests
             Tests        Tests        Build
                                       Verification




   @AndrewWoody #spsuk #rwsbs
Testers
Generalist                                               Specialist
Manual       Some         Strong         Strong          Expert
Testing      Scripting    Scripting      Coding          coding
                          Skills


             - Create    Some            Creates fully
               Data      Coding skills   automated
             - Lab Setup                 testing




   @AndrewWoody #spsuk #rwsbs
Visual Studio 2010 Automated UI testing

DEMO

@AndrewWoody #spsuk #rwsbs
Visual Studio 2010
• Coded UI Tests
  – Recording
  – Assertions
  – Microsoft Test framework
• Ordered Tests
  – Build Verification



 @AndrewWoody #spsuk #rwsbs
Best Practices
•   Start from know location
•   Close any browsers
•   Avoid GUIDs in search criteria
•   Use URLs to navigate
•   Drag & Drop use position
    – style changes can break



    @AndrewWoody #spsuk #rwsbs
Playback Support
Platform               RTM   RTM+ Notes
IE 7/8
Firefox 3.5                         Currently in beta
SharePoint                          The most important thing 
2007/2010
Silverlight                         On the road map
Chrome, Opera,                      Partner Opportunity
Safari
IE 6                                SharePoint doesn’t anyway 




                  *Recording only available in IE
       @AndrewWoody #spsuk #rwsbs
                  7/8
@AndrewWoody #spsuk #rwsbs
VS2010 Editions




@AndrewWoody #spsuk #rwsbs
VS2010 Editions




@AndrewWoody #spsuk #rwsbs
Microsoft Peeps
• Brian Keller
  – http://blogs.msdn.com/briankel/
• Martin Woodward
  – http://www.woodwardweb.com/




  @AndrewWoody #spsuk #rwsbs
Best Practices
• Make testing a core activity
• Use automation
• Start today




 @AndrewWoody #spsuk #rwsbs
@AndrewWoody #spsuk #rwsbs
Closing Slide

      Please be sure to fill out your
           session evaluation!



@AndrewWoody #spsuk #rwsbs
                    #vstest

SPSUK Automated UI Testing

Editor's Notes

  • #7 Drawing here – next slide shows the details of whats drawn here
  • #9 Drawing here – next two slides show whats drawn.
  • #20 Well tested solutions give confidence