cancel
Showing results for 
Search instead for 
Did you mean: 

Table / FM / class for test case details

former_member187452
Contributor
0 Kudos


Hello All,

I have a requirement where I need to get the Test case details from the Test plan.

I have test plan id from which I have to fetch Test package id and details and then Test Cases id, status and other details.

Is there any tables or FM or Class where I can get these details.

Thanks,

Bharat

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member187452
Contributor
0 Kudos

Is there any standard report available where I can get these details??

Thanks,

Bharat

Former Member
0 Kudos

Hi Bharat,

Testpackages to testplan:

CALL FUNCTION 'STREE_GET_FILTER'
       EXPORTING
         structure_id = lv_structure_id "testplan-id
       TABLES
         filter       = lt_testpackages.


Testcases to testpackage:

CALL FUNCTION 'STREE_HIERARCHY_READ'
         EXPORTING
           structure_id       = lv_plan
           filter_id          = lv_pack
           read_also_texts    = 'X'
         TABLES
           list_of_nodes      = lt_list_of_nodes
           list_of_references = lt_list_of_refs
           list_of_texts      = lt_list_of_texts.


Details of testcase:

CALL FUNCTION 'STAT_GET_VALUES_TW'
         TABLES
           id            = lt_ids
           status_values = lt_status.


If not sure how to use them, set breakpoints on the function module, call STWB_WORK and look how they are called .


Best regards,

Christoph