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

Using ABAP unit to test complete application ?

aditya_aghor
Explorer
0 Likes
698

Hello people,

I am currently using ABAP Unit after reading about its benefits from many blogs and I am new to the concept fof automated Unit test. I have succeeded in writing and executing tests for methods of a class, however my complete application consists of different classes which interact with each other. I have written a wrapper report to dynamically call methods in the classes which i require at run time. My question is can I use ABAP unit to test the complete appln ?? eg. My app requires a XML file as input and it changes something in the system depending on the file. So can I write a test scenario using the ABAP unit framework to give various XML files and test various scenarios... remember my appln can be run by running the report....

Sorry for the long post, thought I'd better express myself clearly... any thoughts appreciated...

P.S: I have read the SAP documentation n examples also various SDN blogs on ABAP Unit most speak of only trivial examples

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
613

Hello Aditya

You could use ABAP Unit tests for your pupose but the appropriate testing tool at this kind of integration level would be eCATT.

Regards

Uwe

4 REPLIES 4
Read only

uwe_schieferstein
Active Contributor
0 Likes
614

Hello Aditya

You could use ABAP Unit tests for your pupose but the appropriate testing tool at this kind of integration level would be eCATT.

Regards

Uwe

Read only

0 Likes
613

Hi Uwe,

Thanks for the quick reply.

Just a clarification required. Just to rephrase you mean that I continue using ABAP unit to test the individual methods as before but when I have to test the complete application I switch to eCATT ?? I assume you are saying this cause as per Unit Test definition Unit refers to the smallest part namely methods and since I have to test interaction between various method calls hence eCATT ?? ( just want to understand the flow of thought ).

If I do indeed use eCATT ( on which I ll have to spend time learning ) for testing complete appln what type of output will it provide ?? like if I am reading the XML file and then doing some mapping and then calling an RFC by using eCATT will I be able to see the effect of that successful execution of RFC (or its failure in the eCATT GUI ??.

Read only

0 Likes
613

Hello Aditya

Yes, my suggestion implies to use the combination of both testing methods.

In the eCATT you define - like you do in the ABAP Unit test - the input and expected output. And eCATT stores a detailed log of the testing run.

Regards

Uwe

Read only

0 Likes
613

Hi Uwe,

Yep thx, I think I ll try to use a combination of the two and see if its any good.