Java Serial Stream Adapter for Rational Robot

Download Report

Transcript Java Serial Stream Adapter for Rational Robot

Zyntax Tuxedo Adapter
for IBM/Rational Robot & Test Manager©
Zyntax Consulting BV
2005/03/03
Zyntax Tuxedo Adaptor
1/16
Introduction
• Tuxedo is middleware for C/S applications
• Robot supports Tuxedo until v6.4
• Zyntax Tuxedo Adaptor (ZTA) provides support
from v6.x
• ZTA works at a higher level than Robot, so for
Tuxedo 6.x is already an advantage
• ZTA is product of Zyntax, licensed separately
2005/03/03
Zyntax Tuxedo Adaptor
2/16
Overview
Tuxedo
Tuxedo in Robot
RTL API Adapters
ZTA
Future plans
Conclusion
Questions
2005/03/03
Zyntax Tuxedo Adaptor
3/16
Tuxedo (1)
• Tuxedo is middleware
–
–
–
–
streamlines C/S traffic
data conversions
load balancing
transactions (rollback)
2005/03/03
Zyntax Tuxedo Adaptor
4/16
Tuxedo (2)
Client
Client
Client
Tux Lib
Tux Lib
Tux Lib
BBS
2005/03/03
Zyntax Tuxedo Adaptor
Tux
Server
Lib
Tux
Server
Lib
Tux
Server
Lib
Tux
Server
Lib
5/16
Tuxedo in Robot (3)
• Rational recording:
sock_send
"`6dd44888c1fba2ee9080aa864f9ea6c0`&|d`8bb2fa1cc8`xZ`1
"#h`9dd84bc390065fa320047b9d3af9cee34ad5570b`AK9^K`a09
"b5`~^`5c`5A`b8121bbecbd6`7M`ed`.%\b@:G`e005d20f29cc42
"1a`A^L`dcfac5`?Q`8c`gP\r`adfb260e69c7603512801ed360fe
"$`1c`M^`f91d9b0021e7f2135e1775dbc017c691640612a188700
"b55a9db2a6c4278c`IXC`d26a9a258588b220aa8b968a7ebccf81
• No recognizable data
(encrypted / compressed?)
2005/03/03
Zyntax Tuxedo Adaptor
6/16
Tuxedo in Robot (2)
• ZTA captures at the API level
(instead of socket level)
tpalloc(_idata, "VIEW32", "view1", 28);
data(_idata, _short, "svalue",
"5");
data(_idata, _long,
"lvalue",
"10");
data(_idata, _string, "data",
pad1("Test
tpcall(”TIMER1", ”SVC1", _idata, 28, _odata,
tpfree(_idata);
2005/03/03
Zyntax Tuxedo Adaptor
7/16
RTL API Adapters (1)
• Targets 1 application library (libwsc.dll)
• Consists of 4 libraries:
–
–
–
–
Recorder (writes calls to WatCH file)
Filter (selects elements from WCH)
Generator (generates script from elements)
Replay (execute script commands)
2005/03/03
Zyntax Tuxedo Adaptor
8/16
RTL API Adapters (2)
• Recorder
App
Client
Calls
App
Lib
Intercept
Writes
Calls
2005/03/03
Writes
(ZTA)
Recorder
Zyntax Tuxedo Adaptor
WatCH
9/16
ZTA (1)
• Data description for VIEWs (.DEF)
VIEW
view1
# TYPE
CNAME
short
svalue
long
lvalue
string
data
END
FBNAME
-
COUNT
1
1
1
FLAG
-
SIZE
2
4
20
NULL VALUE
0
0
""
– Compiled into .V or .VV
– Used by ZTA to translate data
• Similar for FML (.FLD)
2005/03/03
Zyntax Tuxedo Adaptor
10/16
ZTA (2)
• Environment
– Tuxedo
•
•
•
•
•
VIEWFILES32,VIEWDIR32 (.DEF files)
FLDTBLDIR32,FIELDTBLS32 (.FLD files)
TUXDIR (libs & binaries)
WSNADDR (BBS)
WSENVFILE (file to hold others)
– Zyntax
• ZYNTAX_HOME (license & options)
2005/03/03
Zyntax Tuxedo Adaptor
11/16
ZTA (3)
• Script Development
– SHOW_ODATA
– Record-time return codes in script
– get_data_hex / data_hex
• Script “beautifiers”:
– Grouping per call
– Support for annotations (split script, …)
– Quote environment (not cross-platform)
2005/03/03
Zyntax Tuxedo Adaptor
12/16
ZTA (4)
• Cross-platform
– LINUX,HPUX,SunOS,Windows NT/2000
• License support
– GPG signed clear text license
• Options through GUI (per DLL)
2005/03/03
Zyntax Tuxedo Adaptor
13/16
Future Plans
• Documentation
• Script cleanup (loops, subs) (v3.0)
• Simultaneous recording of Tux & HTTP
2005/03/03
Zyntax Tuxedo Adaptor
14/16
Conclusion
• ZTA adaptor
– Affordable, Quick to implement
and
– Switches focus to how application behaves under
multi-user load, if it meets requirements, etc.
• Technically
– Makes testing possible
– Allows understanding what application is doing
– Provides ability to generate realistic scripts
2005/03/03
Zyntax Tuxedo Adaptor
15/16
Questions
• Questions?
Visit
http://www.zyntax.com
Email [email protected]
Call
+31-20-6155033
Post a nice letter…
PO Box 51336
1007EH Amsterdam
The Netherlands
2005/03/03
Zyntax Tuxedo Adaptor
16/16