Determine the test cases using boundary value analysis, Software Engineering

Assignment Help:

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}.


Related Discussions:- Determine the test cases using boundary value analysis

Demonstrate the sequence of prototyping, Demonstrate the Sequence of protot...

Demonstrate the Sequence of prototyping Sequence of prototyping is demonstrated in following Figure.

What can be main reasons for a bug not being to reproduce, What can be main...

What can be main reasons for a bug not being to reproduce? What must be done if such a bug is found? A bug can't be reproduced for below reasons: 1. Low memory. 2. Things

Explain product and process standards, Product and process standards Pr...

Product and process standards Problems with standards They may not be seen as relevant and up-to-date by software engineers. They often include too much bureaucratic form

Illustrate exploratory testing, Illustrate exploratory testing. - In ex...

Illustrate exploratory testing. - In exploratory testing approach testers are involved in maximum test execution and minimum planning. - Planning includes creation of a test

Explain the term in brief-test script and test specification, Explain the t...

Explain the term in brief- Test Script and Test Specification: Test Script: - It is generally used to refer to instructions for a particular test which will be carried out

How will an engineer assess the safety, How will an engineer assess the saf...

How will an engineer assess the safety?  The risks linked to a project or product must be identified. The purposes of the project or product must be identified and ranked in im

What are the demerits of spiral model, What are the demerits of spiral mode...

What are the demerits of spiral model? i. It is depends on customer communication. If the communication is not suitable then the software product that gets developed will not r

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd