SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Downloaden Sie, um offline zu lesen
Are Your Teams Writing Quality
    Code?

    Ervin Loh
    Microsoft MVP
    Email: loh-chuanho@k365labs.com
    Blog: http://ervinloh.spaces.live.com/


1
Scenario

    You reached the final mile before facing the
    real world. Learn how Visual Studio Team
    System assist you in detecting potential
    performance problems before you deploy
    your application to the real world.

2
Agenda
      Overview of Web Tests
      Overview of Load Tests
      Interpreting Test Results
      Test Case Development




3
Overview of Web Tests

      What Are Web Tests?
      What Is the Importance of Web Tests?
      How Web Tests Are Created
      How Web Tests Are Run
      What Are Validation and Extraction Rules?
      Demonstration: How to Verify Web Tests
      Demonstration: How to Create and Run a Web
      Test


4
What Are Web Tests?

      Web tests are used to test the functionality of
      Web applications.
      Web tests consist of a series of HTTP requests.
        Requests are replayed by an agent, and not a Web browser.
      The Web application being tested can be any
      HTTP application, and not just an ASP.NET
      application. It can also be based on the new
      AJAX support.
      Web tests can be run in parallel to create load
      tests:
        A load test simulates multiple users opening simultaneous connections
        to a server and making multiple HTTP requests.
5
What Is the Importance of Web Tests?
      Web applications are becoming increasingly
      complex.
      Many Web applications host business
      critical functions.
      Web applications must have both high
      performance and be broadly scalable.
      Consumers are expecting ever more
      compelling and stable Web sites.
        A single problem can lose the loyalty of millions of users.




