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

Testing

Former Member
0 Likes
603

how do do the Unit testing....and what is the transaction code for TESTING?

Plz send me answer u will get points if give good answer.

4 REPLIES 4
Read only

Former Member
0 Likes
534

Hi Narsaiah,

Unit testing is nothing but debug testing ...

Unit testing is done with your stand alone development say a class or a program developed by you and is done by a person from testing team. In this you will check for negative logic (something like what will happen if you dont enter correct values to the input parameters), labels and also for getting output with maximum possible inputs. Normally there are guidelines available for this with testing team. It is mostly a generic guideline for all the platforms say SAP or JAVA... So the starting point of this testing is your development. The most important things to be checked are the texts in your error or warning or information messages, labels printed in the screens and or header, footers. Also verify the output format is matching with what is mentioned in the functional spec by the object owner from client side.

ABAP Unit Testing can, if done very carefully and extensively, almost completely replace debugging which is a synonym for unsystematic testing.

Unit Tests bridge the gap between low-level testing and high-level testing of entire processes using eCATT.

If you have a class with several methods of a function group with several function modules you can define for each method and function module one or many Unit Tests. Using these Unit Tests you can demonstrate that your methods and function modules work according to you expectations. Even more important, when you change your coding you can use your Unit Tests to check whether you accidentially introduced some error.

Another very interesting way of programming is test-driven development (TDD). This basically means that you create a test first based on the specification which, of course, will fail in the beginning because there isn't any application. Now you develop until the Unit Test will be passed.

Reward if useful.

Thanks

Aneesh.

Read only

Former Member
0 Likes
534

hi,

There is no seperated tcode for unit testing.Unit Testing is nothing but the testing the obejct developed with the some test data provided by the client to meet their requirmeents.

Reward points if it is helpful.

Regards,

Sangeetha.a

Read only

Former Member
0 Likes
534

>>Unit testing is a method of testing the correctness of a particular module of source code. I SAP terms in can be testing of a report,transaction,function module or any piece of code.

In SAP system we have two free testing tool one is CATT ans eCATT.

To launch these testing tools use SCAT and SECATT tranactions.

for more information about eCATT testing tool have a look at the below links,

http://saptechnical.com/Tutorials/eCATT/eCATTMain.htm

http://www.erpgenie.com/ecatt/index.htm

http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm

Let me know i incase if u need anything further.

Hope this helps.

-Manjula P