Using the Unit Test Facility

It will be very helpful if there is a tutorial about using unit test effectively in solving problems.
Thank you very much.

Hi,
Thank you for your valuable feedback. An RFE has been filed on your behalf for a tutorial on using JUnit test.
Cheers
Giri

Similar Messages

  • 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.

  • 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:] 11282: updated the unit tests for the DRM subsystem.

    Revision: 11282
    Author:   [email protected]
    Date:     2009-10-29 16:44:46 -0700 (Thu, 29 Oct 2009)
    Log Message:
    updated the unit tests for the DRM subsystem.  Still lacking tests for Authentication Token.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/.actionScriptProperties
        osmf/trunk/framework/MediaFramework/org/osmf/drm/DRMServices.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/NetStreamContentProtectableTrait.as
        osmf/trunk/framework/MediaFramework/org/osmf/video/VideoElement.as
        osmf/trunk/framework/MediaFrameworkAirTest/.actionScriptProperties
        osmf/trunk/framework/MediaFrameworkFlexTest/.actionScriptProperties
        osmf/trunk/framework/MediaFrameworkFlexTest/.flexProperties
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/traits/TestIContentProtectable.as
        osmf/trunk/framework/MediaFrameworkIntegrationTest/.actionScriptProperties
        osmf/trunk/framework/MediaFrameworkIntegrationTest/org/osmf/MediaFrameworkIntegrationTest s.as
        osmf/trunk/framework/MediaFrameworkIntegrationTest/org/osmf/net/TestNetContentProtectable .as
    Added Paths:
        osmf/trunk/framework/MediaFrameworkIntegrationTest/org/osmf/video/
        osmf/trunk/framework/MediaFrameworkIntegrationTest/org/osmf/video/TestVideoElement.as
    Property Changed:
        osmf/trunk/framework/MediaFrameworkFlexTest/
        osmf/trunk/framework/MediaFrameworkIntegrationTest/

    Hello Alex,
    I don't have an answer for you.
    But, can you try to use http://drmtest2.adobe.com:8080/Content/anonymous.f4v with locally hosted OSMF player? This content doens't require user/pass info.
    I'm wondering that Google TV's flash player doesn't support prompt dialog.
    http://drmtest2.adobe.com/AccessPlayer/player.html requires flash player 11. That's why it won't be loaded with flash player 10.x.
    Thanks,
    -- Hiroshi

  • How do I buy a song from the UK store if I use the United States store?

    I use the United States store and I noticed that one of my favorite bands, Busted, has some songs I want but they are in the UK store. I tried to buy them but it said I couldn't. Is there anyway to get these songs?

    *i can go into any country and purchace anything with an american credit card*
    And you will pay and VAT/duty/customs that were levied on that item when it was brought into that country.
    And you may have to pay VAT/duty/customs when you leave that country with that item.
    Besides, certain items available in one country on one label, may be on a different label in another country.

  • [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)

  • Using the Import Test Data Wizard

    Using Oracle HTMLDB 1.6.0.00.87
    Whenever we try to use the import test data wizard, even using a simple text file such as: "Forname","Surname"
    Joe,Bloggs
    the file does not import correctly. We are trying to import to a new table and uploading a txt file with the above content. What we get in the set table properties is something like: Column Names : rom_wwv_flow_file_objects
    Data Type:VARCHAR2
    Format:
    Column Length: 30
    Upload: Yes
    Row 1: Where n
    Any ideas? We tried the same test at the UK Oracle user group conference with success. Is there a set up problem on our server?
    Cheers
    Ty

    Problem solved.
    Ensure the correct character is set when importing.

  • Using the 'backup playlist' facility in iTunes

    Prior to discovering the above facility, I used to copy each mp3 file into a folder on my desktop and then burning a CD. Using the above is much easier but it also backs up the podcasts that happen to be in iTunes at the time. Is there any way to exclude podcasts when executing the backup?
    Also, can I use the 'backup' to load my laptop?

    Using the 'backup playlist' facility in iTunes
    Note that it's Backup - iTunes library (music, videos, podcast and audiobooks) and playlists (the lists of songs).
    If you backup/save a playlist, there is no music saved.
    Is there any way to exclude podcasts when executing the backup?
    No.
    can I use the 'backup' to load my laptop?
    Yes.

  • Document Settings - Calculate the row total using the unit price

    Hi All,
    I'm using SAP2007A PL37, the option "Calculate the row total using the unit price" in Document Settings is no longer available.  Is there any updates on this issue?
    Thank you,

    Hi Marlon,
    In 2007A, by default, new database would be created without this
    checkbox activated.
    However, there is a way to bring this checkbox back to the configuration
    screen, even if it is a DB newly created in 2007A. In order to do so it
    is necessary to do as follows:
    1) Open B1 2007A
    2) Go to Help -> Support Desk -> Activation Request
    3) Copy the ASCII string that appears in the top textbox ("Customer
    Request Code").
    4) Open a Support ticket stating that you want the "Calculate Row Total
    by Unit Price" checkbox activated for the specified system (Copy the
    string in the step 2) into a text file and attach it to the message).
    5) VERY IMPORTANT: State in the message also the Business Impact leading to this request. In your case you should just say that your AddOn needs this option changed in order to work correctly.
    6) You will receive a reply from B1 Support with a number to be entered
    in the "SAP Support Code" textbox in Help -> Support Desk -> Activation
    Request
    7) Click on OK and the checkbox will be displayed thereafter.
    Hope this can be helpful.
    Best Regards
    Helen Sun

  • 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.

  • Error Using the WSRP Test Server from the Administration Portal

    I study the “Working with the BEA WSRP Test Server” article on dev2dev site(http://dev2dev.bea.com/pub/a/2004/09/wsrp_test_server_at.html), but when I try to add http://wsrp.bea.com/portal/producer?wsdl to Procedures on my localhost Administration Portal(BEA 81 SP3), it give me “Error: Unable to get the Service Description for the provided WSDL URL”. Any idea?

    I guess till version 10gr3.1 you only needed to start one server and it allowed to access both admin and service bus console.Yes, in 11g as well you may access the admin and OSB console by just starting the admin server but in 11g OSB configuration gets deployed on OSB server (managed server) and test service also runs over this server.
    Are you saying there is some other server I need to start just for running the test console ????Yes. Managed server osb_server1 needs to be started for deploying, testing and accessing OSB resources.
    As If the OSB server was not running how can I check my published services, modify them and do all the bits and pieces after opening the open the service bus console but not just test them???You can modify and save your configuration without staring OSB server but if you will check in change centre then all the changes being done without starting OSB server will remain in partially activated state.
    I have been using the service bus for 3 years and I have never faced any such issue.With each new release you may get new features and with a major release like 11g, architecture and functionality may change.
    If it all there is some other server I need to start then whats the process to do so ??Open command prompt. Navigate to $Domain_Home/bin and run command
    startManagedWeblogic.cmd <nameOfManagedServer>
    for eg. -
    D:\OFMW11g\mw\user_projects\domains\ofmw_domain\bin>startManagedWebLogic.cmd osb_server1
    Once this server is up and running, try using test console.
    Regards,
    Anuj

  • Re Photo Books – Elements 12 brilliant and serves all my need except Photo Books. Do I need to Buy the full version of Lightroom 5 to use the Photo Book facility?

    Re Photo Books. Hi I have an old full version of Photoshop 6 and Elements 12. Elements 12 serves pretty well all my editing needs. It has a Photo Book facility but the Template is not brilliant eg It is clumsy adding captions. I have been looking at Lightroom 5 which seems to have a great Photo Book facility but do I have to Buy the full Light Room 5 programme to use it? If so, what is the cost?

    Hi DJ,
    Many thanks for your comments on the Adobe Forum about Photoshop for
    Photo Books..
    Following your suggestion, I have had a look at Blurb and it seems
    pretty good and  quite easy to use. Many thanks for this suggestion. I
    have had a look around and I find there are many "publishers" and
    although Blurb comes out well in many reviews, there are many others
    also. But there is one big problem for me - they ALL produce BOUND Photo
    Books but I want a flexible Photo Book where I can later add or change
    pages! Nobody I have found produces a book where pages can be printed
    separately to be added when and where required in a book!
    I have posted another question in the Forum asking if anyone knows of
    such a publisher - especially in the UK, where I live.
    The reason I want the ability to insert pages etc is for a number of
    reasons. For example, I am producing an historical Photo Book but if
    friends send me photos of a past era, I want to scan the photos, put
    them on a separate page and then insert that page in the appropriate era
    in my book or I may later want to enlarge an old photograph already in
    the book and insert the enlargement next to the original etc. etc.
    I have printed some pages myself using Photoshop Elements, which was not
    the ideal tool as I mentioned before, but when the A4 pages were placed
    in clear plastic A4 pockets and inserted in my smart presentation Ring
    Binder, the result looked brilliant. But I have hundreds of photographs
    and I dread to think what the cost of ink would be if I printed them all
    myself, let alone the time!
    But I am beginning to think I may after all have to print them myself
    and that, as I have several hundred or more, the cost of buying
    Lightroom 5 may be worth it in the long run.
    Anyway, thanks for coming back to me with your views regarding my
    original enquiry.
    With very best wishes,
    Tony

  • Can I use the unit as a bridge and as an iTunes server simultaneously?

    I need to know if I can use this as a bridge sometimes and as an iTunes server other times. I will never need to do both at the same time, however I will have all the cables physically hooked up at all times for both configurations. So basically it will be acting as a full time bridge but occasionally I want to use it as an iTunes server. So there will always be an Ethernet cable coming out of it plugged into a computer but there will also be an audio cable coming out of it connected to a stereo for periodic iTunes streaming. Is this feasible? Also please tell me if this is feasible on the first generation 802.11g model since I plan on using that model and not the newer 802.11n model. Thanks so much!!!

    Yes that is possible. The music streaming feature of the AirPort Express (AX) is always available.

  • Using the dial up facility

    A relative in Australia has no access to broadband, and so has to rely on dial-up. I would like them to at least be able to go wireless in the house and the Extreme base station is the only one I can find which has a V90 modem output.
    I can understand how her iBook would dial out via the modem, however when she is finished with the connection, does she have to do something to get the Extreme to disconnect the modem ?
    Basically, I'd like to be convinced that when she is finished with the telephone connection, the base station doesn't keep the modem connection running even though the iBook has stopped using it.
    Thanks

    I can understand how her iBook would dial out via the
    modem, however when she is finished with the
    connection, does she have to do something to get the
    Extreme to disconnect the modem ?
    Basically it is very simple.
    From the Airport icon in the menu bar, you click connect.
    When you have finished you click disconnect.
    It really is that simple.

  • Using the text message facility on PC Suite.

    I have loaded the PC suite onto my pc and have managed to sync dates , contacts, photos etc.
    Evertime I try to send a text message I get the following
    On right clicking on message a pop up window informs me that phone connection is lost.
    the text message box then appears and clearly states at the top that a connection to the N93 is ok but as you type a message and send I get "the phone connected to the PC is no longer connected please reconnect"
    what anm i doing wrong pls

    please try Noki in this thread to extract contacts from .nfb file. Then you can copy them to the new phone/export contacts as Outlook/ThunderBird .csv.
    What's the law of the jungle?

Maybe you are looking for

  • Conditional format in cross tab

    Post Author: RobotSlave CA Forum: Charts and Graphs Hello All Crystal 2008 12.0.0.549 I have a crosstab report in that repeats in each GF1 that displays values for several variables over an eleven month span, for instance a shortened data set might l

  • Disable Reconciliation event similar to deleteDetectedAccounts

    Hi, I would like to know whether there is any method or functionality we can use to create a reconciliation event of type "Disable". Currently we are using "deleteDetectedAccount" method in tcReconciliationOperationsIntf and it is deleting the accoun

  • Portal - cutom message to end users (like sm02)

    Hello All, Is it possible in Enterprise portal to display a custom message (like sm02 in ABAP ) when end users login. Thanks Tom

  • Is RAID the solution to safeguard my external drive data?

    I have a 1TB WD My Book attached to my iMac, which has about 10 years worth of 'stuff' on it. My son's baby pictures are probably the most precious in all of that. I have another external 320GB hard drive connected that I use for Time Machine. Recent

  • Nokia 2710 plugged in Mac. How to make settings,p...

     I plug Nokia 2710 in USB in Mac computer OSX 10.6.4, and I see 3 options: 1. PC suite 2.Print &media 3. Data storage My questions are  about option 1. PC suite. When I select it, I can see in Network Preferences 2 icons for Nokia phone: Nokia 2710c