Reason 7009: Testexec.exe works localhost but not remote with same config.xml [message #910692] |
Mon, 10 September 2012 08:19 |
Johann Vogel Messages: 20 Registered: February 2012 |
Junior Member |
|
|
Connecting from remote-host:
D:\jubula_1.2.1\jubula>testexec.exe -c test.xml
Mon Sep 10 09:43:05 CEST 2012 Using configuration file:
D:\jubula_1.2.1\jubula\test.xml
Mon Sep 10 09:43:06 CEST 2012 AUT Agent: Connecting to "[censored]:60
000" ...
Mon Sep 10 09:43:07 CEST 2012 AUT Agent: connection established.
Mon Sep 10 09:43:07 CEST 2012 Database: Connecting as "JUBULA" to "jdbc:
oracle:thin:@[censored]:1521:TESTDB"...
Mon Sep 10 09:43:10 CEST 2012 Database: Connection established.
Mon Sep 10 09:43:10 CEST 2012 Database: Loading project "[censored]_1" in v
ersion "1.0"...
Mon Sep 10 09:43:42 CEST 2012 Database: Project loading completed.
Mon Sep 10 09:43:42 CEST 2012 Project: Checking completeness
Mon Sep 10 09:43:42 CEST 2012 Checking completeness of Test Suite "01_login"..
.
Mon Sep 10 09:43:42 CEST 2012 AUT: Starting AUT: MSS
Mon Sep 10 09:44:46 CEST 2012 Start Test Suite: 01_login
Mon Sep 10 09:44:46 CEST 2012 Executing Test Suite "01_login"...
Mon Sep 10 09:44:46 CEST 2012 Preparing execution of Test Suite "01_login"...
Mon Sep 10 09:44:46 CEST 2012 AUT: Connecting to "mssstart"...
!!Error occurred !!
Could not connect to AUT: mssstart
Note: It doesn't even terminate, it keeps hanging in that state.
Connectiong from localhost:
E:\jubula_1.2.1\jubula>testexec.exe -c test.xml
Mon Sep 10 09:52:42 CEST 2012 Using configuration file:
E:\jubula_1.2.1\jubula\test.xml
Mon Sep 10 09:52:43 CEST 2012 AUT Agent: Connecting to "[censored]:60
000" ...
Mon Sep 10 09:52:45 CEST 2012 AUT Agent: connection established.
Mon Sep 10 09:52:45 CEST 2012 Database: Connecting as "JUBULA" to "jdbc:
oracle:thin:@[censored]:1521:TESTDB"...
Mon Sep 10 09:52:49 CEST 2012 Database: Connection established.
Mon Sep 10 09:52:49 CEST 2012 Database: Loading project "[censored]_1" in v
ersion "1.0"...
Mon Sep 10 09:53:18 CEST 2012 Database: Project loading completed.
Mon Sep 10 09:53:18 CEST 2012 Project: Checking completeness
Mon Sep 10 09:53:18 CEST 2012 Checking completeness of Test Suite "01_login"..
.
Mon Sep 10 09:53:18 CEST 2012 AUT: Starting AUT: MSS
Mon Sep 10 09:53:36 CEST 2012 Start Test Suite: 01_login
Mon Sep 10 09:53:36 CEST 2012 Executing Test Suite "01_login"...
Mon Sep 10 09:53:36 CEST 2012 Preparing execution of Test Suite "01_login"...
Mon Sep 10 09:53:36 CEST 2012 AUT: Connecting to "mssstart"...
Mon Sep 10 09:53:39 CEST 2012 AUT: Connection established.
Mon Sep 10 09:53:40 CEST 2012 Resolving predefined Variables
Mon Sep 10 09:53:40 CEST 2012 Resolving Test Steps to execute...
Mon Sep 10 09:53:40 CEST 2012 Activating AUT...
Mon Sep 10 09:53:40 CEST 2012 Test Suite "01_login" execution...
... (and running)
It's the same config file with the same IPs in it, just once started from a remote host and once from localhost, but it doesn't work when executed remote. And the worst thing: the script doesn't even exit at all when it can't find the AUT mssstart, I have to kill it with ctrl+c.
Edit #1: Changing the AUT in MSS@localhost to "MSS" doesn't help.
Mon Sep 10 10:35:15 CEST 2012 AUT: Starting AUT: MSS
Mon Sep 10 10:35:35 CEST 2012 Start Test Suite: 01_login
Mon Sep 10 10:35:35 CEST 2012 Executing Test Suite "01_login"...
Mon Sep 10 10:35:35 CEST 2012 Preparing execution of Test Suite "01_login"...
Mon Sep 10 10:35:35 CEST 2012 AUT: Connecting to "MSS"...
!!Error occurred !!
Could not connect to AUT: MSS
Edit #2: Ok i was able to reproduce the Problem with the GFExplorer and on GUI. Here are the steps:
0. Create some Oracle DB, New Project/Use existing project for that (you already have this)
1. Test -> Properties -> New AUT ->
2. Name it "ex" -> Toolkit RCP -> Add Aut Conf
3. (Basic) -> Host: Add host with your (local) IP, select it (not localhost!)
4. Select GFEExplorer in Examples
5. Create a simple Testcase named "activateEx", just put one Application -> Activate Step into it, Put this Testcase activateEx into a Test suite, choose the ex-application as application in the Properties.
6. Start AUT-Agent from /server (on the IP you just added)
7. Now go to Host #2, start Jubula, load project, connect to the non-local AUT Agent, start ex-aut. Now the GFEExample should start up at Host #1.
8. Start "ActivateEx" from the Test Suite Browser (on Host #2)
9. This error Window, no test is executed.
(10. Disconnect Aut Agent, try Step 7 + 8 on Host #1 - it works. So some kind of your connection is going local instead of over the network.)
It's the same error as described in the first part, that you can start the AUT but no concrete Test Suite, because the AUT can't be found if it's remote.
Edit #3: Problem also exists with swt/swing applications like the SimpleAdder. It also exists in the 1.1 Version with MySQL.
[Updated on: Mon, 10 September 2012 14:16] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03231 seconds