Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to run a test class programatically.

Former Member
0 Likes
635

The transaction SCI is not just giving all the information we need and we are looking at writing a program to run all our test ABAP units and get a better report. Does anybody know how to run a test class programmatically. For example, if I have a class called ABAP_SAMPLE and we generated/wrote test class for it that has 3 test methods. We want to be able to run the 3 test methods for this ABAP_SAMPLE via a program and not online. We thought of running SCI through BDC and somehow get some report from the tables that it updates but we want to have a better control.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
523

See if you can make use of the fm SCI_REMOTE_RESULT_DISPLAY.

Also see the other FMs in FG S_CODE_INSPECTOR.

Regards,

ravi

2 REPLIES 2
Read only

Former Member
0 Likes
524

See if you can make use of the fm SCI_REMOTE_RESULT_DISPLAY.

Also see the other FMs in FG S_CODE_INSPECTOR.

Regards,

ravi

Read only

0 Likes
523

I just tried this function but it appears that this is just reading the result of an inspection that already happened. We may be able to use this as well so I will continue to find out how I can specify the parameter in its Import parameters P_DEST and P_INSP to return something back but if you have an example for this run, it would be helpful.

In any case, we still need to find another method to actually run a test class. I looked at the other modules of S_CODE_INSPECTOR but nothing seems to stand out. I am currently looking at CL_CI_INSPECTION but still no luck. Any more help on this would be great.

Thanks.