Expectation testing, also known as expectation validation testing, aims to evaluate the conformity of a computer program to predefined criteria. It involves specifying expectations and anticipated behaviors for various situations, then executing the program under test using predefined scenarios. The objective is to verify that the observed behavior actually matches the established expectations.