Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Jubula not saving my testreports
Jubula not saving my testreports [message #1410019] Tue, 19 August 2014 15:24 Go to next message
Fernando Gomes is currently offline Fernando GomesFriend
Messages: 11
Registered: July 2014
Junior Member
So I have this testSuite to test one installer, and when the testSuite ends I can see Tue Aug 19 10:06:39 CDT 2014 End of Test Suite
Tue Aug 19 10:06:39 CDT 2014 Writing Report to Database
Tue Aug 19 10:06:40 CDT 2014 AUT: Disconnected.
Tue Aug 19 10:06:40 CDT 2014 AUT Agent: connection closed.

However, it does not writes the .htm and .xml report files, and in the database the
"details" collumm is set to false.

How can I keep jubula from "deleting"/"not saving" the details of a run?

I'm running the testSuite using testexec
with the following commands:

./testexec -project ___Installer -version 1.0 -testsuite PerformFreshTypicalInstallation_L -server localhost -port 60000 -autconfig ___Installer@localhost -datadir /home/fbgomes/workspace2 -resultdir /home/fbgomes/workspace2/result -data /home/fbgomes/workspace2 -language en_US -dbuser sa -dbpw "" -dburl "jdbc:h2:../jubuladb/database;MVCC=TRUE;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE"

Edit: I'm still trying to find out why this happens, but looks like it only happens with one my projects( it works normally with the others)

Thanks in Advance

[Updated on: Tue, 19 August 2014 16:01]

Report message to a moderator

Re: Jubula not saving my testreports [message #1410021 is a reply to message #1410019] Tue, 19 August 2014 15:27 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1605
Registered: July 2009
Senior Member
Can you find anything in the log when this error occurs? Which version of Jubula are you using?
Re: Jubula not saving my testreports [message #1410033 is a reply to message #1410021] Tue, 19 August 2014 16:05 Go to previous messageGo to next message
Fernando Gomes is currently offline Fernando GomesFriend
Messages: 11
Registered: July 2014
Junior Member
Log, which log? i'm using Jubula 8.0 if I'm not mistaken.

Edit: During the run, there's no error message...

[Updated on: Tue, 19 August 2014 16:14]

Report message to a moderator

Re: Jubula not saving my testreports [message #1410232 is a reply to message #1410033] Wed, 20 August 2014 06:57 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1605
Registered: July 2009
Senior Member
The location of the logs is described here.
Re: Jubula not saving my testreports [message #1410354 is a reply to message #1410232] Wed, 20 August 2014 14:16 Go to previous messageGo to next message
Fernando Gomes is currently offline Fernando GomesFriend
Messages: 11
Registered: July 2014
Junior Member
Thanks! I found the error.

I was checking a textbox that had more text than 4000 characteres, and the VARCHAR in the database could only receive a maximum of 4000 characteres, that was making the runner "crash" at writing the report.
Re: Jubula not saving my testreports [message #1410356 is a reply to message #1410354] Wed, 20 August 2014 14:20 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1605
Registered: July 2009
Senior Member
Super, glad you could find a solution! Smile
Re: Jubula not saving my testreports [message #1750005 is a reply to message #1410356] Thu, 15 December 2016 04:20 Go to previous messageGo to next message
dinh do is currently offline dinh doFriend
Messages: 4
Registered: November 2016
Junior Member
Hi Fernando et Alexandra,

i'm getting the same issue when using CheckStringValues to check my text (>4000 characters), the "details" is set to false in Test result summary view and then export option not available.
so, is there any solution to keep my check (>4000 char) by expanding limit of VARCHAR ? OR I must eliminate the check from my test?

thanks,
Dinh
Re: Jubula not saving my testreports [message #1750016 is a reply to message #1750005] Thu, 15 December 2016 08:03 Go to previous messageGo to next message
Kevin Barbe is currently offline Kevin BarbeFriend
Messages: 64
Registered: July 2016
Member
Hi Dinh,

this is indeed a restriction by the database. E.g. Oracle databases only allow up to 4000 Bytes of data stored inside a VARCHAR. It does therefore depend on the database you are using whether you can increase this limit. However, even if it is possible to increase the VARCHAR limit inside your database, this could have some other crazy sideeffects.

If you do not actually need to check the text 1:1 you could select a part of the text that is about as long as possible (4000 Bytes) and check it by putting ".*" in front of and at the end of the expected value. Or you could have several Check Text actions, where the first checks the first 4000 Bytes of text, the next one the next 4000 Bytes of text, etc., also by using ".*".

Best regards,
Kevin
Re: Jubula not saving my testreports [message #1750031 is a reply to message #1750016] Thu, 15 December 2016 10:18 Go to previous messageGo to next message
dinh do is currently offline dinh doFriend
Messages: 4
Registered: November 2016
Junior Member
Hi Kevin,

Thanks for your reply.
Let me to clarify my usecases here:
- the text to be checked is build log from compiling a project.
- in Jubula:
+ I used ub_ctx_storeValue to store this build log to a variable ($BuildLog)
+ then used ub_app_checkStringValues to check if my expected text ("Build Finished" for example) is found in the $BuildLog

So, your suggestion is to check each 4000 bytes of text of my $BuildLog might not work because i couldn't split $BuildLog.

Regarding to the database used, if the default H2 database doesn't allow more than 4000 characters, then is it possible to fix this limitation by using another database (eg. PostgreSQL) instead of the default one? if true, any guide for this?

thanks a lot,
Dinh

Re: Jubula not saving my testreports [message #1750142 is a reply to message #1410019] Fri, 16 December 2016 11:01 Go to previous message
Kevin Barbe is currently offline Kevin BarbeFriend
Messages: 64
Registered: July 2016
Member
Hi Dinh,

as far as I understand your problem now, this is already fixed in the upcoming Jubula 8.4.0 release, which will be released somewhen during the next weeks. After the release, please upgrade to 8.4.0 and check if this problem still exists.

Best regards,
Kevin
Previous Topic:Testing Eclipse (Mars) IDE with Jubula
Next Topic:Christmas time
Goto Forum:
  


Current Time: Fri Dec 15 20:02:17 GMT 2017

Powered by FUDForum. Page generated in 0.02416 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software