Arithmetic's right-bicep test

Source: Internet
Author: User

Right-is the result correct?

That's right

B is all the boundary conditions correct?

Conformance (consistency): whether the value is consistent with the expected consistency

Ordering (sequential): whether the value is as it should be

is an ordered or unordered range (interval): Whether the value is between a reasonable minimum and a maximum value is

Reference (Dependency): Does the code refer to some external resources that are not within the control of the code itself?

Existence (Presence): Whether the value exists (non-null, not 0, medium in a set) can handle the elements of each element ; Each element is a int32 type

Cardinatity (cardinality): exactly enough value

Time (absolute or relative): Is everything happening in order? Is it at the right moment?  Is it just in time? Is

Can I check the inverse association?

(For some methods, you can use a reverse logical relationship to validate them.) Examine a method that calculates the square root using the square of the result, and then test whether the result is close to the original data in order to check if a record is successfully inserted into the database, you can verify by querying this record. )

No

C-Can you cross-check the results with other means?

(There is more than one method for calculating a quantity.) You can use another method to cross-test the results of the original method. Use data from different components of the class itself for cross-checking. The Library Data system can be checked by borrowing several and the sum of the stock and must be equal to the amount of books that are hidden. )

No, because oil is an input method.

E-Can you force error conditions to occur?

Can, when an element exceeds 1000 or exceeds the range of Int32, an error occurs, such as

Does p meet performance requirements?

Can, because the problem is relatively single

Arithmetic's right-bicep test

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.