How to Record Automation in Sonar