Home background

Using secrets in collection

Home background

Using secrets in collection

Home background

Using secrets in collection

Secrets

Secrets in test collection are used to securely store sensitive information like API keys, passwords, and tokens. They protect this data from being exposed in the code by allowing it to be referenced as variables within the tests. Use ${{ secrets.<secret name> }} to put a secret in the collection

Read More

Secrets

Secrets in test collection are used to securely store sensitive information like API keys, passwords, and tokens. They protect this data from being exposed in the code by allowing it to be referenced as variables within the tests. Use ${{ secrets.<secret name> }} to put a secret in the collection

Read More

Secrets

Secrets in test collection are used to securely store sensitive information like API keys, passwords, and tokens. They protect this data from being exposed in the code by allowing it to be referenced as variables within the tests. Use ${{ secrets.<secret name> }} to put a secret in the collection

Read More

{
    "name": "Collection with secrets",
    "baseUrl": "https://dummyjson.com",
    "requests": [
      {
        "uri": "/auth/login",
        "method": "POST",
        "body": "{\"login\":\"${{ secrets.login }}\"}"
      }
    ]
}
{
    "name": "Collection with secrets",
    "baseUrl": "https://dummyjson.com",
    "requests": [
      {
        "uri": "/auth/login",
        "method": "POST",
        "body": "{\"login\":\"${{ secrets.login }}\"}"
      }
    ]
}

Still have any questions?

Still have any questions?

Still have any questions?