How to prepare the UNIT test plan

Hi ALL
can any body tell me how to prepare a unit test plan

Use the following colums in preparing unit Test data.
1. Sr.No.
2.Test Condition.
3.Expected Results
4.Description/Instruction for the test execution.
5.TestData used for the test.
6.Actual Result.
7.Pass/Fail.
For a login Screen. Unit Test plan wud b.
1.  1
2.   User Presses Login Button.
3.   Data shud be validated.
4.  As soon as the user enter the fields in the login screen,the data shud be validated and If entered data is correct proceed to the next screen, else popup an error.
5. User:kiran, Pwd:***
6. Entered incorrect data,but proceeded to the new screen.
7. FAIL.

Similar Messages

  • How to write utp(unit test plan)

    how to write utp(unit test plan)

    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.
    <b>Black Box Testing</b>
    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.
    <b>White Box Testing.</b>
    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.
    <b>Using tools provided by SAP</b>
    1. Check your program using <b>EXTENDED PROGRAM CHECK</b>.
    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.
    Regards,
    Vara

  • How can we do unit test plan

    hi experts can u help me plz

    Hi,
    Check this
    http://www.softwareqatest.com/qatfaq2.html#FAQ2_6b
    You find a description about Test Plan.

  • About unit test plan document

    Hi all,
    I am new to ABAP environment.Can anyone explain what is meant by unit test plan document and also what is the diff between between code review and peer review.
    Thanks in advance
    *There is enough material online, pl help yourself.
    @Others: Answering such questions is discouraged.*
    Edited by: Suresh Datti on Sep 1, 2009 10:35 AM

    Hi,
    Unit test plan:
    From a technical point of view , once you complete your development you need to test the objet to ensure it is meeting all the requirements..
    For this purpose you prepare a unit test plan. You will have both negative and positive test case in your plan. Execute each case and check whether the output is acheived or not..
    Code review.. Once coding is completed you need to review your code to ensure that you have followed all coding stds..
    Peer review is code review done by; some one else in your team.
    Search SCN for more details
    Regards
    Ansari

  • Flash Builder 4.6 - How can I keep unit test classes out of the finished swc?

         I have a library of code I'm building and I'm working on unit testing but I have a major issue. When my finished swc compiles no matter what I do it includes the unit test classes as part of the intellisense if you load the swc via flash. The classes aren't really in the swc since if you just try and import them they'll come up undefined. They only appear to go into the intellisense for the swc. Does anyone know how can I keep this from happening in the finished source? Currently my folder setup is like this in flash builder.
    src\main - source documents for the library to get compiled
    src\mock - mock class area for unit testing
    src\test - unit test classes
         In the project Properties panel > the first tab of my Flex Library Build path I have selected only the src\main folder for the classes to inlude in the library. No other folder paths are selected.
    The "Flex Library Build Path" doesn't change my results with any setting.
    Thanks,

    Mel Riffe,
    Here's a Help topic about compiler options in Flash Builder: http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb524b8220812e5611f28f-7fe7. html
    For information on using mxmlc, the application compiler, to compile SWF files from your ActionScript and MXML source files, you can see: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fcc.html
    Hope this helps,
    Mallika Yelandur
    Flash Builder Community Help & Learning
    Adobe Systems Incorporated

  • How to unit test pl/sql collection in the unit test ?

    There is a function SPLIT_LIST (see below) to split a string list to a collection type .
    I'm trying to use the SQLP DEVELOPER to do the unit test on this fucntion. The idea is to use lookups to give multiple string list for different inputs such as 'A,B,C' 'D', '', 'EF,,GH'. for multiple tests a time.
    the expected result (function returns) are SPLIT_TBL('A','B',C'), SPLIT_TBL('D'), SPLIT_TBL(), SPLIT_TBL('EF','','GH')
    But I have problem to use unit test to verify the result based on the lookups as the out put is the collection. anyone has a good idea to do those ?
    create or replace TYPE SPLIT_TBL AS TABLE OF VARCHAR2(32767) ;
    create or replace
    FUNCTION SPLIT_LIST (
    P_LIST VARCHAR2,
    P_DEL VARCHAR2 DEFAULT ' ' )
    RETURN SPLIT_TBL PIPELINED DETERMINISTIC
    IS
    lv_idx PLS_INTEGER;
    lv_list VARCHAR2(32767) := P_LIST;
    lv_value VARCHAR2(32767);
    BEGIN
    LOOP
    lv_idx := instr(lv_list,p_del);
    IF lv_idx > 0 THEN
    PIPE ROW(SUBSTR(lv_list,1,lv_idx-1));
    lv_list := SUBSTR(lv_list,lv_idx+LENGTH(p_del));
    ELSE
    PIPE ROW(lv_list);
    EXIT;
    END IF;
    END LOOP;
    RETURN;
    END;
    /

    I'm having a similar problem - have you solved yours yet?
    As for me, when I return a collection as an output parameter from a procedure, I can't test the result.
    Example: I'm testing a procedure defined like this: Procedure check_this (p_id number, p_result out CompResult)
    where CompResult is defined as: create or replace type CompResult is varray(100) of CompObj;
    Unit Test understands that the data type of out parameter p_result is CompResult.
    It fills in schemaName.CompResult() as the result (empty varray).
    Editing of the result does not appear to be allowed - it's read only.
    So, when the proc returns a varray that isn't empty, the test fails.

  • Need Sample Unit Test Plan templates for SD

    Hi Experts,
    I am in need of some SD unit test plan templates used in any of your implementations.
    Pls Help.

    Dear Preethi
    As already expressed, you are asking the confidential document which nobody would like to share.
    However, AS-IS will be prepared by Core team people and your duty is to go through the process in depth.
    May be the AS-IS from SD purview, I can list as an example as how it should be
    The excel sheet of AS-IS header tabs will have to contain the following header tabs
    -  Scenario like Exports, Domestic etc,
    -  Under this scenario, Groups like OE, Aftermarket, Stock Transfer etc.,
    -  Under this Groups, Process like Business Plan, Scheduling, Preshipment activities, Post shipment activities etc.,
    -  Finally this process has to be break down into a detailed list of activities.
    So you have to go through these process in detail.
    As for as testing is concerned, there is no need to check the customer master.
    All you have to do is to carry out all standard T.Codes like order creation, create delivery, PGI, Billing and Excise Invoice.  Again try to cancel all documents from billing to sale order and ensure that you are able to cancel those documents.  Check for the FI implication on the COGS and material cost.
    Also while testing, you can also check whether you are able to create one delivery against multiple sale orders and one invoice against multiple deliveries.  If not successful, analyse the reason for split, maintain the required datas in masters and retry the process.
    thanks
    G. Lakshmipathi

  • What is  UTP?(unit test plan)

    hi,
    what is UTP?
    How do you write UTP?(unit test plan)

    Hi,
        Are u referring to the UTP which is to be done after u hve completed the coding. If so, UTP is a document where in u write the test cases and the test results of the object that you have developed. It will have the test case, expected result and the result that is displyed in the output. You can also provide the screenshots of the output and also comments in the document.
    Hope this helps.
    Reward points if helpful.
    Thanks.

  • How to execute Script in Test Plan with two different System Data Container

    Dear members,
    I have a requirement.
    I need to execute one Test Config in a Test Plan with one System Data Container and another Test Config in a Test plan with another SDC.
    How to achieve this ?
    Kind regards,
    Pradeep
    Edited by: Pradeep Singh Rawat on Mar 23, 2011 7:10 AM

    >
    Pradeep Singh Rawat wrote:
    > I need to execute one Test Config in a Test Plan with one System Data Container and another Test Config in a Test plan with another SDC. How to achieve this ?
    Currently it is not possible, to maintain more than one SDC on a test plan.
    A workaround is, to maintain one SDC on a test plan and specify no target system direct in a test plan. If you maintain then your  two systems in one SDC, you can specifiy each target system in the test configuration, where it is needed.
    Here the example:
    test plan:
    systemdata container: SDC_ALL
    target system: <empty>
    test config 1:
    systemdata container:
    target system: CRM
    test config 2:
    systemdata container:
    target system: ERP
    systemdata container: SDC_ALL
    target system: CRM -> rfc 1
    target system: ERP -> rfc 2
    Kind regards,
    Christoph

  • Required Unit test Plan for Data migration

    Dear All,
    I am looking for unit test plan Draft documents/templates which covers
    1. Testing tools
    2. Methods
    3. Error handling
    4. Reviews and approvals
    The project is a Oracle 10g data migration from one schema to another schema.
    It will be a greate help if anyone can forward the same to me.
    Thank you.

    Hi Vaishali,
    You may wish to refer the links below...
    https://service.sap.com/instguides --> SAP NetWeaver --> Release 2004s --> Upgrade
    https://www.sdn.sap.com/irj/sdn/developerareas/bi
    latest on upgrade tp BI7.0
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2e8e5288-0b01-0010-2ea8-bcd4df5084a7
    Upgrading BW 3.X to SAP NetWeaver 2004s BI (PDF 2.6 MB)
    Front End Migration strategy
    Here's the migration strategy: Rolling out the New SAP NetWeaver 2004s BI Frontend Tools
    Presentation
    http://csc-studentweb.lrc.edu/swp/Berg/Articles/PM_2006_upgrade_NW2004s_Bjarne_Berg_v12.ppt
    Here are the frontend requirements:
    Troubleshoot the SAP NetWeaver 2004s BI Frontend Installation
    Here are the backend requirements in the product availabilty matrix:
    https://websmp110.sap-ag.de/~form/handler?_APP=00200682500000001303&_EVENT=DISP_NEW&00200682500000002804=01200615320900001250
    Migration of Web Teplates
    832713 - Migration of Web templates from BW 3.x to Netweaver
    Assign points if this helps.
    Regards,
    Anil

  • Unit test plan for inbound and outbound interfaces

    I am trying to create a UNIT TEST PLAN for an interface. In this interface a flat file in IDOC format is picked up from the application server and processed using EDI_DATA_INCOMING for the relevant posting ( example : Sales order creation from a PO IDOC). IF the file is not in IDOC format then it is reformatted to the IDOC format manually.
    In second scenario(outbound), after sales order creation or billing document creation, IDOC is created which is read and a custom flat file is created and sent to a middleware.
    PLease suggest a unit test plan for these kind of scenarios or send a sample UTP if possible.
    REgards
    Nishant
    PS: points will be awarded to helpful answers.

    Unfortunately this isn't possible, the esa has only one routing table. You'll have to add specific routes for your internal networks.
    I usually avoid two-armed setups because of this and it gets even worse if you want to use virtual gateways (traffic gets sent via the internal interface with an IP from the external interface)

  • Abt unit  test plan

    hi
    can u plz explain abt unit test planning?
    es

    hi bramara,
    Unit testing is used to test the proper working of a single module.
    Integration testing is used to test the integration between the modules,
    when the complete business scenario of a client is tested (say from sales order creation to receipt of money from customer).
    Unit Testing
    When you test every single document is called unit testing.
    String Testing
    One transaction full activity is called string testing. For example Vendor
    invoice, goods received and vendor payment.
    Integration Testing
    It is purely with other modules and we have to check whether the FI testing
    is working with other related modules or not.
    Testing of combined parts of an application to determine if they function
    together correctly.There are three types of integration testing.1. Big bang
    testing: Testing with all modules combined together invariable of its
    levels. Often done for small projects.2. Bottom up test:Testing by
    integrating lower level modules and ascending towards the higher-level
    modules.3. Top down: Testing the higher-level modules and descending towards
    the lower level modules.This can be accomplished with dummy modules to
    replace the under construction modules with so-called stubs and drivers.
    not.
    Regression Testing
    Testing for whole database. Bring all the data into another server and do
    the testing is called regression.
    Thanks,
    <REMOVED BY MODERATOR>
    kushagra
    Edited by: Alvaro Tejada Galindo on Jan 31, 2008 9:45 AM

  • How to calculate the unit for RATE?

    Hey All,
    I am not sure if there is something standard for this or not.
    I am calculating the 'Rate' by using 'Value/Amount' and 'Quantity' as follows -
    Rate == Value /  Quantity
    I need to calculate the unit for the rate as below -
    Rate unit == Value unit (Currency) /  Quantity unit (Base_uom) 
    (for example -
    if value is 1000 USD and quantity is 10 TO then Rate should come out as 100 USD / TO)
    Could anyone please suggest how to calculate the unit in this case?
    Many Thanks!
    Tanu

    Hi,
    Go through the below link it may give some idea
    http://help.sap.com/saphelp_nw04/Helpdata/EN/19/1d7abc80ca4817a72009998cdeebe0/content.htm
    Regards,
    Marasa.

  • Create Unit Test Vectors From The Unit Test Configuration Window

    I have recently been using more test vectors in the unit test framework.
    The principle works well but if you are in a unit test and decide you need a test vector you must:
    Close the unit test configuration
    Create a test vector
    Set up your vector (entering values and data types, which is much easier if you could see the actual unit test case)
    Close the vector configuration window
    Open the unit test configuration
    Assign the new vector file to the unit test
    Now you can assign vectors to test inputs
    This seems convoluted and forces unnecessary context switchs.
    I propose that at a minimum, you should be able to create a new vector file and launch it's configuration without leaving the unit test configuration window. I suspect that the whole process could be streamlined even further though.
    James Mc
    ========
    CLA and cRIO Fanatic
    wiresmithtech.com/blog

    Oops supposed to be ideas exchange, sorry!
    James Mc
    ========
    CLA and cRIO Fanatic
    wiresmithtech.com/blog

  • [svn:osmf:] 14971: Fix a problem discovered by the unit test.

    Revision: 14971
    Revision: 14971
    Author:   [email protected]
    Date:     2010-03-23 16:34:10 -0700 (Tue, 23 Mar 2010)
    Log Message:
    Fix a problem discovered by the unit test.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/BoxParser.as

    (Removed)

Maybe you are looking for