A swab test is a medical procedure used to collect a sample from a patient's body for diagnostic purposes. It involves using a sterile swab, which is a small stick with a cotton or synthetic tip, to gather cells or fluids from areas such as the throat, nose, or wound sites. These samples are then sent to a laboratory for analysis to detect the presence of pathogens, infections, or other conditions.