SAP ABAP Class CL_EPM_TEST_CONTROLLER (Manage data transfer between central eCATT and backend)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-NWD (Application Component) NetWeaver Demonstration
     S_EPM_TESTING_UTILITIES (Package) EPM BO and Scenario Testing
Properties
Class CL_EPM_TEST_CONTROLLER  
Short Description Manage data transfer between central eCATT and backend    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package S_EPM_TESTING_UTILITIES   EPM BO and Scenario Testing 
Created 20081218   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_EPM_TEST_CONTROLLER has no interface implemented.
Friends
Class CL_EPM_TEST_CONTROLLER has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_PARAM_TEST_SEQUENCE_ID Constant Public Type reference (TYPE) STRING 'EPM_TEST_SEQUENCE_ID' Parameter name used by SOA for transferring id 20090227
2 GC_PARAM_TEST_SESSION_ID Constant Public Type reference (TYPE) STRING 'EPM_TEST_SESSION_ID' Parameter name used by SOA for transferring id 20090227
3 GC_TEST_SEQ_STATE_BROKEN Constant Public Type reference (TYPE) SEPM_TEST_STATE '4' Test sequence state 'Broken' 20090226
4 GC_TEST_SEQ_STATE_ENDED Constant Public Type reference (TYPE) SEPM_TEST_STATE '5' Test sequence state 'Ended' 20090226
5 GC_TEST_SEQ_STATE_INITIALIZED Constant Public Type reference (TYPE) SEPM_TEST_STATE '2' Test sequence state 'Initialized' 20090226
6 GC_TEST_SEQ_STATE_RUNNING Constant Public Type reference (TYPE) SEPM_TEST_STATE '3' Test sequence state 'Running' 20090226
7 GC_TEST_SEQ_STATE_TRIGGERED Constant Public Type reference (TYPE) SEPM_TEST_STATE '1' Test sequence state 'Triggered' 20090226
8 GC_TEST_SESSION_FINISHED Constant Public Type reference (TYPE) SEPM_TEST_STATE '9' Represents the state of a test for synchronization 20090302
9 LC_2ND_DB_CON_NAME Constant Private Type reference (TYPE) STRING 'R/3*EPM_TEST_ENVIRONMENT' Name of second DB connection used by logger 20090209
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_FOR_TEST_SESSION_END Static method Public Method Check test sequence for test session end 20090227
2 DELETE_TEST_ADMIN_DATA Static method Public Method Delete state and test context entries 20090211
3 EXEC_UNIT_TESTS Static method Public Method Called by central eCATT for starting unit tests 20090206
4 GET_SUB_PACKAGES Static method Public Method Get all sub packages of a set of packages 20091016
5 GET_TEST_ENTITIES Static method Public Method Get testable entities 20091016
6 GET_TEST_SEQUENCE_STATE_INFO Static method Public Method Get state info of all test sequences of a test session 20090227
7 INITIALIZE_ECATT_ENVIRONMENT Static method Public Method Initialize eCATT environment 20090210
8 LOCK_TEST_ENVIRONMENT Static method Private Method Lock EPM test environment ( on session / general level ) 20090209
9 MARK_TEST_SESSION_AS_FINISHED Static method Public Method Mark test session as ended 20090302
10 REGISTER_AUNIT_TEST_CLASS Static method Private Method register a unit test class with the AUNIT runtime 20100512
11 REGISTER_AUNIT_TEST_CLASSES Static method Private Method Register a set of unit test classes with the AUNIT runtime 20100512
12 UNLOCK_TEST_ENVIRONMENT Static method Private Method Unlock EPM test environment ( on session / general level ) 20090209
Events
Class CL_EPM_TEST_CONTROLLER has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TT_PACKAGES Public See coding Table with Strings 20091016 tt_packages TYPE HASHED TABLE OF ty_package WITH UNIQUE KEY devclass
2 TT_PROGRAM_ENTITY_TO_TEST Public See coding 20100512 tt_program_entity_to_test type standard table of ty_program_entity_to_test with default key
3 TT_TEST_CONTEXTS Public Type reference (TYPE) SEPM_TEST_CONTEXTS 20090818
4 TT_TEST_OBJECTS Public See coding 20091016 TT_TEST_OBJECTS type standard table of SOBJ_NAME with DEFAULT KEY
5 TT_TEST_RESULTS Public Type reference (TYPE) SEPM_TEST_RESULTS 20090818
6 TT_TEST_SEQUENCE_INFO Public Type reference (TYPE) SEPM_TEST_SEQUENCE_INFOS Table of test sequence information 20090226
7 TT_UNIT_TESTS_TO_EXECUTE Public See coding 20100512 tt_unit_tests_to_execute type standard table of ty_unit_tests_to_execute with default key
8 TY_PACKAGE Public See coding 20091016 BEGIN OF ty_package, devclass TYPE devclass, END OF ty_package
9 TY_PROGRAM_ENTITY_TO_TEST Public See coding 20100512 begin of ty_program_entity_to_test, program_entity type sobj_name, tests_to_execute type tt_unit_tests_to_execute, end of ty_program_entity_to_test
10 TY_TEST_CONTEXT Public Type reference (TYPE) SEPM_TEST_CONTEXT A test context entry 20081218
11 TY_TEST_RESULT Public Type reference (TYPE) SEPM_TEST_RESULT A test result entry 20081218
12 TY_TEST_SEQUENCE_INFO Public Type reference (TYPE) SEPM_TEST_SEQUENCE_INFO Information about a single test sequence 20090226
13 TY_UNIT_TESTS_TO_EXECUTE Public See coding 20100512 begin of ty_unit_tests_to_execute, test_class_name type string, test_methods type saunit_t_methods, end of ty_unit_tests_to_execute
Method Signatures

