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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 295 |
Nodes: | 16 (2 / 14) |
Uptime: | 19:46:45 |
Calls: | 6,640 |
Files: | 12,188 |
Messages: | 5,325,233 |