In-situ measurement methodology for device testing