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

What are the tools mainly used for information gathering, What are the tool...

What are the tools are mainly used for information gathering 1.  Record review: A review of recorded documents of organisation is performed.Manuals procedures, forms and book

Advantages and disadvantages of size measure, What are the advantages and d...

What are the advantages and disadvantages of size measure? Advantages: Artifact of software development which is simply counted. Many existing methods use LOC as a key input. A

State the level 5 of key process areas, Level 5 KPAs 1)Defect Prevent...

Level 5 KPAs 1)Defect Prevention (DP): It discovers causes of defects and devises techniques which prevent them from recurring. 2)Technology Change Management (TCM): It

What is the meaning of real time system, What is the meaning of Real time s...

What is the meaning of Real time system? Real time system is a software system where the correct functionalities of the system are dependent upon results evaluated by the syste

Disadvantage of lines of code, Q. Disadvantage of lines of code? 1. Lac...

Q. Disadvantage of lines of code? 1. Lack of Accountability: Lines of code measure suffers from some fundamental problems. A few think it isn't useful to measure the productivi

Determine the boundary value analysis, What is a boundary value analysis? ...

What is a boundary value analysis? A boundary value analysis is a testing procedure by which the elements at the edge of the domain are selected and tested. It is a test case d

Software project planning entails what activities, Software project plannin...

Software project planning entails what activities? Software project planning entails the many activities: -  Estimation:  o Effort, , resource, cost and project duratio

Define measure and metrics, Define measure and metrics. Measure is  a q...

Define measure and metrics. Measure is  a quantitative indication of the extent, dimension, amount or size of some attribute of a product or process. Metrics is termed as th

What are the types of requirements, What are the Types of Requirements ...

What are the Types of Requirements There are numerous categories of the requirements. On the basis of their priority, requirements are classified into below 3 types: 1.

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