Joey Geraci, Peter Kidane, Ammar Alsalman ECE 411 Portland State University November 23, 2011 Test Plan Page 1 Cooling Solution for Adjustable Resistance Bike Trainer 1.0 INTRODUCTION 2.0 Reference Documents 2.1 Block Level Diagram 3.0 PRETEST PREPARATION 3.1 Test Equipment Needed 4.0 SYSTEM TESTS 4.1 Unit Testing 4.2 Integration Testing 4.3 Functional Testing 4.4 Stress Testing 5.0 TEAM CONTACT INFOMATION APPENDIX: Test Record Sheets Test Plan Page 2 1.0 INTRODUCTION The purpose of this document is to provide a comprehensive test plan for the device we have built which we call the “Cooling Solution for Adjustable Resistance Bike Trainer”. 2.0 Reference Documents 2.1 Block Level Diagram Mmi potentiometer Hall effect sensor Test Plan MCU Fan Page 3 3.0 PRETEST PREPARATION 3.1 Test Equipment Needed Digital Multimeter Oscilloscope Laptop PC Laboratory DC Power Supply 4.0 SYSTEM TESTS 4.1 Unit Testing Hall Effect Sensor Potentiometer Fan Measures movement of bike wheels Calculation is used to estimate RPM of bike Measures resistance that the bike trainer applies to the wheels. Fan speed approximates level of work output by rider by combining and scaling RPM and Resistance inputs 4.2 Integration Testing Different speeds with Pot Constant Approx. same speed with changing pot 4.3 Functional Testing Full system testing 4.4 Stress Testing Random Testing Test Plan Biker raises and lowers RPM, fan speed should raise and lower accordingly Biker attempts to maintain constant speed while resistance is increased and decreased, fan speed should correspond directly to pot position Biker increases speed, then decreases, simultaneously the pot decreases, then increases, fan speed should vary little. Biker is given free rein to increase and decrease speed, while pot is modulated randomly, and fan should function appropriately Page 4 5.0 TEAM CONTACT INFOMATION Ammar Alsalman Peter Kidane Joey Geraci Test Plan ammaralsalman@yahoo.com pkidane@pdx.edu joey2264@gmail.com Page 5 Appendix Test Plan Page 6 Test Writer: John Chhokar Test Case Name: Description: Tester Information Name of Tester: Hardware Ver.: Unit Testing Test each subcomponent for functionality as they are isolated; subcomponents include (Ultrasonic Sensor, Red/Green LED, Speaker, Led Bar consists of 10 LEDs). Setup: Step 1 2 3 4 5 6 7 8 9 10 11 12 Action Ultrasonic Sensor Sit in front of PC Remove objects in sensors path Sit close to sensor (~ 5cm) Sit far from sensor (~30cm) LED BAR Sit in front of PC (~15cm) Sit in front of PC (~10cm) Sit in front of PC (~25cm) LED Red/Green Sit in safe zone from PC (~25cm) Sit in unsafe zone from PC (< 20cm) Move away from PC Speaker Sit ~ 25cm from PC for > 1 minute Sit ~ 10cm from PC for > 1 minute Test Plan Test ID: Type: TEST1 White Box Black Box Date: ver. 1.0 Time: Device needs to begin test with USB connection to a PC and sensor placed above PC screen. Expected Results Pass Fail Sensor should output a voltage Sensor should output a voltage Sensor should output a voltage Sensor should output a voltage < 5 LEDs in the on state > 5 LEDs in the on state All LEDs in the off state Green LED should be on Red LED should be off All LEDs in the off state No alarm should sound Speaker issues audible alarm Page 7 N/A Comment Test Writer: Brian Dharmanto Test Case Name: Description: Tester Information Name of Tester: Hardware Ver.: Setup: Step Action Test Plan Test ID: Type: Date: Time: ver. 1.0 Expected Results Pass Fail Page 8 N/A Comment TEST1 White Box Black Box Test Writer: Ahmed Almulhim Test Case Name: Description: Tester Information Name of Tester: Hardware Ver.: Setup: Step Unit Testing Basic Functional Test Test functionality, make sure to have the LED’s, LED bar and speaker working when the PC user is detected or not. Action 1 2 PC User Detected Detected in the safe zone (~25 cm) Detected distance < 20 cm 3 Detected distance ~15cm 4 Detected distance ~10cm Detected distance < 20 cm and for > 1 minute PC User not Detected 5 6 Nothing detected Test Plan Type: Date: Time: ver. 1.0 Expected Results Test ID: Pass Fail Green LED should go high Red LED should go high < 5 LED’s on bar should be high (while RED LED on) > 5 LED’s on bar should be high (while RED LED on) Speaker gives out warning noise. ALL LED’s off and all states are low. Page 9 N/A Comment TEST1 White Box Black Box Test Writer: Tam Hoang Test Case Name: Description: Tester Information Name of Tester: Hardware Ver.: Setup: Step Action Test Plan Test ID: Type: Date: Time: ver. 1.0 Expected Results Pass Fail Page 10 N/A Comment TEST1 White Box Black Box Test Plan Page 11