Skip to content

get_test async

get_test(
    arn: AmazonResourceName,
    *,
    config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
) -> GetTestResult

Gets information about a test.

Parameters:

Raises:

Examples:

To get information about a specific test The following example gets information about a specific test.

>>> await client.get_test(arn='arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456')
Source code in docs_src/capo_device_farm/_services/async_device_farm.py
async def get_test(
    self,
    arn: "capo_device_farm.types.amazon_resource_name.AmazonResourceName",
    *,
    config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
) -> "capo_device_farm.types.get_test_result.GetTestResult":
    """<p>Gets information about a test.</p>

    Args:
        arn: <p>The test's ARN.</p>

    Raises:
        capo_device_farm.errors.argument_exception.ArgumentException: <p>An invalid argument was specified.</p>
        capo_device_farm.errors.limit_exceeded_exception.LimitExceededException: <p>A limit was exceeded.</p>
        capo_device_farm.errors.not_found_exception.NotFoundException: <p>The specified entity was not found.</p>
        capo_device_farm.errors.service_account_exception.ServiceAccountException: <p>There was a problem with the service account.</p>
        capo_device_farm.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To get information about a specific test
        The following example gets information about a specific test.

        >>> await client.get_test(arn='arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_device_farm.types.get_test_request.GetTestRequest]",
    ) -> AsyncOperationResponse[
        "capo_device_farm.types.get_test_result.GetTestResult"
    ]:
        import capo_device_farm._operations.device_farm_20150623.get_test

        (
            output,
            http_response,
        ) = await capo_device_farm._operations.device_farm_20150623.get_test.async_get_test(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetTest")
    )
    input_: capo_device_farm.types.get_test_request.GetTestRequest = {"arn": arn}

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output