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 | 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 | Constant | Public | Type reference (TYPE) | STRING | 'EPM_TEST_SEQUENCE_ID' | Parameter name used by SOA for transferring id | 20090227 | ||
| 2 | Constant | Public | Type reference (TYPE) | STRING | 'EPM_TEST_SESSION_ID' | Parameter name used by SOA for transferring id | 20090227 | ||
| 3 | Constant | Public | Type reference (TYPE) | SEPM_TEST_STATE | '4' | Test sequence state 'Broken' | 20090226 | ||
| 4 | Constant | Public | Type reference (TYPE) | SEPM_TEST_STATE | '5' | Test sequence state 'Ended' | 20090226 | ||
| 5 | Constant | Public | Type reference (TYPE) | SEPM_TEST_STATE | '2' | Test sequence state 'Initialized' | 20090226 | ||
| 6 | Constant | Public | Type reference (TYPE) | SEPM_TEST_STATE | '3' | Test sequence state 'Running' | 20090226 | ||
| 7 | Constant | Public | Type reference (TYPE) | SEPM_TEST_STATE | '1' | Test sequence state 'Triggered' | 20090226 | ||
| 8 | Constant | Public | Type reference (TYPE) | SEPM_TEST_STATE | '9' | Represents the state of a test for synchronization | 20090302 | ||
| 9 | 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 | Static method | Public | Method | Check test sequence for test session end | 20090227 | |
| 2 | Static method | Public | Method | Delete state and test context entries | 20090211 | |
| 3 | Static method | Public | Method | Called by central eCATT for starting unit tests | 20090206 | |
| 4 | Static method | Public | Method | Get all sub packages of a set of packages | 20091016 | |
| 5 | Static method | Public | Method | Get testable entities | 20091016 | |
| 6 | Static method | Public | Method | Get state info of all test sequences of a test session | 20090227 | |
| 7 | Static method | Public | Method | Initialize eCATT environment | 20090210 | |
| 8 | Static method | Private | Method | Lock EPM test environment ( on session / general level ) | 20090209 | |
| 9 | Static method | Public | Method | Mark test session as ended | 20090302 | |
| 10 | Static method | Private | Method | register a unit test class with the AUNIT runtime | 20100512 | |
| 11 | Static method | Private | Method | Register a set of unit test classes with the AUNIT runtime | 20100512 | |
| 12 | 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 | 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 | RV_TEST_SESSION_HAS_ENDED | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20090227 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 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 | 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 | 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 | ET_FAILED_PROGRAM_ENTITIES | Call by reference | Type reference (TYPE) | STRING_TABLE | List of failed ABAP entities | 20090209 | |||
| 2 | EV_ALL_TESTS_PASSED | Call by reference | Type reference (TYPE) | ABAP_BOOL | true if all tests were o.k. | 20090206 | |||
| 3 | EV_TESTS_EXECUTED | Call by reference | Type reference (TYPE) | ABAP_BOOL | true if min one test was executed | 20090206 | |||
| 4 | IT_PROGRAM_ENTITIES | Call by reference | Type reference (TYPE) | TT_PROGRAM_ENTITY_TO_TEST | List of ABAP entities to be checked | 20100512 | |||
| 5 | 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 | ET_PACKAGES | Call by reference | Type reference (TYPE) | TT_PACKAGES | List of sub packages | 20091016 | |||
| 2 | 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 | ET_CLASSES | Call by reference | Type reference (TYPE) | TT_TEST_OBJECTS | ABAP classes | 20091016 | |||
| 2 | ET_FUNCTION_GROUPS | Call by reference | Type reference (TYPE) | TT_TEST_OBJECTS | ABAP Function groups | 20110926 | |||
| 3 | ET_PROGS | Call by reference | Type reference (TYPE) | TT_TEST_OBJECTS | ABAP programs | 20091016 | |||
| 4 | IO_AUNIT_FACTORY | Call by reference | Object reference (TYPE REF TO) | CL_AUNIT_FACTORY | Factory to Create Instances of API Classes | 20091019 | |||
| 5 | 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 | 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 | 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 | 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 | IT_TEST_CONTEXT | Call by reference | Type reference (TYPE) | SEPM_TEST_CONTEXTS | test contexts for all components | 20090210 | |||
| 2 | IV_EXCLUSIVE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Exclusive run of a test in the landscape | 20090210 | ||
| 3 | IV_TEST_ID | Call by reference | Type reference (TYPE) | SEPM_TEST_ID | Name or Number of a test | 20090210 | |||
| 4 | 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 | 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 | 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 | 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 | 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 | 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 | ET_ERROR_INFO | Call by reference | Type reference (TYPE) | STRING_TABLE | 20100512 | ||||
| 2 | IR_AUNIT_TASK | Call by reference | Object reference (TYPE REF TO) | IF_AUNIT_TASK | 20100512 | ||||
| 3 | IR_AUNIT_TEST_CLASS | Call by reference | Object reference (TYPE REF TO) | IF_AUNIT_TEST_CLASS_HANDLE | 20100512 | ||||
| 4 | IT_THESE_TEST_METHODS_ONLY | Call by reference | Type reference (TYPE) | SAUNIT_T_METHODS | 20100512 | ||||
| 5 | 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 | ET_ERROR_INFO | Call by reference | Type reference (TYPE) | STRING_TABLE | 20100512 | ||||
| 2 | IR_AUNIT_FACTORY | Call by reference | Object reference (TYPE REF TO) | CL_AUNIT_FACTORY | 20100512 | ||||
| 3 | IR_AUNIT_TASK | Call by reference | Object reference (TYPE REF TO) | IF_AUNIT_TASK | 20100512 | ||||
| 4 | IV_PROGRAM_ENTITY | Call by reference | Type reference (TYPE) | SOBJ_NAME | 20100512 | ||||
| 5 | IV_PROGRAM_ENTITY_TYPE | Call by reference | Type reference (TYPE) | TROBJTYPE | 20100512 | ||||
| 6 | 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 | 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 | Exception class for the EPM test framework | 20090209 |
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 720 |