An erection self-test is a method to determines a man's ability or inability to achieve an erection during sleep.
Nocturnal penile tumescence (NPT) stamp test; Nighttime penile tape test