Skip to content

/AWS1/CL_M2T=>CREATETESTSUITE()

About CreateTestSuite

Creates a test suite.

Method Signature

IMPORTING

Required arguments:

iv_name TYPE /AWS1/M2TRESOURCENAME /AWS1/M2TRESOURCENAME

The name of the test suite.

io_testcases TYPE REF TO /AWS1/CL_M2TTESTCASES /AWS1/CL_M2TTESTCASES

The test cases in the test suite.

Optional arguments:

iv_description TYPE /AWS1/M2TRESOURCEDESCRIPTION /AWS1/M2TRESOURCEDESCRIPTION

The description of the test suite.

it_beforesteps TYPE /AWS1/CL_M2TSTEP=>TT_STEPLIST TT_STEPLIST

The before steps of the test suite.

it_aftersteps TYPE /AWS1/CL_M2TSTEP=>TT_STEPLIST TT_STEPLIST

The after steps of the test suite.

iv_clienttoken TYPE /AWS1/M2TIDEMPOTENCYTOKENSTR /AWS1/M2TIDEMPOTENCYTOKENSTR

The client token of the test suite.

it_tags TYPE /AWS1/CL_M2TTAGMAP_W=>TT_TAGMAP TT_TAGMAP

The tags of the test suite.

RETURNING

oo_output TYPE REF TO /aws1/cl_m2tcreatetestsuitersp /AWS1/CL_M2TCREATETESTSUITERSP

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->/aws1/if_m2t~createtestsuite(
  io_testcases = new /aws1/cl_m2ttestcases(
    it_sequential = VALUE /aws1/cl_m2ttestcaselist_w=>tt_testcaselist(
      ( new /aws1/cl_m2ttestcaselist_w( |string| ) )
    )
  )
  it_aftersteps = 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(
                      key = |string|
                      value = new /aws1/cl_m2tbatchjobparams_w( |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|
      )
    )
  )
  it_beforesteps = 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(
                      key = |string|
                      value = new /aws1/cl_m2tbatchjobparams_w( |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|
      )
    )
  )
  it_tags = VALUE /aws1/cl_m2ttagmap_w=>tt_tagmap(
    (
      VALUE /aws1/cl_m2ttagmap_w=>ts_tagmap_maprow(
        value = new /aws1/cl_m2ttagmap_w( |string| )
        key = |string|
      )
    )
  )
  iv_clienttoken = |string|
  iv_description = |string|
  iv_name = |string|
).

This is an example of reading all possible response values

lv_identifier = lo_result->get_testsuiteid( ).
lv_version = lo_result->get_testsuiteversion( ).