View source | View content page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Show collection (0 pages)
Collections help

Search

Projects:AdvPaymentMngt/JUnit Test Script

Contents

Introduction

JUnit is a testing framework for the java programming language.We have developed the JUnit test cases for Advance Payables and Receivables module.

List of Test Cases

We have developed the following test cases.

Payment Document Generation (Fully Paid)

This test case will help to test the payment document generation process using the add payment and execute payment events. This test case will do the following process:

Financial Account and Payment method needed for generating payment document. Creating Payment Method

Referenced data
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Name APRM_PM_PAYMENT_01
Active True
Defaults Payment IN
Payment In Allowed True
Automatic Receipt False
Automatic Deposit False
Execution Type Manual M
Upon Receipt Use In Transit Payment Account INT
Upon Deposit Use Deposited Payment Account DEP
Upon Clearing Use Cleared Payment Account CLE
Defaults Payment OUT
Payment In Allowed True
Automatic Receipt False
Automatic Deposit False
Execution Type Manual M
Upon Payment Use In Transit Payment Account INT
Upon Withdrawal Use Withdrawn Payment Account WIT
Upon Clearing Use Cleared Payment Account CLE
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Name APRM_FINACC_PAYMENT_01
Active True
Currency EUR 102
Type Cash C
Default False
Business Partner McGiver Supplies
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
Active True
Financial Account APRM_FINACC_PAYMENT_01
Payment Method APRM_PM_PAYMENT_01
Input Data
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type AR Invoice
Business Partner McGiver Supplies
Price List General Sales
Payment Term Immediate
Payment Method APRM_PM_PAYMENT_01
Field Value Identifier
Product Hat
UOM Unit
Tax Vat 4%
Tax Amount 7.4
Line Net Amount 175.00
Invoice Quantity 5
Unit Price 35.00
List Price 37.00
Price Limit 0
Grand Total Amount 182.00

Procedure has been created for sales invoice completion. Using the procedure we can complete the sales invoice.

Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type AR Receipt
Received from McGiver Supplies
Payment Method APRM_PM_PAYMENT_01
Financial Account APRM_FINACC_PAYMENT_01
Status Awaiting Payment
Amount 182.00
Output Data
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Expected Amount 182.00
Received Amount 182.00
Outstanding Amount 0
Number of Payments 1
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Financial Account APRM_FINACC_PAYMENT_01
Expected Amount 182.00
Paid Amount 182.00
Field Value Identifier
Amount 182.00
Status Payment Received
Field Value Identifier
Invoice Amount 182.00
Expected 182.00
Paid Amount 182.00
Reactivating the Payment
Field Value Identifier
Amount 0
Status Awaiting Payment
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Expected Amount 182.00
Received Amount 0
Outstanding Amount 182.00
Number of Payments 0

Payment Document Generation (Partially Paid)

This test case will help to test the payment document generation process using the add payment and execute payment events. This test case will do the following process:

Financial Account and Payment method needed for generating payment document. Creating Payment Method

Referenced data
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Name APRM_PM_PAYMENT_01
Active True
Defaults Payment IN
Payment In Allowed True
Automatic Receipt False
Automatic Deposit False
Execution Type Manual M
Upon Receipt Use In Transit Payment Account INT
Upon Deposit Use Deposited Payment Account DEP
Upon Clearing Use Cleared Payment Account CLE
Defaults Payment OUT
Payment In Allowed True
Automatic Receipt False
Automatic Deposit False
Execution Type Manual M
Upon Payment Use In Transit Payment Account INT
Upon Withdrawal Use Withdrawn Payment Account WIT
Upon Clearing Use Cleared Payment Account CLE
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Name APRM_FINACC_PAYMENT_01
Active True
Currency EUR 102
Type Cash C
Default False
Business Partner McGiver Supplies
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
Active True
Financial Account APRM_FINACC_PAYMENT_01
Payment Method APRM_PM_PAYMENT_01
Input Data
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type AR Invoice
Business Partner McGiver Supplies
Price List General Sales
Payment Term Immediate
Payment Method APRM_PM_PAYMENT_01
Field Value Identifier
Product Hat
UOM Unit
Tax Vat 4%
Tax Amount 7.4
Line Net Amount 175.00
Invoice Quantity 5
Unit Price 35.00
List Price 37.00
Price Limit 0
Grand Total Amount 182.00

