Globals

Account Variables

Account Variables are global, reusable identifiers that allow you to store and manage key-value pairs used across your test steps in API Hub for Test. These variables can streamline the testing process by enabling dynamic input and output values, reducing redundancy, and centralizing configuration data for better manageability.

Create and Manage Account Variables

  1. Navigate to the Globals section in the left sidebar and click on Account Variables.

  2. Click the + Add Variable button in the top-right corner.

  3. Fill the details and click Save.

Check Variables & Parameters to learn more on the variables creation workflow.

Once created, variables can be edited or deleted from this screen. Use meaningful names and descriptive comments to help team members understand their purpose.

Secrets

The Secrets feature in API Hub for Test is designed for securely storing sensitive information, such as API keys, authentication tokens, and other confidential data, that needs to be referenced within your tests or segments. This guide will explain the Secrets interface and how to effectively use it.

Secrets are unique, encrypted values that only administrators can access and manage. Unlike Account Variables, Secrets are used specifically for sensitive data that must remain protected. This ensures a higher level of security for confidential information used in test automation.

Create a Secret

  1. Navigate to the Globals section in the left sidebar and click on Secrets.

  2. Click the + Add Secret button.

  3. In the dialog box that appears, provide a Name and the Value for your secret.

  4. Save the secret. It will now appear in the Secrets list, accessible for authorized use.

Secrets can be integrated into tests or segments in the same way as Variables, allowing you to reference sensitive data without exposing it. These values are resolved at runtime, ensuring that your sensitive information is kept secure throughout the process.

Best Practices

  • Use Secrets exclusively for sensitive data to maintain a clear separation from general-purpose variables.

  • Regularly review and update Secrets to ensure they remain secure and up-to-date.

  • Limit access to Secrets creation and modification to admin users only.

By managing sensitive data through the Secrets feature, you can ensure your API tests are both secure and efficient.

Publication date: