Expert one on one Test Chapter Note

   The most important thing that you have to test your code whatever in which phase,throught the software lifecylcle you need to test your progroam.
   The following are getting from the book,just as a remind,when we do the coding ,do not forget to do the test.


    Unit tests
    Most of us doing this level

    Test coverage
       This refers to the proportion of application code that is tested (usually, by unit tests). For example,we might aim to check that every line of code is executed by at least one test, or that every logicalbranch in the code is tested.

    Black-box testing

       This considers only the public interfaces of classes under test. It is not based on knowledge of implementation details.

    White-box testing
      do not advocate this

    Regression tests
        These establish that, following changes or additions, code still does what it did before. Given adequate coverage, unit tests can serve as regression tests.

    Boundary-value tests
        These test unusual or extreme situations that code under test should be able to handle (for example, unexpected null arguments to a method).

    Acceptance tests (sometimes called Functional tests)

        These are tests from a customer's viewpoint. An acceptance test is concerned with how the application meets business requirements. While unit tests test how each part of an application doesits job, acceptance tests ignore the implementation details and test the ultimate functionality,using concepts that make sense to a user (or customer, in XP terminology)

    Load tests
        These test an application's behavior as load increases (for example, to simulate a greater population of users). The aim of load testing is to prove that the application can cope with the load
    it is expected to encounter in production and to establish the maximum load it can support. Load tests will often be run over long periods of time, to test stability. Load testing may uncover
    concurrency issues. Throughput targets are an important part of an application's non-functional requirements and should be defined as part of business requirements.

    Stress tests

你可能感兴趣的:(XP)