|Re: How to use WIN32 librarys in cygwin+eclipse titan? [message #1753562 is a reply to message #1753498]
||Tue, 07 February 2017 17:36
|| Elemer Lelik
Registered: January 2015
-first of all, please be aware that due to the incompatibility of EPL and GPL licenses, one may not link EPL and GPL code together
and distribute the result. ( see https://mmilinkov.wordpress.com/2010/04/06/epl-gpl-commentary/). This means that we cannot build and distribute Titan for Cygwin which is GPL-licensed. However from pure technical standpoint Titan can be compiled on Cygwin ( for own use, without re-distributing it) as detailed in the README.cygwin file (https://github.com/eclipse/titan.core).
-projects you will build with this Titan will require a Makefile. This Makefile can be generated with the makefilegen command line utility or from within the Designer plug-in.
Such a Makefile will contain a section for platform specific libraries:
# Do not modify these unless you know what you are doing...
# Platform specific additional libraries:
SOLARIS_LIBS = -lsocket -lnsl -lxml2
SOLARIS8_LIBS = -lsocket -lnsl -lxml2
LINUX_LIBS = -lxml2 -lssl
FREEBSD_LIBS = -lxml2
WIN32_LIBS = -lxml2
One will need to indicate here the libraries one wishes to use ;
for instance if your project will contain a test port that will use TLS/DTLS , which requires OpenSSL , you will have to indicate this by adding -lssl to WIN32_LIBS
WIN32_LIBS = -lxml2 -lssl
(-lxml2 is added automatically when generating the Makefile)
Once Titan installed in Cygwin, the Eclipse plug-ins can be installed and configured to use it. Recommendation is that you install Eclipse under Windows (not within the Cygwin environment).
Similarly, Titan can also be built for MinGW(see README.mingw) , but it's use is limited: it can compile TTCN-3 code, thus going through syntactic and semantic checks, but it cannot execute it.
These being said, let me add that Titan is most at home and performs best on Linux/Unix-like platforms. Cygwin, and obviously MinGW, are compromises which should be avoided if possible,
I hope this clarifies the issue.
|Re: How to use WIN32 librarys in cygwin+eclipse titan? [message #1753659 is a reply to message #1753651]
||Wed, 08 February 2017 14:58
|| Elemer Lelik
Registered: January 2015
by now of course you know that Titan has it's own IDE/GUI in form of Eclipse plug-ins; Designer, Executor, LogViewer and Titanium.
The Executor plug-in permits execution of test suites from the Eclipse environment.
As stated in the Eclipse Executor Userguide,
The TITAN Executor plug-in is built on the TITAN Executor and provides support for the following launch and execution modes:
• Single mode:
This mode executes the built executable, and parses its output for information that can be displayed.
There is no limitation on the amount of simultaneously running executions of this kind.
• Parallel mode:
This mode executes the mctr_cli program, and continuously parses its output for information that can be displayed.
Although some functions can be reached from the graphical user interface, the main advantage of this launch mode is
that it can be driven from its console window, just as mctr_cli could be driven from the command line.
The user interface reacts to console outputs by the mctr_cli. However, as the user is able to change every aspect
of the test execution system from outside the execution monitor view, an always consistent controlling environment
cannot be provided. There is no limitation on the amount of simultaneously running executions of this kind.
• JNI mode:
This mode executes the main controller through the JNI interface, and continuously parses its output for information that
can be displayed. The functions can be reached from the graphical user interface. The user interface reacts to the state
changes of the main controller through a pipe. There is no limitation on the amount of simultaneously running
executions of this kind.
NOTE: Execution in JNI mode is not supported on Windows
This means that for your own dedicated GUI you have also two options : use the CLI or the JNI interface.
The JNI execution interface API is exposed in the Titan Executor API, see
which permits an external Java application to control and execute a Titan test suite.
Also , you can check the Titan Executor plug-in code in
I hope this helps
Powered by FUDForum
. Page generated in 0.02564 seconds