SlideShare uma empresa Scribd logo
1 de 18
© Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel
www.sela.co.il
Visual Studio Testing Tools
Unit Test
Fakes
Coded UI Test
Getting Started
Advanced Coding
Web Testing
Load Testing
Questions
Summary
Team Foundation Server Reporting
Generalist Specialist
Manual 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
Other
Automation
Tools
The primary goal of unit testing is to take the smallest
piece of testable software in the application, isolate it
from the remainder of the code, and determine whether
it behaves exactly as you expect.
• Testers Or Developers?
• Documentation
• Change Existing Code
• Avoid (Truck) Factor
• Multiple test projects
• Test Adapters
– Nunit , Gtest , xUnit++
– Chutzpah – JavaScript
• UITestMethod
• DataRow
• .NET regardless the target code
• Run Every Build
• Grouping – Outcome, Duration…
• Shim – A shim modifies the compiled code of your
application at run time so that instead of making a
specified method call, it runs the shim code that your
test provides.
• Stub - A stub replaces another class with a small
substitute that implements the same interface.
• Functional Testing
• Generate code in C#/VB
• Intent aware recording and resilient playback
• Integrated with ALM story
– Build, deploy & test in lab or as part of build
– Local, remote runs, data collection
• Rich Extensibility
Fully supported platform
Partial solution. Further work
required to complete
Best efforts. May work with
known issues. No major
ongoing investment
Currently no support but on
the roadmap for future
releases
Currently no support and none
planned for now. Opportunity
for partners
Platform 2012 Update 1 Notes
IE7/8 – HTML/AJAX
Windows Forms 2.0+
.NET Fx Controls fully
supported, working on 3rd
party support
WPF 3.5+
.NET Fx Controls fully
supported, working on 3rd
party support
Windows Win32
MFC
HTML 5/AJAX
Chrome / Fire Fox Update 1
SharePoint
Silverlight
Citrix/Terminal Services
Office Client Apps
IE 6
Opera/Safari
Flash/Java
SAP
http://tinyurl.com/CuitCrossBrowser
• Performance
• Security Testing
• No User Interface Complexity
• Faster Testing
• Easy Manipulation
• Data Driven Test
• Load Test uses Web Test
13
 Load Test is used in
several types of testing:
 Smoke Test.
 Load Test.
 Stress Test.
 Capacity Test.
 Performance Test.
 Compatibility Test.
© Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 18
Mature tools to improve testing and
team connection.
Complete Suite for Testers &
Developers
It’s Easy and Fast to Create
Automation.
All about testing in visual studio 2012

