‎2007 Jul 27 5:34 AM
hi guru's,
how can we write UTP(unit test plan) ,explaine me with examples.who will prepare this .
thanks in advance.
‎2007 Jul 27 5:39 AM
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
‎2007 Jul 27 5:39 AM
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
‎2007 Jul 27 5:39 AM
Hi,
Check thsi link
http://www.softwareqatest.com/qatfaq2.html#FAQ2_6b
Reward points to all helpful answers
Regards,
Satyendra
‎2007 Jul 27 5:40 AM
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
‎2007 Jul 27 5:45 AM
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