Fra...@ti... wrote:
> Hi!
>
> I work as tester and we have a test environment (Linux) that is mainly
> written in Tcl.
> So far have only C-APIs been used in the applications and the tool
> SWIG has been used a bridge from Tcl to C (SWIG builds a .so file that
> is the loaded into the Tcl scripts to access different C-functions).
>
> In an upcoming project will JAVA support be added into the system,
> that means also that during tests of some test objects will the C-API
> be replaced of a JAVA-API (although the functionality below it will be
> the same).
>
> The idea is to replace SWIG with Tcl Blend to achive this and by doing
> this it is also possible to only perform minor changes in the existing
> test framework (the test environment build and function calls will be
> changed based on API used), but the existing tests of the
> functionality (written in Tcl) can be left unchanged.
>
> Is Tcl Blend a possible solution for this?
>
Yes, Tcl Blend is useful as a way to invoke Java implementations of
methods dynamically, finding them by name at runtime.
Unlike SWIG with C, you won't need to generate code to invoke the Java
code, Tcl Blend and the native Java invocation APIs
take care of all of those details for you.
Mo
|