Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A Software Engineering question, regarding Black-Box Testing Techniques: Q:- A p

ID: 3796055 • Letter: A

Question

A Software Engineering question, regarding Black-Box Testing Techniques:

Q:- A program computes its output variable T according to the following formula: [ x as in multiply]

1)T = X x 0.2 + Y x 0.4 + Z x 0.4 where X>= 50, Y>= 50 and Z >= 50

2)T= X x 0.2 + Y x 0.3 + Z x 0.5 where X,Y and Z are otherwise than X>= 50, Y>= 50 and Z >= 50 range.

The input variables of this program are X,Y and Z. All of them are positive values. Using the following Black-Box testing techniques to design a test that is suit to this program:

a) Equivalence Class Testing

1. A program computes its output variable Taccording to the following formula T- X 0.2 Y 0.4 Z 0.4 X 50 and Y 2 50 and Z 50 X 0.2 Y 0.3 Z 0.5 otherwise The input variables of this program are X, Y and Z. All of them are non-negative values. Using the following black-box testing techniques to design a test suite each to test this program a) Equivalence class testing b) Boundary value testing c) Cause-effect testing

Explanation / Answer

1)T = X x 0.2 + Y x 0.4 + Z x 0.4 where X>= 50, Y>= 50 and Z >= 50

Here the list of test case according to different value of X, Y and Z.

Only those test case are valid where X>= 50, Y>= 50 and Z >= 50

We have to check boundary test case

Test Case

X(value)

Y(value)

Z(value)

Test Case Status

Test case 1

>= 50

>= 50

>= 50

True

Test case 2

>50

>= 50

>= 50

invalid/ False

Test case 3

>50

>50

>= 50

invalid/ False

Test case 4

>50

>=50

>50

invalid/ False

Test case 5

>50

>50

>50

invalid/ False

Test case 6

>= 50

> 50

>= 50

invalid/ False

Test case 7

>= 50

> 50

> 50

invalid/ False

Test case 8

>= 50

>= 50

>50

invalid/ False

Test case 9

=51

=51

=51

True

Test case 10

=50

=51

=51

True

Test case 11

=50

=50

=51

True

Test case 12

=50

=51

=50

True

Test case 13

=51

=50

=51

True

Test case 14

=51

=50

=50

True

Test case 15

=51

=50

=50

True

2)T= X x 0.2 + Y x 0.3 + Z x 0.5 where X,Y and Z are otherwise than X>= 50, Y>= 50 and Z >= 50 range.

Here the list of test case according to different value of X, Y and Z.

Only those test case are valid where X,Y and Z are otherwise than X>= 50, Y>= 50 and Z >= 50 range.

We have to check boundary test case

Test Case

X(value)

Y(value)

Z(value)

Test Case

Test case 1

>= 50

>= 50

>= 50

False

Test case 2

>50

>= 50

>= 50

True

Test case 3

>50

>50

>= 50

True

Test case 4

>50

>=50

>50

True

Test case 5

>50

>50

>50

True

Test case 6

>= 50

> 50

>= 50

True

Test case 7

>= 50

> 50

> 50

True

Test case 8

>= 50

>= 50

>50

True

Test case 9

=51

=51

=51

False

Test case 10

=50

=51

=51

False

Test case 11

=50

=50

=51

False

Test case 12

=50

=51

=50

False

Test case 13

=51

=50

=51

False

Test case 14

=51

=50

=50

False

Test case 15

=51

=51

=50

False

---------------------------------------------------------------------------------------------

If you have any query, please feel free to ask.

Thanks a lot.

Test Case

X(value)

Y(value)

Z(value)

Test Case Status

Test case 1

>= 50

>= 50

>= 50

True

Test case 2

>50

>= 50

>= 50

invalid/ False

Test case 3

>50

>50

>= 50

invalid/ False

Test case 4

>50

>=50

>50

invalid/ False

Test case 5

>50

>50

>50

invalid/ False

Test case 6

>= 50

> 50

>= 50

invalid/ False

Test case 7

>= 50

> 50

> 50

invalid/ False

Test case 8

>= 50

>= 50

>50

invalid/ False

Test case 9

=51

=51

=51

True

Test case 10

=50

=51

=51

True

Test case 11

=50

=50

=51

True

Test case 12

=50

=51

=50

True

Test case 13

=51

=50

=51

True

Test case 14

=51

=50

=50

True

Test case 15

=51

=50

=50

True

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote