mobile test connection error on iOS with phonegap hybrid demo

14 posts, 0 answers
  1. fang
    fang avatar
    15 posts
    Member since:
    Apr 2013

    Posted 05 May 2014 Link to this post

    hi,

    I have deployed the sample app in  Telerik Mobile Testing/samples/Cordova/DemoApplication and use demo specs to test .
    I have reviewed http://www.telerik.com/forums/test-runner-connection-problems-with-mobile-test-framework , and followed these steps:
    Refresh Agents then click Run Tests,

    ERROR:
    AGENT               PLATFORM                     FAILED TEST       FAILED STEP                                    FAILED METHOD                   EXCEPTION
    iPhone      iPhone 5 (GSM+CDMA)            Build a taco      1. launch demo application                 1. ios.launch            100: request timed out


    I have changed specs test js ,made it url schemes same with xcode info 
    var stepRepository = {
    "launch demo application": {
    'ios': [
    ios.launch('defaultAppURL2222://')
    ],



    the following logs:

    tmtest server --launch-test-runner -v

    Port 8081 already in use.
    Message server encountered an error and will disconnect.
    jinkaiMacBook-Pro:~ pioneer$ tmtest server --launch-test-runner -v
    Test Runner available at http://172.31.6.52:3001/testrunner
    Web Agent available at http://172.31.6.52:3001/
    Message Server available at ws://172.31.6.52:8081
    server.js:1 Client connecting...


    server.js:1 Sending message 
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "cb8856be-aebf-4f6a-ba4b-0f9bc4546dbc",
      "data": {
        "handshake": "hs_get_client_info"
      }
    }




    server.js:1 Received message
    {
      "id": "11abd110-8f54-4b4b-bfa9-67325eb758b1",
      "toId": "server",
      "data": {
        "version": "2",
        "platformInfo": {
          "platformKey": "web",
          "name": "Safari",
          "platform": "MacIntel",
          "system": "MacOS",
          "systemVersion": "",
          "browser": {
            "name": "Safari",
            "version": "7.0.3"
          }
        },
        "capabilities": [
          "automation_test_runner"
        ],
        "identity": {
          "sharedKey": "5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68"
        }
      },
      "responseToMessageId": "cb8856be-aebf-4f6a-ba4b-0f9bc4546dbc",
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Calling callback stored for previous message


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "38de5b98-c2d4-433a-99a1-39299aad1f1f",
      "data": {
        "handshake": "hs_accepted",
        "id": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
      },
      "responseToMessageId": "11abd110-8f54-4b4b-bfa9-67325eb758b1"
    }


    server.js:1 Client connected
    server.js:1 Requesting registration of client
    server.js:1 Registering client
    server.js:1 creating sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68
    server.js:1 adding 77b04e5c-f7d4-4736-90d0-3beebd4c9454 to sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68


    server.js:1 Received message
    {
      "id": "9f98ed56-c2dc-4031-b251-71e8df2ae47b",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "e991f3bb-91dd-457a-8337-014a4ad52164",
      "data": [],
      "responseToMessageId": "9f98ed56-c2dc-4031-b251-71e8df2ae47b"
    }




    server.js:1 Received message
    {
      "id": "f2857e25-62ea-408a-9856-1f3f8a3f84b3",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "e57d7933-1ca0-4ca6-9d19-14b6e499e4a6",
      "data": [],
      "responseToMessageId": "f2857e25-62ea-408a-9856-1f3f8a3f84b3"
    }


    server.js:1 Client connecting...


    server.js:1 Sending message 
    {
      "fromId": "server",
      "toId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "id": "850b6ba6-32db-450e-9874-51275c20b37a",
      "data": {
        "handshake": "hs_get_client_info"
      }
    }




    server.js:1 Received message
    {
      "fromId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "id": "7070B373-689B-4831-9C89-06EBD6327706-2764-0000071A716F980C",
      "responseToMessageId": "850b6ba6-32db-450e-9874-51275c20b37a",
      "data": {
        "capabilities": [
          "automation_execution_agent"
        ],
        "platformInfo": {
          "name": "iPhone",
          "platformKey": "ios",
          "system": "iPhone OS",
          "platform": "iPhone 5 (GSM+CDMA)",
          "systemVersion": "7.1",
          "browser": {
            "name": "Safari",
            "version": ""
          }
        },
        "version": "2",
        "identity": {
          "sharedKey": "5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68"
        }
      },
      "timestamp": 0,
      "toId": "server"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Calling callback stored for previous message


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "id": "4f009074-e871-4ecc-977d-50f440634284",
      "data": {
        "handshake": "hs_accepted",
        "id": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad"
      },
      "responseToMessageId": "7070B373-689B-4831-9C89-06EBD6327706-2764-0000071A716F980C"
    }


    server.js:1 Client connected
    server.js:1 Requesting registration of client
    server.js:1 Registering client
    server.js:1 adding c80ae194-f9aa-4587-bd45-4ce4a31b6cad to sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68


    server.js:1 Received message
    {
      "id": "989cec75-64bb-4533-b3e1-3ebc70e5f1d6",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "2d60f502-371f-4a1a-8797-e449344ee13c",
      "data": [
        {
          "id": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
          "platformInfo": {
            "name": "iPhone",
            "platformKey": "ios",
            "system": "iPhone OS",
            "platform": "iPhone 5 (GSM+CDMA)",
            "systemVersion": "7.1",
            "browser": {
              "name": "Safari",
              "version": ""
            }
          },
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      ],
      "responseToMessageId": "989cec75-64bb-4533-b3e1-3ebc70e5f1d6"
    }




    server.js:1 Received message
    {
      "id": "155ec2c0-5a5c-4233-be6a-2e5da5482d38",
      "toId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "data": {
        "cmd": "ios.launch",
        "params": {
          "url": "defaultAppURL2222://"
        }
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message


    server.js:1 Received message
    {
      "id": "07D6FE81-502A-4E8C-A669-0F3564A82931-2764-0000071A785F5770",
      "data": {
        "cmd": "suspend"
      },
      "timestamp": 0,
      "toId": "server",
      "fromId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Suspending client
    server.js:1 Client disconnected. Waiting 10s before removal


    server.js:1 Received message
    {
      "id": "a33f7b95-b4d7-46e5-9d98-ec1953fff556",
      "toId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "ca5fda9a-1de0-4889-9935-6f1c72443728",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "a33f7b95-b4d7-46e5-9d98-ec1953fff556"
    }




    server.js:1 Received message
    {
      "id": "caa8cb3b-7f40-4a05-b9ca-17fdc265c746",
      "toId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "2d27bc17-2008-44ba-ba0e-7512174ce062",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "caa8cb3b-7f40-4a05-b9ca-17fdc265c746"
    }




    server.js:1 Received message
    {
      "id": "90fd0d7f-fdf6-40d7-a947-a33759c2509a",
      "toId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "48ae9dc6-a9ce-494f-80ee-05c396ac1e88",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "90fd0d7f-fdf6-40d7-a947-a33759c2509a"
    }




    server.js:1 Received message
    {
      "id": "12bf54ef-e30b-44f8-9159-b7d453289b2e",
      "toId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "b004bba3-ff30-426b-bb36-1c45ab0a6cee",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "12bf54ef-e30b-44f8-9159-b7d453289b2e"
    }




    server.js:1 Received message
    {
      "id": "4b6cb658-0423-4dc7-95cc-dd0b09fbc99e",
      "toId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "cea03811-d7ad-4e4a-a458-fcce1fb1cf73",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "4b6cb658-0423-4dc7-95cc-dd0b09fbc99e"
    }




    server.js:1 Received message
    {
      "id": "510053bc-db83-481f-88d5-8df820584cb8",
      "toId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "a66d3f5a-7534-472b-beef-e21665e87759",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "510053bc-db83-481f-88d5-8df820584cb8"
    }




    server.js:1 Received message
    {
      "id": "8fd0316c-2990-4704-9167-a62aeb0b7441",
      "toId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "d92aeedd-40e9-4138-9e7a-3242b181faee",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "8fd0316c-2990-4704-9167-a62aeb0b7441"
    }




    server.js:1 Received message
    {
      "id": "5ecade71-0eb4-4363-b9de-70c021b25a1c",
      "toId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "52b20654-5c56-4b1a-acc6-65139543ce70",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "5ecade71-0eb4-4363-b9de-70c021b25a1c"
    }




    server.js:1 Received message
    {
      "id": "ee598646-7977-4a0b-a00d-0afb8bcce4ad",
      "toId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "647671b7-31d2-43ed-b356-5001c7337f88",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "ee598646-7977-4a0b-a00d-0afb8bcce4ad"
    }


    server.js:1 Requesting removal from Clients list
    server.js:1 removing c80ae194-f9aa-4587-bd45-4ce4a31b6cad


    server.js:1 Received message
    {
      "id": "9ebe5e89-586f-4c16-9a55-c064c60cfcc9",
      "toId": "c80ae194-f9aa-4587-bd45-4ce4a31b6cad",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":120,"description":"recipient not found"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "b7fe794e-e6de-4aa8-aa17-4b8ee9378c3b",
      "data": {
        "error": {
          "code": 120,
          "description": "recipient not found"
        }
      },
      "responseToMessageId": "9ebe5e89-586f-4c16-9a55-c064c60cfcc9"
    }


    server.js:1 Client connecting...


    server.js:1 Sending message 
    {
      "fromId": "server",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "id": "a4a4b224-201f-4132-8cf7-379e56097a71",
      "data": {
        "handshake": "hs_get_client_info"
      }
    }




    server.js:1 Received message
    {
      "fromId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "id": "05BCB424-F37E-478E-84EA-B662ECB17A55-2764-0000071F51BFB135",
      "responseToMessageId": "a4a4b224-201f-4132-8cf7-379e56097a71",
      "data": {
        "capabilities": [
          "automation_execution_agent"
        ],
        "platformInfo": {
          "name": "iPhone",
          "platformKey": "ios",
          "system": "iPhone OS",
          "platform": "iPhone 5 (GSM+CDMA)",
          "systemVersion": "7.1",
          "browser": {
            "name": "Safari",
            "version": ""
          }
        },
        "version": "2",
        "identity": {
          "sharedKey": "5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68"
        }
      },
      "timestamp": 0,
      "toId": "server"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Calling callback stored for previous message


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "id": "03f5ff71-43ec-41da-8415-7487e4a1d888",
      "data": {
        "handshake": "hs_accepted",
        "id": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54"
      },
      "responseToMessageId": "05BCB424-F37E-478E-84EA-B662ECB17A55-2764-0000071F51BFB135"
    }


    server.js:1 Client connected
    server.js:1 Requesting registration of client
    server.js:1 Registering client
    server.js:1 adding 82fcc6e4-f90e-454a-bdda-fe45a0b19b54 to sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68


    server.js:1 Received message
    {
      "id": "6abbd53c-8d7e-42c5-b68b-42f837fb4778",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "f649b9d2-bb31-404d-ba67-b86dfdd617e3",
      "data": [
        {
          "id": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
          "platformInfo": {
            "name": "iPhone",
            "platformKey": "ios",
            "system": "iPhone OS",
            "platform": "iPhone 5 (GSM+CDMA)",
            "systemVersion": "7.1",
            "browser": {
              "name": "Safari",
              "version": ""
            }
          },
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      ],
      "responseToMessageId": "6abbd53c-8d7e-42c5-b68b-42f837fb4778"
    }




    server.js:1 Received message
    {
      "id": "a7e02231-6266-4831-9fbd-7b93fadfe876",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "1510d539-564d-472c-a8b9-91c31e5cdc0d",
      "data": [
        {
          "id": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
          "platformInfo": {
            "name": "iPhone",
            "platformKey": "ios",
            "system": "iPhone OS",
            "platform": "iPhone 5 (GSM+CDMA)",
            "systemVersion": "7.1",
            "browser": {
              "name": "Safari",
              "version": ""
            }
          },
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      ],
      "responseToMessageId": "a7e02231-6266-4831-9fbd-7b93fadfe876"
    }




    server.js:1 Received message
    {
      "id": "cf5e5e49-1e78-4f46-aee7-b8075719a12d",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "data": {
        "cmd": "ios.launch",
        "params": {
          "url": "defaultAppURL2222://"
        }
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message


    server.js:1 Received message
    {
      "id": "7921C046-80F4-4CBB-BD55-EA6EF0F6FFF9-2764-0000071F6C7B0C03",
      "data": {
        "cmd": "suspend"
      },
      "timestamp": 0,
      "toId": "server",
      "fromId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Suspending client
    server.js:1 Client disconnected. Waiting 10s before removal


    server.js:1 Received message
    {
      "id": "3143260d-a6dd-49ae-a72c-f8db3795ec59",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "42117049-6929-47e2-aaed-31e3d4c45e32",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "3143260d-a6dd-49ae-a72c-f8db3795ec59"
    }




    server.js:1 Received message
    {
      "id": "9c6d32bd-0564-45e8-bd43-50ef875c9ea5",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "f9d62a53-518c-4b59-94fc-191f0125f5e7",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "9c6d32bd-0564-45e8-bd43-50ef875c9ea5"
    }




    server.js:1 Received message
    {
      "id": "4aaa9a48-9dbc-4fc6-ae06-1d62f5ab17be",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "c56094e7-d6dc-40b4-a3be-16ae4e440a8a",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "4aaa9a48-9dbc-4fc6-ae06-1d62f5ab17be"
    }




    server.js:1 Received message
    {
      "id": "c768bdb5-1f87-4608-91db-1be0e84a96d7",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "967457fd-2c43-49b1-85d4-ce8bf5b7c057",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "c768bdb5-1f87-4608-91db-1be0e84a96d7"
    }




    server.js:1 Received message
    {
      "id": "1b97b1f8-a556-4b5a-95c6-24bf566ae33f",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "6b802bfb-e9f5-4406-8ab8-b1bbf472fd74",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "1b97b1f8-a556-4b5a-95c6-24bf566ae33f"
    }




    server.js:1 Received message
    {
      "id": "bd6a6943-47c6-4a4f-9bd1-787801b1f389",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "d661ff34-9f34-4b47-80c8-c7f3f96ac439",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "bd6a6943-47c6-4a4f-9bd1-787801b1f389"
    }




    server.js:1 Received message
    {
      "id": "48b41a82-d8bd-4e1c-84a7-75a4ea0b48f7",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "7f202faf-1cbb-4cfe-8c78-dcdde8de6ecf",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "48b41a82-d8bd-4e1c-84a7-75a4ea0b48f7"
    }




    server.js:1 Received message
    {
      "id": "3e0735b0-6764-47c5-ba5e-c435131d9e68",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "03e23e49-7258-46fe-81f0-56a997e66ad3",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "3e0735b0-6764-47c5-ba5e-c435131d9e68"
    }




    server.js:1 Received message
    {
      "id": "a1ceabc8-1c96-45a8-874a-9313b7345660",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "132fdbf5-6f1c-40d4-a58f-96639d23a990",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "a1ceabc8-1c96-45a8-874a-9313b7345660"
    }




    server.js:1 Received message
    {
      "id": "5ee4edfe-d91c-47c4-95e4-b6cd03daa489",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "f1e7cd95-fe05-473e-a7eb-61f135356dd9",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "5ee4edfe-d91c-47c4-95e4-b6cd03daa489"
    }


    server.js:1 Requesting removal from Clients list
    server.js:1 removing 82fcc6e4-f90e-454a-bdda-fe45a0b19b54


    server.js:1 Received message
    {
      "id": "e11decf8-61f4-4740-95a7-cc9dc353113a",
      "toId": "82fcc6e4-f90e-454a-bdda-fe45a0b19b54",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":120,"description":"recipient not found"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "77b04e5c-f7d4-4736-90d0-3beebd4c9454",
      "id": "fc720631-44bb-46d7-94b6-595f40d1e1a7",
      "data": {
        "error": {
          "code": 120,
          "description": "recipient not found"
        }
      },
      "responseToMessageId": "e11decf8-61f4-4740-95a7-cc9dc353113a"
    }



  2. Martin
    Admin
    Martin avatar
    811 posts

    Posted 09 May 2014 Link to this post

    Hello,

    Looking through the logs I noticed that the problem appears after the app under test is launched. This means that the app URL is correct and our agent manages to find and launch it. Right after that however the connection is lost. Based on that I suspect that the app under test is not setup correctly for testing.

    I've played a bit with our demo hybrid app and the only scenario where I was able to replicate this issue was after I removed the Mobile TestingCordova plugin from the project. This plugin is named com.telerik.mobiletesting and is added by default to the project. Just to verify that it is correctly added to the project on your side you can call cordova plugin command just before you build it. This should list all the added plugins. If the com.telerik.mobiletesting plugin is not listed, then please add it and rebuild the project.

    I hope this helps.

    Regards,
    Martin
    Telerik
     
    Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
     
  3. fang
    fang avatar
    15 posts
    Member since:
    Apr 2013

    Posted 09 May 2014 in reply to Martin Link to this post

    hi Martin,
    thank you very much for your answer, I have checked plugin is right there!

    jinkaiMacBook-Pro:DemoApplication pioneer$ cordova plugin ls
    [ 'com.telerik.mobiletesting' ]


    I repeatly check the doc
    http://docs.telerik.com/platform/mobile-testing/configure-your-app/ios   
    I miss this step : Go to Build Settings > Linking and add -add_load to Other Linker Flags.
    but after I change this ,I find many errors list below:

    Undefined symbols for architecture armv7s:
      "_CGRectFromString", referenced from:
          -[TSSyncCoder decodeCGRectForKey:] in libMobileTestingExtension.a(TSSyncCoder.o)
      "_UIGraphicsBeginImageContext", referenced from:
          -[UIView(TSExtend) imageByRenderingView] in libMobileTestingExtension.a(UIView+TSExtend.o)
      "_UIGraphicsGetImageFromCurrentImageContext", referenced from:
          -[UIView(TSExtend) imageByRenderingView] in libMobileTestingExtension.a(UIView+TSExtend.o)
          +[UIApplication(Imaging) appScreenshotAtOrientation:] in libMobileTestingExtension.a(UIApplication+Imaging.o)
      "_OBJC_CLASS_$_UITouch", referenced from:
          objc-class-ref in libMobileTestingExtension.a(TSTouch.o)
          objc-class-ref in libMobileTestingExtension.a(UIView+TSExtend.o)
          anon in libMobileTestingExtension.a(UITouch+Synthesis.o)
          objc-class-ref in libMobileTestingExtension.a(UITouch+Synthesis.o)
          l_OBJC_$_CATEGORY_UITouch_$_Synthesis in libMobileTestingExtension.a(UITouch+Synthesis.o)
      "_OBJC_CLASS_$_UISearchBar", referenced from:
          objc-class-ref in libMobileTestingExtension.a(UISearchBarTranslator.o)
          objc-class-ref in libMobileTestingExtension.a(UISearchBar+TSSearchBar.o)
          l_OBJC_$_CATEGORY_UISearchBar_$_TSSearchBar in libMobileTestingExtension.a(UISearchBar+TSSearchBar.o)
          objc-class-ref in libMobileTestingExtension.a(UISearchBarTaskProvider.o)
          objc-class-ref in libMobileTestingExtension.a(TSQueryStart+UIKit.o)
          objc-class-ref in libMobileTestingExtension.a(TSSearchBar.o)
         (maybe you meant: _OBJC_CLASS_$_UISearchBarDummyDelegate, _OBJC_CLASS_$_UISearchBarTaskProvider , _OBJC_CLASS_$_UISearchBarTranslator )
      "_OBJC_CLASS_$_UICollectionViewCell", referenced from:
          objc-class-ref in libMobileTestingExtension.a(UICollectionViewTranslator.o)
          objc-class-ref in libMobileTestingExtension.a(TSQueryBuilder.o)
          objc-class-ref in libMobileTestingExtension.a(TSQueryStart+UIKit.o)
          objc-class-ref in libMobileTestingExtension.a(TSCollectionView.o)
          objc-class-ref in libMobileTestingExtension.a(TSCollectionViewCell.o)
      "_OBJC_CLASS_$_UICollectionView", referenced from:










  4. fang
    fang avatar
    15 posts
    Member since:
    Apr 2013

    Posted 09 May 2014 in reply to Martin Link to this post

    source code https://www.dropbox.com/s/8ukeshkgac0jmqz/DemoApplication.zip,thanks again!
  5. Martin
    Admin
    Martin avatar
    811 posts

    Posted 09 May 2014 Link to this post

    Hello,

    I have reviewed your project and I think I have to clear out some confusion that our documentation might have caused. Note that our product supports Hybrid and Native apps. The documentation topics however, instruct how to setup native apps only. Those instructions are not valid for hybrid apps because our support for hybrid apps consists of a single plugin file that should be added to the project. Therefore when you build hybrid apps that you want to automate, all you have to do is just add the com.telerik.mobiletesting plugin to the project and build it. 

    In case you are automating our hybrid demo app located at /Telerik Mobile Testing/samples/Cordova/DemoApplication then you should know that for this project the plugin is pre-added. So all you have to do to automate it, is just adding the platform in question (say cordova platform add iOS) and build the generated xCode project without changing anything in it. Everything should be already set up for you.

    Let me know whether I can help further.

    Regards,
    Martin
    Telerik
     
    Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
     
  6. fang
    fang avatar
    15 posts
    Member since:
    Apr 2013

    Posted 11 May 2014 in reply to Martin Link to this post

    thank you so much for your patience.but I follow your introduction without any change to automate cordova project, but fail again with same error !

    source code here:https://www.dropbox.com/s/r4zvf2a8rwlwpa2/Cordova.zip

    jinkaiMacBook-Pro:Telerik Mobile Testing pioneer$ tmtest server --launch-test-runner -v
    Test Runner available at http://172.31.6.52:3001/testrunner
    Web Agent available at http://172.31.6.52:3001/
    Message Server available at ws://172.31.6.52:8081
    server.js:1 Client connecting...


    server.js:1 Sending message 
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "318601c1-5775-498a-bc77-b4d3b0655de9",
      "data": {
        "handshake": "hs_get_client_info"
      }
    }




    server.js:1 Received message
    {
      "id": "8c28a6d5-cce2-434e-9648-1bebcd78dba4",
      "toId": "server",
      "data": {
        "version": "2",
        "platformInfo": {
          "platformKey": "web",
          "name": "Safari",
          "platform": "MacIntel",
          "system": "MacOS",
          "systemVersion": "",
          "browser": {
            "name": "Safari",
            "version": "7.0.3"
          }
        },
        "capabilities": [
          "automation_test_runner"
        ],
        "identity": {
          "sharedKey": "5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68"
        }
      },
      "responseToMessageId": "318601c1-5775-498a-bc77-b4d3b0655de9",
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Calling callback stored for previous message


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "8caf53da-7b31-422d-bb39-3c45c683aefa",
      "data": {
        "handshake": "hs_accepted",
        "id": "cd127560-d486-43bc-8c43-3395fb6f17fe"
      },
      "responseToMessageId": "8c28a6d5-cce2-434e-9648-1bebcd78dba4"
    }


    server.js:1 Client connected
    server.js:1 Requesting registration of client
    server.js:1 Registering client
    server.js:1 creating sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68
    server.js:1 adding cd127560-d486-43bc-8c43-3395fb6f17fe to sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68


    server.js:1 Received message
    {
      "id": "9ef166ff-9f15-4a61-9e84-fe908aa9a488",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "fc104ae4-562e-43ee-83b5-3188f5a7ba03",
      "data": [],
      "responseToMessageId": "9ef166ff-9f15-4a61-9e84-fe908aa9a488"
    }


    server.js:1 Client connecting...


    server.js:1 Sending message 
    {
      "fromId": "server",
      "toId": "5d45df38-1a1b-4521-a717-69f9a6a264e1",
      "id": "6120e42b-e805-401d-b2d3-8d57a1db9ad2",
      "data": {
        "handshake": "hs_get_client_info"
      }
    }




    server.js:1 Received message
    {
      "fromId": "5d45df38-1a1b-4521-a717-69f9a6a264e1",
      "id": "619F7E3B-DA4A-4CD4-9D49-EB4DFDB46479-2764-000008D93BDAAE82",
      "responseToMessageId": "6120e42b-e805-401d-b2d3-8d57a1db9ad2",
      "data": {
        "capabilities": [
          "automation_execution_agent"
        ],
        "platformInfo": {
          "name": "iPhone",
          "platformKey": "ios",
          "system": "iPhone OS",
          "platform": "iPhone 5 (GSM+CDMA)",
          "systemVersion": "7.1",
          "browser": {
            "name": "Safari",
            "version": ""
          }
        },
        "version": "2",
        "identity": {
          "sharedKey": "5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68"
        }
      },
      "timestamp": 0,
      "toId": "server"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Calling callback stored for previous message


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "5d45df38-1a1b-4521-a717-69f9a6a264e1",
      "id": "6dd10e11-826f-47a7-9cf7-c9e4e1f42c7b",
      "data": {
        "handshake": "hs_accepted",
        "id": "5d45df38-1a1b-4521-a717-69f9a6a264e1"
      },
      "responseToMessageId": "619F7E3B-DA4A-4CD4-9D49-EB4DFDB46479-2764-000008D93BDAAE82"
    }


    server.js:1 Client connected
    server.js:1 Requesting registration of client
    server.js:1 Registering client
    server.js:1 adding 5d45df38-1a1b-4521-a717-69f9a6a264e1 to sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68


    server.js:1 Received message
    {
      "id": "38898A31-4B43-4A6E-91BB-A83652C0F680-2764-000008D942485546",
      "data": {
        "cmd": "suspend"
      },
      "timestamp": 0,
      "toId": "server",
      "fromId": "5d45df38-1a1b-4521-a717-69f9a6a264e1"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Suspending client
    server.js:1 Client disconnected. Waiting 10s before removal
    server.js:1 Client connecting...


    server.js:1 Sending message 
    {
      "fromId": "server",
      "toId": "1fa2d210-bcfe-4fd0-bd07-c975a830e1cc",
      "id": "76326251-482d-408d-b776-e92733bc5b05",
      "data": {
        "handshake": "hs_get_client_info"
      }
    }




    server.js:1 Received message
    {
      "fromId": "1fa2d210-bcfe-4fd0-bd07-c975a830e1cc",
      "id": "ACC71C8E-2BF9-4621-BEC9-31B332A5D87B-2764-000008D9425125FB",
      "responseToMessageId": "76326251-482d-408d-b776-e92733bc5b05",
      "data": {
        "capabilities": [
          "automation_execution_agent"
        ],
        "platformInfo": {
          "name": "iPhone",
          "platformKey": "ios",
          "system": "iPhone OS",
          "platform": "iPhone 5 (GSM+CDMA)",
          "systemVersion": "7.1",
          "browser": {
            "name": "Safari",
            "version": ""
          }
        },
        "version": "2",
        "identity": {
          "sharedKey": "5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68"
        }
      },
      "timestamp": 0,
      "toId": "server"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Calling callback stored for previous message


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "1fa2d210-bcfe-4fd0-bd07-c975a830e1cc",
      "id": "e590f218-bd5f-4971-a04e-7ba196cf8411",
      "data": {
        "handshake": "hs_accepted",
        "id": "1fa2d210-bcfe-4fd0-bd07-c975a830e1cc"
      },
      "responseToMessageId": "ACC71C8E-2BF9-4621-BEC9-31B332A5D87B-2764-000008D9425125FB"
    }


    server.js:1 Client connected
    server.js:1 Requesting registration of client
    server.js:1 Registering client
    server.js:1 adding 1fa2d210-bcfe-4fd0-bd07-c975a830e1cc to sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68


    server.js:1 Received message
    {
      "id": "B167DDD4-E9BE-4B85-88B6-7E71A4C31217-2764-000008D94EA21B00",
      "data": {
        "cmd": "suspend"
      },
      "timestamp": 0,
      "toId": "server",
      "fromId": "1fa2d210-bcfe-4fd0-bd07-c975a830e1cc"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Suspending client
    server.js:1 Client disconnected. Waiting 10s before removal
    server.js:1 Client connecting...


    server.js:1 Sending message 
    {
      "fromId": "server",
      "toId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "id": "3ba458bd-25e5-4bc8-98e9-4ce7536e7815",
      "data": {
        "handshake": "hs_get_client_info"
      }
    }




    server.js:1 Received message
    {
      "fromId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "id": "E6E221C3-DC53-4C8D-9E12-D75CEDAEC525-2764-000008D94EADBC53",
      "responseToMessageId": "3ba458bd-25e5-4bc8-98e9-4ce7536e7815",
      "data": {
        "capabilities": [
          "automation_execution_agent"
        ],
        "platformInfo": {
          "name": "iPhone",
          "platformKey": "ios",
          "system": "iPhone OS",
          "platform": "iPhone 5 (GSM+CDMA)",
          "systemVersion": "7.1",
          "browser": {
            "name": "Safari",
            "version": ""
          }
        },
        "version": "2",
        "identity": {
          "sharedKey": "5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68"
        }
      },
      "timestamp": 0,
      "toId": "server"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Calling callback stored for previous message


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "id": "66bb3532-08d8-4ad2-8a0d-e8bcd36b184e",
      "data": {
        "handshake": "hs_accepted",
        "id": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5"
      },
      "responseToMessageId": "E6E221C3-DC53-4C8D-9E12-D75CEDAEC525-2764-000008D94EADBC53"
    }


    server.js:1 Client connected
    server.js:1 Requesting registration of client
    server.js:1 Registering client
    server.js:1 adding dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5 to sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68
    server.js:1 Requesting removal from Clients list
    server.js:1 removing 5d45df38-1a1b-4521-a717-69f9a6a264e1


    server.js:1 Received message
    {
      "id": "661433eb-f37e-4b89-bd0c-6192f601555d",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "3c24cc40-d639-48f4-9a58-51df068db8bd",
      "data": [
        {
          "id": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
          "platformInfo": {
            "name": "iPhone",
            "platformKey": "ios",
            "system": "iPhone OS",
            "platform": "iPhone 5 (GSM+CDMA)",
            "systemVersion": "7.1",
            "browser": {
              "name": "Safari",
              "version": ""
            }
          },
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      ],
      "responseToMessageId": "661433eb-f37e-4b89-bd0c-6192f601555d"
    }




    server.js:1 Received message
    {
      "id": "e951236b-9968-46be-8560-6195cf54ef0b",
      "toId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "data": {
        "cmd": "ios.launch",
        "params": {
          "url": "defaultAppURL://"
        }
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message


    server.js:1 Received message
    {
      "id": "C83351C5-B172-4F5D-99B3-EFC476C93F25-2764-000008D95C05FEEC",
      "data": {
        "cmd": "suspend"
      },
      "timestamp": 0,
      "toId": "server",
      "fromId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Suspending client
    server.js:1 Client disconnected. Waiting 10s before removal
    server.js:1 Requesting removal from Clients list
    server.js:1 removing 1fa2d210-bcfe-4fd0-bd07-c975a830e1cc


    server.js:1 Received message
    {
      "id": "95eaa39e-2dac-499c-ab39-25c719e32970",
      "toId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "dadcb026-c2e0-4744-8e71-5de24cdda130",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "95eaa39e-2dac-499c-ab39-25c719e32970"
    }




    server.js:1 Received message
    {
      "id": "a1e12acf-57d3-4c42-a520-3dfd07f462d6",
      "toId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "02976ced-0850-4d6b-af3f-a94811e7e520",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "a1e12acf-57d3-4c42-a520-3dfd07f462d6"
    }




    server.js:1 Received message
    {
      "id": "31e46036-6ecd-4c0b-b8c6-1003b230f6e8",
      "toId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "924663d2-620a-442b-b077-1700edd24bf5",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "31e46036-6ecd-4c0b-b8c6-1003b230f6e8"
    }




    server.js:1 Received message
    {
      "id": "a809f940-003e-4f9c-b5fa-5f69b3098608",
      "toId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "18a44456-c812-48cb-983e-582120642711",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "a809f940-003e-4f9c-b5fa-5f69b3098608"
    }




    server.js:1 Received message
    {
      "id": "7b8758c4-2a7e-4eba-a34b-36d40f1a678a",
      "toId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "6584decf-815c-4421-adda-f852183abbdf",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "7b8758c4-2a7e-4eba-a34b-36d40f1a678a"
    }




    server.js:1 Received message
    {
      "id": "6038e9aa-6ed6-4bc0-bf68-9ce9bf6df906",
      "toId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "5f40a412-132c-4bdf-844b-abaa6c717df7",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "6038e9aa-6ed6-4bc0-bf68-9ce9bf6df906"
    }




    server.js:1 Received message
    {
      "id": "45c19d1d-0454-48f0-b626-d261a9a8b9b2",
      "toId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "4e39c84c-3be2-4c5e-9b9f-ec923e29ddea",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "45c19d1d-0454-48f0-b626-d261a9a8b9b2"
    }




    server.js:1 Received message
    {
      "id": "1ffdc94b-8eff-47f8-939c-25e12b380d80",
      "toId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "257ea3b2-50a8-4a3b-bd25-bb19206e5161",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "1ffdc94b-8eff-47f8-939c-25e12b380d80"
    }




    server.js:1 Received message
    {
      "id": "e3dd30ac-6fc1-472d-b650-39f72f325672",
      "toId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "cd6fa415-2ea6-4f57-9dcc-893034774aa9",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "e3dd30ac-6fc1-472d-b650-39f72f325672"
    }


    server.js:1 Requesting removal from Clients list
    server.js:1 removing dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5


    server.js:1 Received message
    {
      "id": "8386289c-6b81-4ae1-9c22-3ebdbd027472",
      "toId": "dbbe5ba9-0757-4881-8fa6-51ca8b5c21e5",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":120,"description":"recipient not found"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "ea93b1a2-7754-45db-a798-3e8ff7af4eac",
      "data": {
        "error": {
          "code": 120,
          "description": "recipient not found"
        }
      },
      "responseToMessageId": "8386289c-6b81-4ae1-9c22-3ebdbd027472"
    }




    server.js:1 Received message
    {
      "id": "60991564-2360-472b-bdbf-b4a8318e0639",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "cb793d7b-bc16-48c8-b302-5bafdd2db788",
      "data": [],
      "responseToMessageId": "60991564-2360-472b-bdbf-b4a8318e0639"
    }




    server.js:1 Received message
    {
      "id": "f15bd875-ca0e-414e-9258-6804632749b1",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "28436c1d-aaa8-44c6-8d52-342885afef9e",
      "data": [],
      "responseToMessageId": "f15bd875-ca0e-414e-9258-6804632749b1"
    }


    server.js:1 Client connecting...


    server.js:1 Sending message 
    {
      "fromId": "server",
      "toId": "1bcbe8aa-6802-4853-b04c-d510690cc9f0",
      "id": "8121ad0d-3e1e-45a6-b8e3-a8ab8f0e703e",
      "data": {
        "handshake": "hs_get_client_info"
      }
    }




    server.js:1 Received message
    {
      "fromId": "1bcbe8aa-6802-4853-b04c-d510690cc9f0",
      "id": "43182EE3-A0CB-4739-BEEE-998201371B53-2764-000008D9AFBFA3DE",
      "responseToMessageId": "8121ad0d-3e1e-45a6-b8e3-a8ab8f0e703e",
      "data": {
        "capabilities": [
          "automation_execution_agent"
        ],
        "platformInfo": {
          "name": "iPhone",
          "platformKey": "ios",
          "system": "iPhone OS",
          "platform": "iPhone 5 (GSM+CDMA)",
          "systemVersion": "7.1",
          "browser": {
            "name": "Safari",
            "version": ""
          }
        },
        "version": "2",
        "identity": {
          "sharedKey": "5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68"
        }
      },
      "timestamp": 0,
      "toId": "server"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Calling callback stored for previous message


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "1bcbe8aa-6802-4853-b04c-d510690cc9f0",
      "id": "989d5983-37d4-40e5-b97c-8ebe60a2b680",
      "data": {
        "handshake": "hs_accepted",
        "id": "1bcbe8aa-6802-4853-b04c-d510690cc9f0"
      },
      "responseToMessageId": "43182EE3-A0CB-4739-BEEE-998201371B53-2764-000008D9AFBFA3DE"
    }


    server.js:1 Client connected
    server.js:1 Requesting registration of client
    server.js:1 Registering client
    server.js:1 adding 1bcbe8aa-6802-4853-b04c-d510690cc9f0 to sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68


    server.js:1 Received message
    {
      "id": "65b47fa0-dd68-42fc-a5a8-09cc8d0774e2",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "8f44e674-2939-46f8-a0d1-20399f74c466",
      "data": [
        {
          "id": "1bcbe8aa-6802-4853-b04c-d510690cc9f0",
          "platformInfo": {
            "name": "iPhone",
            "platformKey": "ios",
            "system": "iPhone OS",
            "platform": "iPhone 5 (GSM+CDMA)",
            "systemVersion": "7.1",
            "browser": {
              "name": "Safari",
              "version": ""
            }
          },
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      ],
      "responseToMessageId": "65b47fa0-dd68-42fc-a5a8-09cc8d0774e2"
    }




    server.js:1 Received message
    {
      "id": "B1E9C433-6DEF-4840-909D-9491F5D55708-2764-000008D9CE7306B7",
      "data": {
        "cmd": "suspend"
      },
      "timestamp": 0,
      "toId": "server",
      "fromId": "1bcbe8aa-6802-4853-b04c-d510690cc9f0"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Suspending client
    server.js:1 Client disconnected. Waiting 10s before removal
    server.js:1 Client connecting...


    server.js:1 Sending message 
    {
      "fromId": "server",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "id": "4907165d-2dab-4ac4-b97c-2e82bc1b3cbb",
      "data": {
        "handshake": "hs_get_client_info"
      }
    }




    server.js:1 Received message
    {
      "fromId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "id": "69BFC77A-87B6-4F93-8774-DABD0AA2D7C7-2764-000008D9CE7C219B",
      "responseToMessageId": "4907165d-2dab-4ac4-b97c-2e82bc1b3cbb",
      "data": {
        "capabilities": [
          "automation_execution_agent"
        ],
        "platformInfo": {
          "name": "iPhone",
          "platformKey": "ios",
          "system": "iPhone OS",
          "platform": "iPhone 5 (GSM+CDMA)",
          "systemVersion": "7.1",
          "browser": {
            "name": "Safari",
            "version": ""
          }
        },
        "version": "2",
        "identity": {
          "sharedKey": "5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68"
        }
      },
      "timestamp": 0,
      "toId": "server"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Calling callback stored for previous message


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "id": "34685e57-3402-4a32-b8d2-8614896077ec",
      "data": {
        "handshake": "hs_accepted",
        "id": "14b0b4b5-2d61-4973-b7e8-5856ded87150"
      },
      "responseToMessageId": "69BFC77A-87B6-4F93-8774-DABD0AA2D7C7-2764-000008D9CE7C219B"
    }


    server.js:1 Client connected
    server.js:1 Requesting registration of client
    server.js:1 Registering client
    server.js:1 adding 14b0b4b5-2d61-4973-b7e8-5856ded87150 to sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68


    server.js:1 Received message
    {
      "id": "e03189b3-0851-44af-84d1-8570718e3562",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "86462aed-0e79-4841-a442-eeb86ea35e42",
      "data": [
        {
          "id": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
          "platformInfo": {
            "name": "iPhone",
            "platformKey": "ios",
            "system": "iPhone OS",
            "platform": "iPhone 5 (GSM+CDMA)",
            "systemVersion": "7.1",
            "browser": {
              "name": "Safari",
              "version": ""
            }
          },
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      ],
      "responseToMessageId": "e03189b3-0851-44af-84d1-8570718e3562"
    }




    server.js:1 Received message
    {
      "id": "dd5c3add-9cb0-4176-bbd8-47de957caa61",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "data": {
        "cmd": "ios.launch",
        "params": {
          "url": "defaultAppURL://"
        }
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message


    server.js:1 Received message
    {
      "id": "64E2BBAB-B3E7-42E6-9D8D-F6708302723C-2764-000008D9DC2768D4",
      "data": {
        "cmd": "suspend"
      },
      "timestamp": 0,
      "toId": "server",
      "fromId": "14b0b4b5-2d61-4973-b7e8-5856ded87150"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Suspending client
    server.js:1 Client disconnected. Waiting 10s before removal
    server.js:1 Requesting removal from Clients list
    server.js:1 removing 1bcbe8aa-6802-4853-b04c-d510690cc9f0


    server.js:1 Received message
    {
      "id": "8a6ce3e1-14d5-43a2-b408-f80292b4292b",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "945b5981-8219-4b34-b25b-c09c0df506de",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "8a6ce3e1-14d5-43a2-b408-f80292b4292b"
    }




    server.js:1 Received message
    {
      "id": "7076bc9e-2856-4b60-bb1e-8d455b761c82",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "0b612b4b-5ac0-481a-b092-6454cfa0a33d",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "7076bc9e-2856-4b60-bb1e-8d455b761c82"
    }




    server.js:1 Received message
    {
      "id": "6fc98bee-db8f-4ced-a0c9-22d1ad3f49e2",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "2b5492c2-2b91-45d3-8535-6002ffc2af5a",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "6fc98bee-db8f-4ced-a0c9-22d1ad3f49e2"
    }




    server.js:1 Received message
    {
      "id": "e154cc9b-5c4c-411c-a1c7-038fc7162946",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "5a5e1518-0c66-426f-a72a-c02424f6f802",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "e154cc9b-5c4c-411c-a1c7-038fc7162946"
    }




    server.js:1 Received message
    {
      "id": "bb4f312d-05cb-4e4c-9620-fc4cd2e5f34c",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "cc81f612-c0aa-408f-8bd9-a2e8716ac9b8",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "bb4f312d-05cb-4e4c-9620-fc4cd2e5f34c"
    }




    server.js:1 Received message
    {
      "id": "ec241f07-d091-45e2-a743-458a9efa6a13",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "a4c94600-ffd5-44f2-8134-45a57619df36",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "ec241f07-d091-45e2-a743-458a9efa6a13"
    }




    server.js:1 Received message
    {
      "id": "a9034119-307e-4606-b14f-77d2adeeda6e",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "b9deb96b-6831-4e8c-96dc-cf317d8348e4",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "a9034119-307e-4606-b14f-77d2adeeda6e"
    }




    server.js:1 Received message
    {
      "id": "b1d6c50e-a19c-4f43-a6e9-d42a96aa7260",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "da4cfb04-b5de-4b24-ab64-99121095550a",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "b1d6c50e-a19c-4f43-a6e9-d42a96aa7260"
    }




    server.js:1 Received message
    {
      "id": "16dfb90f-5157-4fcc-830c-f9ebe63b4d61",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "2ea20696-13ec-4d57-be71-1214ef2f4ea9",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "16dfb90f-5157-4fcc-830c-f9ebe63b4d61"
    }




    server.js:1 Received message
    {
      "id": "e6f04829-32f9-45df-bd6c-50fe2df1f67e",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "b3772cd5-8f45-4683-a25f-013781cc8614",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "e6f04829-32f9-45df-bd6c-50fe2df1f67e"
    }


    server.js:1 Requesting removal from Clients list
    server.js:1 removing 14b0b4b5-2d61-4973-b7e8-5856ded87150


    server.js:1 Received message
    {
      "id": "3bf010ce-3892-4fda-9c66-381bacd89ff2",
      "toId": "14b0b4b5-2d61-4973-b7e8-5856ded87150",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cd127560-d486-43bc-8c43-3395fb6f17fe"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":120,"description":"recipient not found"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cd127560-d486-43bc-8c43-3395fb6f17fe",
      "id": "58a654f6-d866-4a90-b2e3-a877ad8566f9",
      "data": {
        "error": {
          "code": 120,
          "description": "recipient not found"
        }
      },
      "responseToMessageId": "3bf010ce-3892-4fda-9c66-381bacd89ff2"
    }
  7. Martin
    Admin
    Martin avatar
    811 posts

    Posted 12 May 2014 Link to this post

    Hello,

    Thanks for sharing the test project and test. I was able to review them and confirm they are correctly set. I have executed your test against your app in several different devices (iPhone 5, iPhone 5s and iPad mini) and all executions succeeded. 

    Based on the above, I suspect that you are still observing the issue because of URL app duplication. To verify this please ensure that at any time your iPhone has only app that has app URL set to defaultAppURL. I have tried a scenario with two separate apps having the same URL and was able to replicate the exact same log output as you sent. So the problem seems to be that you have 2 (or more) separate apps all using the defaultAppURL url on your device. One of those apps is not setup correctly and the agent launches it instead of the correct one because their URLs match. At the same time you think that you are testing the correct one.

    Let me know whether removing all other previous versions of the app fixes the problem.

    Regards,
    Maritn
    Telerik
     
    Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
     
  8. fang
    fang avatar
    15 posts
    Member since:
    Apr 2013

    Posted 12 May 2014 in reply to Martin Link to this post

    hi Martin,
    1)My test iPhone is updated to iOS7.1 , I don't know whether or not has something wrong with it .

    2)Your advice to check app URL , I have done , to avoid this situation , I have changed to jinkai20140512, and now on my iPhone only left app download from app store , no debug app. but test result is same. you note in logs two devices appear, that maybe I test twice times on the same device.

    3) In order to clear the whole process , the following is my every step:
    step A: modify app URL in Xcode info to  jinkai20140512 and modify specs/tacoFormSpec.js to
    "launch demo application": {
    'ios': [
    ios.launch('jinkai20140512://')
    step B :build and run app to iPhone , then stop .

    step C: jinkaiMacBook-Pro:workspace pioneer$ cd Telerik\ Mobile\ Testing/
    jinkaiMacBook-Pro:Telerik Mobile Testing pioneer$ tmtest server --launch-test-runner -v

    step  D: open MobileTesing app on iPhone , and connect success.

    step E: refresh Agents and run tests

    all logs 

    Last login: Mon May 12 17:11:52 on ttys002
    jinkaiMacBook-Pro:~ pioneer$ cd workspace/
    jinkaiMacBook-Pro:workspace pioneer$ cd Telerik\ Mobile\ Testing/
    jinkaiMacBook-Pro:Telerik Mobile Testing pioneer$ tmtest server --launch-test-runner -v
    Test Runner available at http://172.31.6.52:3001/testrunner
    Web Agent available at http://172.31.6.52:3001/
    Message Server available at ws://172.31.6.52:8081
    server.js:1 Client connecting...


    server.js:1 Sending message 
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "0c81f4cd-b49d-4b67-baec-e92b538edbe8",
      "data": {
        "handshake": "hs_get_client_info"
      }
    }




    server.js:1 Received message
    {
      "id": "8c5bc1cf-3730-4bbd-8d4d-8fd4f5ee0027",
      "toId": "server",
      "data": {
        "version": "2",
        "platformInfo": {
          "platformKey": "web",
          "name": "Safari",
          "platform": "MacIntel",
          "system": "MacOS",
          "systemVersion": "",
          "browser": {
            "name": "Safari",
            "version": "7.0.3"
          }
        },
        "capabilities": [
          "automation_test_runner"
        ],
        "identity": {
          "sharedKey": "5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68"
        }
      },
      "responseToMessageId": "0c81f4cd-b49d-4b67-baec-e92b538edbe8",
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Calling callback stored for previous message


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "5507af1c-f76c-4f30-8822-67f480c27913",
      "data": {
        "handshake": "hs_accepted",
        "id": "cf041550-5c11-4f0d-b204-1afbfa425af7"
      },
      "responseToMessageId": "8c5bc1cf-3730-4bbd-8d4d-8fd4f5ee0027"
    }


    server.js:1 Client connected
    server.js:1 Requesting registration of client
    server.js:1 Registering client
    server.js:1 creating sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68
    server.js:1 adding cf041550-5c11-4f0d-b204-1afbfa425af7 to sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68


    server.js:1 Received message
    {
      "id": "3360c438-877e-4a66-b9f8-175691132c38",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "e625ba66-7f20-49af-8701-e8b2b4fb6192",
      "data": [],
      "responseToMessageId": "3360c438-877e-4a66-b9f8-175691132c38"
    }




    server.js:1 Received message
    {
      "id": "7e6a18f9-7dab-4b6a-9604-b722e3fb588a",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "7f8eae42-659a-47a4-ae0a-c86602bfdbd2",
      "data": [],
      "responseToMessageId": "7e6a18f9-7dab-4b6a-9604-b722e3fb588a"
    }


    server.js:1 Client connecting...


    server.js:1 Sending message 
    {
      "fromId": "server",
      "toId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "id": "d9eec5b3-0484-45fe-821a-97b316648f76",
      "data": {
        "handshake": "hs_get_client_info"
      }
    }




    server.js:1 Received message
    {
      "fromId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "id": "29B90746-2907-43DA-B25B-B5C3D0AD4166-2764-000009739C278D73",
      "responseToMessageId": "d9eec5b3-0484-45fe-821a-97b316648f76",
      "data": {
        "capabilities": [
          "automation_execution_agent"
        ],
        "platformInfo": {
          "name": "iPhone",
          "platformKey": "ios",
          "system": "iPhone OS",
          "platform": "iPhone 5 (GSM+CDMA)",
          "systemVersion": "7.1",
          "browser": {
            "name": "Safari",
            "version": ""
          }
        },
        "version": "2",
        "identity": {
          "sharedKey": "5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68"
        }
      },
      "timestamp": 0,
      "toId": "server"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Calling callback stored for previous message


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "id": "adb9c08c-b1af-4c6c-9094-95faad2612fa",
      "data": {
        "handshake": "hs_accepted",
        "id": "0991380e-e896-4ef5-aab7-9243c4cb94aa"
      },
      "responseToMessageId": "29B90746-2907-43DA-B25B-B5C3D0AD4166-2764-000009739C278D73"
    }


    server.js:1 Client connected
    server.js:1 Requesting registration of client
    server.js:1 Registering client
    server.js:1 adding 0991380e-e896-4ef5-aab7-9243c4cb94aa to sharedKey 5e2e79fa-a3b3-9b65-a9ee-dafa1d83fc68


    server.js:1 Received message
    {
      "id": "49eda048-e9bd-4094-bb64-be441dcc1412",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "cb2b2dc3-6045-4e48-b544-ae101df47f45",
      "data": [
        {
          "id": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
          "platformInfo": {
            "name": "iPhone",
            "platformKey": "ios",
            "system": "iPhone OS",
            "platform": "iPhone 5 (GSM+CDMA)",
            "systemVersion": "7.1",
            "browser": {
              "name": "Safari",
              "version": ""
            }
          },
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      ],
      "responseToMessageId": "49eda048-e9bd-4094-bb64-be441dcc1412"
    }




    server.js:1 Received message
    {
      "id": "1003d966-1081-4cd5-96fc-eb8159a6bd1d",
      "toId": "server",
      "data": {
        "cmd": "get-clients-with-capability",
        "params": {
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Getting clients with capability


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "dace2362-cbf7-4388-925d-43b472c7e54c",
      "data": [
        {
          "id": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
          "platformInfo": {
            "name": "iPhone",
            "platformKey": "ios",
            "system": "iPhone OS",
            "platform": "iPhone 5 (GSM+CDMA)",
            "systemVersion": "7.1",
            "browser": {
              "name": "Safari",
              "version": ""
            }
          },
          "capabilities": [
            "automation_execution_agent"
          ]
        }
      ],
      "responseToMessageId": "1003d966-1081-4cd5-96fc-eb8159a6bd1d"
    }




    server.js:1 Received message
    {
      "id": "2ce0e6eb-08be-4497-90cc-05795eecd3a1",
      "toId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "data": {
        "cmd": "ios.launch",
        "params": {
          "url": "jinkai20140512://"
        }
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Routing message


    server.js:1 Received message
    {
      "id": "B2184C9B-400A-4029-9A00-63A6D9BBCAFE-2764-0000097439BF2242",
      "data": {
        "cmd": "suspend"
      },
      "timestamp": 0,
      "toId": "server",
      "fromId": "0991380e-e896-4ef5-aab7-9243c4cb94aa"
    }


    server.js:1 Message is meant for server. Processing...
    server.js:1 Suspending client
    server.js:1 Client disconnected. Waiting 10s before removal


    server.js:1 Received message
    {
      "id": "cbf4573f-aefa-4717-9565-f40c3e631cde",
      "toId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "0d131b3a-20b7-4c4b-808b-b204d33defa2",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "cbf4573f-aefa-4717-9565-f40c3e631cde"
    }




    server.js:1 Received message
    {
      "id": "9c5fc30d-91e2-44e5-a260-db97aa313c5b",
      "toId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "6efcb88c-98f3-4057-9c0d-b7decc60d627",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "9c5fc30d-91e2-44e5-a260-db97aa313c5b"
    }




    server.js:1 Received message
    {
      "id": "809f915f-1ec0-4317-b75e-fd1d44a14a39",
      "toId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "92a3ffce-2ae6-4b72-91c1-186ec821521d",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "809f915f-1ec0-4317-b75e-fd1d44a14a39"
    }




    server.js:1 Received message
    {
      "id": "8894e1af-a4e8-47c8-9b7b-614ae455d0f9",
      "toId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "36fcc928-8f23-420d-88b5-745370c2f7ab",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "8894e1af-a4e8-47c8-9b7b-614ae455d0f9"
    }




    server.js:1 Received message
    {
      "id": "33e183f5-83ca-44f7-bfe2-2565b4ac5feb",
      "toId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "5afd95b2-69c6-4284-af10-9417bfb15b7f",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "33e183f5-83ca-44f7-bfe2-2565b4ac5feb"
    }




    server.js:1 Received message
    {
      "id": "aaf87e29-a423-46e4-a5d3-55e3a75d44e2",
      "toId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "97591fac-730d-47ca-8114-f19945d55e7e",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "aaf87e29-a423-46e4-a5d3-55e3a75d44e2"
    }




    server.js:1 Received message
    {
      "id": "a8c46c40-30a0-4645-a8c1-f78de823494f",
      "toId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "12a4a6f0-84dd-421a-b67b-a8e0edc335d8",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "a8c46c40-30a0-4645-a8c1-f78de823494f"
    }




    server.js:1 Received message
    {
      "id": "309e29a8-105a-4b3b-aa3b-7eec0d99d3b3",
      "toId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "3736f58d-f99b-428b-8977-986c22f6de81",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "309e29a8-105a-4b3b-aa3b-7eec0d99d3b3"
    }




    server.js:1 Received message
    {
      "id": "033677c2-e114-4855-ba07-ec879bbd53f3",
      "toId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":130,"description":"the recipient exists, but is not available"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "5a40d33a-ca19-4178-87c8-bcaf00ab9594",
      "data": {
        "error": {
          "code": 130,
          "description": "the recipient exists, but is not available"
        }
      },
      "responseToMessageId": "033677c2-e114-4855-ba07-ec879bbd53f3"
    }


    server.js:1 Requesting removal from Clients list
    server.js:1 removing 0991380e-e896-4ef5-aab7-9243c4cb94aa


    server.js:1 Received message
    {
      "id": "f77cb268-4df5-40d8-8e12-c33f8e83052e",
      "toId": "0991380e-e896-4ef5-aab7-9243c4cb94aa",
      "data": {
        "cmd": "coreApi.endExecution"
      },
      "fromId": "cf041550-5c11-4f0d-b204-1afbfa425af7"
    }


    server.js:1 Routing message
    server.js:1 {"error":{"code":120,"description":"recipient not found"}}


    server.js:1 Sending message reply
    {
      "fromId": "server",
      "toId": "cf041550-5c11-4f0d-b204-1afbfa425af7",
      "id": "87d182d6-1778-4d4b-b3d5-fae79262bcf9",
      "data": {
        "error": {
          "code": 120,
          "description": "recipient not found"
        }
      },
      "responseToMessageId": "f77cb268-4df5-40d8-8e12-c33f8e83052e"
    }



    ],  

    thanks again for your help!










  9. Martin
    Admin
    Martin avatar
    811 posts

    Posted 12 May 2014 Link to this post

    Hello,

    The iOS version is not related to the issue - I've successfully run your project on iOS 7.1.1 devices as well.

    Well since then problem can be observed on a "fresh" device with a completely new app URL, I start to suspect that it might be some kind of network connectivity issue. To verify this I would suggest that you try:
    • Running your sample app to a iOS simulator and execute sample tests against it. To deploy the Mobile Testing companion app on the simulator you have to run a python script as specified here.
    • Deploying your app and executing the tests against devices different that the iPhone you are currently using.
    • Another network to connect your devices to your server. Some specific network restrictions (like specified port numbers) when enforced might be the cause of the problem. Firewall settings can also break the communication. The more unrestricted (it could still be secured though) network you use, the better chance to track the cause of the problem.

    Let me know about your findings.

    Regards,
    Martin
    Telerik
     
    Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
     
  10. fang
    fang avatar
    15 posts
    Member since:
    Apr 2013

    Posted 13 May 2014 in reply to Martin Link to this post

    hello Martin,
    as you suggest I test

    1、Running sample app to a iOS simulator,it's OK , run correctly!

    2、Deploying app and executing the tests against another different iPhone ,fail all the same

    3 、Another network with two iPhone ,fail again  

    Two different network both use router to make a inner 
    network ,  I check my macbookpro setting , firewall is closed . So maybe your guess is right ,there is something wrong with network ,but till now I can't find the reason














  11. Martin
    Admin
    Martin avatar
    811 posts

    Posted 13 May 2014 Link to this post

    Hi,

    I am really sorry to hear that you are still observing this issue. Unfortunately I am running out of ideas what the cause might be. I have consulted with our development team and they suggested that we try using custom builds that log some important information which may help us resolve the glitch. The main idea is that we build and send you a custom build of the product that you run your side. Then you send us back the logs this build outputs. Would you mind participating in testing scenario like this?

    In case you agree to the approach above we will have to make our conversation private. Once I have your choice, I will let you know about how we will proceed.

    Looking forward to your reply.

    Regards,
    Martin
    Telerik
     
    Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
     
  12. Zbigniew
    Zbigniew avatar
    1 posts
    Member since:
    May 2014

    Posted 21 May 2014 Link to this post

    Hello,

    I've got problems with Cordova sample app as well. Please note that I was able to launch iOS native tests.

    Steeps that I performed:

    1. Go to Cordova/DemoApplication and install iOS platform
    2. Open generated xCode project and launch 'HelloCordova' app on simulator
    3. Switch to MobileTesting app, connect
    4. Go to Cordova/specs
    5. 'tmtest getagents' correctly shows connected iPhone simulator
    6. 'tmtest getsuites' or just simple 'tmtest' throws error:

    Finished with error(s): { [TypeError: Cannot call method 'launch' of undefined] fileName: 'tacoFormSpec.js' }









  13. Martin
    Admin
    Martin avatar
    811 posts

    Posted 22 May 2014 Link to this post

    Hello Zbigniew,

    I confirm that the problem you have faced is an issue with the current version of the product. Our developers are currently working on a fix for it and we will probably release a hot fix build that includes it in the next couple of weeks.

    Meanwhile as a temporary workaround you can just delete the wp8 step from your test. This should fix the issue. For your reference I am attaching the modified test suite file for you.

    Let me know whether further assistance is needed.
     

    Regards,
    Martin
    Telerik
     
    Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
     
  14. Martin
    Admin
    Martin avatar
    811 posts

    Posted 06 Jun 2014 Link to this post

    Hello Zbigniew,

    Just like to inform you that the hotfix for the issue is already live. Here are the steps you can take to upgrade to it:
    1. Remove the Mobile Testing agent app from your iOS device(s)
    2. On your desktop machine (Mac, Win) delete the Telerik Mobile Testing folder.
    3. Go into App Store on any of the devices you want to use as testing agents and download and install the new version of the Mobile Testing agent.
    4. On your desktop machine, Log into Telerik Platform website, go to Downloads-> Mobile Testing and download the Mobile Testing framework.

    Then follow the installation guide here.

    If need further assistance do not hesitate to contact us again.

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