Procedure has been created for sales invoice completion. Using the procedure we can complete the sales invoice.

Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type AR Receipt
Received from McGiver Supplies
Payment Method APRM_PM_PAYMENT_01
Financial Account APRM_FINACC_PAYMENT_01
Status Awaiting Payment
Amount 0
Output Data
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Expected Amount 182.00
Received Amount 91.00
Outstanding Amount 91.00
Number of Payments 1
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Financial Account APRM_FINACC_PAYMENT_01
Expected Amount 182.00
Received Amount 91.00
Field Value Identifier
Amount 91.00
Status Payment Received
Field Value Identifier
Invoice Amount 182.00
Expected 182.00
Paid Amount 91.00
Reactivating the Payment
Field Value Identifier
Amount 0
Status Awaiting Payment
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Expected Amount 182.00
Received Amount 0
Outstanding Amount 182.00
Number of Payments 0


Payment Document Generation (Write-Off)

This test case will help to test the payment document generation process using the add payment and execute payment events. This test case will do the following process:

Financial Account and Payment method needed for generating payment document. Creating Payment Method

Referenced data
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Name APRM_PM_PAYMENT_01
Active True
Defaults Payment IN
Payment In Allowed True
Automatic Receipt False
Automatic Deposit False
Execution Type Manual M
Upon Receipt Use In Transit Payment Account INT
Upon Deposit Use Deposited Payment Account DEP
Upon Clearing Use Cleared Payment Account CLE
Defaults Payment OUT
Payment In Allowed True
Automatic Receipt False
Automatic Deposit False
Execution Type Manual M
Upon Payment Use In Transit Payment Account INT
Upon Withdrawal Use Withdrawn Payment Account WIT
Upon Clearing Use Cleared Payment Account CLE
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Name APRM_FINACC_PAYMENT_01
Active True
Currency EUR 102
Type Cash C
Default False
Business Partner McGiver Supplies
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
Active True
Financial Account APRM_FINACC_PAYMENT_01
Payment Method APRM_PM_PAYMENT_01
Input Data
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type AR Invoice
Business Partner McGiver Supplies
Price List General Sales
Payment Term Immediate
Payment Method APRM_PM_PAYMENT_01
Field Value Identifier
Product Hat
UOM Unit
Tax Vat 4%
Tax Amount 7.4
Line Net Amount 175.00
Invoice Quantity 5
Unit Price 35.00
List Price 37.00
Price Limit 0
Grand Total Amount 182.00

Procedure has been created for sales invoice completion. Using the procedure we can complete the sales invoice.

Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type AR Receipt
Received from McGiver Supplies
Payment Method APRM_PM_PAYMENT_01
Financial Account APRM_FINACC_PAYMENT_01
Status Awaiting Payment
Amount 0
Write-Off 0
Output Data
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Expected Amount 182.00
Received Amount 182.00
Outstanding Amount 0
Number of Payments 1
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Financial Account APRM_FINACC_PAYMENT_01
Expected Amount 182.00
Received Amount 182.00
Field Value Identifier
Amount 180.00
Write-Off Amount 2.00
Status Payment Received
Field Value Identifier
Invoice Amount 182.00
Expected 182.00
Received Amount 180.00
Reactivating the Payment
Field Value Identifier
Amount 0
Status Awaiting Payment
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Expected Amount 182.00
Received Amount 0
Outstanding Amount 182.00
Number of Payments 0


Payment Document Generation (Refund)

This test case will help to test the payment document generation process using the add payment and execute payment events. This test case will do the following process:


Financial Account and Payment method needed for generating payment document. Creating Payment Method

