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

unit testing

Former Member
0 Likes
657

hi experts,

can any one plz tell how is unit testing done in real time. wht is the whole process .

wht is the diff between the header data table and item data table ex: vbak and vbap.

6 REPLIES 6
Read only

Former Member
0 Likes
613

Hi,

The table VBAK will contain the header data like sold-to, customer po number ...etc

The table VBAP will contain the item data like material, quantity, unit of measure, net price..etc..

Thanks,

Naren

Read only

uwe_schieferstein
Active Contributor
0 Likes
613

Hello Amar

I completely disagree with Santosh that

<i>Unit testing is nothing but debug testing ...</i>

Read only

uwe_schieferstein
Active Contributor
0 Likes
613

Hello Amar

I send my reply prematurely.

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 <b>test-driven development (TDD).</b> 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.

You will find in the SDN Weblogs about Test-Driven Developement and ABAP Unit Tests.

Regards

Uwe

Read only

0 Likes
613

Hai Uwe,

In unit testing we must know the actual and expected values.how is it possible in real time programming.

And you have quoted "when you change your coding you can use your Unit Tests to check whether you accidentially introduced some error".

i have gone through the web logs,but couldnt find how to do this.

Please clarify.

Thanx in Advance

Farook

Read only

0 Likes
613

Unit Testing Vs UAT.

  Unit test is the consultant testing their config or development.

  • UAT - is the final acceptance from customer that the requirement is working fine.

  • Normally UT will be done in the DEV system and UAT in Quality system.

Read only

Former Member
0 Likes
613

The Difference betweem Header data table (ex:- Vbak) and Item data table (ex:- vbap) is in VBAK you will have the Sale Order Number for the sale of a customer that has been done, as it contains all the Header sales like this That is why VBAK is called as Sale Order Header Table and in VBAP you will have all the item details done for that particular sale order number, for one sale order there will be multiple items thats why VBAP is Item data table.