6
How Web Tests Are Created
      Recorded Web tests are:
        Created by simply recording a browsing session.
        Stored as XML.
        Edited graphically in the Web Test Editor.
      Coded Web tests are:
        Generally created by converting a recorded Web test.
        Stored as .NET Code (VB.NET or C#.)
        Edited in a code editor.
        Can easily access the full power of the .NET Framework.
        Necessary for branching and looping.




7
How Web Tests Are Run

    Web Tests can be triggered in the following ways:
    •   Web Test Editor
    •   Test View Window
    •   Test Manager Window
    •   Command Line
    •   Using the Web Test Viewer:
          Web Test Viewer shows an overview of the status of individual requests.
          View the details of each request in the Web test and the resulting
           response to those requests.




8
What Are Validation and Extraction Rules?
      Validation rules help verify if the Web
      application is functioning properly. They
      verify the:
        Existence of text, tags, or attributes on the page returned by a
        Web request
        Time it takes a request to finish
        Existence of form fields and their values
      Extraction rules:
        Extract data from the responses to Web requests
        Store results in the test context as name value pairs
        Can extract form fields, text, attributes, headers, regular
        expressions, and hidden fields.




9
Demonstration: How to Create and Run a
     Web Test
     At the end of this demonstration, you will see how
      to:
       Record a Web test.
       Edit a recorded Web test.
       Run a recorded Web test.
       View the results of a test run.
       Convert a recorded Web test into a coded Web
      test.


10
Demonstration: How to Verify Web Tests
     In this demonstration, you will see how to
     verify a Web test using the Web Test Viewer.




11
Overview of Load Tests

       What Are the Functions of a Load Test?
       Types of Load Tests
       Considerations for Choosing Load Profiles
       Considerations for Choosing Connection
       Models
       Demonstration: How to Create a Load Test
       Using Load Test Wizard
       How Load Tests Are Run
       Demonstration: How to Run a Load Test

12
What Are the Functions of a Load Test?

     The primary goal of a load test is to simulate many
     users accessing a server at the same time.
          Adding Web tests to a load test simulates simultaneous connections to a
          server, and making multiple HTTP requests.
          Adding unit tests to a load test is equivalent to testing the performance
          of non-Web based server components, for example, an application of a
          unit test under load is to test data access model components.




13
Types of Load Tests
      Type of Test        Description


      Smoke               Tests how your application
                          performs under light loads for short
                          durations
      Stress              Determines if the application will
                          run successfully for a sustained
                          duration under heavy load
      Performance         Determines how responsive your
                          application is
      Capacity Planning   Determines how your application
                          performs at various capacities




14
Considerations for Choosing Load Profiles

     A load pattern defines the number and increase
     rate of virtual users active during a load test. The
     types of load patterns are:
          Constant
          Step
          Goal-based




15
Considerations for Choosing Connection
     Models
      Connection Model            Features             Considerations

                         • Most closely simulates
                           the behavior of a real
                                                    Number of
                           browser
                                                    connections held
                         • Uses one or two
     Connection Per                                 open on the agent
                           connections per virtual
     User                                           computer may be as
                           user
                                                    high as twice the
                         • Same connections are re-
                                                    user load
                           used for subsequent
                           requests

                         • Connections to the Web
                           server are shared among
                                                      One Web test may
                           virtual Web test users
     Connection Pool                                  have to wait before
                         • Tests that are running on
                                                      issuing a request
                           by different virtual users
                           could share a connection

16
Demonstration: How to Create a Load Test
     Using Load Test Wizard
     At the end of this demonstration, you will see how
     to create a load test using the Load Test Wizard.




17
How Load Tests Are Run

     Load Tests can be triggered in many different ways
       Web Test Editor
       Test View Window
       Test Manager Window
       Command Line
     Using the Load Test Viewer
       Web Test Viewer shows an overview of the status of individual requests
       View the details of each request in the Web test and the resulting response to
       those requests.




18
Demonstration: How to Run a Load Test

     At the end of this demonstration, you will see
     how to
       Run a Load Test
       View the Load Test results




19
Overview of Interpreting Test Results

       How Load Test Analyzer Is Used
       What Is the Load Test Repository?
       What Is a Test Rig?
       Demonstration: How to Access Load Test
       Results Using Load Test Analyzer




20
How Load Test Analyzer Is Used
       Use the Load Test Analyzer to view Load Test
      data from a completed test run.
       Analyze the test run to locate bottlenecks,
      identify errors, and measure improvements.
       Load test data contains:
        Performance counter samples from the computers under test, plus
        any other configured performance counters.
        Error and threshold rule violation information.
       The test controller saves some performance
      counter data for a test run; the amount
      saved, and it’s location, is configurable

21
What Is the Load Test Repository?

       Information gathered from load tests is stored in
      the Load Test Results Store.
       The Load Test Results Store contains
      performance counter data and information
      about recorded errors.
       Load test run data from previous test runs can
      be retrieved using Load Test Analyzer.




22
What Is a Test Rig?

       A test rig is made up of a test controller and
       one or more agents. A test rig:
         Provides distributed, automated test execution.
         Can simulate hundreds of thousands of users.
         Can generate far more load than a single machine.




23
Demonstration: How to Access Load Test
     Results Using Load Test Analyzer
     At the end of this demonstration, you will see how
     to access load test results using Load Test
     Analyzer.




24
25
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
     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.




26

Weitere ähnliche Inhalte

Was ist angesagt?

Automation Test Framework
Automation Test FrameworkAutomation Test Framework
Automation Test FrameworkSachin-QA
 
Testing Soap/Rest Web Services with JMeter
Testing Soap/Rest Web Services with JMeterTesting Soap/Rest Web Services with JMeter
Testing Soap/Rest Web Services with JMeterBlazeMeter
 
web 2. 0 performance testing - Dave chadwick
web 2. 0 performance testing - Dave chadwickweb 2. 0 performance testing - Dave chadwick
web 2. 0 performance testing - Dave chadwickRoopa Nadkarni
 
Web services Concepts
Web services ConceptsWeb services Concepts
Web services Conceptspasam suresh
 
Introduction to NServiceBus
Introduction to NServiceBusIntroduction to NServiceBus
Introduction to NServiceBusEspen Ekvang
 
EMC Documentum - xCP 2.x Installation and Deployment
EMC Documentum - xCP 2.x Installation and DeploymentEMC Documentum - xCP 2.x Installation and Deployment
EMC Documentum - xCP 2.x Installation and DeploymentHaytham Ghandour
 
Message Oriented Architecture using NServiceBus
Message Oriented Architecture using NServiceBusMessage Oriented Architecture using NServiceBus
Message Oriented Architecture using NServiceBusLars-Erik Kindblad
 
Cloud Messaging with NServiceBus and Microsoft Azure
Cloud Messaging with NServiceBus and Microsoft AzureCloud Messaging with NServiceBus and Microsoft Azure
Cloud Messaging with NServiceBus and Microsoft AzureParticular Software
 
Enterprise Integration Patterns with ActiveMQ
Enterprise Integration Patterns with ActiveMQEnterprise Integration Patterns with ActiveMQ
Enterprise Integration Patterns with ActiveMQRob Davies
 
Ace exam guide_flex4
Ace exam guide_flex4Ace exam guide_flex4
Ace exam guide_flex4Ana Neves
 
WCF tutorial
WCF tutorialWCF tutorial
WCF tutorialAbhi Arya
 
A NOVEL METHOD TO TEST DEPENDABLE COMPOSED SERVICE COMPONENTS
A NOVEL METHOD TO TEST DEPENDABLE COMPOSED SERVICE COMPONENTSA NOVEL METHOD TO TEST DEPENDABLE COMPOSED SERVICE COMPONENTS
A NOVEL METHOD TO TEST DEPENDABLE COMPOSED SERVICE COMPONENTSIJCNCJournal
 
Enterprise Software Architecture
Enterprise Software ArchitectureEnterprise Software Architecture
Enterprise Software Architecturerahmed_sct
 
Testing strategies in microservices
Testing strategies in microservicesTesting strategies in microservices
Testing strategies in microservicesGeekNightHyderabad
 
EMC Documentum - xCP 2.x Updating Java Services
EMC Documentum - xCP 2.x Updating Java ServicesEMC Documentum - xCP 2.x Updating Java Services
EMC Documentum - xCP 2.x Updating Java ServicesHaytham Ghandour
 
Testing Web Apps with Spring Framework 3.2
Testing Web Apps with Spring Framework 3.2Testing Web Apps with Spring Framework 3.2
Testing Web Apps with Spring Framework 3.2Rossen Stoyanchev
 
10135 a 10
10135 a 1010135 a 10
10135 a 10Bố Su
 

Was ist angesagt? (20)

Automation Test Framework
Automation Test FrameworkAutomation Test Framework
Automation Test Framework
 
Testing Soap/Rest Web Services with JMeter
Testing Soap/Rest Web Services with JMeterTesting Soap/Rest Web Services with JMeter
Testing Soap/Rest Web Services with JMeter
 
web 2. 0 performance testing - Dave chadwick
web 2. 0 performance testing - Dave chadwickweb 2. 0 performance testing - Dave chadwick
web 2. 0 performance testing - Dave chadwick
 
Web services Concepts
Web services ConceptsWeb services Concepts
Web services Concepts
 
Introduction to NServiceBus
Introduction to NServiceBusIntroduction to NServiceBus
Introduction to NServiceBus
 
NServiceBus
NServiceBusNServiceBus
NServiceBus
 
EMC Documentum - xCP 2.x Installation and Deployment
EMC Documentum - xCP 2.x Installation and DeploymentEMC Documentum - xCP 2.x Installation and Deployment
EMC Documentum - xCP 2.x Installation and Deployment
 
Message Oriented Architecture using NServiceBus
Message Oriented Architecture using NServiceBusMessage Oriented Architecture using NServiceBus
Message Oriented Architecture using NServiceBus
 
TY.BSc.IT Java QB U6
TY.BSc.IT Java QB U6TY.BSc.IT Java QB U6
TY.BSc.IT Java QB U6
 
Cloud Messaging with NServiceBus and Microsoft Azure
Cloud Messaging with NServiceBus and Microsoft AzureCloud Messaging with NServiceBus and Microsoft Azure
Cloud Messaging with NServiceBus and Microsoft Azure
 
Enterprise Integration Patterns with ActiveMQ
Enterprise Integration Patterns with ActiveMQEnterprise Integration Patterns with ActiveMQ
Enterprise Integration Patterns with ActiveMQ
 
Ace exam guide_flex4
Ace exam guide_flex4Ace exam guide_flex4
Ace exam guide_flex4
 
WCF tutorial
WCF tutorialWCF tutorial
WCF tutorial
 
A NOVEL METHOD TO TEST DEPENDABLE COMPOSED SERVICE COMPONENTS
A NOVEL METHOD TO TEST DEPENDABLE COMPOSED SERVICE COMPONENTSA NOVEL METHOD TO TEST DEPENDABLE COMPOSED SERVICE COMPONENTS
A NOVEL METHOD TO TEST DEPENDABLE COMPOSED SERVICE COMPONENTS
 
Enterprise Software Architecture
Enterprise Software ArchitectureEnterprise Software Architecture
Enterprise Software Architecture
 
Testing strategies in microservices
Testing strategies in microservicesTesting strategies in microservices
Testing strategies in microservices
 
EMC Documentum - xCP 2.x Updating Java Services
EMC Documentum - xCP 2.x Updating Java ServicesEMC Documentum - xCP 2.x Updating Java Services
EMC Documentum - xCP 2.x Updating Java Services
 
Testing Web Apps with Spring Framework 3.2
Testing Web Apps with Spring Framework 3.2Testing Web Apps with Spring Framework 3.2
Testing Web Apps with Spring Framework 3.2
 
J Meter Intro
J Meter IntroJ Meter Intro
J Meter Intro
 
10135 a 10
10135 a 1010135 a 10
10135 a 10
 

Ähnlich wie Are Your Teams Writing Quality Code

Laravel Load Testing: Strategies and Tools
Laravel Load Testing: Strategies and ToolsLaravel Load Testing: Strategies and Tools
Laravel Load Testing: Strategies and ToolsMuhammad Shehata
 
Software Testing includes Performance testing with Load Runner and the JMeter
Software Testing includes Performance testing with Load Runner and the JMeter Software Testing includes Performance testing with Load Runner and the JMeter
Software Testing includes Performance testing with Load Runner and the JMeter Hima Bindu Kosuru
 
Advanced Load Runner
Advanced Load RunnerAdvanced Load Runner
Advanced Load Runnertelab
 
Load and performance testing
Load and performance testingLoad and performance testing
Load and performance testingQualitest
 
LoadUI web performance testing tool
LoadUI web performance testing toolLoadUI web performance testing tool
LoadUI web performance testing toolMilind Rupchandani
 
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...Vishal Parekh
 
advanced_load_runner.ppt
advanced_load_runner.pptadvanced_load_runner.ppt
advanced_load_runner.pptSunilKumar61580
 
Wap tpresentation (Load testing Tool )
Wap tpresentation (Load testing Tool )Wap tpresentation (Load testing Tool )
Wap tpresentation (Load testing Tool )jagdishdevabhaipatel
 
Web and load testing with Visual Studio 2010 Ultimate
Web and load testing with Visual Studio 2010 UltimateWeb and load testing with Visual Studio 2010 Ultimate
Web and load testing with Visual Studio 2010 UltimateAbhimanyu Singhal
 
Silk Performer Presentation v1
Silk Performer Presentation v1Silk Performer Presentation v1
Silk Performer Presentation v1Sun Technlogies
 
Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6Knoldus Inc.
 
Experitest & Wipro Co-Webinar
Experitest & Wipro Co-Webinar Experitest & Wipro Co-Webinar
Experitest & Wipro Co-Webinar Experitest
 
Performance testing jmeter
Performance testing jmeterPerformance testing jmeter
Performance testing jmeterBhojan Rajan
 
HP LoadRunner
HP LoadRunnerHP LoadRunner
HP LoadRunnerFayis-QA
 
Top 20 LoadRunner Interview Questions and Answers in 2023.pdf
Top 20 LoadRunner Interview Questions and Answers in 2023.pdfTop 20 LoadRunner Interview Questions and Answers in 2023.pdf
Top 20 LoadRunner Interview Questions and Answers in 2023.pdfAnanthReddy38
 
Performance and load testing
Performance and load testingPerformance and load testing
Performance and load testingsonukalpana
 
Wading through treacle? Escape the integration syrup with contract tests
Wading through treacle? Escape the integration syrup with contract testsWading through treacle? Escape the integration syrup with contract tests
Wading through treacle? Escape the integration syrup with contract testsStefan Smith
 

Ähnlich wie Are Your Teams Writing Quality Code (20)

Wap Tpresentation
Wap TpresentationWap Tpresentation
Wap Tpresentation
 
Laravel Load Testing: Strategies and Tools
Laravel Load Testing: Strategies and ToolsLaravel Load Testing: Strategies and Tools
Laravel Load Testing: Strategies and Tools
 
28791456 web-testing
28791456 web-testing28791456 web-testing
28791456 web-testing
 
Software Testing includes Performance testing with Load Runner and the JMeter
Software Testing includes Performance testing with Load Runner and the JMeter Software Testing includes Performance testing with Load Runner and the JMeter
Software Testing includes Performance testing with Load Runner and the JMeter
 
Advanced Load Runner
Advanced Load RunnerAdvanced Load Runner
Advanced Load Runner
 
Load and performance testing
Load and performance testingLoad and performance testing
Load and performance testing
 
LoadUI web performance testing tool
LoadUI web performance testing toolLoadUI web performance testing tool
LoadUI web performance testing tool
 
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...
Load ui web Load Testing Open source Performance Testing tool Learn Load UI W...
 
advanced_load_runner.ppt
advanced_load_runner.pptadvanced_load_runner.ppt
advanced_load_runner.ppt
 
Wap tpresentation (Load testing Tool )
Wap tpresentation (Load testing Tool )Wap tpresentation (Load testing Tool )
Wap tpresentation (Load testing Tool )
 
Web and load testing with Visual Studio 2010 Ultimate
Web and load testing with Visual Studio 2010 UltimateWeb and load testing with Visual Studio 2010 Ultimate
Web and load testing with Visual Studio 2010 Ultimate
 
Silk Performer Presentation v1
Silk Performer Presentation v1Silk Performer Presentation v1
Silk Performer Presentation v1
 
JMeter
JMeterJMeter
JMeter
 
Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6
 
Experitest & Wipro Co-Webinar
Experitest & Wipro Co-Webinar Experitest & Wipro Co-Webinar
Experitest & Wipro Co-Webinar
 
Performance testing jmeter
Performance testing jmeterPerformance testing jmeter
Performance testing jmeter
 
HP LoadRunner
HP LoadRunnerHP LoadRunner
HP LoadRunner
 
Top 20 LoadRunner Interview Questions and Answers in 2023.pdf
Top 20 LoadRunner Interview Questions and Answers in 2023.pdfTop 20 LoadRunner Interview Questions and Answers in 2023.pdf
Top 20 LoadRunner Interview Questions and Answers in 2023.pdf
 
Performance and load testing
Performance and load testingPerformance and load testing
Performance and load testing
 
Wading through treacle? Escape the integration syrup with contract tests
Wading through treacle? Escape the integration syrup with contract testsWading through treacle? Escape the integration syrup with contract tests
Wading through treacle? Escape the integration syrup with contract tests
 

Kürzlich hochgeladen

Call Girls Dubai O525547819 Favor Dubai Call Girls Agency
Call Girls Dubai O525547819 Favor Dubai Call Girls AgencyCall Girls Dubai O525547819 Favor Dubai Call Girls Agency
Call Girls Dubai O525547819 Favor Dubai Call Girls Agencykojalkojal131
 
Benefits of Co working & Shared office space in India
Benefits of Co working & Shared office space in IndiaBenefits of Co working & Shared office space in India
Benefits of Co working & Shared office space in IndiaBrantfordIndia
 
The 5 sec rule - Mel Robins (Hindi Summary)
The 5 sec rule - Mel Robins (Hindi Summary)The 5 sec rule - Mel Robins (Hindi Summary)
The 5 sec rule - Mel Robins (Hindi Summary)Shakti Savarn
 
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?Mikko Kangassalo
 
ingrediendts needed in preparing dessert and sweet sauces
ingrediendts needed in preparing dessert and sweet saucesingrediendts needed in preparing dessert and sweet sauces
ingrediendts needed in preparing dessert and sweet saucesJessicaEscao
 
Spiritual Life Quote from Shiva Negi
Spiritual Life Quote from Shiva Negi Spiritual Life Quote from Shiva Negi
Spiritual Life Quote from Shiva Negi OneDay18
 
English basic for beginners Future tenses .pdf
English basic for beginners Future tenses .pdfEnglish basic for beginners Future tenses .pdf
English basic for beginners Future tenses .pdfbromerom1
 
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...JeylaisaManabat1
 
integrity in personal relationship (1).pdf
integrity in personal relationship (1).pdfintegrity in personal relationship (1).pdf
integrity in personal relationship (1).pdfAmitRout25
 

Kürzlich hochgeladen (9)

Call Girls Dubai O525547819 Favor Dubai Call Girls Agency
Call Girls Dubai O525547819 Favor Dubai Call Girls AgencyCall Girls Dubai O525547819 Favor Dubai Call Girls Agency
Call Girls Dubai O525547819 Favor Dubai Call Girls Agency
 
Benefits of Co working & Shared office space in India
Benefits of Co working & Shared office space in IndiaBenefits of Co working & Shared office space in India
Benefits of Co working & Shared office space in India
 
The 5 sec rule - Mel Robins (Hindi Summary)
The 5 sec rule - Mel Robins (Hindi Summary)The 5 sec rule - Mel Robins (Hindi Summary)
The 5 sec rule - Mel Robins (Hindi Summary)
 
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
 
ingrediendts needed in preparing dessert and sweet sauces
ingrediendts needed in preparing dessert and sweet saucesingrediendts needed in preparing dessert and sweet sauces
ingrediendts needed in preparing dessert and sweet sauces
 
Spiritual Life Quote from Shiva Negi
Spiritual Life Quote from Shiva Negi Spiritual Life Quote from Shiva Negi
Spiritual Life Quote from Shiva Negi
 
English basic for beginners Future tenses .pdf
English basic for beginners Future tenses .pdfEnglish basic for beginners Future tenses .pdf
English basic for beginners Future tenses .pdf
 
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
 
integrity in personal relationship (1).pdf
integrity in personal relationship (1).pdfintegrity in personal relationship (1).pdf
integrity in personal relationship (1).pdf
 

Are Your Teams Writing Quality Code

  • 1. Are Your Teams Writing Quality Code? Ervin Loh Microsoft MVP Email: loh-chuanho@k365labs.com Blog: http://ervinloh.spaces.live.com/ 1
  • 2. Scenario You reached the final mile before facing the real world. Learn how Visual Studio Team System assist you in detecting potential performance problems before you deploy your application to the real world. 2
  • 3. Agenda Overview of Web Tests Overview of Load Tests Interpreting Test Results Test Case Development 3
  • 4. Overview of Web Tests What Are Web Tests? What Is the Importance of Web Tests? How Web Tests Are Created How Web Tests Are Run What Are Validation and Extraction Rules? Demonstration: How to Verify Web Tests Demonstration: How to Create and Run a Web Test 4
  • 5. What Are Web Tests? Web tests are used to test the functionality of Web applications. Web tests consist of a series of HTTP requests. Requests are replayed by an agent, and not a Web browser. The Web application being tested can be any HTTP application, and not just an ASP.NET application. It can also be based on the new AJAX support. Web tests can be run in parallel to create load tests: A load test simulates multiple users opening simultaneous connections to a server and making multiple HTTP requests. 5
  • 6. What Is the Importance of Web Tests? Web applications are becoming increasingly complex. Many Web applications host business critical functions. Web applications must have both high performance and be broadly scalable. Consumers are expecting ever more compelling and stable Web sites. A single problem can lose the loyalty of millions of users. 6
  • 7. How Web Tests Are Created Recorded Web tests are: Created by simply recording a browsing session. Stored as XML. Edited graphically in the Web Test Editor. Coded Web tests are: Generally created by converting a recorded Web test. Stored as .NET Code (VB.NET or C#.) Edited in a code editor. Can easily access the full power of the .NET Framework. Necessary for branching and looping. 7
  • 8. How Web Tests Are Run Web Tests can be triggered in the following ways: • Web Test Editor • Test View Window • Test Manager Window • Command Line • Using the Web Test Viewer:  Web Test Viewer shows an overview of the status of individual requests.  View the details of each request in the Web test and the resulting response to those requests. 8
  • 9. What Are Validation and Extraction Rules? Validation rules help verify if the Web application is functioning properly. They verify the: Existence of text, tags, or attributes on the page returned by a Web request Time it takes a request to finish Existence of form fields and their values Extraction rules: Extract data from the responses to Web requests Store results in the test context as name value pairs Can extract form fields, text, attributes, headers, regular expressions, and hidden fields. 9
  • 10. Demonstration: How to Create and Run a Web Test At the end of this demonstration, you will see how to: Record a Web test. Edit a recorded Web test. Run a recorded Web test. View the results of a test run. Convert a recorded Web test into a coded Web test. 10
  • 11. Demonstration: How to Verify Web Tests In this demonstration, you will see how to verify a Web test using the Web Test Viewer. 11
  • 12. Overview of Load Tests What Are the Functions of a Load Test? Types of Load Tests Considerations for Choosing Load Profiles Considerations for Choosing Connection Models Demonstration: How to Create a Load Test Using Load Test Wizard How Load Tests Are Run Demonstration: How to Run a Load Test 12
  • 13. What Are the Functions of a Load Test? The primary goal of a load test is to simulate many users accessing a server at the same time. Adding Web tests to a load test simulates simultaneous connections to a server, and making multiple HTTP requests. Adding unit tests to a load test is equivalent to testing the performance of non-Web based server components, for example, an application of a unit test under load is to test data access model components. 13
  • 14. Types of Load Tests Type of Test Description Smoke Tests how your application performs under light loads for short durations Stress Determines if the application will run successfully for a sustained duration under heavy load Performance Determines how responsive your application is Capacity Planning Determines how your application performs at various capacities 14
  • 15. Considerations for Choosing Load Profiles A load pattern defines the number and increase rate of virtual users active during a load test. The types of load patterns are: Constant Step Goal-based 15
  • 16. Considerations for Choosing Connection Models Connection Model Features Considerations • Most closely simulates the behavior of a real Number of browser connections held • Uses one or two Connection Per open on the agent connections per virtual User computer may be as user high as twice the • Same connections are re- user load used for subsequent requests • Connections to the Web server are shared among One Web test may virtual Web test users Connection Pool have to wait before • Tests that are running on issuing a request by different virtual users could share a connection 16
  • 17. Demonstration: How to Create a Load Test Using Load Test Wizard At the end of this demonstration, you will see how to create a load test using the Load Test Wizard. 17
  • 18. How Load Tests Are Run Load Tests can be triggered in many different ways Web Test Editor Test View Window Test Manager Window Command Line Using the Load Test Viewer Web Test Viewer shows an overview of the status of individual requests View the details of each request in the Web test and the resulting response to those requests. 18
  • 19. Demonstration: How to Run a Load Test At the end of this demonstration, you will see how to Run a Load Test View the Load Test results 19
  • 20. Overview of Interpreting Test Results How Load Test Analyzer Is Used What Is the Load Test Repository? What Is a Test Rig? Demonstration: How to Access Load Test Results Using Load Test Analyzer 20
  • 21. How Load Test Analyzer Is Used Use the Load Test Analyzer to view Load Test data from a completed test run. Analyze the test run to locate bottlenecks, identify errors, and measure improvements. Load test data contains: Performance counter samples from the computers under test, plus any other configured performance counters. Error and threshold rule violation information. The test controller saves some performance counter data for a test run; the amount saved, and it’s location, is configurable 21
  • 22. What Is the Load Test Repository? Information gathered from load tests is stored in the Load Test Results Store. The Load Test Results Store contains performance counter data and information about recorded errors. Load test run data from previous test runs can be retrieved using Load Test Analyzer. 22
  • 23. What Is a Test Rig? A test rig is made up of a test controller and one or more agents. A test rig: Provides distributed, automated test execution. Can simulate hundreds of thousands of users. Can generate far more load than a single machine. 23
  • 24. Demonstration: How to Access Load Test Results Using Load Test Analyzer At the end of this demonstration, you will see how to access load test results using Load Test Analyzer. 24
  • 25. 25
  • 26. © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. 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. 26