‎2009 Jan 22 9:05 AM
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
‎2009 Jan 22 10:34 AM
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
‎2009 Jan 22 10:34 AM
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
‎2009 Jan 22 10:47 AM
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 ??.
‎2009 Jan 22 10:57 AM
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
‎2009 Jan 22 11:04 AM
Hi Uwe,
Yep thx, I think I ll try to use a combination of the two and see if its any good.