Monday 1 July 2013

Define Boundary Value Analysis with Examples

Define Boundary Value Analysis with Examples :

What is Boundary Value Analysis ?

A test data selection technique in which values are chosen to lie along data extremes. Boundary values include maximum, minimum, just inside/outside boundaries, typical values, and error values. The hope is that, if a systems works correctly for these special values then it will work correctly for all values in between.

Example 1 for Boundary Value Analysis : 

Password field accepts minimum 6 characters and maximum 12 characters. [Range is 6-12]

Write Test Cases considering values from  Valid region and each Invalid Region and Values which define exact boundary.

We need to execute 5 Test Cases for our Example 1.
1. Consider password length less than 6
2. Consider password of length exactly 6
3. Consider password of length between 7 and 11
4. Consider password of length exactly 12
5. Consider password of length more than 12 

Note : 1st and 5th Test Cases are considered for Negative Testing

Boundary-Value-Analysis-Examples


Example 2 for Boundary Value Analysis :

Test cases for input box accepting numbers between 1 and 1000 using Boundary value analysis:
1) Test cases with test data exactly as the input boundaries of input domain i.e. values 1 and 1000 in our case.
2) Test data with values just below the extreme edges of input domains i.e. values 0 and 999.
3) Test data with values just above the extreme edges of input domain i.e. values 2 and 1001.


Example 3 for Boundary Value Analysis :

Name text box which allows 1-30 characters. So in this case writing test cases by entering each character once will be very difficult so then will choose boundary value analysis.

So in this case at max 5 test cases will come:

Test case1: minimum -1 character: Validating not entering anything in text box
Test case2: minimum +1 character: Validating with only one char
Test case3: maximum -1 character: Validating with 29 chars
Test case4: minimum +1 character: Validating with 31 characters
Test case1: any one middle number: validating with 15 chars

Happy Sharing!

10 comments:

  1. In thrid Example , the test case 4 should be maximum +1 , by mistake it is in minimum +1... please correct it...
    This site is very useful thanks for your valuable knowledge...

    ReplyDelete
  2. SME Business Consultancy offers you in all business territories and hierarchical exercises are the demonstrations of getting individuals together to achieve wanted objectives and destinations.

    ReplyDelete
  3. SEO Training in Janakpuri, SEO is that the method of moving the visibility of the website during a search engine's natural or un-paid or organic search results. SEO is required for your web site to rank well within the computer program result pages.

    SEO Training in Janakpuri
    Web Designing Course in Dwarka
    PHP Institute in Uttam Nagar

    ReplyDelete
  4. I was very interested in the article , it’s quite inspiring I should admit. I like visiting your site since I always come across interesting articles like this one. Keep sharing! Regards. Read more about
    Security Testing Services
    Test Automation Services
    Software Testing Services
    Compatibility Testing Services
    Regression Testing Services

    ReplyDelete
  5. I was very interested in the article , it’s quite inspiring I should admit. I like visiting your site since I always come across interesting articles like this one. Keep sharing! Regards. Read more about

    Very valuable post...! This information shared is helpful to improve my knowledge skill. Thank you...!
    Offshore software testing services
    software testing services company
    software testing services
    Software Qa Services
    quality assurance service providers
    Performance testing services
    Security testing services
    software testing Companies
    regression testing services

    ReplyDelete
  6. Thanks for sharing such a valuable piece of information, I'm doing AWS training and certification course for now but have planned to hope into the value analysis courses in the future to make my grip strong in the same field.

    ReplyDelete
  7. This post is so useful and informative. Keep updating with more information.....
    App To Improve English
    Spoken English Certificate

    ReplyDelete
  8. Awesome article, it was exceptionally helpful! I simply began in this and I'm becoming more acquainted with it better! Cheers, keep doing awesome!

    ReplyDelete

Share your feedback and queries here. Your feedback are more valuable to us!