The test involves a patient breathing into a mouthpiece connected to a spirometer. The device records the amount of air and the rate at which it is expelled over a specific period. Key metrics include Forced Vital Capacity (FVC), which is the total amount of air exhaled, and Forced Expiratory Volume in one second (FEV1), which measures the amount of air expelled in the first second of a forceful exhale.