SlideShare uma empresa Scribd logo
1 de 39
Udvid din test portefølje med 
Coded UI test og Cloud Load test 
VS20011 
Peter Lindberg - Consultant @ Alterate 
pli@alterate.dk 
@peterlindbergdk 
www.linkedin.com/in/peterlindbergdk 
www.alterate.dk 
#CampusDays
#CampusDays 
Topics 
Test automation 
Microsoft Test Manager and manual tests 
Coded UI Test 
Load Test in the cloud with Visual Studio Online
#CampusDays 
Why test? 
We all make mistakes! 
But also: 
• Are we meeting the requirements and expectations? 
• Does the hardware support the application? 
• Does it work as expected? 
The sooner the defects are discovered – the cheaper they are to fix
#CampusDays 
Why automate tests? 
Cost reduction! 
• Manual test is expensive 
• Let manual testers spend the time on value adding tests 
• New features 
• Exploratory testing 
• “Time to market” – higher release cadence 
• Safety as developer
#CampusDays 
Exploratory 
testing 
Automated 
UI Test 
Integration 
Test 
Unit Test
#CampusDays
#CampusDays 
Microsoft Test Manager and 
manual tests
#CampusDays 
Visual Studio Application Lifecycle Management
#CampusDays 
Microsoft Test Manager (MTM) 
Separate application 
Fully integrated with Team Foundation Server 
• Test artifacts are Work Items in TFS 
• Links to Product Backlog Items, Bugs etc. 
• Queries 
• Reporting 
• Ties directly in to the developer world
#CampusDays 
Microsoft Test Manager (MTM) 
A fully-instrumented, configurable test runner captures detailed records of steps 
performed, behaviors observed, and the status of each test step. Pause testing to report a 
bug, even if it’s not directly related to the current test. High-fidelity defect reports go 
directly to the development team, including all the technical data needed to reproduce 
and resolve the error. Record tests for later playback to speed test sessions and enable 
automation. (visualstudio.com)
#CampusDays 
What’s in it for the developers? 
“captures detailed records of steps performed, behaviors observed, and the status of each 
test step” 
“Pause testing to report a bug, even if it’s not directly related to the current test” 
“High-fidelity defect reports go directly to the development team, including all the 
technical data needed to reproduce and resolve the error” 
“Record tests for later playback to speed test sessions and enable automation”
#CampusDays 
MTM Work Item Structure
#CampusDays 
Demo
#CampusDays 
Coded UI tests
#CampusDays 
What are Coded UI Tests? 
Automated tests interacting with the application through the user interface 
For example used for testing 
• Input validations 
• Calculations 
• “Shopping cart” functionality 
• UI Elements 
• Navigation 
• ….
#CampusDays 
Supported configurations and platforms 
Configurations 
• Windows 7, Windows 8, Windows Server 2008 R2 
• x86 and x64 
• .NET 2.0, 3.0, 3.5, 4.0 and 4.5 
Platforms 
• Windows Phone Apps - (Only WinRT-XAML based Phone apps are supported) 
• Windows Store Apps - (Only XAML-based Store apps are supported) 
• Windows Forms + WPF 
• IE 8, 9 and 10 - (9 and 10 only supported on the desktop) 
• Chrome (recording not supported, only playback) 
• Silverlight 5 (only supported with unsupported plugin) 
• SharePoint, Dynamics web client – Fully supported
#CampusDays
#CampusDays 
Test Automation 
Test 
Execution 
Test 
Script
#CampusDays 
Which tests to automate? 
Is it often used functionality? 
Does the UI change often? 
Is the test code easy or difficult to maintain? 
How often is the test expected to be run?
#CampusDays 
Coded UI test features 
• Fully integrated into Visual Studio ALM 
• Automatic code generation 
• “Intelligent” Intent Aware Recording and Resilient Playback 
• Execute on build server 
• C# / VB.NET
#CampusDays 
Generate Coded UI Tests 
• Automate steps from MTM action recordings 
• Coded UI Test Builder 
• Write them yourself in C# / VB.NET (advanced)
#CampusDays 
The generated code 
TestMethod
#CampusDays 
UIMap
#CampusDays 
Coded UI Test Editor
#CampusDays 
Coded UI Test Editor 
• Change names of test methods and UI elements 
• Split steps in to new methods 
• Move generated code to UIMap partial class for customizing 
• Add pauses 
• View and change properties 
• Remove unwanted steps (duplicates etc.)
#CampusDays 
Demo
#CampusDays 
Load Test in the cloud with Visual 
Studio Online
#CampusDays
#CampusDays 
What do we want to achieve with load tests? 
• Will the planned platform support the expected load and peak loads? 
• Will simultaneous users cause problems 
• Server load (max. CPU / memory consumption etc.) 
• When does it break and how? 
Planning is key! Dialogue with Product Owner / stakeholder etc. 
What are targets and objectives? 
What are the success & acceptance criteria? 
Concrete and measurable!! 
There’s a big difference between 1 and 5 seconds when a web site load…
#CampusDays 
How? 
Generate 
traffic to 
application 
Does it 
perform as 
expected? 
Recreate the 
performance 
problems 
Fix the 
performance 
problems
#CampusDays
#CampusDays 
So when should I start planning and execute load teste? 
Start early! 
= 
Save time
#CampusDays 
What can be included in load tests? 
• Web test 
• Unit tests 
• Coded UI (possible – but not recommended) 
Customize! 
• Coded Web Performance test
#CampusDays
#CampusDays 
To the Cloud! 
• Load tests can be executed from the cloud with Visual Studio Online 
• MSDN subscribers have 15,000 virtual user minutes included pr. month 
• No need to set up a big test rig / infrastructure “on premises” 
• Setup in Visual Studio – execute in Azure 
• Visual Studio connected to Visual Studio Online
#CampusDays 
Visual Studio 
Load test 
web service 
Result 
database 
Controller 
Test agent pool 
Agent Agent Agent 
Agent Agent Agent
#CampusDays 
Demo
#CampusDays 
Q&A 
#Ask me about everything! 
Join me at the Microsoft Booth the next 
30 minutes @Meet The Experts 
Dont forget to: Evaluate this session!
EVENT SPONSORER 
TRACK SPONSORER 
EXPO SPONSORER

