Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

get_test_grid_session

get_test_grid_session(**kwargs)

A session is an instance of a browser created through a RemoteWebDriver with the URL from CreateTestGridUrlResult$url. You can use the following to look up sessions:

  • The session ARN ( GetTestGridSessionRequest$sessionArn ).
  • The project ARN and a session ID ( GetTestGridSessionRequest$projectArn and GetTestGridSessionRequest$sessionId ).

See also: AWS API Documentation

Request Syntax

response = client.get_test_grid_session(
    projectArn='string',
    sessionId='string',
    sessionArn='string'
)
Parameters
  • projectArn (string) -- The ARN for the project that this session belongs to. See CreateTestGridProject and ListTestGridProjects.
  • sessionId (string) -- An ID associated with this session.
  • sessionArn (string) -- An ARN that uniquely identifies a TestGridSession.
Return type

dict

Returns

Response Syntax

{
    'testGridSession': {
        'arn': 'string',
        'status': 'ACTIVE'|'CLOSED'|'ERRORED',
        'created': datetime(2015, 1, 1),
        'ended': datetime(2015, 1, 1),
        'billingMinutes': 123.0,
        'seleniumProperties': 'string'
    }
}

Response Structure

  • (dict) --

    • testGridSession (dict) --

      The TestGridSession that was requested.

      • arn (string) --

        The ARN of the session.

      • status (string) --

        The state of the session.

      • created (datetime) --

        The time that the session was started.

      • ended (datetime) --

        The time the session ended.

      • billingMinutes (float) --

        The number of billed minutes that were used for this session.

      • seleniumProperties (string) --

        A JSON object of options and parameters passed to the Selenium WebDriver.

Exceptions

  • DeviceFarm.Client.exceptions.NotFoundException
  • DeviceFarm.Client.exceptions.ArgumentException
  • DeviceFarm.Client.exceptions.InternalServiceException