Collect metrics in test process