Mais conteúdo relacionado

Mais procurados

Application Lifecycle Management with TFS
Application Lifecycle Management with TFSApplication Lifecycle Management with TFS
Application Lifecycle Management with TFS
Mehdi Khalili
 
Test Automation and Continuous Integration
Test Automation and Continuous Integration Test Automation and Continuous Integration
Test Automation and Continuous Integration
TestCampRO
 

Mais procurados (20)

Sencha Roadshow 2017: Sencha Upgrades - The Good. The Bad. The Ugly - Eva Luc...
Sencha Roadshow 2017: Sencha Upgrades - The Good. The Bad. The Ugly - Eva Luc...Sencha Roadshow 2017: Sencha Upgrades - The Good. The Bad. The Ugly - Eva Luc...
Sencha Roadshow 2017: Sencha Upgrades - The Good. The Bad. The Ugly - Eva Luc...
 
What kind testing DUG Vancouver
What kind testing DUG VancouverWhat kind testing DUG Vancouver
What kind testing DUG Vancouver
 
Web based automation testing on Node.js environment
Web based automation testing on Node.js environmentWeb based automation testing on Node.js environment
Web based automation testing on Node.js environment
 
Mobile UI Testing using Appium and Docker
Mobile UI Testing using Appium and DockerMobile UI Testing using Appium and Docker
Mobile UI Testing using Appium and Docker
 
Application Lifecycle Management with TFS
Application Lifecycle Management with TFSApplication Lifecycle Management with TFS
Application Lifecycle Management with TFS
 
Sencha Roadshow 2017: What's New in Sencha Test
Sencha Roadshow 2017: What's New in Sencha TestSencha Roadshow 2017: What's New in Sencha Test
Sencha Roadshow 2017: What's New in Sencha Test
 
Effective performance evaluation as part of a CI approach - Mission Impossible?
Effective performance evaluation as part of a CI approach - Mission Impossible?Effective performance evaluation as part of a CI approach - Mission Impossible?
Effective performance evaluation as part of a CI approach - Mission Impossible?
 
Browser Vendors are Reshaping Testing - Are You Ready?
Browser Vendors are Reshaping Testing - Are You Ready?Browser Vendors are Reshaping Testing - Are You Ready?
Browser Vendors are Reshaping Testing - Are You Ready?
 
Selenium at Salesforce Scale
Selenium at Salesforce ScaleSelenium at Salesforce Scale
Selenium at Salesforce Scale
 
Developing Brilliant and Powerful APIs in Ruby & Python
Developing Brilliant and Powerful APIs in Ruby & PythonDeveloping Brilliant and Powerful APIs in Ruby & Python
Developing Brilliant and Powerful APIs in Ruby & Python
 