Referenced data
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Name APRM_PM_PAYMENT_01
Active True
Defaults Payment IN
Payment In Allowed True
Automatic Receipt False
Automatic Deposit False
Execution Type Manual M
Upon Receipt Use In Transit Payment Account INT
Upon Deposit Use Deposited Payment Account DEP
Upon Clearing Use Cleared Payment Account CLE
Defaults Payment OUT
Payment In Allowed True
Automatic Receipt False
Automatic Deposit False
Execution Type Manual M
Upon Payment Use In Transit Payment Account INT
Upon Withdrawal Use Withdrawn Payment Account WIT
Upon Clearing Use Cleared Payment Account CLE
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Name APRM_FINACC_PAYMENT_01
Active True
Currency EUR 102
Type Cash C
Default False
Business Partner McGiver Supplies
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
Active True
Financial Account APRM_FINACC_PAYMENT_01
Payment Method APRM_PM_PAYMENT_01
Input Data
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type AR Invoice
Business Partner McGiver Supplies
Price List General Sales
Payment Term Immediate
Payment Method APRM_PM_PAYMENT_01
Field Value Identifier
Product Hat
UOM Unit
Tax Vat 4%
Tax Amount 7.4
Line Net Amount 175.00
Invoice Quantity 5
Unit Price 35.00
List Price 37.00
Price Limit 0
Grand Total Amount 182.00

Procedure has been created for sales invoice completion. Using the procedure we can complete the sales invoice.

Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type AR Receipt
Received from McGiver Supplies
Payment Method APRM_PM_PAYMENT_01
Financial Account APRM_FINACC_PAYMENT_01
Status Awaiting Payment
Amount 182.00
Write-Off 0
Output Data
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Expected Amount 182.00
Received Amount 182.00
Outstanding Amount 0
Number of Payments 1
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Financial Account APRM_FINACC_PAYMENT_01
Expected Amount 182.00
Received Amount 182.00

After Refunding the amount to the customer, it will create two documents in receive payments.

Field Value Identifier
Amount 182.00
Write-Off Amount 0.00
Generated Credit 20.00
Used Credit 20.00
Status Payment Received
Field Value Identifier
Invoice Amount 182.00
Expected 182.00
Received Amount 182.00
Field Value Identifier
Amount -20.00
Write-Off Amount 0.00
Generated Credit 0.00
Used Credit 20.00
Status Payment Received
Field Value Identifier
Invoice Amount 0.00
Expected 0.00
Received Amount -20.00

Payment Document Generation (Payment Proposal)

This test case will help to test the payment document generation process using the select expected payment and generate payment events. This test case will do the following process:

Financial Account and Payment method needed for generating payment document. Creating Payment Method

Referenced data
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Name APRM_PM_PAYMENT_01
Active True
Defaults Payment IN
Payment In Allowed True
Automatic Receipt False
Automatic Deposit False
Execution Type Manual M
Upon Receipt Use In Transit Payment Account INT
Upon Deposit Use Deposited Payment Account DEP
Upon Clearing Use Cleared Payment Account CLE
Defaults Payment OUT
Payment In Allowed True
Automatic Receipt False
Automatic Deposit False
Execution Type Manual M
Upon Payment Use In Transit Payment Account INT
Upon Withdrawal Use Withdrawn Payment Account WIT
Upon Clearing Use Cleared Payment Account CLE
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Name APRM_FINACC_PAYMENT_01
Active True
Currency EUR 102
Type Cash C
Default False
Business Partner McGiver Supplies
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
Active True
Financial Account APRM_FINACC_PAYMENT_01
Payment Method APRM_PM_PAYMENT_01
Input Data
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type AR Invoice
Business Partner McGiver Supplies
Price List General Sales
Payment Term Immediate
Payment Method APRM_PM_PAYMENT_01
Field Value Identifier
Product Hat
UOM Unit
Tax Vat 4%
Tax Amount 7.4
Line Net Amount 175.00
Invoice Quantity 5
Unit Price 35.00
List Price 37.00
Price Limit 0
Grand Total Amount 182.00
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type AP Invoice
Business Partner Turtle Logistics
Price List General Sales
Payment Term Immediate
Payment Method APRM_PM_PAYMENT_01
Field Value Identifier
Product Hat
UOM Unit
Tax Vat 4%
Tax Amount 7.4
Line Net Amount 175.00
Invoice Quantity 5
Unit Price 35.00
List Price 37.00
Price Limit 0
Grand Total Amount 182.00

Procedure has been created for purchase invoice completion. Using the procedure we can complete the purchase invoice.

Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type Payment Proposal
Payment Method APRM_PM_PAYMENT_01
Financial Account APRM_FINACC_PAYMENT_01
Status Awaiting Payment
Amount 0.00

Select the created two invoice and give the expected payment amount and process the expected payments.

Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type Payment Proposal
Payment Method APRM_PM_PAYMENT_01
Financial Account APRM_FINACC_PAYMENT_01
Status Awaiting Payment
Amount 364.00

