Debugging DISCONNECTED issues

3,973 views
Skip to first unread message

Carl Erik Kopseng

unread,
Mar 27, 2014, 8:21:23 AM3/27/14
to karma...@googlegroups.com

I am trying to setup running of tests on BrowserStack, and I am running into issues of Karma reporting a status of DISCONNECTED when running on some of the browsers. The tests are in fact running on the devices, it is just that the DISCONNECTED message comes up before the tests start running. See attached images.

I am assuming this is due to the amount of time that BrowserStack uses creating a VM which in turn fires up a simulator, and I would think that simply increasing the timeout would suffice for fixing this, since the DISCONNECTED message is consistently displayed after ten seconds. So far I have tried changing my configuration to the following, but it does not seem to take effect at all


// If browser does not capture in given timeout [ms], kill it
captureTimeout
: 60000,

browserStack
: {
 username
: 'myuser',
 accessKey
: 'secret',
 captureTimeout
: 1200000,
 timeout
: 3000000
},

bs_android4_2
: {
 
base: 'BrowserStack',
 device
: 'LG Nexus 4',
 os
: 'android',
 os_version
: '4.2'
}

I still get the DISCONNECTED after 10.001 seconds.

Any clues to how I can get the settings to apply? I am running

"node": "0.10.0"
"karma": "~0.11.14",
"karma-mocha": ">=0.1.1",


--
cek
1.png
2.png

Carl Erik Kopseng

unread,
Mar 28, 2014, 2:53:24 AM3/28/14
to karma...@googlegroups.com

Could the DISCONNECT messages be related to something else than the captureTimeout?

Any other way to increase the (apparent) ten second threshold?

Regards

Vojta Jína

unread,
Mar 28, 2014, 10:00:05 PM3/28/14
to karma...@googlegroups.com
Hi Carl,

Can you try increasing `browserNoActivityTimeout` too?
Also, run karma with --log-level debug and send the output.

V.



--
You received this message because you are subscribed to the Google Groups "karma-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to karma-users...@googlegroups.com.
To post to this group, send email to karma...@googlegroups.com.
Visit this group at http://groups.google.com/group/karma-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/karma-users/04cd943e-d35f-4603-9563-ab54d542776b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carl-Erik Kopseng

unread,
Mar 29, 2014, 5:54:51 PM3/29/14
to karma...@googlegroups.com
That did the trick! I set browserNoActivityTimeout to 60000 ms and this time there was no disconnect messages. It connected at 41 seconds into the run, well over four times the default setting. Thanks for the tip. I attached the debug log none the less. 

I googled for "browserNoActivityTimeout" now, and the only page that came up was the following:

I then tried following all the links I could from the homepage and GitHub pages, and I simply did not manage to find any linked path to this documentation. Maybe these docs could need a hand in reaching the public (for instance with a link from the docs page)?

Best regards,
Carl-Erik


--
You received this message because you are subscribed to a topic in the Google Groups "karma-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/karma-users/B-E7nLphNHQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to karma-users...@googlegroups.com.

To post to this group, send email to karma...@googlegroups.com.
Visit this group at http://groups.google.com/group/karma-users.
debug.out.2

Vojta Jína

unread,
Mar 29, 2014, 6:40:20 PM3/29/14
to karma...@googlegroups.com
These are just sources for the homepage:

I guess we need to do a better job at SEO;-)


Reply all
Reply to author
Forward
0 new messages