The brain natriuretic peptide (BNP) test is a quantitative measurement of the plasma level of this hormone. BNP is primarily secreted by the ventricles of the heart in response to stretching of their walls and increased pressure within them, as in cases of heart failure. It is an important biomarker for diagnosing and assessing the severity of heart failure.