Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Starting AUT on remote server(Wanted to run AUT on remote server where AUT agent is running.)
Starting AUT on remote server [message #736818] Fri, 14 October 2011 11:07 Go to next message
Daniel Vala is currently offline Daniel ValaFriend
Messages: 11
Registered: October 2011
Junior Member
Hi,
we want to run AUT on remote server where AUT agent is running.
Jubula project configure name is TopoNet@linux and autid is 3.
We use this command:
/opt/jubula_5.2.00266/jubula/testexec -project TopoNet -version 1.0 -testsuite login -server 172.16.0.23 -port 60000 -autconfig TopoNet@linux -datadir /test1 -resultdir /test2 -data /test3 -language en_US -dbscheme "Default Embedded (H2)" -dbuser sa -dbpw ""


output:
vala@dan:/opt/jubula_5.2.00266/jubula> /opt/jubula_5.2.00266/jubula/testexec -project TopoNet -version 1.0 -testsuite login -server 172.16.0.23 -port 60000 -autconfig TopoNet@linux -datadir /test1 -resultdir /test2 -data /test3 -language en_US -dbscheme "Default Embedded (H2)" -dbuser sa -dbpw ""
Fri Oct 14 12:37:10 CEST 2011 - [main] Bundle tracker is not set
Fri Oct 14 12:37:13 CEST 2011	AUT Agent:		connection established
Fri Oct 14 12:37:13 CEST 2011	Database:	Connecting...
Fri Oct 14 12:37:18 CEST 2011	Database:	Connection established.
Fri Oct 14 12:37:18 CEST 2011	Database:	Loading project: TopoNet
Fri Oct 14 12:37:26 CEST 2011	Database:	Project loaded: TopoNet
Fri Oct 14 12:37:26 CEST 2011	Project:	Checking completeness
Fri Oct 14 12:37:26 CEST 2011	AUT:		Starting AUT: TopoNet
Fri Oct 14 12:37:28 CEST 2011	AUT:		AUT started
Fri Oct 14 12:37:28 CEST 2011	Test Execution:
Fri Oct 14 12:37:34 CEST 2011		Start Test Suite: login(1/1)
Fri Oct 14 12:37:34 CEST 2011	Executing Test Suite...
Fri Oct 14 12:37:34 CEST 2011	Connecting to AUT
!!Error occurred !!
	Could not connect to AUT: 3



AUT application on remote server is started, but testexec can not connect to this AUT.
If we run AUT on local machine, it works fine. AUT is started, then connected testexec is connected to this AUT and test will proceed.
Can you help me what we should done to this could work on remote machine? I think it still trying to connect to some AUT on local machine instead of on remote machine.

I would appreciate any help.
Re: Starting AUT on remote server [message #736853 is a reply to message #736818] Fri, 14 October 2011 11:50 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi,

It sounds like it could be a firewall problem. You need your client machine to be able to connect to the server machine, but the server machine also has to be able to communicate with the client machine.

This is from the FAQs:
Quote:

What ports does Jubula require for testing?

We require various ports to communicate in two directions:

* From the client to the AUT agent: this port is defined in the preferences.
* From the AUT to the client: this port is dynamically chosen, and cannot currently be defined. Therefore, any ports available on your test machine must also be open on the machine from which the test is being run.

If opening all ports in this way is not an option, we recommend using the command line client on the test machine to run the tests, so that all communication is done locally.


Hope that helps,
Alex
Re: Starting AUT on remote server [message #736881 is a reply to message #736853] Fri, 14 October 2011 12:32 Go to previous messageGo to next message
Daniel Vala is currently offline Daniel ValaFriend
Messages: 11
Registered: October 2011
Junior Member
Thank you for your answer.
We have firewalls stopped on both machines and we are not aware of any application which would block ports.
We think connection is established because if we stop aut agent on remote server machine it react on client machine (write connection closed)

Fri Oct 14 14:26:54 CEST 2011	Connecting to AUT
!!Error occurred !!
	Could not connect to AUT: 3
Fri Oct 14 14:27:26 CEST 2011	AUT Agent:		connection closed


We saw in wireshark that client is communicate with server 50855 > 60000 and server communicate with client 60000 > 50855.
We have tried it more times and port on client is actually changing.
Re: Starting AUT on remote server [message #742477 is a reply to message #736881] Thu, 20 October 2011 14:27 Go to previous messageGo to next message
Daniel Vala is currently offline Daniel ValaFriend
Messages: 11
Registered: October 2011
Junior Member
I would really appreciate if somebody suspect the problem. I use OpenSuse 11.3 on client and server machine and Jubula 5.2.00266.
What is the right procedure of running AUT on remote machine? Why I cannot add any jar to classpath in project settings in Jubula when I have AUT Agent Host set to remote IP address? Which way I should choose jars which is placed in remote machine?
Re: Starting AUT on remote server [message #826664 is a reply to message #742477] Thu, 22 March 2012 11:03 Go to previous messageGo to next message
ivonne kellner is currently offline ivonne kellnerFriend
Messages: 17
Registered: March 2012
Junior Member
hello,
i have the same problem!
connecting with the autagent on the remote computer works fine, but starting the aut not.
in my case it is firefox that should be started and in the browser the url of the aut should be followed.
with top i can see that a firefox and a java process is started on the remote computer, but no browser window opens. when i kill the firefox process, suddenly a browser window opens, but the url of the aut is not entered.
if i close firefox, then the java process remains running. i have to kill it manualy.

both computer are linux and firewalls are stopped.

I would appreciate any help.
Re: Starting AUT on remote server [message #826728 is a reply to message #826664] Thu, 22 March 2012 12:33 Go to previous messageGo to next message
ivonne kellner is currently offline ivonne kellnerFriend
Messages: 17
Registered: March 2012
Junior Member
i tested some more and looked at the structure of the processes. it seems that guidancer starts a java process on the remote computer and this starts a firefox process:
/usr/lib/firefox-3.6/firefox -profile /tmp/customProfileDire8328ca1be764412846750ddb37aa103 -chrome chrome://killff/content/kill.html

i tried to execute that manualy and it fails also (without error message).
then i removed the -chrome parameter and firefox starts ok.
perhaps my firefox is to old to understand it? it is only 3.6.
Re: Starting AUT on remote server [message #826762 is a reply to message #826728] Thu, 22 March 2012 13:29 Go to previous message
ivonne kellner is currently offline ivonne kellnerFriend
Messages: 17
Registered: March 2012
Junior Member
i installed firefox 11.0 but it did not help Sad

when i kill the first firefox process the browser opens and
in its error concole i found these messages:
----------------------------
Could not read chrome manifest 'file:///opt/Workspaces/guidancer/firefox-11.0/extensions/%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D/chrome.manifest'.

No chrome package registered for chrome://src/content...
----------------------------
Previous Topic:Drop figure onto empty graphics component
Next Topic:Take old Tests for new Version?
Goto Forum:
  


Current Time: Fri Mar 29 14:31:14 GMT 2024

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

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

Back to the top