/AWS1/IF_CNT=>CREATETESTCASE()¶
About CreateTestCase¶
Creates a test case with its content and metadata for the specified Amazon Connect instance.
Method Signature¶
METHODS /AWS1/IF_CNT~CREATETESTCASE
IMPORTING
!IV_INSTANCEID TYPE /AWS1/CNTINSTANCEIDORARN OPTIONAL
!IV_NAME TYPE /AWS1/CNTTESTCASENAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/CNTTESTCASEDESCRIPTION OPTIONAL
!IV_CONTENT TYPE /AWS1/CNTTESTCASECONTENT OPTIONAL
!IO_ENTRYPOINT TYPE REF TO /AWS1/CL_CNTTESTCASEENTRYPOINT OPTIONAL
!IV_INITIALIZATIONDATA TYPE /AWS1/CNTTESTCASEINITDATA OPTIONAL
!IV_STATUS TYPE /AWS1/CNTTESTCASESTATUS OPTIONAL
!IV_TESTCASEID TYPE /AWS1/CNTTESTCASEID OPTIONAL
!IT_TAGS TYPE /AWS1/CL_CNTTAGMAP_W=>TT_TAGMAP OPTIONAL
!IV_LASTMODIFIEDTIME TYPE /AWS1/CNTTIMESTAMP OPTIONAL
!IV_LASTMODIFIEDREGION TYPE /AWS1/CNTREGIONNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cntcreatetestcasersp
RAISING
/AWS1/CX_CNTACCESSDENIEDEX
/AWS1/CX_CNTDUPLICATERESRCEX
/AWS1/CX_CNTIDEMPOTENCYEX
/AWS1/CX_CNTINTERNALSERVICEEX
/AWS1/CX_CNTINVALIDPARAMETEREX
/AWS1/CX_CNTINVALIDREQUESTEX
/AWS1/CX_CNTINVALIDTESTCASEEX
/AWS1/CX_CNTLIMITEXCEEDEDEX
/AWS1/CX_CNTRESOURCENOTFOUNDEX
/AWS1/CX_CNTSERVICEQUOTAEXCDEX
/AWS1/CX_CNTTHROTTLINGEX
/AWS1/CX_CNTCLIENTEXC
/AWS1/CX_CNTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_instanceid TYPE /AWS1/CNTINSTANCEIDORARN /AWS1/CNTINSTANCEIDORARN¶
The identifier of the Amazon Connect instance.
iv_name TYPE /AWS1/CNTTESTCASENAME /AWS1/CNTTESTCASENAME¶
The name of the test.
iv_content TYPE /AWS1/CNTTESTCASECONTENT /AWS1/CNTTESTCASECONTENT¶
The JSON string that represents the content of the test.
Optional arguments:¶
iv_description TYPE /AWS1/CNTTESTCASEDESCRIPTION /AWS1/CNTTESTCASEDESCRIPTION¶
The description of the test.
io_entrypoint TYPE REF TO /AWS1/CL_CNTTESTCASEENTRYPOINT /AWS1/CL_CNTTESTCASEENTRYPOINT¶
Defines the starting point for your test.
iv_initializationdata TYPE /AWS1/CNTTESTCASEINITDATA /AWS1/CNTTESTCASEINITDATA¶
Defines the initial custom attributes for your test.
iv_status TYPE /AWS1/CNTTESTCASESTATUS /AWS1/CNTTESTCASESTATUS¶
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.
iv_testcaseid TYPE /AWS1/CNTTESTCASEID /AWS1/CNTTESTCASEID¶
Id of the test case if you want to create it in a replica region using Amazon Connect Global Resiliency
it_tags TYPE /AWS1/CL_CNTTAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
The tags used to organize, track, or control access for this resource.
iv_lastmodifiedtime TYPE /AWS1/CNTTIMESTAMP /AWS1/CNTTIMESTAMP¶
The time at which the resource was last modified.
iv_lastmodifiedregion TYPE /AWS1/CNTREGIONNAME /AWS1/CNTREGIONNAME¶
The region in which the resource was last modified
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cntcreatetestcasersp /AWS1/CL_CNTCREATETESTCASERSP¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->createtestcase(
io_entrypoint = new /aws1/cl_cnttestcaseentrypoint(
io_chatentrypointparameters = new /aws1/cl_cntchatentryptparms( |string| )
io_voicecallentrypointparams = new /aws1/cl_cntvoicecallentptprms(
iv_destinationphonenumber = |string|
iv_flowid = |string|
iv_sourcephonenumber = |string|
)
iv_type = |string|
)
it_tags = VALUE /aws1/cl_cnttagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_cnttagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_cnttagmap_w( |string| )
)
)
)
iv_content = |string|
iv_description = |string|
iv_initializationdata = |string|
iv_instanceid = |string|
iv_lastmodifiedregion = |string|
iv_lastmodifiedtime = '20150101000000.0000000'
iv_name = |string|
iv_status = |string|
iv_testcaseid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_testcaseid = lo_result->get_testcaseid( ).
lv_arn = lo_result->get_testcasearn( ).
ENDIF.