Method CHECK_FOR_TEST_SESSION_END Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_TEST_SEQUENCE_STATE_INFO Call by reference Type reference (TYPE) SEPM_TEST_SEQUENCE_INFOS Table of test sequence information of multiple systems 20090303
2 Returning RV_TEST_SESSION_HAS_ENDED Value transfer Type reference (TYPE) ABAP_BOOL 20090227
# Exception Resumable Description Created on
1 CX_EPM_TEST Exception class for the EPM test framework 20090227

Method DELETE_TEST_ADMIN_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_UP_TO_THIS_TIMESTAMP Call by reference Type reference (TYPE) TIMESTAMPL Delete all entries older than this timestamp 20090211
# Exception Resumable Description Created on
1 CX_EPM_TEST Exception class for the EPM test framework 20090211

Method EXEC_UNIT_TESTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_FAILED_PROGRAM_ENTITIES Call by reference Type reference (TYPE) STRING_TABLE List of failed ABAP entities 20090209
2 Exporting EV_ALL_TESTS_PASSED Call by reference Type reference (TYPE) ABAP_BOOL true if all tests were o.k. 20090206
3 Exporting EV_TESTS_EXECUTED Call by reference Type reference (TYPE) ABAP_BOOL true if min one test was executed 20090206
4 Importing IT_PROGRAM_ENTITIES Call by reference Type reference (TYPE) TT_PROGRAM_ENTITY_TO_TEST List of ABAP entities to be checked 20100512
5 Importing IV_USE_EPM_TEST_ENV Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Whether Unit tests use EPM test environment and logger 20100624

Method EXEC_UNIT_TESTS on class CL_EPM_TEST_CONTROLLER has no exception.

Method GET_SUB_PACKAGES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_PACKAGES Call by reference Type reference (TYPE) TT_PACKAGES List of sub packages 20091016
2 Importing IT_DEVCLASSES Call by reference Type reference (TYPE) TR_DEVCLASSES List of main packages 20091016

Method GET_SUB_PACKAGES on class CL_EPM_TEST_CONTROLLER has no exception.

Method GET_TEST_ENTITIES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CLASSES Call by reference Type reference (TYPE) TT_TEST_OBJECTS ABAP classes 20091016
2 Exporting ET_FUNCTION_GROUPS Call by reference Type reference (TYPE) TT_TEST_OBJECTS ABAP Function groups 20110926
3 Exporting ET_PROGS Call by reference Type reference (TYPE) TT_TEST_OBJECTS ABAP programs 20091016
4 Importing IO_AUNIT_FACTORY Call by reference Object reference (TYPE REF TO) CL_AUNIT_FACTORY Factory to Create Instances of API Classes 20091019
5 Importing IT_PACKAGES Call by reference Type reference (TYPE) TT_PACKAGES Table with Strings 20091016

