Problem with JUnitLogger: unexpected AST node [message #1713713] |
Fri, 06 November 2015 07:32 |
Johannes Bro Messages: 56 Registered: June 2015 |
Member |
|
|
Hey,
i want to use jenkins for automatic execution and therefor i need to use the Junit Logger to get test results in the right format. I modified my runtime configuration file like this:
[MODULE_PARAMETERS]
# This section shall contain the values of all parameters that are defined in your TTCN-3 modules.
[LOGGING]
# In this section you can specify the name of the log file and the classes of events
# you want to log into the file or display on console (standard error).
LogSourceInfo := Yes
SourceInfoFormat := Single
LoggerPlugins := { JUnitLogger := "libjunitlogger2" }
*.JUnitLogger.filename_stem := "MyJunitLogFile"
*.JUnitLogger.testsuite_name := "myJUnitTest"
...
If i run my testsuite with Single Mode Launcher, this error will occur :
unexpected AST node: JUnitLogger[L/AST][startOffset: 355, endOffset: 366, line: 10]
Any ideas what can be the problem ?
[Updated on: Fri, 06 November 2015 07:34] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Problem with JUnitLogger: unexpected AST node [message #1713745 is a reply to message #1713728] |
Fri, 06 November 2015 11:46 |
Johannes Bro Messages: 56 Registered: June 2015 |
Member |
|
|
Im delight me to early, it didn't execute any testcase because it can not find the modules. Also if i want to execute with ( standard logger) inside Titan Ecplipse Executor, there are no testcases...
I saw in the bin directory the modules will be created now as a shared library, is it necessary to add this path to $LD_LIBRARY path ?
If i call the executable wit parameter -l to see which testcases are included, it will show nothing...
[Updated on: Fri, 06 November 2015 11:52] Report message to a moderator
|
|
|
Re: Problem with JUnitLogger: unexpected AST node [message #1713757 is a reply to message #1713745] |
Fri, 06 November 2015 13:00 |
|
Hi Johannes,
1. Dynamic linking is not possible under windows/cygwin. Are you on Linux or other UNIX OS?
2. The generated modules can be used without setting the LD_LIBRARY_PATH if the program can run.
Let's go step by step. Can you start the HelloWorld (or similar) without JUnit Logger (from cmd line) ? Do you follow the userguide.pdf or the referenceguide.pdf ?
|
|
|
|
|
|
Re: Problem with JUnitLogger: unexpected AST node [message #1714008 is a reply to message #1713955] |
Mon, 09 November 2015 11:41 |
|
Hi, the Makefiles generated are in single mode. It can be seen from the Makefile:
# Execution mode: (either ttcn3 or ttcn3-parallel)
TTCN3_LIB = ttcn3-dynamic
you should change this for
# Execution mode: (either ttcn3 or ttcn3-parallel)
TTCN3_LIB = ttcn3-parallel-dynamic
This can be done with makefilegen or with manulally editing the Makefile or
from Eclipse by changing the Project properties>TITAN Project Property>Makefile creation attributes>>generate Makefile for single mode(off).
Don't forget to "make clean" before the new make.
There are other problems. To be continued...
|
|
|
|
Re: Problem with JUnitLogger: unexpected AST node [message #1714028 is a reply to message #1714008] |
Mon, 09 November 2015 13:20 |
Johannes Bro Messages: 56 Registered: June 2015 |
Member |
|
|
Jeno Balasko wrote on Mon, 09 November 2015 11:41Hi, the Makefiles generated are in single mode. It can be seen from the Makefile:
# Execution mode: (either ttcn3 or ttcn3-parallel)
TTCN3_LIB = ttcn3-dynamic
you should change this for
# Execution mode: (either ttcn3 or ttcn3-parallel)
TTCN3_LIB = ttcn3-parallel-dynamic
This can be done with makefilegen or with manulally editing the Makefile or
from Eclipse by changing the Project properties>TITAN Project Property>Makefile creation attributes>>generate Makefile for single mode(off).
Don't forget to "make clean" before the new make.
There are other problems. To be continued...
Sry i forgot to change in the example which i uploaded...
[Updated on: Mon, 09 November 2015 13:25] Report message to a moderator
|
|
|
|
Re: Problem with JUnitLogger: unexpected AST node [message #1714051 is a reply to message #1714009] |
Mon, 09 November 2015 15:00 |
|
Hi Johanness,
you are right, there is a Titan Eclipse plugin bug: the Makefile generation shall be modified.
Change the Makefile this way:
$(EXECUTABLE): $(SHARED_OBJECTS)
$(CXX) $(LDFLAGS) -o $@ -Wl,--no-as-needed $^ \
instead of
$(EXECUTABLE): $(SHARED_OBJECTS)
$(CXX) $(LDFLAGS) -o $@ $^ \
We fix it immediately so the end of this week it will be available officially.
Waiting your feedback.
/Jeno
|
|
|
|
|
|
Re: Problem with JUnitLogger: unexpected AST node [message #1736167 is a reply to message #1735967] |
Mon, 27 June 2016 08:32 |
|
HI Loraine,
that is correct;
Titan will work best if used on Linux or Unix.
I would also recommend you to look into Win 10; the anniversary update due this month will bring the possibility to run a Linux subsystem within Windows;
it's not confirmed yet , but we hope to make Titan working on that.
Best regards
Elemer
|
|
|
Powered by
FUDForum. Page generated in 0.05543 seconds