/AWS1/IF_CNT=>UPDATETESTCASE()¶
About UpdateTestCase¶
Updates any of the metadata for a test case, such as the name, description, and status or content of an existing test case. This API doesn't allow customers to update the tags of the test case resource for the specified Amazon Connect instance.
Method Signature¶
METHODS /AWS1/IF_CNT~UPDATETESTCASE
IMPORTING
!IV_INSTANCEID TYPE /AWS1/CNTINSTANCEIDORARN OPTIONAL
!IV_TESTCASEID TYPE /AWS1/CNTTESTCASEID OPTIONAL
!IV_CONTENT TYPE /AWS1/CNTTESTCASECONTENT OPTIONAL
!IO_ENTRYPOINT TYPE REF TO /AWS1/CL_CNTTESTCASEENTRYPOINT OPTIONAL
!IV_INITIALIZATIONDATA TYPE /AWS1/CNTTESTCASEINITDATA OPTIONAL
!IV_NAME TYPE /AWS1/CNTTESTCASENAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/CNTTESTCASEDESCRIPTION OPTIONAL
!IV_STATUS TYPE /AWS1/CNTTESTCASESTATUS OPTIONAL
!IV_LASTMODIFIEDTIME TYPE /AWS1/CNTTIMESTAMP OPTIONAL
!IV_LASTMODIFIEDREGION TYPE /AWS1/CNTREGIONNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cntupdatetestcasersp
RAISING
/AWS1/CX_CNTACCESSDENIEDEX
/AWS1/CX_CNTDUPLICATERESRCEX
/AWS1/CX_CNTINTERNALSERVICEEX
/AWS1/CX_CNTINVALIDPARAMETEREX
/AWS1/CX_CNTINVALIDREQUESTEX
/AWS1/CX_CNTINVALIDTESTCASEEX
/AWS1/CX_CNTRESOURCENOTFOUNDEX
/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_testcaseid TYPE /AWS1/CNTTESTCASEID /AWS1/CNTTESTCASEID¶
The identifier of the test case to update.
Optional arguments:¶
iv_content TYPE /AWS1/CNTTESTCASECONTENT /AWS1/CNTTESTCASECONTENT¶
The JSON string that represents the content 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 test attributes for precise data representation.
iv_name TYPE /AWS1/CNTTESTCASENAME /AWS1/CNTTESTCASENAME¶
The name of the test case.
iv_description TYPE /AWS1/CNTTESTCASEDESCRIPTION /AWS1/CNTTESTCASEDESCRIPTION¶
The description of the test case.
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_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_cntupdatetestcasersp /AWS1/CL_CNTUPDATETESTCASERSP¶
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->updatetestcase(
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|
)
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.
ENDIF.