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

Information on ABAP Unit

former_member82844
Participant
0 Likes
781

I am looking for information examples on ABAPUnit and for some reason I am coming up with a blank. I know I have seen dem programs in the ABAP area but for the life of me I cannot find them again. If someone knows where they are I would really appreciate a pointer.

I am looking for information examples on ABAPUnit and for some reason I am coming up with a blank. I know I have seen dem programs in the ABAP area but for the life of me I cannot find them again. If someone knows where they are I would really appreciate a pointer.

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
Read only

Former Member
0 Likes
730

HI,

/docs/DOC-18474#idaew3me [original link is broken]

http://xunitpatterns.com/AbapUnit.html

Regards

Sudheer

Read only

0 Likes
730

This is funny. I am working with the person that is writing the Xunit Patterns book.... We had a good laugh.

on the serious note, I saw in the ABAP system some sample code that used ABAP Unit. I touched it and ran it but I have lost it... Help. I have tried searching but I am not looking for the correct name so I was hoping if someone know the program and class names for the examples it would be helpful

Read only

0 Likes
730

I did a quick search for program in my nw2004s system. This is what I got, anything look familar?



RS_AU_LIGHT                    ABAP Unit Self-Test Task                                       
RS_AUNIT_LEGACY_CONFIG_CM      ABAP Unit / CheckMan: Define/Display Execution Mode            
RS_AUNIT_LEGACY_EXTRACT_CM     ABAP Unit / CheckMan: Extract Results                          
RS_AUNIT_LEGACY_REPLICATE_CM   ABAP Unit / CheckMan: Replicate Results                        
RS_AUNIT_LOAD_FLAGS            ABAP Unit Flags Within Byte Load                               
RS_AUST_CHILD_OF_GLOBAL_CLASS  ABAP Unit: Subclasses of Global Test Classes                   
RS_AUST_SELF_TEST              ABAP Unit Self-Test Task                                       
RS_AUST_WARNING                Tests ABAP Unit Warnings                                       
SAUNIT_CLIENT_SETUP            ABAP Unit Configuration                                        
SAUNIT_GETCACHE                Final Assembly: Import ABAP Unit Cache                         
SAUNIT_PROG_INFO               ABAP Unit: Internal Tool for Updating Test Information         
SAUNIT_PROG_METRICS            ABAP Unit: Internal Tool for Ascertaining Test Metrics         
SAUNIT_SHOW_LOAD_FLAGS         Internal only: Test ABAP Unit flags within the byte load       



Regards,

Rich Heilman

Read only

0 Likes
730

Hey Glenn,

more or less any package Devclass with the SABP_UNIT* pattern should contain some tests. Save the SABP_UNIT_SELFTEST package as these are very special ones.

For an inital search SAUNIT_PROG_METRICS is a handy tool. With report RS_AU_LIGHT you can start them quick n dirty. But the offical interface is integrated in Code Inspector/SCI (see Dynamic Tests).

Best Regards,

Klaus

And there are some blogs:

/people/thomas.weiss/blog/2004/12/17/a-spotlight-on-abap-unit-part-1