/AWS1/IF_M2T=>UPDATETESTCASE()¶
About UpdateTestCase¶
Updates a test case.
Method Signature¶
METHODS /AWS1/IF_M2T~UPDATETESTCASE
IMPORTING
!IV_TESTCASEID TYPE /AWS1/M2TIDENTIFIER OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/M2TRESOURCEDESCRIPTION OPTIONAL
!IT_STEPS TYPE /AWS1/CL_M2TSTEP=>TT_STEPLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_m2tupdatetestcasersp
RAISING
/AWS1/CX_M2TACCESSDENIEDEX
/AWS1/CX_M2TCONFLICTEXCEPTION
/AWS1/CX_M2TINTERNALSERVEREX
/AWS1/CX_M2TRESOURCENOTFOUNDEX
/AWS1/CX_M2TTHROTTLINGEX
/AWS1/CX_M2TVALIDATIONEX
/AWS1/CX_M2TCLIENTEXC
/AWS1/CX_M2TSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_testcaseid TYPE /AWS1/M2TIDENTIFIER /AWS1/M2TIDENTIFIER¶
The test case ID of the test case.
Optional arguments:¶
iv_description TYPE /AWS1/M2TRESOURCEDESCRIPTION /AWS1/M2TRESOURCEDESCRIPTION¶
The description of the test case.
it_steps TYPE /AWS1/CL_M2TSTEP=>TT_STEPLIST TT_STEPLIST¶
The steps of the test case.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_m2tupdatetestcasersp /AWS1/CL_M2TUPDATETESTCASERSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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(
it_steps = VALUE /aws1/cl_m2tstep=>tt_steplist(
(
new /aws1/cl_m2tstep(
io_action = new /aws1/cl_m2tstepaction(
io_compareaction = new /aws1/cl_m2tcompareaction(
io_input = new /aws1/cl_m2tinput(
io_file = new /aws1/cl_m2tinputfile(
io_filemetadata = new /aws1/cl_m2tfilemetadata(
io_databasecdc = new /aws1/cl_m2tdatabasecdc(
io_sourcemetadata = new /aws1/cl_m2tsourcedatabasemet(
iv_capturetool = |string|
iv_type = |string|
)
io_targetmetadata = new /aws1/cl_m2ttargetdatabasemet(
iv_capturetool = |string|
iv_type = |string|
)
)
it_datasets = VALUE /aws1/cl_m2tdataset=>tt_datasetlist(
(
new /aws1/cl_m2tdataset(
iv_ccsid = |string|
iv_format = |string|
iv_length = 123
iv_name = |string|
iv_type = |string|
)
)
)
)
iv_sourcelocation = |string|
iv_targetlocation = |string|
)
)
io_output = new /aws1/cl_m2toutput( new /aws1/cl_m2toutputfile( |string| ) )
)
io_mainframeaction = new /aws1/cl_m2tmainframeaction(
io_actiontype = new /aws1/cl_m2tmainframeacttype(
io_batch = new /aws1/cl_m2tbatch(
it_batchjobparameters = VALUE /aws1/cl_m2tbatchjobparams_w=>tt_batchjobparameters(
(
VALUE /aws1/cl_m2tbatchjobparams_w=>ts_batchjobparameters_maprow(
value = new /aws1/cl_m2tbatchjobparams_w( |string| )
key = |string|
)
)
)
it_exportdatasetnames = VALUE /aws1/cl_m2texportdsnames_w=>tt_exportdatasetnames(
( new /aws1/cl_m2texportdsnames_w( |string| ) )
)
iv_batchjobname = |string|
)
io_tn3270 = new /aws1/cl_m2ttn3270(
io_script = new /aws1/cl_m2tscript(
iv_scriptlocation = |string|
iv_type = |string|
)
it_exportdatasetnames = VALUE /aws1/cl_m2texportdsnames_w=>tt_exportdatasetnames(
( new /aws1/cl_m2texportdsnames_w( |string| ) )
)
)
)
io_properties = new /aws1/cl_m2tmainframeactprps( |string| )
iv_resource = |string|
)
io_resourceaction = new /aws1/cl_m2tresourceaction(
io_cloudformationaction = new /aws1/cl_m2tcloudformationact(
iv_actiontype = |string|
iv_resource = |string|
)
io_m2managedapplicationact = new /aws1/cl_m2tm2managedapplica00(
io_properties = new /aws1/cl_m2tm2managedactprps(
iv_forcestop = ABAP_TRUE
iv_importdatasetlocation = |string|
)
iv_actiontype = |string|
iv_resource = |string|
)
io_m2nonmanagedapplication00 = new /aws1/cl_m2tm2nonmanagedappl00(
iv_actiontype = |string|
iv_resource = |string|
)
)
)
iv_description = |string|
iv_name = |string|
)
)
)
iv_description = |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_identifier = lo_result->get_testcaseid( ).
lv_version = lo_result->get_testcaseversion( ).
ENDIF.