Connect / Client / create_test_case
create_test_case¶
- Connect.Client.create_test_case(**kwargs)¶
Creates a test case with its content and metadata for the specified Amazon Connect instance.
See also: AWS API Documentation
Request Syntax
response = client.create_test_case( InstanceId='string', Name='string', Description='string', Content='string', EntryPoint={ 'Type': 'VOICE_CALL', 'VoiceCallEntryPointParameters': { 'SourcePhoneNumber': 'string', 'DestinationPhoneNumber': 'string', 'FlowId': 'string' } }, InitializationData='string', Status='PUBLISHED'|'SAVED', TestCaseId='string', Tags={ 'string': 'string' }, LastModifiedTime=datetime(2015, 1, 1), LastModifiedRegion='string' )
- Parameters:
InstanceId (string) –
[REQUIRED]
The identifier of the Amazon Connect instance.
Name (string) –
[REQUIRED]
The name of the test.
Description (string) – The description of the test.
Content (string) –
[REQUIRED]
The JSON string that represents the content of the test.
EntryPoint (dict) –
Defines the starting point for your test.
Type (string) –
The type of entry point.
VoiceCallEntryPointParameters (dict) –
Parameters for voice call entry point.
SourcePhoneNumber (string) –
The source phone number for the test.
DestinationPhoneNumber (string) –
The destination phone number for the test.
FlowId (string) –
The flow identifier for the test.
InitializationData (string) – Defines the initial custom attributes for your test.
Status (string) – Indicates the test status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content. The SAVED status does not initiate validation of the content.
TestCaseId (string) – Id of the test case if you want to create it in a replica region using Amazon Connect Global Resiliency
Tags (dict) –
The tags used to organize, track, or control access for this resource.
(string) –
(string) –
LastModifiedTime (datetime) – The time at which the resource was last modified.
LastModifiedRegion (string) – The region in which the resource was last modified
- Return type:
dict
- Returns:
Response Syntax
{ 'TestCaseId': 'string', 'TestCaseArn': 'string' }
Response Structure
(dict) –
TestCaseId (string) –
The identifier of the test.
TestCaseArn (string) –
The Amazon Resource Name (ARN) of the test.
Exceptions