The article addresses the issue of stress testing based on the probability of bankruptcy and a rating migration matrix. The analysis is conducted on a sample of listed companies in Poland in the years 1998–2016, and the forecasts are made for the years 2016–2018. Particular attention is paid to how the variable on which rating migration matrices are developed is defined. Stress tests are carried out on variables derived from rating migration matrices and economic indicators. The study provides information on the methodology for stress testing.