Selenium RC, Selenium WebDriver and HP LoadRunner
Selenium RC, Selenium WebDriver and HP LoadRunnerSelenium RC, Selenium WebDriver and HP LoadRunner
Selenium RC, Selenium WebDriver and HP LoadRunner
 
Test Automation Frameworks: Assumptions, Concepts & Tools
Test Automation Frameworks: Assumptions, Concepts & ToolsTest Automation Frameworks: Assumptions, Concepts & Tools
Test Automation Frameworks: Assumptions, Concepts & Tools
 
Eclipse UI automation
Eclipse UI automationEclipse UI automation
Eclipse UI automation
 
Testwarez 2009 Use Proper Tool
Testwarez 2009 Use Proper ToolTestwarez 2009 Use Proper Tool
Testwarez 2009 Use Proper Tool
 
selenium meetup sf talk march 2014 Selenium at Scale
selenium meetup sf talk march 2014 Selenium at Scaleselenium meetup sf talk march 2014 Selenium at Scale
selenium meetup sf talk march 2014 Selenium at Scale
 
Building with Visual Studio Online
Building with Visual Studio OnlineBuilding with Visual Studio Online
Building with Visual Studio Online
 
Best Practices for a Repeatable Shift-Left Commitment
Best Practices for a Repeatable Shift-Left CommitmentBest Practices for a Repeatable Shift-Left Commitment
Best Practices for a Repeatable Shift-Left Commitment
 
Testing Frameworks
Testing FrameworksTesting Frameworks
Testing Frameworks
 
QAorHighway2016
QAorHighway2016QAorHighway2016
QAorHighway2016
 
Test Automation and Continuous Integration
Test Automation and Continuous Integration Test Automation and Continuous Integration
Test Automation and Continuous Integration
 

Semelhante a Udvid din test portefølje med coded ui test og cloud load test

Testing with Microsoft Technologies - Kick Off Session
Testing with Microsoft Technologies - Kick Off SessionTesting with Microsoft Technologies - Kick Off Session
Testing with Microsoft Technologies - Kick Off Session
Moataz Nabil
 
1.microsoft visual studio 2010 test manager
1.microsoft visual studio 2010  test manager1.microsoft visual studio 2010  test manager
1.microsoft visual studio 2010 test manager
Ashwin Jujgar
 
Acing application lifecycle management in SharePoint
Acing application lifecycle management in SharePointAcing application lifecycle management in SharePoint
Acing application lifecycle management in SharePoint
Jeremy Thake
 
Microsoft ALM Platform Overview
Microsoft ALM Platform OverviewMicrosoft ALM Platform Overview
Microsoft ALM Platform Overview
Steve Lange
 

Semelhante a Udvid din test portefølje med coded ui test og cloud load test (20)

Getting Started with Coded UI Testing: Building Your First Automated Test
Getting Started with Coded UI Testing: Building Your First Automated TestGetting Started with Coded UI Testing: Building Your First Automated Test
Getting Started with Coded UI Testing: Building Your First Automated Test
 
Getting Started with Visual Studio’s Coded UI Testing: Building Your First Au...
Getting Started with Visual Studio’s Coded UI Testing: Building Your First Au...Getting Started with Visual Studio’s Coded UI Testing: Building Your First Au...
Getting Started with Visual Studio’s Coded UI Testing: Building Your First Au...
 
Debugging,Troubleshooting & Monitoring Distributed Web & Cloud Applications a...
Debugging,Troubleshooting & Monitoring Distributed Web & Cloud Applications a...Debugging,Troubleshooting & Monitoring Distributed Web & Cloud Applications a...
Debugging,Troubleshooting & Monitoring Distributed Web & Cloud Applications a...
 
Cabot Technology Solutions Inc
Cabot Technology Solutions IncCabot Technology Solutions Inc
Cabot Technology Solutions Inc
 
Triple Assurance: AI-Powered Test Automation in UI Design and Functionality
Triple Assurance: AI-Powered Test Automation in UI Design and FunctionalityTriple Assurance: AI-Powered Test Automation in UI Design and Functionality
Triple Assurance: AI-Powered Test Automation in UI Design and Functionality
 
Testing with Microsoft Technologies - Kick Off Session
Testing with Microsoft Technologies - Kick Off SessionTesting with Microsoft Technologies - Kick Off Session
Testing with Microsoft Technologies - Kick Off Session
 
