‎2007 Apr 24 5:02 PM
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.
‎2007 Apr 24 5:09 PM
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
‎2007 Apr 24 5:09 PM
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
‎2007 Apr 24 8:50 PM
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.