Assignment 4 - Test Plan - Includes full testing table as well as screenshots with comments and annotations |
BTEC Level 3 Unit 16 Procedural Programming |
Criteria Covered: P3, P4 - ALL CRITERIA WERE MET
Assignment 4 – Test Plan
Part 1 – Test Plan
No. Description Expected Result Actual Result Passed?
1 User will be able to enter height of the room. After running the program a message The user is promoted with the YES
This will the test if the program prompts the saying “Enter the height of the question and they are able to [1]
user with an input form for the user to enter room:” and the user is able to enter enter an input
an integer which will be stored in a variable. an input.
2 User will only be able to enter a number If the number they enter is not When trying to type in letters as NO, only
between 2 and 6 meters for the height. If the between 2 and 6 then the program the input instead of an integer I partially
number is not between 2 and 6 than the will ask the user to enter it again. found that I get an error [2]
question will be repeated until a valid answer message and that is because I
is entered. have used the int() function.
With numbers the program runs
as expected.
3 User will be able to enter width of each room. Program will ask for the width of The user is able to enter a width YES
This test will check if the user is asked to enter each individual wall and they will be for all four walls. [3]
an integer for the height and if it gets stored stored in a variable
inside the variable. It will also check that all 4
widths work separately and correctly.
4 User will only be able to enter an integer The user enters a valid number and I found that the program would NO, only
between 1 and 25 meters. If an invalid input is program continues. If the number is break and display an error partially
entered it will ask the user to enter an input not between 1 and 25 than the message when I tried to enter a [4]
again until a valid input has been entered. This program will ask the user to enter a decimal number. With integers
will work for all 4 walls. number again. the program worked as
expected.
5 Program will calculate area. After the user The program will use the variables The total area was calculated YES
input the width of each wall and the height of and times the height by each wall and displayed using the [5]
the room. The program will then print the total and display the total area. variables.
area of the room.
6 Program will calculate total wall cost. After The program will times the area of The total cost gets calculated YES
choosing the quality of the paint the program the room and multiply by the cost of correctly and displayed in the bill [6]
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Boyan67. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £4.48. You're not tied to anything after your purchase.