Application Development 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: 

pls provide somes sample report unit testing (test cases)

Former Member
0 Kudos

hi,

iam arun can u pls provide some sample simple report test cases.

bye

2 REPLIES 2

Former Member
0 Kudos

Hi Arun,

Here format will not come clear, anyway i am sending few test conditions(cases)

3.1 Test Transaction Type ZO23

Cycle description

This test plan describes the unit test for the transaction type ZO23

Ref.

Test description incl. input data

Expected result

Outcome

1

From SAP Main Menu , enter command code ZO23

Selection screen for program ZOR30801 presented

As expected

3.2 Test Selection Options

Cycle description

This test plan describes the unit tests for the selection options available on the initial screen.

Ref.

Test description incl. input data

Expected result

Outcome

1

Required parameters Sales Organization, Distribution Channel, Division, Customer Number, BRI Supply Plant are entered in Selection Screen

BRI Export Order Status Report displayed

As expected

2

Required parameters Sales Organization, Distribution Channel, Division, Customer Number, and BRI Supply Plant are not entered.

Error messages displayed.

As expected

3.3 Test Sales Orders

Cycle description

This test plan describes the unit tests for Sales Orders that need to be shown on the BRI Export Order Status Report

Ref.

Test description incl. input data

Expected result

Outcome

1

Create a sales order, without delivery, with several items and run the report for the customer, with and without date range.

All items for the sales order are displayed on the report with ordered quantities, regardless of date.

As expected

2

Create a sales order, without delivery, with several items and reject some items and run the report for the customer, without date range.

All items and rejected items for the sales orders are shown on the report with ordered quantities.

As expected

3

Create a sales order only, without delivery, with several items and reject some items and run the report for the customer with date range.

All items for the sales order are displayed on the report with ordered quantities

Only rejected items for the sales order within the date range are displayed on the report with ordered quantities

As expected

4

Create a sales order, delivery and post goods issue with several items and reject some items and run the report for the customer with date range.

All items for the post goods issued sales order are displayed on the report with ordered quantities

Only rejected items for the post good issued sales order within the date range are displayed on the report with ordered quantities

As expected

5

Create a sales order, delivery, post goods issue and invoice, with several items. Run the report with and without a date range.

Without date range:

All items for the invoiced sales order are displayed on the report with ordered and invoiced quantities

With date range:

Only items for the invoiced sales order within the date range are displayed on the report with ordered and invoiced quantities

As expected

6

Create a sales order, and create several deliveries. Run the report for the customer with and without a date range.

All items for the sales order and all the subsequent deliveries are displayed on the report with ordered quantities, regardless of date.

As expected

7

Create a sales order, and create several deliveries. Create the deliveries with “batch split” lines. Run the report for the customer with and without a date range.

All items for the sales order and all the subsequent deliveries are displayed on the report ordered quantities, regardless of date.

As expected

8

Create a sales order, and create several deliveries. Create the deliveries with “batch split” lines and invoice each delivery. Run the report for the customer with and without a date range

Without date range:

All items for the sales order and all the subsequent deliveries are displayed on the report with ordered quantities. The invoiced quantities are shown for each delivery. Each “batch split” quantity is shown.

With date range:

Only items for the sales order and all the subsequent deliveries are displayed on the report with ordered quantities, where the post goods issue date is with in the date range. The invoiced quantities are shown for each delivery. Each “batch split” quantity is shown.

As expected

Regs

Rams

uwe_schieferstein
Active Contributor
0 Kudos

Hello Arun

To learn more about ABAP Unit testing have a look at the Weblog series by Thomas Weiss (5 parts):

<a href="/people/thomas.weiss/blog/2004/12/17/a-spotlight-on-abap-unit-part-1">SAP Network Blog: A Spotlight on ABAP Unit Part 1</a>

Another recommended reading by Stephan Samarin is:

<a href="/people/stepan.samarin/blog/2004/09/23/test-driven-development-with-abap Driven Development with ABAP</a>

Regards

Uwe