Test cases of software testing

Source: Internet
Author: User

For software test cases, we have many methods, such as equivalence class partitioning method, boundary value analysis method and causality diagram method. There are different ways to think differently, so we have to learn to use test cases reasonably to achieve the results we expect.

Take a question as an example:

EditBox

Allow 1 to 6 characters or numbers, press OK to end.

Analyze its valid equivalence classes:

Length: 1 to 6

Character: a-z,a-z,0-9

Parse its invalid equivalence class:

Length: 0,7

Characters: Characters outside of English and numerals, control characters, and punctuation

Based on the above analysis, we can design its test cases:

Number Test Cases Results
1 1 True
2 123 True
3 123456 True
4 1234567 False
5 Null False
6 A True
7 Abc True
8 ABCdef True
9 Abcdefg False
10 A True
11 Abc True
12 ABCDEF True

13

ABCDEFG

False

The above use case not only takes into account the equivalence class partitioning method, in which the numbers 1, 3, 6, 8, 10 and 12 also take into account the boundary value analysis method, I think more reliable and effective test cases, I hope there is worth reference to the place.

Test cases of software testing

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.