1.microsoft visual studio 2010 test manager
1.microsoft visual studio 2010  test manager1.microsoft visual studio 2010  test manager
1.microsoft visual studio 2010 test manager
 
Introductie Visual Studio ALM 2012
Introductie Visual Studio ALM 2012Introductie Visual Studio ALM 2012
Introductie Visual Studio ALM 2012
 
Introductie Visual Studio ALM 2012
Introductie Visual Studio ALM 2012Introductie Visual Studio ALM 2012
Introductie Visual Studio ALM 2012
 
Cabot corporate profile 2018
Cabot corporate profile  2018Cabot corporate profile  2018
Cabot corporate profile 2018
 
Measure and increase developer productivity with help of Severless by Kazulki...
Measure and increase developer productivity with help of Severless by Kazulki...Measure and increase developer productivity with help of Severless by Kazulki...
Measure and increase developer productivity with help of Severless by Kazulki...
 
Using BladeRunnerJS to Build Front-End Apps that Scale - Fluent 2014
Using BladeRunnerJS to Build Front-End Apps that Scale - Fluent 2014Using BladeRunnerJS to Build Front-End Apps that Scale - Fluent 2014
Using BladeRunnerJS to Build Front-End Apps that Scale - Fluent 2014
 
Acing application lifecycle management in SharePoint
Acing application lifecycle management in SharePointAcing application lifecycle management in SharePoint
Acing application lifecycle management in SharePoint
 
Application Lifecycle Management
Application Lifecycle ManagementApplication Lifecycle Management
Application Lifecycle Management
 
ALM with TFS: From the Drawing Board to the Cloud
ALM with TFS: From the Drawing Board to the CloudALM with TFS: From the Drawing Board to the Cloud
ALM with TFS: From the Drawing Board to the Cloud
 
Reliable mobile test automation
Reliable mobile test automationReliable mobile test automation
Reliable mobile test automation
 
Bugday bkk-2014 nitisak-auto_perf
Bugday bkk-2014 nitisak-auto_perfBugday bkk-2014 nitisak-auto_perf
Bugday bkk-2014 nitisak-auto_perf
 
Technical Without Code
Technical Without CodeTechnical Without Code
Technical Without Code
 
Microsoft ALM Platform Overview
Microsoft ALM Platform OverviewMicrosoft ALM Platform Overview
Microsoft ALM Platform Overview
 
Dev/Test scenarios in DevOps world
Dev/Test scenarios in DevOps worldDev/Test scenarios in DevOps world
Dev/Test scenarios in DevOps world
 

Último

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Último (20)

Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 

