Equivalence class Partitioning Example 2

Source: Internet
Author: User

Title: instance of equivalence class is increased to three boxes, click OK button to determine the test case character in three boxes does not meet the requirements.

Understanding of the topic: The equivalence class used for this problem is similar to the equivalence class used in the last box, but I made some improvements, and then I designed the test cases separately in three edit boxes to achieve:

The equivalence classes for partitioning are:

by condition Number Valid equivalence classes Number Invalid equivalence class
Length 1 1~6 3 Length 0 or greater than or equal to 7
Character 2 Contains A~z,0~9,a~z 4 Contains control characters and punctuation marks

Test Case:

NO Editbox1 input Editbox2 input Editbox3 input Expected output
1 Axw2 ds0a Dwdw Editbox1 input legal Editbox2 input legal, EDITBOX3 input legal
2 2ew 0 Sdjdjsf Editbox1 input Legal, editbox2 input length is not legal, editbox3 input length is not legal
3 2ew ' FD 0 Editbox1 input valid, Editbox2 input character is illegal, editbox3 input length is not legal
4 12dsdcxc Ew3 &djsi Editbox1 input character is illegal, editbox2 input is legal, editbox3 input character is illegal
5 0 Disdgjhj 2rfA Editbox1 input length is not valid, Editbox2 input length is illegal, editbox3 input is legal
6 Asj1 AXs3 0 Editbox1 input Legal, editbox2 input legal, editbox3 input length is not legal
7 Aow 0 Sak Editbox1 input Legal, editbox2 input length is not legal, editbox3 input legal
8 0 Dsd Qd Editbox1 input length is not valid, Editbox2 input is legal, editbox3 input is legal
9 , WR Ds Fd Editbox1 input character is illegal, editbox2 input is legal, editbox3 input is legal
10 Dosd ;d C Fs Editbox1 input valid, Editbox2 input character is illegal, editbox3 input is legal
11 FFs Fs [VD Editbox1 input Legal, editbox2 input legal, editbox3 input character is not legal
12 Dskddsd Dw Hs Editbox1 input length is not valid, Editbox2 input is legal, editbox3 input is legal
13 Edjw Fsfdfdffd ew Editbox1 input Legal, editbox2 input length is not legal, editbox3 input legal
14 Fe Fdf Rwewrrr Editbox1 input Legal, editbox2 input legal, editbox3 input length is not legal

Equivalence class Partitioning Example 2

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.