This is a migrated thread and some comments may be shown as answers.

Test Runner connection problems with Mobile Test framework

1 Answer 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tejas
Top achievements
Rank 1
Tejas asked on 21 Mar 2014, 11:51 AM
Hi,

I have deployed the sample app - "Jitterz Mobile" and have written a few test cases to test it.
However, when I'm trying to run the test runner for iOS, its failing with an error similar to the one mentioned in this thread.
http://www.telerik.com/forums/mobile-testing-app-connection-when-running-testrunner-tests

I started a new thread to keep track of it, as there's a bit of a difference.

In case of iOS - This is the error.
However in case of Android the test cases work properly.

My suspicion is is something to do with the iOS companion app not maintaining the connection to the test runner server when in background.
Is this a known bug which is being fixed or is this some mistake from side?
Can you please provide some inputs as to how to get around this?

Some background about my work : I currently am evaluating different hybrid frameworks for app development for our company. And my scope is to evaluate the testing support and frameworks available for Kendo UI mobile. Hence trying out these scenarios.

-Regards,
Tejas

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 24 Mar 2014, 05:32 PM
Hello Tejas,

When you connect the iOS Mobile Testing app, it generates a session ID (let's call it ABC). Say you tap the Home button or open another app, then reopen Mobile Testing. It automatically reestablishes the connection, but generates a new session ID (XYZ). The server still has the old ID (ABC) and reports that the agent stopped responding when you click Run Tests in the Test Runner.

The workaround for now is to click Refresh Agents before you click Run Tests. That's only if the iOS Mobile Testing app was just relaunched. That way the server gets the updated session ID before execution. If the Mobile Testing app remains open, this is not necessary.

Our next update will fix this. The Refresh Agents button is replaced with polling, so agents will enter and exit the list automatically as they are connected and disconnected.

Regards,
Anthony
Telerik
 
Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
 
Tags
General Discussions
Asked by
Tejas
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or