Boundary-value analysis (Software Engineering)

AI Thread Summary
The discussion focuses on boundary-value analysis and its application in a homework problem related to software testing. The user is unsure about calculating the number of possible inputs and how to effectively apply boundary-value analysis alongside equivalence partitioning. They propose several partitions for testing input fields but seek clarification on whether they need to include values within and outside the boundaries. Additionally, there is confusion regarding the requirements for test cases, particularly concerning format compatibility. The advice given emphasizes the need to clarify the assignment expectations and suggests a structured approach to testing valid and invalid inputs.
s3a
Messages
814
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: 483
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
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
7
Views
2K
Replies
0
Views
152
Replies
3
Views
2K
Replies
10
Views
2K
Back
Top