cancel
Showing results for 
Search instead for 
Did you mean: 

Unit test

Former Member
0 Kudos

Hello All,

could someone give me an example of how to write an unit test script before you actually perform UAT,

and example could start from quotation or something like that.

regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Usually we write down all the possible steps that could happens in a transactions.

- Start with creating master data (customer - TCode XD01 & material master - TCode MM01)

- Create a quotation (TCode VA21)

- Create Sales Order (TCode VA01)

Put down the master data code, created transaction number and state the status of each steps whether success or fail.

Hope this help.

Cheers,

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear Dilip,

In Unit Testing, scripts are used to test module specific transactions; whereas, Integration Testing test integration scenarios.

Unit Testing is being carried-out, based up on individual transactions (particular Module Specific, say SD), such as:

1. Customer Creation

2. Material Master Creation

3. Create the Quotation (here, check whether the Quotation is getting created with the same Customer/ Material; created with Org. Data as used to create Quotation, only).

4. Sales Order Creation, say with ref. to Quotation only, and also check whether nformations (Customers - Sold-to, Ship-to etc..; Material; Price-Condition etc.. are getting copied from Quotation to Sales Order)

5. Purchase Requisition (PR) is getting created, as soon as Sales Order is getting saved (if reqd.)

6. Purchase Order (PO) is getting created with PR.

7. Delivery must be with ref. to Sales Order (or as per requirment).

8. Invoice creation with ref. to Delivery only (or as required).

Etc.., at individual level.

Whereas, Integration Testing involves, a collaborative Performance of all the transactions (with respect to all modules, say SD-MM-FI-CO), in one go.

For example,

When Invoice is getting Created in SD-Module, Accounting entries getting Posted in FI.

or,

When Delivery is made is in SD-Module, inventory gets reduced in MM.

Best Reagrds,

Amit

Former Member
0 Kudos

Hi,

please reff thsi link

http://www50.sap.com/businessmaps/6D1236712F84462F941FDE131A66126C.htm

Unit testing is testing a development or a piece of configuration on its own. Integration testing is used later and tests all developments and configuration together.

I hope it may usefull for u.

Best Regards,

venkataswamy.y

former_member204513
Active Contributor
0 Kudos

Dear Dilip,

Unit testing means test the scenerio with in the module.

For example

User wanted specific number range for the one of the sales order type.

Consultant have define New number range for that sales order ,and he need to test that whether system is getting that currect number range or not before hand over to the user.

The process steps which followed to test the scenerio same steps you can mentined in a word document that is called test script.

Test script will be like this

Data Required:-

Customer:

Document type:

Material:

Sales organisation:

Distribution channel:

Division:

Tested date:

Tested by:

Test Result:

System:

Transactional steps:-

1.Go to VA01 transaction enter the Document type and sales area press enter.

2.Enter the customer , Material and other data.

3.Go to Memu Edit -->Incompletion log if document completeed the press the Save button.

If document is incomplete then complete the data then save.

4.After savinh the sales order system will give the message Sales order XXXX have been saved check the number of the sales document.It should be same as user required.

I hope this will help you,

Regards,

Murali.