Learning to record and execute the tests