The batteries were tested in a CD player (low drain device), a flashlight (medium drain device), and a camera flash (high drain device) by measuring the battery voltage (dependent variable) at different time intervals (independent variable) for each of the battery types in each of the devices.