One of the frustrating things in Azure Automation used to be that you had to enter your variables every single time you tested your automation. This is no longer the case! To save your variables all you need to do is minimize the testing page. After you have made the changes to the script you click save then reopen the testing pane. Your variables will all be there and your changes have been committed!