Test - Equivalence partitioning method and boundary value

First, the test cases / test cases (test case / test instabce)

  1. What is the test?

  A: Before test execution, written by the testers to guide the testing process is an important test documents, including: Example number, purpose of the test, test steps, expected results, etc. with (different companies of different templates, core almost)

  2, black box testing (functional test) is commonly used test methods are there? (7 kinds)

  A: 1) equivalence partitioning method

    a. Applications (what when to use, where with where)

    A: When the program data is input, the present process may be used for testing (respectively valid and invalid test data), a large amount of data should be divided into several ranges, and then a small amount of data representing the selection of the test (sample test more efficient)

    b, test ideas

    1) exhaustive testing ideas: that is, all possible data for testing, is the most comprehensive test, but takes too much time, test efficiency is very low, so the practice is not used

    2) ideal test ideas: with a minimum of test data, to achieve the best test results ,, less test data, test efficiency, but after all, did not test all the data so there is a risk of missing BUG, ​​testers should work in practice case of an actual permitting, carry out additional tests as much as possible, to reduce the risk of BUG

    3) Equivalence partitioning test idea: the large amount of data is divided into ranges, and then selected to represent the data from each of the test range, each range of the test results should be the same (equivalent), so that each range is called an equivalent class

    b. Test Procedure

      Effective equivalence class: reasonably correct input data set

      Invalid equivalence class: unreasonable wrong set of input data, the validation software fault tolerance and exception handling capabilities

      Step 1: Analyze demand, preliminary division of equivalence classes (based on demand)

      Step 2: Refinement equivalence classes (according to the data stored in the type or format), for example: non-integer: decimal, letters, special characters, Chinese characters, to separate the positive and negative test data valid data, the results of the analysis of equivalence classes filled table

      Step 3: preparation of test cases, the scope of coverage of all equivalence classes of the analysis (high coverage)

    2) the boundary value method

      Description boundary value method: Since the development, the boundary data is most likely to occur BUG, ​​it should focus test, and therefore the input data, the test method of this invention, a boundary value

      Applications: In software, data input, the boundary value method may be used, and the boundary value is typically used in conjunction equivalence partitioning method, thereby forming a more comprehensive test program,

          ps: Equivalence partitioning boundary values ​​and each key has a different test, together with the test, the best coverage, the best option

      Boundary value : 1) point boundary value (2): the amount is between the active and inactive equivalence class equivalence class demarcation point, the minimum value (min) maximum value (max)

            2) times the value of the boundary points (4) is on both sides of the boundary values ​​of neighboring points, respectively (valid / invalid) (maximum and minimum) Bounding

    3) Method FIG cause

    4) The method determination table

    5) orthogonal arrangement method

    6) Test outline (outline) method

    7) Method scene

  3, writing test cases Resources:

    1) Reference class documentation requirements

    2) Reference-technical documentation (not necessarily get)

    3) test system has been developed (in the company system design often measured with reference embodiment, if only general requirements document with reference to only 20% -40% of the design used in Example)

    4) through the development, product, user and other communication discussion (including Internet search, a reference to similar products, etc.) ps: a lot of time testing resources are not complete, testers should use all possible resources to try to test high coverage

  

 

Guess you like

Origin www.cnblogs.com/qinzhenhong/p/11568738.html