EXECUTE_TEST_CASE SAP Method Execute a test case









Below is documentation, parameters and attributes of ABAP Method EXECUTE_TEST_CASE within SAP class IF_FDT_TEST_TOOL. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name IF_FDT_TEST_TOOL into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method EXECUTE_TEST_CASE can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method EXECUTE_TEST_CASE

.

NameTypeData TypeDescriptionDefault Value
IV_FUNCTION_IDImportingTYPE
IF_FDT_TYPES=>ID
Function ID
IV_MODEImportingTYPE
STRING
See constants GC_MODE*
IV_NAMEImportingTYPE
IF_FDT_TYPES=>NAME
Test Case Name
IV_PERSISTImportingTYPE
ABAP_BOOL
'X' Test case run results are written into DB
IV_RFCDESTImportingTYPE
RFCDEST
RFC Destination (in remote calles)
IV_TRACEImportingTYPE
ABAP_BOOL
'X' Write trace for test run
ES_RUNExportingTYPE
S_TEST_CASE_RUN
Test Case Run
ET_ERRORExportingTYPE
IF_FDT_TYPES=>T_MESSAGE
Error messages



Exceptions of Method EXECUTE_TEST_CASE

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO IF_FDT_TEST_TOOL.
DATA: lv_ES_RUN TYPE S_TEST_CASE_RUN,
lv_ET_ERROR TYPE IF_FDT_TYPES=>T_MESSAGE,
lv_IV_FUNCTION_ID TYPE IF_FDT_TYPES=>ID,
lv_IV_MODE TYPE STRING,
lv_IV_NAME TYPE IF_FDT_TYPES=>NAME,
lv_IV_PERSIST TYPE ABAP_BOOL,
lv_IV_RFCDEST TYPE RFCDEST,
lv_IV_TRACE TYPE ABAP_BOOL,
lv_other TYPE c.

CALL METHOD lo_class=>EXECUTE_TEST_CASE(
EXPORTING
IV_FUNCTION_ID = lv_IV_FUNCTION_ID
IV_MODE = lv_IV_MODE
IV_NAME = lv_IV_NAME
IV_PERSIST = lv_IV_PERSIST
IV_RFCDEST = lv_IV_RFCDEST
IV_TRACE = lv_IV_TRACE
IMPORTING
ES_RUN = lv_ES_RUN
ET_ERROR = lv_ET_ERROR ).

Links to Related Class(s)

IF_FDT_T...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!