Test Runner connection problems with Mobile Test framework

2 posts, 0 answers
  1. Tejas
    Tejas avatar
    3 posts
    Member since:
    Mar 2014

    Posted 21 Mar 2014 Link to this post


    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.

    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.

  2. Anthony
    Anthony avatar
    19 posts

    Posted 24 Mar 2014 Link to this post

    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.

    Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
Back to Top