Software Test second week study notes

Source: Internet
Author: User
Tags control characters

This week we mainly studied the basic concepts of equivalence class partitioning and some examples of equivalence class partitioning.

First, the basic content of equivalence class division

Equivalence class partitioning solves the problem of how to select the appropriate subset of data to represent the entire data set, by reducing the number of tests to achieve "reasonable" coverage, and covering more potential data to discover more software defects.

The equivalence class partitioning method is a typical and important black box test method, which divides all possible input data (valid and invalid) into several equivalence classes. Then select the representative data from each section as a reasonable classification of test cases, the test cases are composed of valid equivalence class and invalid equivalence class, so as to ensure the completeness and representativeness of the test case. Using this method to design test cases can not consider the internal structure of the program, according to the requirements specification, select the appropriate typical subset, carefully analyze and scrutinize the requirements of the specification, especially the functional requirements, as much as possible to find errors. The equivalence class partitioning method is a systematic method for determining the test conditions to be entered. Second, effective equivalence class Division A valid equivalence class refers to a set of reasonable and meaningful input data components for a program specification. The effective equivalence class can be used to verify whether the program implements the pre-defined functionality and performance of the specification. A valid equivalence class can be one or more, dividing several parts according to the input domain of the system, then selecting a few representative data from each part as the test case of data test, and the equivalence class is a collection of input fields.  Here are some examples of valid equivalence class datasets. The end user enters the command with the end user to interact with the system prompt to accept the name of the associated user file that provides initialization values and boundaries, and other messages that provide formatted output data when a command in graphical mode (such as a mouse click) provides a response message that is displayed when the data fails third, the test cases of equivalence class Division title: Allow 1 to 6 English characters or numbers, press OK to end

Valid equivalence classes: Length: 1 to 6 characters: a-z,a-z,0-9
Invalid equivalence class: Length: 0, 7 characters: English/numeric characters, control characters, punctuation

First step: Division of equivalence types

Valid equivalence classes Invalid equivalence class
Length: 1 to 6 Length: 0 or greater than 7
Character: a-z,a-z,0-9 Characters: English/numeric characters, control characters, punctuation
Step Two: Test case generation
Number Input character Expected output
1 A Valid input
2 Z Valid input
3 55136s Valid input
4 Zagsdf Valid input
5 Null Invalid input
6 @ Invalid input
7 Space Invalid number in
8 *@#$%^ Invalid input
9 @123 Invalid input
10 12345# Invalid input
11 Uyueiuwy Invalid input

Software Test second week study notes

Related Article

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.