{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/sparrow/pulls/comments/31020638","id":31020638,"diff_hunk":"@@ -0,0 +1,46 @@\n+# -*- coding: utf-8 -*-\n+from __future__ import unicode_literals\n+\n+import logging\n+\n+logger = logging.getLogger(__name__)\n+\n+class SeleniumTimer(object):\n+\n+    def __init__(self, driver):\n+        self.driver = driver\n+        self.measurements = []\n+\n+    def start(self):\n+        self.start_timestamp = self.driver.execute_script(\"return new Date().getTime()\")\n+\n+    def mark_measurement_point(self, url):\n+        navigation_start = self.driver.execute_script(\"return window.performance.timing.navigationStart\")","path":"apps/testrunner/test_suites/selenium_tests/selenium_timer.py","position":null,"original_position":18,"commit_id":"9dd6d97206513359a31491e4b1c01fa2d117a290","original_commit_id":"54d63f8fe0f7ba4045aef3afa8fcee599200da10","user":{"login":"jcellary","id":7473307,"avatar_url":"https://avatars.githubusercontent.com/u/7473307?v=3","gravatar_id":"","url":"https://api.github.com/users/jcellary","html_url":"https://github.com/jcellary","followers_url":"https://api.github.com/users/jcellary/followers","following_url":"https://api.github.com/users/jcellary/following{/other_user}","gists_url":"https://api.github.com/users/jcellary/gists{/gist_id}","starred_url":"https://api.github.com/users/jcellary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcellary/subscriptions","organizations_url":"https://api.github.com/users/jcellary/orgs","repos_url":"https://api.github.com/users/jcellary/repos","events_url":"https://api.github.com/users/jcellary/events{/privacy}","received_events_url":"https://api.github.com/users/jcellary/received_events","type":"User","site_admin":false},"body":"Of course Władek, how come I didn't come up with this idea, you are a genius! Thank you for your valuable input!! ;)","created_at":"2015-05-26T10:22:07Z","updated_at":"2015-05-26T10:22:07Z","html_url":"https://github.com/Wikia/sparrow/pull/22#discussion_r31020638","pull_request_url":"https://api.github.com/repos/Wikia/sparrow/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/Wikia/sparrow/pulls/comments/31020638"},"html":{"href":"https://github.com/Wikia/sparrow/pull/22#discussion_r31020638"},"pull_request":{"href":"https://api.github.com/repos/Wikia/sparrow/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/sparrow/pulls/22","id":36145220,"html_url":"https://github.com/Wikia/sparrow/pull/22","diff_url":"https://github.com/Wikia/sparrow/pull/22.diff","patch_url":"https://github.com/Wikia/sparrow/pull/22.patch","issue_url":"https://api.github.com/repos/Wikia/sparrow/issues/22","number":22,"state":"open","locked":false,"title":"Added Selenium Performance Tests","user":{"login":"jcellary","id":7473307,"avatar_url":"https://avatars.githubusercontent.com/u/7473307?v=3","gravatar_id":"","url":"https://api.github.com/users/jcellary","html_url":"https://github.com/jcellary","followers_url":"https://api.github.com/users/jcellary/followers","following_url":"https://api.github.com/users/jcellary/following{/other_user}","gists_url":"https://api.github.com/users/jcellary/gists{/gist_id}","starred_url":"https://api.github.com/users/jcellary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcellary/subscriptions","organizations_url":"https://api.github.com/users/jcellary/orgs","repos_url":"https://api.github.com/users/jcellary/repos","events_url":"https://api.github.com/users/jcellary/events{/privacy}","received_events_url":"https://api.github.com/users/jcellary/received_events","type":"User","site_admin":false},"body":"Added Selenium Performance Tests. Some parts still require polishing - especially the simple test suite and result processing, but we can do that later on to not get into conflicts. Test should start a browser enter the muppet main page and provide the most important frontend metrics in the result dictionary.","created_at":"2015-05-25T15:15:52Z","updated_at":"2015-05-26T10:22:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f58b0d616db83239233a957eac79e4a91adea49e","assignee":{"login":"harnash","id":783242,"avatar_url":"https://avatars.githubusercontent.com/u/783242?v=3","gravatar_id":"","url":"https://api.github.com/users/harnash","html_url":"https://github.com/harnash","followers_url":"https://api.github.com/users/harnash/followers","following_url":"https://api.github.com/users/harnash/following{/other_user}","gists_url":"https://api.github.com/users/harnash/gists{/gist_id}","starred_url":"https://api.github.com/users/harnash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harnash/subscriptions","organizations_url":"https://api.github.com/users/harnash/orgs","repos_url":"https://api.github.com/users/harnash/repos","events_url":"https://api.github.com/users/harnash/events{/privacy}","received_events_url":"https://api.github.com/users/harnash/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/sparrow/pulls/22/commits","review_comments_url":"https://api.github.com/repos/Wikia/sparrow/pulls/22/comments","review_comment_url":"https://api.github.com/repos/Wikia/sparrow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/sparrow/issues/22/comments","statuses_url":"https://api.github.com/repos/Wikia/sparrow/statuses/9dd6d97206513359a31491e4b1c01fa2d117a290","head":{"label":"Wikia:selenium","ref":"selenium","sha":"9dd6d97206513359a31491e4b1c01fa2d117a290","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":34334701,"name":"sparrow","full_name":"Wikia/sparrow","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/sparrow","description":"","fork":false,"url":"https://api.github.com/repos/Wikia/sparrow","forks_url":"https://api.github.com/repos/Wikia/sparrow/forks","keys_url":"https://api.github.com/repos/Wikia/sparrow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/sparrow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/sparrow/teams","hooks_url":"https://api.github.com/repos/Wikia/sparrow/hooks","issue_events_url":"https://api.github.com/repos/Wikia/sparrow/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/sparrow/events","assignees_url":"https://api.github.com/repos/Wikia/sparrow/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/sparrow/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/sparrow/tags","blobs_url":"https://api.github.com/repos/Wikia/sparrow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/sparrow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/sparrow/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/sparrow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/sparrow/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/sparrow/languages","stargazers_url":"https://api.github.com/repos/Wikia/sparrow/stargazers","contributors_url":"https://api.github.com/repos/Wikia/sparrow/contributors","subscribers_url":"https://api.github.com/repos/Wikia/sparrow/subscribers","subscription_url":"https://api.github.com/repos/Wikia/sparrow/subscription","commits_url":"https://api.github.com/repos/Wikia/sparrow/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/sparrow/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/sparrow/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/sparrow/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/sparrow/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/sparrow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/sparrow/merges","archive_url":"https://api.github.com/repos/Wikia/sparrow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/sparrow/downloads","issues_url":"https://api.github.com/repos/Wikia/sparrow/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/sparrow/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/sparrow/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/sparrow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/sparrow/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/sparrow/releases{/id}","created_at":"2015-04-21T15:12:14Z","updated_at":"2015-05-12T09:55:38Z","pushed_at":"2015-05-26T10:21:05Z","git_url":"git://github.com/Wikia/sparrow.git","ssh_url":"git@github.com:Wikia/sparrow.git","clone_url":"https://github.com/Wikia/sparrow.git","svn_url":"https://github.com/Wikia/sparrow","homepage":null,"size":848,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"Wikia:master","ref":"master","sha":"9d1a95de602fccc3101abea2a0056e05d9af05c0","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":34334701,"name":"sparrow","full_name":"Wikia/sparrow","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/sparrow","description":"","fork":false,"url":"https://api.github.com/repos/Wikia/sparrow","forks_url":"https://api.github.com/repos/Wikia/sparrow/forks","keys_url":"https://api.github.com/repos/Wikia/sparrow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/sparrow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/sparrow/teams","hooks_url":"https://api.github.com/repos/Wikia/sparrow/hooks","issue_events_url":"https://api.github.com/repos/Wikia/sparrow/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/sparrow/events","assignees_url":"https://api.github.com/repos/Wikia/sparrow/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/sparrow/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/sparrow/tags","blobs_url":"https://api.github.com/repos/Wikia/sparrow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/sparrow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/sparrow/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/sparrow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/sparrow/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/sparrow/languages","stargazers_url":"https://api.github.com/repos/Wikia/sparrow/stargazers","contributors_url":"https://api.github.com/repos/Wikia/sparrow/contributors","subscribers_url":"https://api.github.com/repos/Wikia/sparrow/subscribers","subscription_url":"https://api.github.com/repos/Wikia/sparrow/subscription","commits_url":"https://api.github.com/repos/Wikia/sparrow/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/sparrow/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/sparrow/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/sparrow/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/sparrow/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/sparrow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/sparrow/merges","archive_url":"https://api.github.com/repos/Wikia/sparrow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/sparrow/downloads","issues_url":"https://api.github.com/repos/Wikia/sparrow/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/sparrow/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/sparrow/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/sparrow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/sparrow/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/sparrow/releases{/id}","created_at":"2015-04-21T15:12:14Z","updated_at":"2015-05-12T09:55:38Z","pushed_at":"2015-05-26T10:21:05Z","git_url":"git://github.com/Wikia/sparrow.git","ssh_url":"git@github.com:Wikia/sparrow.git","clone_url":"https://github.com/Wikia/sparrow.git","svn_url":"https://github.com/Wikia/sparrow","homepage":null,"size":848,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/sparrow/pulls/22"},"html":{"href":"https://github.com/Wikia/sparrow/pull/22"},"issue":{"href":"https://api.github.com/repos/Wikia/sparrow/issues/22"},"comments":{"href":"https://api.github.com/repos/Wikia/sparrow/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/sparrow/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/sparrow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/sparrow/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/sparrow/statuses/9dd6d97206513359a31491e4b1c01fa2d117a290"}}}}