Vous êtes sur la page 1sur 3

San Jose State University Computer Engineering Department

Course Name: CMPE287/187 Software Quality Testing


Instructor: Dr. Jerry Gao Homework #1: (Wednesday Class - Afternoon Class from 1:30pm) Semester: Fall 2012 Posted date: 2/08/2012 Due date: 2/29/2012

Question #1: Software Component Testing (25%)


Reading chapters (From #1 to #5) (5%) List three common reasons why some components have testability issues. (5%) List three challenges in testing components? (5%) Provide one serious lesson and consequence on reuse components without re-validation in the reuse context and environment (Hint: one example has been given in your textbook) (5%) List one user-oriented test processes for reusable components. (5%) Compare conventional software models and software components and list their major differences.

Question #2: Equivalence Partitioning Testing Questions. (20%)


Assume you have been asked to use Equivalence Partitioning method to test a logon feature for an ATM system for a bank system. Here are the detailed requirements for a logon feature: Each use must use valid card to access a given ATM machine, otherwise, his/her ATM card will be rejected. When a card is validated, a welcome menu with logon information will be displayed.

When a user must enter his/her correct PIN number, a transaction menu will be displayed. Otherwise, a warning message Incorrect PIN number will be displayed.

A valid PIN number must meet the following conditions: A PIN number only consists of digitals or printable characters. Each valid PIN number must consists of at least 10 letters (or digitals) Each valid PIN number can have up to 20 letters (or digitals) Each PIN must include at least one special printable char (such as ? and :)

When an invalid PIN number is found, then, a warning message Incorrect PIN Number will be displayed.

Please use equivalence partitioning method to design your test cases to check both valid and invalid PIN numbers by answer the following two questions: a) Please list your identified equivalence classes to present them using a table. (10%) b) Based on these equivalence classes identify and present test cases in a table. (10%)

Question #3: Boundary Value Testing (25%)


Using the boundary value analysis method to derive a set of Black Box test cases for the following function to cover the boundary value analysis criteria. Please make sure to all input data and expected output data. ----| 2X - Y when 5 < x <= 10, and 15<=Y<=20 Z= | X + 2Y - 5 when 0 < x <= 5, and 0< y < 10 | Undefined when X = 0 and Y=0 | 0 Otherwise -----Define all boundaries based on the given requirements. (5%) Define the test cases for each boundary in a table format. (10%)

a) c)

b) Define the boundary values for each boundary. (10%).

Question #4: (25%) Using the Category-Partition Method to specify function tests.
A binary search program accepts and processes a binary tree search command, performs a binary search for a given integer data from a binary tree, which is generated by reading data from an input data file (Input.DAT). The command line is formatted as follows: Binary-Tree-Search Given-Integer-Data Input.DAT The functional descriptions of this program are listed below:

The program is able to read the given integer data in the command line and validate if it is integer and range from 1 to 1000. The program reads all of the integers from the given integer file, and store them into a binary tree. The program processes a correct formatted binary search command, performs a binary search function, and display one of the following outcomes: o o The integer data is found. The integer data is not found.

The program will display different error messages in the following cases: o o o o The commend line is incorrect The input data file is not accessible The input data file does not exist or empty The input data are not integer data

Please use the Category-Partition method to do the followings: a) Generate Category-Partitions based on parameters (12%) b) Generate one function test case/frame for each partition (13%). Please read the paper by Thomas J. Ostyand and Marc J. Balcer. The detailed paper reference is given below. Thomas J. Ostrand and Marc J. Balcer, The Category-Partition Method for Specifying and Generating Function Tests, Communication of the ACM, Vol. 31, No. 6, June 1988. (Hint: You should be able to find this paper from ACM digital library).

Question #5:

Literature search question. (8%)

Search the Internet and IEEE/ACM digital library to find and submit two published research papers on the following two subjects (or subjects/keywords): Mobile Security Testing Methods/Tools (4%) Security Issues/Methods/Tools for Cloud Computing (4%)

List the completed references for the two papers (in softcopy) on each subject.

Vous aimerez peut-être aussi