Question
Create a test plan document for the program below. Example document below program. ----------------------------------------------------------------------------------- Follow the format given in the example test plans (one below,
Create a test plan document for the program below.
Example document below program.
-----------------------------------------------------------------------------------
- Follow the format given in the example test plans (one below, and one on the Testing page). You can download and copy the test plan document below and use it as a template: replace the content of each section with your own content.
- Write the test plan as if for someone who cannot see your source code (utilize black-box testing). They can only run the program, provide inputs, and observe outputs.
- For each test case, include at least the following fields: Summary, Test Procedure, Test Data, Expected Result. Feel free to add more fields if you want to. (See Test Case for additional fields.)
- Include test cases for all important categories of input (valid, invalid, boundary, etc.). If your program passes every test case in your test plan, you should be confident that it functions correctly.
- Be sure to run your program against the test plan to determine its correctness, and fix any bugs found.
---------------------------------------------------------------------------------
My program:
#Fitness Tracker
def getUserTime(type): exercised = input("Did you do " + type + "? (yes/no): ") if exercised.lower() == "no": return 0 else: time = float(input("Enter how long you did " + type + "? (mins): ")) return time def main() duration = [0, 0, 0] types = ["yoga", "cardio", "meditation"] days = ["Monday", "Tuesday", "Wedneday", "Thursday", "Friday", "Saturday", "Sunday"] print("Welcome to your Fitness Tracker!") for days in range (1, 8, 1): print("Day -". days[day-1]) for type in types: time = getUserTime(type) if type == "yoga": duration[0] += time elif type == "cardio": duration[1] += time else: duration[2] += time if sum(duration) >= 3 * 20 * 7: print("Your fitness score is a full 5 stars! Nice work!") elif sum(duration) >= 3 * 20 * 7 * 0.8: print("Your fitness score is 4 out of 5 stars") elif sum(duration) >= 3 * 20 * 7 * 0.6: print("Your fitness score is a 3 out of 5 stars") elif sum(duration) >= 3 * 20 * 7 * 0.4: print("Your fitness score is a 2 out of 5 stars") else: print("Your fitness score is a 1 out of 5 stars. Do better next week.")
___________________________________________________________
TEST PLAN EXAMPLE:
Program Description Calculates terms in the Fibonacci sequence as well as the Golden Ratio. Input
Output
Test Plan Overview System tests using black-box testing of all functions of the program. Valid as well as invalid inputs are tested. Test Cases Test Case 1: Invalid Inputs
Test Case 2: Valid Inputs Producing No Output
Test Case 3: First 2 Terms
Test Case 3: Multiple Terms
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started