{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/7910","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/7910/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/7910/comments","events_url":"https://api.github.com/repos/appium/appium/issues/7910/events","html_url":"https://github.com/appium/appium/issues/7910","id":209372063,"number":7910,"title":"sessionNotFoundException when create session/quit driver for each test method. ","user":{"login":"vkvikaskmr","id":7553771,"avatar_url":"https://avatars.githubusercontent.com/u/7553771?v=3","gravatar_id":"","url":"https://api.github.com/users/vkvikaskmr","html_url":"https://github.com/vkvikaskmr","followers_url":"https://api.github.com/users/vkvikaskmr/followers","following_url":"https://api.github.com/users/vkvikaskmr/following{/other_user}","gists_url":"https://api.github.com/users/vkvikaskmr/gists{/gist_id}","starred_url":"https://api.github.com/users/vkvikaskmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkvikaskmr/subscriptions","organizations_url":"https://api.github.com/users/vkvikaskmr/orgs","repos_url":"https://api.github.com/users/vkvikaskmr/repos","events_url":"https://api.github.com/users/vkvikaskmr/events{/privacy}","received_events_url":"https://api.github.com/users/vkvikaskmr/received_events","type":"User","site_admin":false},"labels":[{"id":143265062,"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-22T07:19:47Z","updated_at":"2017-02-22T08:17:29Z","closed_at":null,"body":"## The problem\r\n\r\nFor a test scenario I need to create a driver session and quit driver for every test method as I want a clean state for each of the test methods. For that I am creating a new driver instance in the @BeforeMethod and quitting the driver in @AfterMethod. But only the first test method runs and subsequent tests fail after throwing SessionNotFoundException.\r\n\r\n## Environment\r\n\r\n* Appium version (or git revision) that exhibits the issue: 1.6.3\r\n* Desktop OS/version used to run Appium: Macosx 10.12\r\n* Node.js version (unless using Appium.app|exe): v7.0.0\r\n* Mobile platform/version under test: iOS 10.9\r\n* Real device or emulator/simulator: Real device\r\n* Appium CLI or Appium.app|exe: Appium CLI\r\n\r\n## Link to Appium logs\r\n\r\nhttps://gist.github.com/vkvikaskmr/b6b0ff43cf025a08628af9621cb7ccf2"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/281599605","html_url":"https://github.com/appium/appium/issues/7910#issuecomment-281599605","issue_url":"https://api.github.com/repos/appium/appium/issues/7910","id":281599605,"user":{"login":"vkvikaskmr","id":7553771,"avatar_url":"https://avatars.githubusercontent.com/u/7553771?v=3","gravatar_id":"","url":"https://api.github.com/users/vkvikaskmr","html_url":"https://github.com/vkvikaskmr","followers_url":"https://api.github.com/users/vkvikaskmr/followers","following_url":"https://api.github.com/users/vkvikaskmr/following{/other_user}","gists_url":"https://api.github.com/users/vkvikaskmr/gists{/gist_id}","starred_url":"https://api.github.com/users/vkvikaskmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkvikaskmr/subscriptions","organizations_url":"https://api.github.com/users/vkvikaskmr/orgs","repos_url":"https://api.github.com/users/vkvikaskmr/repos","events_url":"https://api.github.com/users/vkvikaskmr/events{/privacy}","received_events_url":"https://api.github.com/users/vkvikaskmr/received_events","type":"User","site_admin":false},"created_at":"2017-02-22T08:17:28Z","updated_at":"2017-02-22T08:17:28Z","body":"Is that a known issue that has been fixed recently?"}}
{"actor":{"display_login":"vkvikaskmr"}}