1 of 5

EXAMPLE OF UNIT TESTING�

TESTING DAN IMPLEMENTASI SISTEM

2 of 5

Let us see one sample example for a better understanding of the concept of unit testing:

For the amount transfer, requirements are as follows:

3 of 5

Now, we will start performing the unit testing on the different components such as From account number(FAN), To account number(TAN), Amount, Transfer, Cancel

4 of 5

  • For the FAN components
  • For the TAN component

Provide the values just like we did in From account number (FAN) components

  • For Amount component

Provide the values just like we did in FAN and TAN components.

5 of 5

  • For Transfer component

Enter valid FAN value

Enter valid TAN value

Enter the correct value of Amount

Click on the Transfer button→ amount transfer successfully( confirmation message)

  • For Cancel Component

Enter the values of FAN, TAN, and amount.

Click on the Cancel button → all data should be cleared.