Udvid din test portefølje med coded ui test og cloud load test

  • 1. Udvid din test portefølje med Coded UI test og Cloud Load test VS20011 Peter Lindberg - Consultant @ Alterate pli@alterate.dk @peterlindbergdk www.linkedin.com/in/peterlindbergdk www.alterate.dk #CampusDays
  • 2. #CampusDays Topics Test automation Microsoft Test Manager and manual tests Coded UI Test Load Test in the cloud with Visual Studio Online
  • 3. #CampusDays Why test? We all make mistakes! But also: • Are we meeting the requirements and expectations? • Does the hardware support the application? • Does it work as expected? The sooner the defects are discovered – the cheaper they are to fix
  • 4. #CampusDays Why automate tests? Cost reduction! • Manual test is expensive • Let manual testers spend the time on value adding tests • New features • Exploratory testing • “Time to market” – higher release cadence • Safety as developer
  • 5. #CampusDays Exploratory testing Automated UI Test Integration Test Unit Test
  • 7. #CampusDays Microsoft Test Manager and manual tests
  • 8. #CampusDays Visual Studio Application Lifecycle Management
  • 9. #CampusDays Microsoft Test Manager (MTM) Separate application Fully integrated with Team Foundation Server • Test artifacts are Work Items in TFS • Links to Product Backlog Items, Bugs etc. • Queries • Reporting • Ties directly in to the developer world
  • 10. #CampusDays Microsoft Test Manager (MTM) A fully-instrumented, configurable test runner captures detailed records of steps performed, behaviors observed, and the status of each test step. Pause testing to report a bug, even if it’s not directly related to the current test. High-fidelity defect reports go directly to the development team, including all the technical data needed to reproduce and resolve the error. Record tests for later playback to speed test sessions and enable automation. (visualstudio.com)
  • 11. #CampusDays What’s in it for the developers? “captures detailed records of steps performed, behaviors observed, and the status of each test step” “Pause testing to report a bug, even if it’s not directly related to the current test” “High-fidelity defect reports go directly to the development team, including all the technical data needed to reproduce and resolve the error” “Record tests for later playback to speed test sessions and enable automation”
  • 12. #CampusDays MTM Work Item Structure
  • 15. #CampusDays What are Coded UI Tests? Automated tests interacting with the application through the user interface For example used for testing • Input validations • Calculations • “Shopping cart” functionality • UI Elements • Navigation • ….
  • 16. #CampusDays Supported configurations and platforms Configurations • Windows 7, Windows 8, Windows Server 2008 R2 • x86 and x64 • .NET 2.0, 3.0, 3.5, 4.0 and 4.5 Platforms • Windows Phone Apps - (Only WinRT-XAML based Phone apps are supported) • Windows Store Apps - (Only XAML-based Store apps are supported) • Windows Forms + WPF • IE 8, 9 and 10 - (9 and 10 only supported on the desktop) • Chrome (recording not supported, only playback) • Silverlight 5 (only supported with unsupported plugin) • SharePoint, Dynamics web client – Fully supported
  • 18. #CampusDays Test Automation Test Execution Test Script
  • 19. #CampusDays Which tests to automate? Is it often used functionality? Does the UI change often? Is the test code easy or difficult to maintain? How often is the test expected to be run?
  • 20. #CampusDays Coded UI test features • Fully integrated into Visual Studio ALM • Automatic code generation • “Intelligent” Intent Aware Recording and Resilient Playback • Execute on build server • C# / VB.NET
  • 21. #CampusDays Generate Coded UI Tests • Automate steps from MTM action recordings • Coded UI Test Builder • Write them yourself in C# / VB.NET (advanced)
  • 22. #CampusDays The generated code TestMethod
  • 24. #CampusDays Coded UI Test Editor
  • 25. #CampusDays Coded UI Test Editor • Change names of test methods and UI elements • Split steps in to new methods • Move generated code to UIMap partial class for customizing • Add pauses • View and change properties • Remove unwanted steps (duplicates etc.)
  • 27. #CampusDays Load Test in the cloud with Visual Studio Online
  • 29. #CampusDays What do we want to achieve with load tests? • Will the planned platform support the expected load and peak loads? • Will simultaneous users cause problems • Server load (max. CPU / memory consumption etc.) • When does it break and how? Planning is key! Dialogue with Product Owner / stakeholder etc. What are targets and objectives? What are the success & acceptance criteria? Concrete and measurable!! There’s a big difference between 1 and 5 seconds when a web site load…
  • 30. #CampusDays How? Generate traffic to application Does it perform as expected? Recreate the performance problems Fix the performance problems
  • 32. #CampusDays So when should I start planning and execute load teste? Start early! = Save time
  • 33. #CampusDays What can be included in load tests? • Web test • Unit tests • Coded UI (possible – but not recommended) Customize! • Coded Web Performance test
  • 35. #CampusDays To the Cloud! • Load tests can be executed from the cloud with Visual Studio Online • MSDN subscribers have 15,000 virtual user minutes included pr. month • No need to set up a big test rig / infrastructure “on premises” • Setup in Visual Studio – execute in Azure • Visual Studio connected to Visual Studio Online
  • 36. #CampusDays Visual Studio Load test web service Result database Controller Test agent pool Agent Agent Agent Agent Agent Agent
  • 38. #CampusDays Q&A #Ask me about everything! Join me at the Microsoft Booth the next 30 minutes @Meet The Experts Dont forget to: Evaluate this session!
  • 39. EVENT SPONSORER TRACK SPONSORER EXPO SPONSORER

Notas do Editor

  1. Section title slide (Optional)
  2. Section title slide (Optional)
  3. Intent aware = Taking all the steps to click All Programs, open browser, navigate to URL => Open URL in browser Resilient playback = smart algorithms to accommodate changes in configurations like window resize/Minimize/Maximize, screen resolution changes etc. to provide a resilient playback support.
  4. 20 mins CodedUISP proj:
  5. Section title slide (Optional)
  6. Unit test – good for WCF Services, Web API, REST, Odata etc. Also database queries, Store Procedures etc.
  7. Create small web tests to be able to granularly load test and diagnose the application functionality
  8. Azure pricing calculator http://azure.microsoft.com/en-us/pricing/calculator/?scenario=full