Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

Environment overrides

Updated on December 9, 2021

Use environment overrides to customize your project to run in different environments, such as Development, QA, and Production environments.

Environment overrides in v21 replace Configurations in prior versions of Robot Studio but work in much the same way. You can override property values for variables, controls, and match rules at runtime for each environment.You can set values of certain variables and properties at runtime based on the environment you're running.

At runtime, the overrides are applied to the project before the project is run. In the following figure, the Text label for a Windows form in the Test environment is Test Form and in the Production environment it is Production Form.

Environment overrides
Figure showing environment overrides set up for Test and Production

Adding an environment override

Use environment overrides to configure different values for different environments, such as Test and Production environments.

  1. In the Property grid of an application, automation, or Windows form, right-click the property you want to create overrides for.Result: The Environment override button displays, as in the following figure:
    Figure showing the Environment override button displaying for a field
                            in the Property grid.
  2. Click Environment override.
  3. Click Manage environments and then Add environment.
  4. Name the environment, such as Production, Test, or Development.
  5. When you are done adding environments, click Submit.
  6. Change the value of the property, based on the environment, as in the figure below.
    Figure showing different values for the Production and Test
    Once you add overrides, Robot Studio adds an Environment overrides component to the project, as in the following figure.
    Figure showing Environment overrides component and tab on Project
  7. In the Environment overrides window, click Test Environment to change the project environment.
    Figure showing the Change project environment dialog box options.
  8. Select the environment to test and click OK.
  9. Click Run all to test the environment.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us