DeviceFarm / Client / create_test_grid_url

create_test_grid_url#

DeviceFarm.Client.create_test_grid_url(**kwargs)#

Creates a signed, short-term URL that can be passed to a Selenium RemoteWebDriver constructor.

See also: AWS API Documentation

Request Syntax

response = client.create_test_grid_url(
    projectArn='string',
    expiresInSeconds=123
)
Parameters:
  • projectArn (string) –

    [REQUIRED]

    ARN (from CreateTestGridProject or ListTestGridProjects) to associate with the short-term URL.

  • expiresInSeconds (integer) –

    [REQUIRED]

    Lifetime, in seconds, of the URL.

Return type:

dict

Returns:

Response Syntax

{
    'url': 'string',
    'expires': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • url (string) –

      A signed URL, expiring in CreateTestGridUrlRequest$expiresInSeconds seconds, to be passed to a RemoteWebDriver.

    • expires (datetime) –

      The number of seconds the URL from CreateTestGridUrlResult$url stays active.

Exceptions

  • DeviceFarm.Client.exceptions.NotFoundException

  • DeviceFarm.Client.exceptions.ArgumentException

  • DeviceFarm.Client.exceptions.InternalServiceException