|
Re: Aut Agent loses connection to Aut during test execution [message #1505671 is a reply to message #1504726] |
Wed, 10 December 2014 08:08   |
Eclipse User |
|
|
|
Hi there,
Can you post the relevant part of the testexec command line? Are you using the same AUT or a different AUT between Test Suites? (If you're using the same one, I'd highly recommend not using Test Jobs since they make working with the same AUT unnecessarily complicated - I can point you in the direction of test structure examples if you're working with one AUT). How many switches are you doing before the problem occurs? Can you post the test result reports for the two suites that are affected (the penultimate and the one where the error occurs?)
Thanks,
Alex
|
|
|
|
Re: Aut Agent loses connection to Aut during test execution [message #1505691 is a reply to message #1505671] |
Wed, 10 December 2014 08:27   |
Eclipse User |
|
|
|
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] by Moderator 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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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] by Moderator Report message to a moderator
|
|
|
|
Re: Aut Agent loses connection to Aut during test execution [message #1506109 is a reply to message #1505993] |
Wed, 10 December 2014 15:37   |
Eclipse User |
|
|
|
Since I like answering my own questions:
if errorlevel 1 goto ONE
if errorlevel 0 goto ZERO
goto END
:ZERO
start \\jubulasrv\c$\optitool_3.4.8\stopAutAgent.bat
goto END
:ONE
"\\jubulasrv\c$\jubula\jubula\testexec" -project "OPTITOOL_suite" -version "1.0" -autconfig "otcs@localhost" -testsuite "DeleteTestSc" -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 "100"
goto ZERO
:END
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.16443 seconds