A3_SolTemplate-1

docx

School

Old Dominion University *

*We aren’t endorsed by this school

Course

722

Subject

Geography

Date

Dec 6, 2023

Type

docx

Pages

5

Uploaded by ColonelOpossum3731

Report
Assignment 3 Solution Template Fill in the information for each test that you develop for the 4 tables below. Add more rows as required to list all possible tests for each type. Do not repeat tests which have already been used to test a particular description. Use as many rows as needed to capture all of your tests. Each of the four tables may span more than one page if necessary. Representative Input Tests Test # Test Description Test Data Expected Result Actual Result Pass/Fail 1 Normal Range Input temperate, 10, 15, 20, 10 20 entries, id, random ages, health, coordinates, and gender 20 entries, id, random ages, health, coordinates, and gender pass 2 Different variations of correct climate name Tundra tUndra TUNDRA tundra Accept or prompt reenter Accepts all but prompts user to reenter if case is anything but the first letter Pass 3
Functional Coverage Tests Test # Test Description Test Data Expected Result Actual Result Pass/Fail 1 Run twice with same input to verify randomness tundra, 8, 9, 11, 10 11 entries at each run, different values each time 11 entries at each run, different values each time Pass 2 Incorrect climate name returns error Ahdkg 0032 Return error and continue Returns error and continues Pass 3 For foxes younger than 3 is health within range for 7-10? tundra, 10,10,15,3 tropical, 10,10,15,3 temperate, 10,10,15,3 None of the foxes have a health rating below 7 None of the foxes have a health rating below 7 Pass 4 Health ranges for tundra at upper 20% of y-axis tundra, 10,10,15,10 Foxes above y=8 will have health ranging from 1-4. Foxes at y=8 and above still had high health at varying ages Failed Health ranges for tundra below 20% y-axis tundra, 10,10,15,10 Foxes(above age 3) at y=7 and below will have health ranging from 4-7. Foxes(above age 3) at y=7 and below will have health ranging from 4-7. Pass 5 Health ranges for tropical at lower 20% of y-axis Tropical, 10,10,20,10 Foxes at y=2 and below will have health ranging from 1- 4. Foxes at y=2 and below will have health ranging from 1-4. Pass 6 Health ranges for tropical above 20% y-axis Tropical, 10,10,15,10 Foxes(above age 3) at y=3 and above will have health ranging from 4-7. Foxes(above age 3) at y=3 and above have varying indiscriminate health Fail
values. 7 Health ranges for temperate after age 5 Temperate, 10,10,15,10 Foxes above age 5 will have health ranging from 1-4 Foxes above age 5 will have health ranging from 1-4 Pass 8 Health ranges for temperate before age 5 Temperate, 10,10,15,5 Foxes after age 3 and before 6 will have health ranging from 4-7 Foxes after age 3 and before 6 will have health ranging from 4-7 Pass Boundary Values Tests Test # Test Description Test Data Expected Result Actual Result Pass/Fail 1 Test grid sizes tundra, 1, 1, 10, 10 X and Y coordinates only 0s and 1s X and Y coordinates only 0s and 1s Pass 2 Test age range Tundra, 10,10,10,20 Ages should be only 0-20 Ages should be only 1-20 Pass 3 Test health range Temperate, 10,10,10,10 Health should only be between 1-10 Health should only be between 1-10 Pass
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
4 Test id range Temperate, 1,1,10,1 Id’s should range from zero to one below the given population(0-9) Id’s range from zero to one below the given population(0-9) Pass 5 Special Values Tests Test # Test Description Test Data Expected Result Actual Result Pass/Fail 1 Should return error for negative number input Temperate -10,-10,-15,-5 Should prompt user to reenter the value and then once they do continue with code. Prompts users to reenter the number until it receives a positive number Pass 2 Should return error for decimal number input Temperate, 0.1, 0.1, 0.1, 0.1 Should prompt user to reenter the value and then once they do continue with code. Prompts user to reenter the number for most values, however, fails to do so for population size Fail 3 Will properly receive number with 0 ahead of it, (ex: 04), otherwise give user error. Temperate, 04,02,05,06 Temperate, 004,002,005,006 Will properly receive number with 0 ahead of it, (ex: 04), otherwise give user error. Will properly receive number Pass
4 Symbols used with inputs *!tundra, !2,*1,?5,&2 Error/prompt reenter Error/prompts reenter Pass 5