Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Testexec is unable to connect to AUT
Testexec is unable to connect to AUT [message #986371] Tue, 20 November 2012 09:24 Go to next message
Lars Ostling is currently offline Lars OstlingFriend
Messages: 5
Registered: September 2012
Junior Member
Hi,

I'm trying to run my jubula tests from the command line but I'm unable to get the testexec to connect to my running AUT. My AUT is Eclipse CDT with a custom plugin, I also added the rcp-support plugin from Jubula and made sure it's configured in config.ini. I run my AUT using autrun and the following command line:

autrun -rcp -k en_US -i PareonEclipsePlugin -e scripts/launchAUT.sh


My testexec command line looks like this:

testexec -autid PareonEclipsePlugin -project PareonEclipsePlugin -version 1.0 -testsuite TestPareonEclipsePlugin -datadir testdata -resultdir testresults -server localhost -port 60000 -language en_US -dbscheme "Default Embedded (H2)" -dbuser sa -dbpw ""


... and this is the resulting output:

Tue Nov 20 10:12:09 CET 2012    AUT Agent:      Connecting to "localhost:60000" ...
Tue Nov 20 10:12:10 CET 2012    AUT Agent:      connection established.
Tue Nov 20 10:12:10 CET 2012    Database:       Connecting as "sa" to "jdbc:h2:~/.jubula/database/embedded;MVCC=TRUE;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE"...
Tue Nov 20 10:12:14 CET 2012    Database:       Connection established.
Tue Nov 20 10:12:14 CET 2012    Database:       Loading project "PareonEclipsePlugin" in version "1.0"...
Tue Nov 20 10:12:18 CET 2012    Database:       Project loading completed.
Tue Nov 20 10:12:18 CET 2012    Project:        Checking completeness
Tue Nov 20 10:12:18 CET 2012    Checking completeness of Test Suite "TestPareonEclipsePlugin"...
Tue Nov 20 10:12:18 CET 2012            Start Test Suite: TestPareonEclipsePlugin
Tue Nov 20 10:12:18 CET 2012    Executing Test Suite "TestPareonEclipsePlugin"...
Tue Nov 20 10:12:18 CET 2012    Preparing execution of Test Suite "TestPareonEclipsePlugin"...
Tue Nov 20 10:12:18 CET 2012    AUT:            Connecting to "PareonEclipsePlugin"...
Tue Nov 20 10:12:19 CET 2012    Resolving predefined Variables
Tue Nov 20 10:12:19 CET 2012    Resolving Test Steps to execute...
Tue Nov 20 10:12:19 CET 2012    Test Suite "TestPareonEclipsePlugin" execution... 
Tue Nov 20 10:12:19 CET 2012    Test Case: Create Pareon C Project
Tue Nov 20 10:12:19 CET 2012    Test Case: Create Project
Tue Nov 20 10:12:19 CET 2012    Test Case: ub_app_activate
Tue Nov 20 10:12:19 CET 2012            Step: activate AUT
Tue Nov 20 10:12:19 CET 2012    Writing Report into Filesystem
Tue Nov 20 10:12:20 CET 2012    Writing Report to Database
Tue Nov 20 10:12:21 CET 2012            Start Test Suite: TestPareonEclipsePlugin
Tue Nov 20 10:12:21 CET 2012    Executing Test Suite "TestPareonEclipsePlugin"...
Tue Nov 20 10:12:21 CET 2012    Preparing execution of Test Suite "TestPareonEclipsePlugin"...
!!Error occurred !!
        Could not connect to AUT: PareonEclipsePlugin


Any hints as to what might be going wrong would be appreciated.

Thanks!
Re: Testexec is unable to connect to AUT [message #986394 is a reply to message #986371] Tue, 20 November 2012 10:23 Go to previous messageGo to next message
Lars Ostling is currently offline Lars OstlingFriend
Messages: 5
Registered: September 2012
Junior Member
Some extra information that I forgot to add. I'm running Ubuntu 12.04 64 bit with KDE (in a virtual machine). My Jubula version is 1.3.00071 and my AUT is eclipse-cpp-juno-SR1-linux-gtk-x86_64.tar.gz. Also, after having started my AUT with autrun the AUT agent does report "1 running AUT: PareonEclipsePlugin".
Re: Testexec is unable to connect to AUT [message #986537 is a reply to message #986394] Tue, 20 November 2012 20:16 Go to previous messageGo to next message
Lars Ostling is currently offline Lars OstlingFriend
Messages: 5
Registered: September 2012
Junior Member
Ok, issue resolved. The problem in my case was that I had not configured the AUT properly in my Jubula setup. So in Jubula I had to add a new AUT definition and then enter the id of the AUT to the 'AUT IDs for AUTs started with the autrun option'. That did the trick for me.
Re: Testexec is unable to connect to AUT [message #987564 is a reply to message #986537] Tue, 27 November 2012 07:46 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Lars,

Thanks for posting the answer!

Alex
Previous Topic:workflows for multiple users?
Next Topic:AUT JRE and RCP Questions
Goto Forum:
  


Current Time: Thu Apr 25 09:39:51 GMT 2024

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

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

Back to the top