Determine the test cases using boundary value analysis, Software Engineering

Q. Consider a program which computes the square root of an input integer between 0 and 5000. Determine the equivalence class test cases. Determine the test cases using boundary value analysis also.

Ans. For a program that calculates the square root of an input integer which can assume values in the range of 0 to 5000 there are three equivalence classes The set of negative integers the set of integers in the range of 0 and 5000 as well as the integers larger than 5000. Consequently the test cases must include representatives for each of the three equivalence classes and a possible test set can be: {-5,500,6000}. Boundary value analysis initiates selection of test cases at the boundaries of the different equivalence classes. For a function that calculates the square root of integer values in the range of 0 and 5000, the test cases must include the following values: {0, -1,5000,5001}.

Posted Date: 7/26/2013 5:10:59 AM | Location : United States







Related Discussions:- Determine the test cases using boundary value analysis, Assignment Help, Ask Question on Determine the test cases using boundary value analysis, Get Answer, Expert's Help, Determine the test cases using boundary value analysis Discussions

Write discussion on Determine the test cases using boundary value analysis
Your posts are moderated
Related Questions

Q. Why Waterfall model is advantageous than Adhoc Methods? Why Waterfall model is advantageous than Adhoc Methods AC16 Software Engineering Ad-hoc Process Models -Process

Define the Level 1 of maturity model At this maturitylevel,software is developed an ad hoc basis and nonstrategic technique is used for its development. Success of developed s

Mention some of the Notations for requirements specification. Structured natural language: Use standard Templates or form. Design description language: Programming langua


A) What is test-driven software development? Why test-driven software development is significant in agile development approach?   B) Explain how the following software develo


How to compute the cyclomatic complexity? The cyclomatic complexity can be computed by any one of the following ways. 1. The numbers of regions of the flow graph correspond

Determine the problems of software maintenance Software maintenance has the below problems: i)  It is very cumbersome to analyse and understand code written by somebody.