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

test plan

Former Member
0 Likes
596

hi guru's,

how can we write UTP(unit test plan) ,explaine me with examples.who will prepare this .

thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
561

hi

utp is noting but all the test cases of your program

let us say u have an if condition and else condition in your program

and if the condition is satisfied u are displaying a message if not u are showing an other message

normal processing

now test your program according to the if condition (correct values)

so that u are getting correct message in a screen shot

error processing

not go to the else part and show the other message

simillarly test all your conditions and validations and show them in two different parts like normal and error

reward if helpful

vamsi

4 REPLIES 4
Read only

Former Member
0 Likes
562

hi

utp is noting but all the test cases of your program

let us say u have an if condition and else condition in your program

and if the condition is satisfied u are displaying a message if not u are showing an other message

normal processing

now test your program according to the if condition (correct values)

so that u are getting correct message in a screen shot

error processing

not go to the else part and show the other message

simillarly test all your conditions and validations and show them in two different parts like normal and error

reward if helpful

vamsi

Read only

satykumar
Product and Topic Expert
Product and Topic Expert
0 Likes
561

Hi,

Check thsi link

http://www.softwareqatest.com/qatfaq2.html#FAQ2_6b

Reward points to all helpful answers

Regards,

Satyendra

Read only

Former Member
0 Likes
561

hi,

Steps to be followed for UTP.

UTP : Unit Test Plan. Testing the program by the developer who developed the program is termed as Unit Test Plan.

Two aspects are to be considered in UTP.

1. Black Box Testing

2. White Box Testing.

1. Black Box Testing : The program is executed to view the output.

2. White Box Testing : The code is checked for performance tuning and syntax errors.

Follow below mentioned steps.

Black Box Testing

1. Cover all the test scenarios in the test plan. Test plan is usually prepared at the time of Techincal Spec preparation, by the testing team. Make sure that all the scenarios mentioned in the test plan are coverd in UTP.

2. Execute your code for positive and negative test. Postive tests - to execute the code and check if the program works as per expected. Negative Test - Execute code to know if the code is working in scenarios in which it is not supposed to work. The code should work only in the mentioned scenarios and not in all cases.

White Box Testing.

1. Check the Select statments in your code. Check if any redundant fields are being fetched by the select statements.

2. Check If there is any redundant code in the program.

3. Check whether the code adheres to the Coding standards of your client or your company.

4. Check if all the variables are cleared appropriately.

5. Optimize the code by following the performance tuning procedures.

Using tools provided by SAP

1. Check your program using EXTENDED PROGRAM CHECK.

2. Use SQL Trace to estimate the performace and the response of the each statement in the code. If changes are required, mention the same in UTP.

3. Use Runtime Analyser and Code Inspector to test your code.

4. Paste the screen shots of all the tests in the UTP document. This gives a clear picture of the tests conducted on the program.

All the above steps are to be mentioned in UTP.

<b>Reward points if useful</b>

Regards

Ashu

Read only

Former Member
0 Likes
561

Hi

You have to have the ABAP unit implemented in the code for this to be used,

check the below link from SAP help:

http://help.sap.com/saphelp_nw04/helpdata/en/a2/8a1b602e858645b8aac1559b638ea4/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/c4/7c1440a1c32402e10000000a1550b0/frameset.htm

Following are the steps for unit test:

UTP : Unit Test Plan. Testing the program by the developer who developed the program is termed as Unit Test Plan.

Two aspects are to be considered in UTP.

1. Black Box Testing

2. White Box Testing.

1. Black Box Testing : The program is executed to view the output.

2. White Box Testing : The code is checked for performance tuning and syntax errors.

Follow below mentioned steps.

Black Box Testing

1. Cover all the test scenarios in the test plan. Test plan is usually prepared at the time of Techincal Spec preparation, by the testing team. Make sure that all the scenarios mentioned in the test plan are coverd in UTP.

2. Execute your code for positive and negative test. Postive tests - to execute the code and check if the program works as per expected. Negative Test - Execute code to know if the code is working in scenarios in which it is not supposed to work. The code should work only in the mentioned scenarios and not in all cases.

White Box Testing.

1. Check the Select statments in your code. Check if any redundant fields are being fetched by the select statements.

2. Check If there is any redundant code in the program.

3. Check whether the code adheres to the Coding standards of your client or your company.

4. Check if all the variables are cleared appropriately.

5. Optimize the code by following the performance tuning procedures.

Using tools provided by SAP

1. Check your program using EXTENDED PROGRAM CHECK.

2. Use SQL Trace to estimate the performace and the response of the each statement in the code. If changes are required, mention the same in UTP.

3. Use Runtime Analyser and Code Inspector to test your code.

4. Paste the screen shots of all the tests in the UTP document. This gives a clear picture of the tests conducted on the program.

All the above steps are to be mentioned in UTP.

For more information, please check the below link from SAP help

http://help.sap.com/saphelp_nw04/helpdata/en/a2/8a1b602e858645b8aac1559b638ea4/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/c4/7c1440a1c32402e10000000a1550b0/frameset.htm

reward if useful

Thanks