Leak testing can be performed during product validation, end-of-line quality control, or periodic inspection to detect defects early and prevent failures in the field.