30
Testing SharePoint Solutions Overview Ervin Loh Visual Studio ALM MVP K365Labs Sdn Bhd Light Up SharePoint

Testing SharePoint solutions overview

  • Upload
    spiffy

  • View
    3.462

  • Download
    2

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Testing SharePoint solutions overview

Testing SharePoint SolutionsOverviewErvin LohVisual Studio ALM MVPK365Labs Sdn Bhd

Light Up SharePoint

Page 2: Testing SharePoint solutions overview

Presenter

Ervin LohProfile

Ervin Loh is currently the Application Lifecycle Management Program Manager at K365Labs Sdn Bhd. He works on a variety of Application Lifecycle Management, Software Configuration Management, and Lab Management products. He is also active in the IT community space by contributing contents to Microsoft Malaysia's START.NET and Ultimate program workshops and talks in conferences, events and user groups.

Page 3: Testing SharePoint solutions overview

ASP.NET Developers, SharePoint Developers

Target Audience

Page 4: Testing SharePoint solutions overview

Is this how you kill bugs?

Page 5: Testing SharePoint solutions overview
Page 6: Testing SharePoint solutions overview
Page 7: Testing SharePoint solutions overview
Page 8: Testing SharePoint solutions overview

An Unfortunately Common Scenario

− Developer writes code− Developer makes sure the code compiles− Developer checks in code− Repeat x15 developers for 4 weeks− Developer lead does a build of all code from

developers− Application is installed in test environment− Tester tries to test the application− Application doesn’t work− Developer blames tester

Page 9: Testing SharePoint solutions overview

The Demonstrations Scenario

− The Configurations− A fully configured Visual Studio 2010, Team Foundation

Server 2010, and SharePoint Server 2010 environment.− The Tasks

− A lot of tests.

Page 10: Testing SharePoint solutions overview

“we have a changed requirement, what do I need to test?”

Have you heard any of these?

“my testers are spending too long testing the same thing”

“tooling is expensive (time, licenses, people)”

“developers and testers work in silos and don’t communicate/speak the same language”

“when is my software ready to ship?”

“the developers say the defects are useless”

Page 11: Testing SharePoint solutions overview

What if you could…

reduce the time it takes to determine the root cause of a bug

enable users to easily run acceptance tests and track their results

reduce the time it takes to verify the status of a reported bug fix

reduce the time it takes to replicate a bug uncovered by user actions

reduce the time it takes to isolate differences between the test and production environment

Page 12: Testing SharePoint solutions overview

Generalist SpecialistManual Testing Some scripting

Creates scripts to set up lab, create data

Strong scripting skills

Some coding skills

Strong coding

Develops fully automated testing procedures

Expert coding skills

Where does testing happen?

Black Box Testing

White Box Testing

API Testing

70% of testing happens here

Majority of test tools target here

Page 13: Testing SharePoint solutions overview

Visual Studio 2010 Test Capabilities

Team Foundation Server Reporting

Web Test

Load Test

Coded UI Test

Unit Testing

Test Case Management

Lab Management

Microsoft Test Runner

Data Collectors (Historical Debugging, Test Impact, Metrics)

Page 14: Testing SharePoint solutions overview

Why is fixing bugs difficult?

− Insufficient information to reproduce− Not every step is documented− Can’t see exactly how the bug was triggered

− Different environments− OS, service packs, installed software,…− Creating a clean environment takes time

Page 15: Testing SharePoint solutions overview

Microsoft Test Manager 2010

− Plan, Manage and Execute (manual) tests from one place− Create test cases− Build test suites− Define configurations− Run test cases− File bugs into TFS

− Including captured data− Automate testing− Integrated with TFS

Page 16: Testing SharePoint solutions overview

VS Agents: Diagnostic Data Adapters

− Visual Studio Agents 2010− Separate download− Test Controller & Test Agents

− Capture data while testing− Save data with bug report

− Easy for developer to reproduce bug

Video CaptureSteps

PerformedSystem InfoIntelliTrace™

System Info

IntelliTrace™

Page 17: Testing SharePoint solutions overview

70%of all functional testing is still done manually.

Page 18: Testing SharePoint solutions overview

DemoFunctional Testing with Microsoft Test Manager

Page 19: Testing SharePoint solutions overview

Automated Testing for SharePoint

Web Performance Testing Load Testing Coded UI Testing Unit Testing

Page 20: Testing SharePoint solutions overview

Web Performance Testing

− Simulate a single use case− Internet Explorer Web Testing toolbar

− Records the user’s web requests− Important: This is not a UI test

− Validation Rules− Extraction Rules− Parameterized Tests− Data-Driven Tests

Page 21: Testing SharePoint solutions overview

Load Testing

− Stress-testing: simulate many users at once− Need multiple servers to create substantial load− Multiple agents generate load on the application− Single controller coordinates the agents and captures

data− PerfMon-style output

Page 22: Testing SharePoint solutions overview

Coded UI Testing

− Simulate a single use case− Uses a recording toolbar, like Web Performance test

− Records the user’s interaction with the UI− Generates code to reproduce that interaction− Code can be edited and customized at will

− Has some issues with SharePoint− e.g. no support for datasheets

− Visual Studio Feature Pack 2 adds support for Silverlight

Page 23: Testing SharePoint solutions overview

DemoAutomated Testing with Microsoft Visual Studio

Page 24: Testing SharePoint solutions overview

SharePoint Dashboards

Page 25: Testing SharePoint solutions overview

Are we making progress on running test plans?

How are our builds doing over time?

Are we fixing bugs?What’s the quality of our

bug fixes?

Ready to Ship?Are we ready to ship?

Page 26: Testing SharePoint solutions overview

DemoReporting

Page 27: Testing SharePoint solutions overview
Page 28: Testing SharePoint solutions overview

Resources

− Test Manager 2010 and Lab Manager− http://msdn.microsoft.com/en-us/library/ms182409.aspx− http://msdn.microsoft.com/en-us/library/dd997438.aspx

− Visual Studio 2010 Agents− http://www.microsoft.com/downloads/en/details.aspx?

FamilyID=a3216d2a-0530-4f6c-a7c9-0df37c54a902− Pex and Moles

− http://research.microsoft.com/en-us/projects/pex/default.aspx

Page 29: Testing SharePoint solutions overview

Questions?

Page 30: Testing SharePoint solutions overview

© 2011 Microsoft Corporation. All rights reserved. Microsoft, Visual Studio, the Visual Studio logo, and [list other trademarks referenced] are trademarks of the Microsoft group of companies.

 The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation.  Because Microsoft must respond

to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. 

MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED, OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.