|
|
|
Re: Aut Agent loses connection to Aut during test execution [message #1505691 is a reply to message #1505671] |
Wed, 10 December 2014 08:27 |
fab jubulator Messages: 30 Registered: November 2014 |
Member |
|
|
Hi Alex,
I do use a testjob that consists of several suites all using the same AUT. So the AUT agent is disconnected and reconnected after each suite (this is just the way Jubula seems to work).
The connection gets list after the first suit with only a few steps.
The Oracle DB seems to fix it, but if you have tips that help me improve my suites, I'd be thankful.
This disconnecting and reconnecting to the AUT seems troublesome.
"\\jubulasrv\c$\jubula\jubula\testexec" -project "OPTITOOL_348" -version "1.0" -autid "otcs_admin" -testjob "test-job" -resultdir "\\jubulasrv\c$\workspace\results" -language "en_US" -dburl "jdbc:oracle:thin:@jubulasrv:1521:xe" -dbuser system -dbpw opti -datadir "\\jubulasrv\c$\workspace" -server jubulasrv -port "60000" -data "\\jubulasrv\c$\workspace" -timeout "700"
[Updated on: Wed, 10 December 2014 08:34] Report message to a moderator
|
|
|
|
Re: Aut Agent loses connection to Aut during test execution [message #1505898 is a reply to message #1505746] |
Wed, 10 December 2014 11:58 |
Alexandra Schladebeck Messages: 1613 Registered: July 2009 |
Senior Member |
|
|
Hi,
The database doesn't have any bearing whatsoever on the communication between the client and the server as far as I'm aware. It looks like your problem is related to the command line parameters you are using. You are using the -timeout parameter with 700, which means that the test exec itself will stop after this time. This is documented here.
It's true that Jubula disconnects and reconnects to an AUT between test jobs - that's because they're designed to deal with addressing multiple AUTs in a test, so the new connection has to be made. If you're only working with one AUT, then the preferred way to structure your tests is to use single test suites (e.g. one for your productive test cases, one for your incubation / smoke test / .. test cases). Within a test suite, you add each "use case" you want to test. Each use case is contained within a Jubula Test Case, and should be independent of any other use cases (i.e. it should assume or create its starting setup and leave the application in this state at the end - either via correct execution or via an event handler). An article on this is on the portal:
http://testing.bredex.de/test-cases-for-continuous-integration.html
There are also other articles about structure and conventions there that might be helpful. This is the kind of thing our consultants offer reviews and training on too, if you're interested.
Hope this information helps,
Alex
|
|
|
Re: Aut Agent loses connection to Aut during test execution [message #1505923 is a reply to message #1505898] |
Wed, 10 December 2014 12:19 |
fab jubulator Messages: 30 Registered: November 2014 |
Member |
|
|
Hm, it's just strange. When I was using the embedded DB, I couldn't get rid of the disconnection troubles. As soon as I started using the Oracle EX DB yesterday, the problem didn't occur anymore. Never. No other changes whtasoever.
I have just followed your advice and refactored my testcases as a single testcase and combined those to a suite, in order to do it the right way.
Not everything that is best practice, is achieveable in the software I'm testing because it's a multiuser software which effects database transactions - which cannot be undone, of course.
Thank you!
[Updated on: Wed, 10 December 2014 12:20] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04053 seconds