Failing tests intermittently while running parallel.

43 views
Skip to first unread message

Ajeesh

unread,
Feb 27, 2017, 8:45:03 PM2/27/17
to calabash-android
Hi,

I am running android tests parallel in 4 devices. Few of the tests are failing intermittently saying 'Connection refused - Connection refused - connect(2) for "127.0.0.1" port 34854 (127.0.0.1:34854) (Errno::ECONNREFUSED)'. 

I used unique TEST_SERVER_PORT for each devices.

Also tried the following
 - reinstall app and test server before each tests
 - clear app data before launching
Still didn't work.
Can someone help, how to to reestablish the connection with the calabash test server while execution?

Thanks,
Ajeesh 


Ajeesh

unread,
Feb 27, 2017, 8:49:50 PM2/27/17
to calabash-android
I am using calabash-android version 0.9.0

Thanks,
Ajeesh

auto...@gmail.com

unread,
Feb 28, 2017, 2:30:08 AM2/28/17
to calabash-android
Hi Ajeesh,

Can you try a different port for all the devices? For example: TEST_SERVER_PORT=34800 for Device 1, TEST_SERVER_PORT=34801 for Device 2, TEST_SERVER_PORT=34802 for Device 3 and TEST_SERVER_PORT=34803 for Device 4. 

If still not able to resolve this issue, then do let me know. We can look for a alternate issue.

Thanks,

Ajeesh

unread,
Feb 28, 2017, 3:19:34 PM2/28/17
to calabash-android

Thanks for the reply. I already using unique test server port for all devices. This issue is happening only on device with android version 5. I have replaced the problem device with a new one in the execution environment resolved the issue for now.
Reply all
Reply to author
Forward
0 new messages