Test Environment List

Get the details of the environments for a test.

Test Environment List

curl 'https://api.runscope.com/buckets/<bucket_key>/tests/<test_id>/environments' \
				-H 'Authorization: Bearer <access_token>'
		

Test Environment List Response Attributes

Attributes

  • authobject

    The authentication settings for the test environment. Basic, OAuth 1.0, and short and extended OAuth 2.0 methods are supported.

  • emailsobject

    The email details for sending notifications for this test

  • initial_variablesobject

    An object with the keys and values being used for variables when the test begins

  • integrationsarray

    A list of integrations to enable for test runs using this environment

  • namestring

    The name for this environment

  • parent_environment_idnull

    The parent environment to inherit from, applies only to test-specific environments

  • preserve_cookiesboolean

    If this is set to true, tests using this environment will manage cookies between steps

  • regionsarray

    A list of API Monitoring regions to execute test runs in when using this environment

  • retry_on_failureboolean

    If this is set to true, an additional test run will be triggered immediately after a failed scheduled test run

  • stop_on_failureboolean

    If this is set to true, test runs will stop executing after the first step that fails. All subsequent steps will be skipped

  • remote_agentsarray

    A list of remote agents to execute test runs in when using this environment

  • scriptstring

    The initial script to run before starting tests using this environment

  • test_idstring

    The test this environment is associated with, applies only to test-specific environments

  • idstring

    The unique ID for this environment

  • verify_sslboolean

    If this is set to false, tests using this environment won't verify SSL certificates

  • client_certificatestring

    Client certificate text available to be used in request authentication. PEM-encoded

  • webhooksarray

    A list of URL's to send results to when test runs using this environment finish

Response200 OK

{
    "auth": {
        "password": "password",
        "username": "username",
        "auth_type": "basic"
    },
    "emails": {
        "notify_all": false,
        "notify_on": "all",
        "notify_threshold": null,
        "recipients": [
            {
                "email": "grace@example.com",
                "name": "Grace Hopper",
                "id": "4ee15ecc-7fe1-43cb-aa12-ef50420f2cf9"
            }
        ]
    },
    "initial_variables": {
        "my_variable": "some value",
        "one more": "values"
    },
    "integrations": [],
    "name": "Remote Settings",
    "parent_environment_id": null,
    "preserve_cookies": false,
    "regions": [
        "us1",
        "jp1"
    ],
    "retry_on_failure": false,
    "stop_on_failure": false,
    "remote_agents": [
        {
            "name": "my-local-machine.runscope.com",
            "uuid": "141d4dbc-1e41-401e-8067-6df18501e9ed"
        }
    ],
    "script": "var a = \"asdf\";\nlog(\"OK\");",
    "test_id": null,
    "id": "f8007150-0052-482c-9d52-c3ea4042e0f5",
    "verify_ssl": true,
    "client_certificate": "",
    "webhooks": [
        "http://api.example.com/webhook_reciever",
        "https://yourapihere.com/post"
    ]
}