Boundary-value analysis (Software Engineering)

Click For Summary
SUMMARY

This discussion focuses on boundary-value analysis and its application in black-box testing. The participant calculates the number of possible inputs as 1,000,000,120 and identifies key partitions for testing, including boundaries such as 0 and 9, 0 and 5, and 0 and 60. The conversation emphasizes the need to combine boundary-value analysis with equivalence partitioning to create comprehensive test cases. Additionally, it clarifies the importance of testing both valid and invalid inputs, as well as format compatibility.

PREREQUISITES
  • Understanding of black-box testing principles
  • Familiarity with boundary-value analysis techniques
  • Knowledge of equivalence partitioning concepts
  • Basic statistics for input validation
NEXT STEPS
  • Study the principles of black-box testing in software engineering
  • Learn how to implement boundary-value analysis in test case design
  • Explore equivalence partitioning and its integration with boundary-value analysis
  • Research common input validation techniques and formatting requirements
USEFUL FOR

Software engineers, quality assurance testers, and students studying software testing methodologies will benefit from this discussion, particularly those focusing on effective test case design and input validation strategies.

s3a
Messages
828
Reaction score
8

Homework Statement


The problem is attached. I'm concerned with the second question.


Homework Equations


Black-box testing/Boundary value analysis.


The Attempt at a Solution


Firstly, am I correct in calculating 10^9 + 6 + 26 + 11 + 61 + 8 + 8 = 1000000120 number of possible inputs?

For the second part (which is what this thread is about), I watched this video:


but, I'm still confused as to how to do this particular problem.

I'm thinking that I need to make similar partitions and then use the boundaries of each partition which, in this case, consists of:

1) 0 and 9
2) 0 and 5
3) 0 and 25
4) 0 and 10
5) 0 and 60
6) F and A
7) Unsatisfactory and Excellent

Is this correct and complete for boundary-value analysis? The way the question is written (the “three tests for each input field part” part) makes me think that this involves equivalence partitioning in conjunction with boundary-value analysis and not boundary-value analysis alone. Does this mean I need to include a value within (and strictly excluding the boundaries of) each range and is it in fact combining equivalence partitioning with boundary-value analysis? Also, I'm very confused as to what is being asked as of “format incompatible” onward.

Any help in solving this problem completely would be GREATLY appreciated!
Thanks in advance!
 

Attachments

  • Problem.jpg
    Problem.jpg
    29.2 KB · Views: 499
Last edited by a moderator:
Physics news on Phys.org
I'm horrible with statistic, so I'll move onto the second question.

You probably want to clarify this questions with your teacher. Does he/she want three test for each input field? Or does he/she want 9, three for regular input, three for boundary, and three for format?

If I read the question correctly, I believe the question asked for test cases for the input. It looks like your partition is done for the output.

I'm not 100% sure this is correct, but it looks like the question is just asking you for test cases for failing condition. I'll take the month of birth as an example. You know the number of valid month is 1 - 12. So how can I test that the program work correctly? Test to make sure the test case pass (i.e. 1 - 12), and test for cases when it would fail (anything other than 1 - 12).

Testing input field for month of birth:
Partition 1: negative number to 0
Partition 2: 1 - 12 (valid number)
Partition 3: 13+

You know anything in partition 1 and partition 3 have to fail. So you can pick any number (e.g. -3 and 45) in those two partitions to make sure the test case fail. Then pick any number in partition 2 to make sure the test case pass.

Now, you want to test boundary condition, which is the smallest or largest number in which the test case fails and the smallest and largest number in which the test case passes. So in the month input field, you would want to test the following:
Pass: 1, 12
Fail: 0, 13

Now formatting. You want to test to see if there's a format you have to conform to. So suppose the month only accept 2 digits, then if you have "1", would the program be able to read that? For formatting, I would test: 01, 001, a, 1 3

You would have to use this logic for all your input.

Am I making any kind of sense?
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
15
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K