Method GET_TEST_ENTITIES on class CL_EPM_TEST_CONTROLLER has no exception.

Method GET_TEST_SEQUENCE_STATE_INFO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_TEST_SEQUENCE_STATE_INFO Call by reference Type reference (TYPE) SEPM_TEST_SEQUENCE_INFOS Information about test sequences of a single system 20090227
2 Importing IV_TEST_SESSION_ID Call by reference Type reference (TYPE) SEPM_TEST_SESSION_ID EPM: Test session identifier 20090227
# Exception Resumable Description Created on
1 CX_EPM_TEST Exception class for the EPM test framework 20090227

Method INITIALIZE_ECATT_ENVIRONMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_TEST_CONTEXT Call by reference Type reference (TYPE) SEPM_TEST_CONTEXTS test contexts for all components 20090210
2 Importing IV_EXCLUSIVE Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Exclusive run of a test in the landscape 20090210
3 Importing IV_TEST_ID Call by reference Type reference (TYPE) SEPM_TEST_ID Name or Number of a test 20090210
4 Importing IV_TEST_SESSION_ID Call by reference Type reference (TYPE) SEPM_TEST_SESSION_ID Unique number of a test 20090210
# Exception Resumable Description Created on
1 CX_EPM_TEST Exception class for the EPM test framework 20090210

Method LOCK_TEST_ENVIRONMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TEST_SESSION_ID Call by reference Type reference (TYPE) SEPM_TEST_SESSION_ID Unique number of a test session 20090209
# Exception Resumable Description Created on
1 CX_EPM_TEST Exception class for the EPM test framework 20090209

Method MARK_TEST_SESSION_AS_FINISHED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TEST_SESSION_ID Call by reference Type reference (TYPE) SEPM_TEST_SESSION_ID EPM: Test session identifier 20090302
# Exception Resumable Description Created on
1 CX_EPM_TEST Exception class for the EPM test framework 20090302

Method REGISTER_AUNIT_TEST_CLASS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ERROR_INFO Call by reference Type reference (TYPE) STRING_TABLE 20100512
2 Importing IR_AUNIT_TASK Call by reference Object reference (TYPE REF TO) IF_AUNIT_TASK 20100512
3 Importing IR_AUNIT_TEST_CLASS Call by reference Object reference (TYPE REF TO) IF_AUNIT_TEST_CLASS_HANDLE 20100512
4 Importing IT_THESE_TEST_METHODS_ONLY Call by reference Type reference (TYPE) SAUNIT_T_METHODS 20100512
5 Importing IV_USE_EPM_TEST_ENV Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Whether Unit tests use EPM test environment and logger 20100624

Method REGISTER_AUNIT_TEST_CLASS on class CL_EPM_TEST_CONTROLLER has no exception.

Method REGISTER_AUNIT_TEST_CLASSES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ERROR_INFO Call by reference Type reference (TYPE) STRING_TABLE 20100512
2 Importing IR_AUNIT_FACTORY Call by reference Object reference (TYPE REF TO) CL_AUNIT_FACTORY 20100512
3 Importing IR_AUNIT_TASK Call by reference Object reference (TYPE REF TO) IF_AUNIT_TASK 20100512
4 Importing IV_PROGRAM_ENTITY Call by reference Type reference (TYPE) SOBJ_NAME 20100512
5 Importing IV_PROGRAM_ENTITY_TYPE Call by reference Type reference (TYPE) TROBJTYPE 20100512
6 Importing IV_USE_EPM_TEST_ENV Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Whether Unit tests use EPM test environment and logger 20100624

Method REGISTER_AUNIT_TEST_CLASSES on class CL_EPM_TEST_CONTROLLER has no exception.

Method UNLOCK_TEST_ENVIRONMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TEST_SESSION_ID Call by reference Type reference (TYPE) SEPM_TEST_SESSION_ID Unique number of a test session 20090209
# Exception Resumable Description Created on
1 CX_EPM_TEST Exception class for the EPM test framework 20090209
History
Last changed by/on SAP  20130531 
SAP Release Created in 720