{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/macaca/issues/236","repository_url":"https://api.github.com/repos/alibaba/macaca","labels_url":"https://api.github.com/repos/alibaba/macaca/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/macaca/issues/236/comments","events_url":"https://api.github.com/repos/alibaba/macaca/issues/236/events","html_url":"https://github.com/alibaba/macaca/issues/236","id":179944896,"number":236,"title":"macaca提取公共资源后,运行时报\" Selenium error: A session is either terminated or not started\"","user":{"login":"haochuang","id":6335539,"avatar_url":"https://avatars.githubusercontent.com/u/6335539?v=3","gravatar_id":"","url":"https://api.github.com/users/haochuang","html_url":"https://github.com/haochuang","followers_url":"https://api.github.com/users/haochuang/followers","following_url":"https://api.github.com/users/haochuang/following{/other_user}","gists_url":"https://api.github.com/users/haochuang/gists{/gist_id}","starred_url":"https://api.github.com/users/haochuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haochuang/subscriptions","organizations_url":"https://api.github.com/users/haochuang/orgs","repos_url":"https://api.github.com/users/haochuang/repos","events_url":"https://api.github.com/users/haochuang/events{/privacy}","received_events_url":"https://api.github.com/users/haochuang/received_events","type":"User","site_admin":false},"labels":[{"id":342312527,"url":"https://api.github.com/repos/alibaba/macaca/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-29T03:33:25Z","updated_at":"2017-01-09T11:57:52Z","closed_at":"2016-10-03T13:08:39Z","body":"- **Macaca Version**: 1.1.0\n- **Macaca Doctor Logs**:\n\n```\nE:\\Ubuntu\\macaca\\autotest-macaca\\macaca-test\\desktop>macaca doctor\n\n  Node.js checklist:\n\n  node env: C:\\Program\\nodejs\\node.exe\n  node version: v6.6.0\n\n  Android checklist:\n\n  JAVA version is `1.8.0_91`\n  JAVA_HOME is set to `C:\\Program\\JAVA\\jdk1.8.0_91`\n  ANDROID_HOME is set to `E:\\CodeSpace\\ANDROID\\android-sdk-windows`\n  Platforms is set to `E:\\CodeSpace\\ANDROID\\android-sdk-windows\\platforms\\android-24`\n  Android tools is set to `E:\\CodeSpace\\ANDROID\\android-sdk-windows\\tools\\android.bat`\n  ANT_HOME is set to `C:\\Program\\ANT\\apache-ant-1.9.7`\n\n  Installed driver list:\n\n  android: 1.0.26\n  chrome: 1.0.1\n  electron: 1.1.4\n  ios: 1.0.36\n\n\n(node:5588) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property '0' of undefined\n```\n- **Operate System**:Win10 x86_64\n- **Chrome 版本**: 53.0.2785.116 m\n- **Programming Language**:\n\n<!-- Enter your issue details and log as much information as possible below this comment. -->\n\n问题描述：\n将测试代码结构化时候，把公共资源抽取到common，将用到的依赖抽取到utils，将写在BeforeEach中的项（比如baseUrl、timeout、windowContentSize、init等）提取到common中去，结果在执行的时候，会报\"Error response status: 6,  Selenium error: A session is either terminated or not started\"。\n当前的macaca版本是不是暂不支持这样操作呢？\n"},"comment":{"url":"https://api.github.com/repos/alibaba/macaca/issues/comments/271267567","html_url":"https://github.com/alibaba/macaca/issues/236#issuecomment-271267567","issue_url":"https://api.github.com/repos/alibaba/macaca/issues/236","id":271267567,"user":{"login":"AllocAndInit","id":19301846,"avatar_url":"https://avatars.githubusercontent.com/u/19301846?v=3","gravatar_id":"","url":"https://api.github.com/users/AllocAndInit","html_url":"https://github.com/AllocAndInit","followers_url":"https://api.github.com/users/AllocAndInit/followers","following_url":"https://api.github.com/users/AllocAndInit/following{/other_user}","gists_url":"https://api.github.com/users/AllocAndInit/gists{/gist_id}","starred_url":"https://api.github.com/users/AllocAndInit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllocAndInit/subscriptions","organizations_url":"https://api.github.com/users/AllocAndInit/orgs","repos_url":"https://api.github.com/users/AllocAndInit/repos","events_url":"https://api.github.com/users/AllocAndInit/events{/privacy}","received_events_url":"https://api.github.com/users/AllocAndInit/received_events","type":"User","site_admin":false},"created_at":"2017-01-09T11:57:52Z","updated_at":"2017-01-09T11:57:52Z","body":"@zenzhu @xudafeng @haochuang  对于同一个测试用例，我只想在 不同的设备进行测试，然后只把测试用例里面 desiredCap 的 udid 改变了，然后同样的操作也是会报相同的错误，请问这是什么原因了？"}}
{"actor":{"display_login":"AllocAndInit"}}