• CORBATester: a command-line tool for developers and testers

    From lana909015@gmail.com@21:1/5 to Madhan Mohan Neethiraj on Tue Jan 9 23:46:22 2018
    On Friday, February 9, 2001 at 11:41:19 PM UTC+3, Madhan Mohan Neethiraj wrote:
    You are a CORBA developer and need
    to implement few interfaces. After you have done the first cut server implementation, you would like to do a quick test by invoking operations with many sets of parameter values. How do you do
    that? Start developing clients to  make calls on your server objects ? This does not sound quick!.

     

    What if your testing team wants to
    share your unit test cases, as a part of accepting your build for testing? Well, here is some help.

     

    With CORBATester, making
    operation/attribute calls with different parameter values can be done through a
    simple text script as shown below.

     

    // IDL
    file

    module Bank
    {

        interface AccountIntf {

            // ...

            double deposit(in double
    amont);



            double withdraw(in double
    amont);        // ...

        };

    };

     

    # script to
    call deposit() operation

    operation
    Bank::AccountIntf::deposit

    {

        object

        {

            objRef "" # stringified
    object reference

            nsName
    "myBank.myAccount" # alternate to IOR: name in
    NamingService

        }

        params

        {

            amount 100

        }

    };

     

    CORBATeser invokes the operation
    and prints the result as follows:

     

    Calling
    Bank::AccountIntf::deposit()...

    operation
    Bank::AccountIntf::deposit

    {





        object   
    {

            objRef ""

            nsName
    "myBank.myAccount"

        }

        params

        {

            amount 100

        }

        result 5300.63

    };

    Completed Bank::AccountIntf::deposit() in 12
    milli seconds



    The tools
    supports user defined data types like: struct, sequence,
    array, any and enum also. Please visit http://www.geocities.com/corbatester to download
    beta version of this tool. A simple document on using this tool is also provided
    in this site.

    Cheers

    hi...
    i get operation not found :
    tester-beta> operation MyString::StringOp::revstr
    {
    object
    {
    objRef ""
    nsName "str"
    }

    params
    {
    strMyString "hi"
    }
    };
    MyString::StringOp::revstr: operation not found
    tester-beta>
    and the idl file is
    //IDL file
    module MyString
    {
    interface StringOp
    {
    string revstr(in string strMyString);
    oneway void shutdown();
    };
    };
    can any one help me
    thanks

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)