Skip to main content

Tricky network problem

2 replies [Last post]
palineo
Offline
Joined: 2009-02-26
Points: 0

Hello everyone,

I have a network problem with meframework and jtharness.

Well I have a set of test (automatic and interactive) ; These tests are deployed on jtharness and here are the two network infrastructures :

INFRASTRUCTURES :

1 - JTHarness directly visible on Internet :

Mobile Phone <-> Internet <-> Public IP <-> JTharness

2 - JTHarness Behind a router (box)

Mobile Phone <-> Internet <-> Public IP <-> Router <-> Local IP <-> JTharness

USE CASES:

First infrastructure :
Automatic tests and Interactive tests work great.

Second infrastructure:
Well, with this infrastructure I am VERY irritated with JTHarness configuration :

My (tested) configurations for JTHarness :

- If I fill the field "JavaTest Harness Host" with the public IP :

The problem : Test bundle is not generated when it contains one or more Interactive test(s).
Precision : Test bundle generation works great when it contains only Automatic tests.

Assumption :
I assume the problem could come from here :

For interactive tests :
o The server try to bind the public IP that does not exists on the server but on the router.
o There is a check of the public IP to ensure that this IP is available on the server...obviously, this IP does not exist on the server because it is public the router IP.

- If I fill "JavaTest Harness Host" with the local IP :

The problem : Test bundle is generated BUT it generates a jad file with this local IP...and obviously...this local IP is not reachable from my device..
Assumption : I assume that I am going to have a problem with 'agent.dat' & 'mid_agent' that contains server address for communication too...

Please help me !
Brice

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Alexander Alexeev

Hi Brice,

seems we have a problem with server side component is being used for running
distributed or interactive tests. It's running as separate process and JT
Harness uses special address to cooperate with it. Part of the address is
"passiveHost" environment variable equals to "$httpHost" by default. But in
your case "httpHost" is invalid on JT Harness host :-(. As workaround you can
try to override "passiveHost" value to something like "localhost" in one of the
export() methods of your questions in the interview.

Thanks,
Alexander

---------------------------------------------------------------------
To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
For additional commands, e-mail: meframework-help@cqme.dev.java.net

palineo
Offline
Joined: 2009-02-26
Points: 0

Hi Brice,

seems we have a problem with server side component is being used for running distributed or interactive tests. It's running as separate process and JT Harness uses special address to cooperate with it. Part of the address is "passiveHost" environment variable equals to "$httpHost" by default. But in your case "httpHost" is invalid on JT Harness host :-(. As workaround you can try to override "passiveHost" value to something like "localhost" in one of the
export() methods of your questions in the interview.

Thanks,
Alexander