Question 4: Software Testing. Consider the following simple (and nonsensical) pseudocode subroutine.

profileCM9195

   

Whatever (in x, y; out z)

begin

x  <--- x * 2;

if x > 0 then

y <--- y + 200;

else

y <--- 5 * y;

endif;

while x > y do

x <--- x – 10;

endwhile;

z <--- y – x;

end;


  

a. List and briefly discuss three goals of performing software testing. Why do we test software systems?

b. Describe briefly how you would apply Functional (Black Box) Testing to this subroutine. Why would you perform functional testing?

c. Describe briefly how you would apply Structural (White Box) Testing to this subroutine. Why would you perform structural testing?

  • 6 years ago
  • 75
Answer(1)

Purchase the answer to view it

blurred-text
NOT RATED
  • attachment
    1582645341958_Assignment1.docx