Testing Method in ADT/HANA Studio ABAP Console

light111Testing Method in ADT/HANA Studio ABAP Console


If ADT or hana studio is being used for the ABAP development then sometime we can test the method with ABAP Console.

Below is the interface with MAIN method. This interface we are going to use in out class whose method we want to verify the result in ADT /HANA Studio ABAP Console.

12


Below is one class with one method – GET_INFO which is a AMDP  procedure but it could be a simple method also not necessarily any AMDP. 

The method is implemented and additionally implemented the MAIN method of the IF_OO_ADT_CLASSRUN to test in ABAP console. In the main method we just called our original method GET_INFO and prints the output with the help of WRITE( ) method in teh ABAP console.

3

Usually i use a test report program to call the abap method and verify the result but now we are not going to use this.

4

In the class editor it self, select the RUN AS.. button and select the ABAP Application(Console) option. 

5

Now the output result is printed in the ABAP console it self.   ! seems a cool feature of ADT !

6


 

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s