Payment can be made using the generate payments.Make the payment using the generate payment process.

Output Data
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type Payment Proposal
Payment Method APRM_PM_PAYMENT_01
Financial Account APRM_FINACC_PAYMENT_01
Amount 364.00
Status Payment Made
Field Value Identifier
Business Partner McGiver Supplies
Invoice Amount 182.00
Expected 182.00
Paid Amount 182.00
Field Value Identifier
Business Partner Turtle Logistics
Invoice Amount 182.00
Expected 182.00
Paid Amount 182.00
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Expected Amount 182.00
Received Amount 182.00
Outstanding Amount 0
Number of Payments 1
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Financial Account APRM_FINACC_PAYMENT_01
Expected Amount 182.00
Paid Amount 182.00
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Expected Amount 182.00
Received Amount 182.00
Outstanding Amount 0
Number of Payments 1
Field Value Identifier
Payment Method APRM_PM_PAYMENT_01
Financial Account APRM_FINACC_PAYMENT_01
Expected Amount 182.00
Paid Amount 182.00

Payment Document Generation (Execution Process with Deferred)

This test case will help to test the payment document generation process using the add payment,execute payment and execution process events with deferred option. This test case will do the following process:

Financial Account and Payment method needed for generating payment document. Creating Payment Method

Referenced data
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Name APRM_PM_PAYMENT_02
Active True
Defaults Payment IN
Payment In Allowed True
Automatic Receipt False
Automatic Deposit False
Execution Type Automatic A
Execution Process Simple Execution Process
Deferred True
Upon Receipt Use In Transit Payment Account INT
Upon Deposit Use Deposited Payment Account DEP
Upon Clearing Use Cleared Payment Account CLE
Defaults Payment OUT
Payment In Allowed True
Automatic Receipt False
Automatic Deposit False
Execution Type Automatic A
Execution Process Simple Execution Process
Deferred True
Upon Payment Use In Transit Payment Account INT
Upon Withdrawal Use Withdrawn Payment Account WIT
Upon Clearing Use Cleared Payment Account CLE
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Name APRM_FINACC_PAYMENT_02
Active True
Currency EUR 102
Type Cash C
Default False
Business Partner McGiver Supplies
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
Active True
Financial Account APRM_FINACC_PAYMENT_02
Payment Method APRM_PM_PAYMENT_02
Input Data
Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type AR Invoice
Business Partner McGiver Supplies
Price List General Sales
Payment Term Immediate
Payment Method APRM_PM_PAYMENT_02
Field Value Identifier
Product Hat
UOM Unit
Tax Vat 4%
Tax Amount 7.4
Line Net Amount 175.00
Invoice Quantity 5
Unit Price 35.00
List Price 37.00
Price Limit 0
Grand Total Amount 182.00

Procedure has been created for sales invoice completion. Using the procedure we can complete the sales invoice.

Field Value Identifier
Client SmallBazaar 1000000
Organization Main 1000000
User 100
Currency EUR 102
Document Type AR Receipt
Received from McGiver Supplies
Payment Method APRM_PM_PAYMENT_02
Financial Account APRM_FINACC_PAYMENT_02
Status Awaiting Payment
Amount 0
Write-Off 0
Output Data
Field Value Identifier
Payment Method APRM_PM_PAYMENT_02
Expected Amount 182.00
Received Amount 182.00
Outstanding Amount 0
Number of Payments 1
Field Value Identifier
Payment Method APRM_PM_PAYMENT_02
Financial Account APRM_FINACC_PAYMENT_02
Expected Amount 182.00
Received Amount 182.00
Field Value Identifier
Amount 180.00
Write-Off Amount 0.00
Status Awaiting Execution
Field Value Identifier
Invoice Amount 182.00
Expected 182.00
Received Amount 180.00
Reactivating the Payment
Field Value Identifier
Amount 0
Status Awaiting Payment
Field Value Identifier
Payment Method APRM_PM_PAYMENT_02
Expected Amount 182.00
Received Amount 0
Outstanding Amount 182.00
Number of Payments 0

Retrieved from "http://wiki.openbravo.com/wiki/Projects:AdvPaymentMngt/JUnit_Test_Script"

This page has been accessed 2,879 times. This page was last modified on 8 June 2012, at 05:26. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.