Automatic Variables are variables that are available in all your scripts without you having to add them manually. These variables are useful in a number of circumstances:
Automatic Variables are configured in the Badboy Preferences dialog. To add an Automatic Variable, go to the Preferences menu and select "Preferences" and then click on the "Variables" tab. The figure below shows how the Automatic Variables tab looks:
When you play your script you can make changes to Automatic Variables just like you can to ordinary variables. In fact, Automatic Variables work just like ordinary variables in nearly all respects. One difference, however, is important: values of Automatic Variables are not saved with your script. Instead they are saved as part of the Badboy Preferences. This means that although your script can modify the values of automatic variables, other scripts will not see the modifications. If you want to make a permanent change to the value of an automatic variable then you have to do it by changing the variable in the Preferences.
If you are familiar with the concept of environment variables, you can think of Automatic Variables as being a bit like environment variables for Badboy. Just like environment variables, scripts get the values of the Automatic Variables when they are opened. After that they can be modified but the changes are only visible to the Badboy process that is running the script.
Badboy comes with some Automatic Variables built in when you install it. These are common variables that are helpful to applications built on web frameworks such as Java Servlets and ASP.NET. They help by capturing session id's and form states to ensure scripts play back properly, even when the server uses different unique values for each web session. If you don't need these variables you can delete them, however they shouldn't cause you any trouble and can help make testing applications built on these common frameworks much easier.