{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/macaca/issues/352","repository_url":"https://api.github.com/repos/alibaba/macaca","labels_url":"https://api.github.com/repos/alibaba/macaca/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/macaca/issues/352/comments","events_url":"https://api.github.com/repos/alibaba/macaca/issues/352/events","html_url":"https://github.com/alibaba/macaca/issues/352","id":194261050,"number":352,"title":"python setup(self)设置问题","user":{"login":"CleverPotato","id":19543033,"avatar_url":"https://avatars.githubusercontent.com/u/19543033?v=3","gravatar_id":"","url":"https://api.github.com/users/CleverPotato","html_url":"https://github.com/CleverPotato","followers_url":"https://api.github.com/users/CleverPotato/followers","following_url":"https://api.github.com/users/CleverPotato/following{/other_user}","gists_url":"https://api.github.com/users/CleverPotato/gists{/gist_id}","starred_url":"https://api.github.com/users/CleverPotato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CleverPotato/subscriptions","organizations_url":"https://api.github.com/users/CleverPotato/orgs","repos_url":"https://api.github.com/users/CleverPotato/repos","events_url":"https://api.github.com/users/CleverPotato/events{/privacy}","received_events_url":"https://api.github.com/users/CleverPotato/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-08T06:53:53Z","updated_at":"2016-12-08T07:04:29Z","closed_at":null,"body":"    def setUp(self):\r\n        self.driver = WebDriver(desired_caps, server_url)\r\n        self.driver.init()\r\n        self.driver.set_implicitly_wait(10)\r\n\r\n    def tearDown(self):\r\n        self.driver.quit()\r\n我想让macaca在运行每一条case的时候都走一遍setUp&tearDown,就写了如上代码，但是运行过程中只有WDA被一次次唤起，被测应用没有反应\r\n\r\nserver里是这种状态：\r\n>> proxy.js:62:22 [master] pid:5642 xctest client proxy error with: Error: socket hang up\r\n>> proxy.js:62:22 [master] pid:5642 xctest client proxy error with: Error: socket hang up\r\n>> proxy.js:62:22 [master] pid:5642 xctest client proxy error with: Error: socket hang up\r\n>> xctest-client.js:255:14 [master] pid:5642 Fail to start xctest: Error: socket hang up\r\n>> xctest-client.js:267:14 [master] pid:5642 killing deviceLogProc pid: 6256\r\n>> xctest-client.js:272:14 [master] pid:5642 killing runnerProc pid: 6259\r\n>> xctest-client.js:278:14 [master] pid:5642 killing iproxyProc pid: 6258\r\n>> responseHandler.js:54:12 [master] pid:5642 Send Error Respone to Client: Error: socket hang up\r\n>> responseHandler.js:60:14 [master] pid:5642 Error: socket hang up\r\n    at createHangUpError (_http_client.js:253:15)\r\n    at Socket.socketOnEnd (_http_client.js:345:23)\r\n    at emitNone (events.js:91:20)\r\n    at Socket.emit (events.js:185:7)\r\n    at endReadableNT (_stream_readable.js:974:12)\r\n    at _combinedTickCallback (internal/process/next_tick.js:74:11)\r\n    at process._tickCallback (internal/process/next_tick.js:98:9)"},"comment":{"url":"https://api.github.com/repos/alibaba/macaca/issues/comments/265668555","html_url":"https://github.com/alibaba/macaca/issues/352#issuecomment-265668555","issue_url":"https://api.github.com/repos/alibaba/macaca/issues/352","id":265668555,"user":{"login":"CleverPotato","id":19543033,"avatar_url":"https://avatars.githubusercontent.com/u/19543033?v=3","gravatar_id":"","url":"https://api.github.com/users/CleverPotato","html_url":"https://github.com/CleverPotato","followers_url":"https://api.github.com/users/CleverPotato/followers","following_url":"https://api.github.com/users/CleverPotato/following{/other_user}","gists_url":"https://api.github.com/users/CleverPotato/gists{/gist_id}","starred_url":"https://api.github.com/users/CleverPotato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CleverPotato/subscriptions","organizations_url":"https://api.github.com/users/CleverPotato/orgs","repos_url":"https://api.github.com/users/CleverPotato/repos","events_url":"https://api.github.com/users/CleverPotato/events{/privacy}","received_events_url":"https://api.github.com/users/CleverPotato/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T07:04:29Z","updated_at":"2016-12-08T07:04:29Z","body":"@zenzhu 是真机啊，而且macaca也不能自己把app装进设备里，要手动安装yin应用"}}
{"actor":{"display_login":"CleverPotato"}}