{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/2243","repository_url":"https://api.github.com/repos/webdriverio/webdriverio","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/2243/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/2243/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/2243/events","html_url":"https://github.com/webdriverio/webdriverio/issues/2243","id":250387831,"number":2243,"title":"sauce-service - Before hook timeouts are reported as success on saucelabs ","user":{"login":"trinckler","id":18538113,"avatar_url":"https://avatars3.githubusercontent.com/u/18538113?v=4","gravatar_id":"","url":"https://api.github.com/users/trinckler","html_url":"https://github.com/trinckler","followers_url":"https://api.github.com/users/trinckler/followers","following_url":"https://api.github.com/users/trinckler/following{/other_user}","gists_url":"https://api.github.com/users/trinckler/gists{/gist_id}","starred_url":"https://api.github.com/users/trinckler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinckler/subscriptions","organizations_url":"https://api.github.com/users/trinckler/orgs","repos_url":"https://api.github.com/users/trinckler/repos","events_url":"https://api.github.com/users/trinckler/events{/privacy}","received_events_url":"https://api.github.com/users/trinckler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-15T17:53:15Z","updated_at":"2017-08-15T19:14:23Z","closed_at":null,"body":"## The problem\r\nSAUCE SERVICE is not updating the job when the test fails inside the before hook.\r\nWe try to open a page with an specific timeout, after that timeout the test fails but the sauce labs job is not updated. \r\n\r\n## Environment\r\n\r\n* WebdriverIO version:4.8.0\r\n* Node.js version:v6.10.2\r\n* [Standalone mode or wdio testrunner](http://webdriver.io/guide/getstarted/modes.html): WDIO\r\n* if wdio testrunner, running synchronous or asynchronous tests: synchronous\r\n* Additional wdio packages used (if applicable): Mocha\r\n\r\n## Details\r\nWe have a 40 concurrency suit and some pages never finish loading. Using   browser.timeouts('page load',60000); and the retries we skip that problem. if the page fails to load , the sauce service update_job is not called and the saucelabs test is marked as success. \r\n\r\n## Link to Selenium/WebdriverIO logs\r\nhttps://gist.github.com/trinckler/a6993afad9c175a5cb1b44d8107c1a29\r\nhttps://gist.github.com/trinckler/399a46cc150762a875bbea26bfa41fd9\r\n\r\n## Code To Reproduce Issue [ Good To Have ]\r\ndescribe(' describe text', () => {\r\n  before( () => {\r\n    browser.timeouts('page load', 900);\r\n    browser.url('http://webdriver.io/');\r\n  }, 3);\r\n  it('should be true', () => {\r\n    // something true\r\n  });\r\n});\r\n"},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/322561120","html_url":"https://github.com/webdriverio/webdriverio/issues/2243#issuecomment-322561120","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/2243","id":322561120,"user":{"login":"christian-bromann","id":731337,"avatar_url":"https://avatars2.githubusercontent.com/u/731337?v=4","gravatar_id":"","url":"https://api.github.com/users/christian-bromann","html_url":"https://github.com/christian-bromann","followers_url":"https://api.github.com/users/christian-bromann/followers","following_url":"https://api.github.com/users/christian-bromann/following{/other_user}","gists_url":"https://api.github.com/users/christian-bromann/gists{/gist_id}","starred_url":"https://api.github.com/users/christian-bromann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christian-bromann/subscriptions","organizations_url":"https://api.github.com/users/christian-bromann/orgs","repos_url":"https://api.github.com/users/christian-bromann/repos","events_url":"https://api.github.com/users/christian-bromann/events{/privacy}","received_events_url":"https://api.github.com/users/christian-bromann/received_events","type":"User","site_admin":false},"created_at":"2017-08-15T19:14:22Z","updated_at":"2017-08-15T19:14:22Z","body":"This issue was moved to webdriverio/wdio-sauce-service#34"}}
{"actor":{"display_login":"christian-bromann"}}