Can't start testexec (AUT Agent: connection to server failed.) [message #1102972] |
Fri, 06 September 2013 04:57  |
Eclipse User |
|
|
|
Hello to everybody visiting this thread,
I am trying to write a .bat and XML file to run Jubula tests with Jenkins. However, I can't get testexec to work.
I try to run a testsuite from the local embedded database with the local AUT Agent.
My first question: What should I use? autconfig or autid parameter?
Second Question: What should I use? dburl or dbscheme?
Third Question: What is the datadir for? I know it is for testdata, but where do I find it? I am not even sure if I have testdata right now. Can I leave it empty?
This is my testexecConfig.xml right now (I tried a bunch of combinations and values, nothing worked so far):
<configuration>
<project>myProject</project>
<version>1.0</version>
<autconfig>myProjectAUT</autconfig> <dburl>jdbc:h2:~/.jubula/database/embedded;MVCC=TRUE;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE</dburl>
<!-- <dbscheme>Default Embedded (H2)</dbscheme> -->
<dbuser>sa</dbuser>
<dbpw></dbpw>
<server>localhost</server>
<port>6000</port>
<language>de_DE</language>
<testsuite><entry>EXP VW 001</entry></testsuite>
<datadir>C:\Users\ahoffman\workspace\Jubula</datadir>
<resultdir>C:\Users\ahoffmann\Desktop</resultdir>
<data>C:\Users\ahoffmann\workspace\Jubula</data>
</configuration>
Even this simple configuration doesn't work. The AUT agent is running and Jubula can connect to it (but during the test, it's disconnected).I get this output:
C:\Users\ahoffmann\workspace\Jubula>"C:\Program Files\jubula_7.1.00054\jubula\testexec" -c C:\Users\ahoffmann\Desktop\testexecConfig.xml
Fri Sep 06 10:33:27 CEST 2013 Using configuration file:
C:\Users\ahoffmann\Desktop\testexecConfig.xml
Fri Sep 06 10:34:02 CEST 2013 AUT Agent: Connecting to "localhost:6000" ...
Fri Sep 06 10:34:03 CEST 2013 AUT Agent: connection to server failed.
!!Error occurred !!
Connection to AUT Agent could not be established.
!!Error occurred !!
Connection to AUT Agent has been unexpectedly lost during test execution
Fri Sep 06 10:34:03 CEST 2013 Exit: Code 1
In addition, testexec creates a workspace folder inside my 'workspace\Jubula' workspace. I already changed the workspace path to 'workspace\Jubula\workspace' and copied the .bat file in Jubula to prevent this workspace creation every time.
The next step would be to create a connection to the Jubula database on which I work and get the testsuite from there. But so far I would be happy if even the local configuration would work.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04526 seconds