Mais conteúdo relacionado

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Último (20)

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destaque (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

All about testing in visual studio 2012

  • 1. © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il
  • 2. Visual Studio Testing Tools Unit Test Fakes Coded UI Test Getting Started Advanced Coding Web Testing Load Testing Questions Summary
  • 3. Team Foundation Server Reporting Generalist Specialist Manual 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 Other Automation Tools
  • 4. The primary goal of unit testing is to take the smallest piece of testable software in the application, isolate it from the remainder of the code, and determine whether it behaves exactly as you expect. • Testers Or Developers? • Documentation • Change Existing Code • Avoid (Truck) Factor
  • 5. • Multiple test projects • Test Adapters – Nunit , Gtest , xUnit++ – Chutzpah – JavaScript • UITestMethod • DataRow • .NET regardless the target code • Run Every Build • Grouping – Outcome, Duration…
  • 6. • Shim – A shim modifies the compiled code of your application at run time so that instead of making a specified method call, it runs the shim code that your test provides. • Stub - A stub replaces another class with a small substitute that implements the same interface.
  • 7.
  • 8. • Functional Testing • Generate code in C#/VB • Intent aware recording and resilient playback • Integrated with ALM story – Build, deploy & test in lab or as part of build – Local, remote runs, data collection • Rich Extensibility
  • 9. Fully supported platform Partial solution. Further work required to complete Best efforts. May work with known issues. No major ongoing investment Currently no support but on the roadmap for future releases Currently no support and none planned for now. Opportunity for partners Platform 2012 Update 1 Notes IE7/8 – HTML/AJAX Windows Forms 2.0+ .NET Fx Controls fully supported, working on 3rd party support WPF 3.5+ .NET Fx Controls fully supported, working on 3rd party support Windows Win32 MFC HTML 5/AJAX Chrome / Fire Fox Update 1 SharePoint Silverlight Citrix/Terminal Services Office Client Apps IE 6 Opera/Safari Flash/Java SAP http://tinyurl.com/CuitCrossBrowser
  • 10.
  • 11. • Performance • Security Testing • No User Interface Complexity • Faster Testing • Easy Manipulation • Data Driven Test • Load Test uses Web Test
  • 12. 13
  • 13.  Load Test is used in several types of testing:  Smoke Test.  Load Test.  Stress Test.  Capacity Test.  Performance Test.  Compatibility Test.
  • 14.
  • 15.
  • 16.
  • 17. © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 18 Mature tools to improve testing and team connection. Complete Suite for Testers & Developers It’s Easy and Fast to Create Automation.

Notas do Editor

  1. Hello ladies and gentleman, I'm very excited to be here in Moscow and presenting the topic of Applied software testing…My name is Shai, Shai Raiten I’m a ALM Senior Architect and Trainer working for Sela Group, I’m Microsoft Regional Specialist and for the past 4 year I’m VS ALM MVP.I would like to start my session with a short story….Once a poon a time when I just started to work as a QA engineer my boss came to me and said, this is your first day so you’ll learn how to use our Bug and Test Cases systems. The systems he was talking about was Excel and Word documents. So I’m familiar with Excel and Word and so I learn very easily how to use them.Later on my boss came a said that he bought a new system for Bugs management and another system for Test Case management and he told me to learn how to use them, of course we spend couple of weeks migrating all our word and excel files manually to those systems.Couple of months later he came again but now he said because he is so pleased with the new systems he bought he bought another system for automated testing and he told me to learn how to use them and then to write automated tests. So I learn and wrote tests, but when I complete writing tests on one system my company developed we went to write tests on another system and then we find out this automation tool isn’t good enough for the other system, and so my boss went and bough another system and of course I had to learn another tool and another script language.Again couple weeks later my boss came and said he very pleased with those automation tests and he want to move to the next stage – And he bought a tool for load testing – again I had to learn how to use this tool and learn another script language just for load testing.Software Testing הוא עולם רחב מאודמהיום שהתחלנו להיות אנשי בדיקות ביקשו מאיתנו כל הזמן ללמוד כלים ומוצרים חדשים. כלי חדש לניהול תסריטים עוד כלי לניהול תהליכי הבדיקות ואפילו עוד כלי על מנת שנוכל לבדוק את כיסוי ואייכות הבדיקות שלנו, אבל פה זה לא נגמר – אז אחרי כמה זמן התחילו לבקש מאיתנו ללמוד שפות סקריפט על מנת שנוכל להריץ בדיקות אוטומטיות (כמובן כל כלי והשפה הייחודית שלו) אבל גם פה זה לא נגמר כי עכשיו אנחנו רוצים גם לדעת להריץ בדיקות עומסים וגם פה אנחנו צריכים ללמוד עוד כלי חדש , אהה וכמובן אף אחד מהכלים אין אינטגרציה עם הכלי האחר.היום אנחנו הולכים להכיר את Visual Studio 2010 ואת סוויטת הכלים לעולם הבדיקות – מבדיקות ידניות לאוטומטיות וכמובן גם עומסים והכל בכלי אחד שתוכנן עבורנו.שלום שמי שי בלה בלה.....
  2. אז על מה אנחנו הולכים לדבר היום:נדבר על הכלי החדש לעולם הבדיקות הידניות, ונראה איך בדיקה ידנית הופכת לאוטומטית ללא כל מאמץ.נדבר על Data Adapters ואיך הוא עוזרים לנו, וכמובן איך לכתוב משלנו.נעבור על CodedUI מההתחלה ועד הסוף.לקראת הסוף יהיה זמן לשאלות ואז נסכם.אז בואו נתחיל.
  3. עכשיו לפני שמתחילים מה זה Visual Studio 2010?????אתם מבולבים? מה כבר מיקרוסופט עשתה עבור עולם הבדיקות? הרבה....
  4. UITestMethod – Force unit tests to run on the main thread.DataRow – Specific data entries for the unit tests
  5. Performance. Shims run slower because they rewrite your code at run time. Stubs do not have this performance overhead and are as fast as virtual methods can go.Static methods, sealed types. You can only use stubs to implement interfaces. Therefore, stub types cannot be used for static methods, non-virtual methods, sealed virtual methods, methods in sealed types, and so on.Internal types. Both stubs and shims can be used with internal types that are made accessible by using the assembly attributeInternalsVisibleToAttribute.Private methods. Shims can replace calls to private methods if all the types on the method signature are visible. Stubs can only replace visible methods.Interfaces and abstract methods. Stubs provide implementations of interfaces and abstract methods that can be used in testing. Shims can’t instrument interfaces and abstract methods, because they don’t have method bodies.In general, we recommend that you use stub types to isolate from dependencies within your codebase. You can do this by hiding the components behind interfaces. Shim types can be used to isolate from third-party components that do not provide a testable API.
  6. Performance – check much more easily for response time from server site.Security – See client – server request and inject whatever you like.
  7. מקליט את האתר IBuySpy מבצע את אותם הפעולות שעשינו ב – MTMמסביר על - > Detecting Dynamic Parametersמריץ ומסביר למה זה נכשל (היוזר כבר קיים – Validation Rules) – משנה את היוזר ומריץ שוב.עובר על היכולות של Web TestValidation Rule (מוסיף אימות על הצלחת קנייה ואחד נוסף לבדוק שהכמות שמופיעה אכן תואמת – זה יכשל כאשר נריץ מרשימת הערכים בגלל הערך הוא קבוע ומראה איך משנים).Request Properties – מסביר גם על Think TimeCall 2 Test – מפצל למספר בדיקות – Enter Home Page והרשמה לאתר – Registration.Loop - רק מדבר על Conditionמוסיף DataBinding ומחבר אל הבדיקותמראה את ה – Test Settings ואיך אפשר לשנות את סוג הדפדפן בבדיקה
  8. Smoke How your application performs under light loads for short durations.Performance To determine how responsive your application is.Load testing. Use load testing to verify application behavior under normal and peak load conditions. This allows you to verify that your application can meet your desired performance objectives; these performance objectives are often specified in a service level agreement. It enables you to measure response times, throughput rates, resource utilization levels, and to identify your application's breaking point, assuming that breaking point occurs below the peak load condition. Stress testing. Use stress testing to evaluate your application's behavior when it is pushed beyond the normal or peak load conditions. The goal of stress testing is to unearth application bugs that surface only under high load conditions. These can include such things as synchronization issues, race conditions, and memory leaks. Stress testing enables you to identify your application's weak points, and how it behaves under extreme load conditions. Capacity testing. Capacity testing is complementary to load testing and it determines your server's ultimate failure point, whereas load testing monitors results at various levels of load and traffic patterns. You perform capacity testing in conjunction with capacity planning. You use capacity planning to plan for future growth, such as an increased user base or increased volume of data. For example, to accommodate future loads you need to know how many additional resources (such as CPU, RAM, disk space, or network bandwidth) are necessary to support future usage levels. Capacity testing helps you identify a scaling strategy to determine whether you should scale up or scale out.
  9. דקה עד פה!מתחיל באשף הבסיסי עובר על האפשריות , מוסיף את הבדיקות Web וקובע את העומס הרצוי.אז ראינו כמה פשוט וקל לבנות בדיקת עומסים – בלי עוד כלים מיוחדים ולא צריך ללמוד הרבה בשביל זה.8.5 דקות דמו.