{"action":"created","comment":{"url":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments/66524698","id":66524698,"diff_hunk":"@@ -0,0 +1,159 @@\n+---\n+layout: docs\n+title: Getting Started\n+permalink: /documentation/getting-started/\n+---\n+# Getting Started\n+\n+This guide provides step-by-step instructions on how to create a functional web test with TestCafe and contains the following sections.\n+\n+* [Installing TestCafe](#installing-testcafe)\n+* [Creating a Test](#creating-a-test)\n+* [Running the Test](#running-the-test)\n+* [Viewing the Test Results](#viewing-the-test-results)\n+* [Writing Test Code](#writing-test-code)\n+  * [Performing Actions on the Page](#performing-actions-on-the-page)\n+  * [Observing the Page State](#observing-the-page-state)\n+  * [Assertions](#assertions)\n+\n+## Installing TestCafe\n+\n+Make sure that [Node.js](https://nodejs.org/) and [npm](https://www.npmjs.com/) are installed on your computer, then run a single command:\n+\n+```bash\n+npm install -g testcafe\n+```\n+\n+## Creating a Test\n+\n+To create a test, create a new .js file anywhere on your computer.\n+This file must have the special structure: tests must be organized into fixtures. So, first you need to declare a fixture by using the [fixture](../test-api/test-code-structure.md#fixtures) function.\n+\n+You can optionally specify a start page URL for the fixture by using the [page](../test-api/test-code-structure.md#specifying-the-start-webpage) function.\n+In this tutorial, you will create a test for the [http://testcafe.devexpress.com/example](http://testcafe.devexpress.com/example) sample page.\n+\n+Then create the [test](/test-api/test-code-structure.md#tests) function where you will further place test code.\n+\n+```js\n+fixture `Getting Started`\n+    .page('http://testcafe.devexpress.com/example');\n+\n+test('Test1', async t => {\n+    // Test code\n+});\n+```","path":"docs/articles/documentation/getting-started/index.md","position":44,"original_position":44,"commit_id":"97e73a2a66ee46d0a39c8f8217786e92ccb41f30","original_commit_id":"97e73a2a66ee46d0a39c8f8217786e92ccb41f30","user":{"login":"inikulin","id":453071,"avatar_url":"https://avatars.githubusercontent.com/u/453071?v=3","gravatar_id":"","url":"https://api.github.com/users/inikulin","html_url":"https://github.com/inikulin","followers_url":"https://api.github.com/users/inikulin/followers","following_url":"https://api.github.com/users/inikulin/following{/other_user}","gists_url":"https://api.github.com/users/inikulin/gists{/gist_id}","starred_url":"https://api.github.com/users/inikulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inikulin/subscriptions","organizations_url":"https://api.github.com/users/inikulin/orgs","repos_url":"https://api.github.com/users/inikulin/repos","events_url":"https://api.github.com/users/inikulin/events{/privacy}","received_events_url":"https://api.github.com/users/inikulin/received_events","type":"User","site_admin":false},"body":"There is a third option: describe code structure using comments in code","created_at":"2016-06-09T21:24:33Z","updated_at":"2016-06-09T21:24:33Z","html_url":"https://github.com/DevExpress/testcafe/pull/534#discussion_r66524698","pull_request_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/534","_links":{"self":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments/66524698"},"html":{"href":"https://github.com/DevExpress/testcafe/pull/534#discussion_r66524698"},"pull_request":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/534"}}},"pull_request":{"url":"https://api.github.com/repos/DevExpress/testcafe/pulls/534","id":69972229,"html_url":"https://github.com/DevExpress/testcafe/pull/534","diff_url":"https://github.com/DevExpress/testcafe/pull/534.diff","patch_url":"https://github.com/DevExpress/testcafe/pull/534.patch","issue_url":"https://api.github.com/repos/DevExpress/testcafe/issues/534","number":534,"state":"open","locked":false,"title":"[docs] GS added","user":{"login":"MargaritaLoseva","id":12034505,"avatar_url":"https://avatars.githubusercontent.com/u/12034505?v=3","gravatar_id":"","url":"https://api.github.com/users/MargaritaLoseva","html_url":"https://github.com/MargaritaLoseva","followers_url":"https://api.github.com/users/MargaritaLoseva/followers","following_url":"https://api.github.com/users/MargaritaLoseva/following{/other_user}","gists_url":"https://api.github.com/users/MargaritaLoseva/gists{/gist_id}","starred_url":"https://api.github.com/users/MargaritaLoseva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MargaritaLoseva/subscriptions","organizations_url":"https://api.github.com/users/MargaritaLoseva/orgs","repos_url":"https://api.github.com/users/MargaritaLoseva/repos","events_url":"https://api.github.com/users/MargaritaLoseva/events{/privacy}","received_events_url":"https://api.github.com/users/MargaritaLoseva/received_events","type":"User","site_admin":false},"body":"closes #283 \r\n\\cc @inikulin, @VasilyStrelyaev  \r\nPlease, review only the text (Since test API is not complete, code snippets may not work properly and an image is not added yet. Links to API sections don't work as well.)","created_at":"2016-05-13T10:09:21Z","updated_at":"2016-06-09T21:24:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de72bb86017af023b9a052c1b65862f33586b22e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/534/commits","review_comments_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/534/comments","review_comment_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DevExpress/testcafe/issues/534/comments","statuses_url":"https://api.github.com/repos/DevExpress/testcafe/statuses/97e73a2a66ee46d0a39c8f8217786e92ccb41f30","head":{"label":"MargaritaLoseva:GS","ref":"GS","sha":"97e73a2a66ee46d0a39c8f8217786e92ccb41f30","user":{"login":"MargaritaLoseva","id":12034505,"avatar_url":"https://avatars.githubusercontent.com/u/12034505?v=3","gravatar_id":"","url":"https://api.github.com/users/MargaritaLoseva","html_url":"https://github.com/MargaritaLoseva","followers_url":"https://api.github.com/users/MargaritaLoseva/followers","following_url":"https://api.github.com/users/MargaritaLoseva/following{/other_user}","gists_url":"https://api.github.com/users/MargaritaLoseva/gists{/gist_id}","starred_url":"https://api.github.com/users/MargaritaLoseva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MargaritaLoseva/subscriptions","organizations_url":"https://api.github.com/users/MargaritaLoseva/orgs","repos_url":"https://api.github.com/users/MargaritaLoseva/repos","events_url":"https://api.github.com/users/MargaritaLoseva/events{/privacy}","received_events_url":"https://api.github.com/users/MargaritaLoseva/received_events","type":"User","site_admin":false},"repo":{"id":50342524,"name":"testcafe","full_name":"MargaritaLoseva/testcafe","owner":{"login":"MargaritaLoseva","id":12034505,"avatar_url":"https://avatars.githubusercontent.com/u/12034505?v=3","gravatar_id":"","url":"https://api.github.com/users/MargaritaLoseva","html_url":"https://github.com/MargaritaLoseva","followers_url":"https://api.github.com/users/MargaritaLoseva/followers","following_url":"https://api.github.com/users/MargaritaLoseva/following{/other_user}","gists_url":"https://api.github.com/users/MargaritaLoseva/gists{/gist_id}","starred_url":"https://api.github.com/users/MargaritaLoseva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MargaritaLoseva/subscriptions","organizations_url":"https://api.github.com/users/MargaritaLoseva/orgs","repos_url":"https://api.github.com/users/MargaritaLoseva/repos","events_url":"https://api.github.com/users/MargaritaLoseva/events{/privacy}","received_events_url":"https://api.github.com/users/MargaritaLoseva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MargaritaLoseva/testcafe","description":"","fork":true,"url":"https://api.github.com/repos/MargaritaLoseva/testcafe","forks_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/forks","keys_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/teams","hooks_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/hooks","issue_events_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/issues/events{/number}","events_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/events","assignees_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/assignees{/user}","branches_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/branches{/branch}","tags_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/tags","blobs_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/git/refs{/sha}","trees_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/statuses/{sha}","languages_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/languages","stargazers_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/stargazers","contributors_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/contributors","subscribers_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/subscribers","subscription_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/subscription","commits_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/commits{/sha}","git_commits_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/git/commits{/sha}","comments_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/comments{/number}","issue_comment_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/issues/comments{/number}","contents_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/contents/{+path}","compare_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/merges","archive_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/downloads","issues_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/issues{/number}","pulls_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/pulls{/number}","milestones_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/milestones{/number}","notifications_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/labels{/name}","releases_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/releases{/id}","deployments_url":"https://api.github.com/repos/MargaritaLoseva/testcafe/deployments","created_at":"2016-01-25T10:12:58Z","updated_at":"2016-01-25T10:13:00Z","pushed_at":"2016-06-09T14:38:10Z","git_url":"git://github.com/MargaritaLoseva/testcafe.git","ssh_url":"git@github.com:MargaritaLoseva/testcafe.git","clone_url":"https://github.com/MargaritaLoseva/testcafe.git","svn_url":"https://github.com/MargaritaLoseva/testcafe","homepage":null,"size":25560,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DevExpress:master","ref":"master","sha":"a564e958198f5aa65c6cfd47f47ce37704302859","user":{"login":"DevExpress","id":4243232,"avatar_url":"https://avatars.githubusercontent.com/u/4243232?v=3","gravatar_id":"","url":"https://api.github.com/users/DevExpress","html_url":"https://github.com/DevExpress","followers_url":"https://api.github.com/users/DevExpress/followers","following_url":"https://api.github.com/users/DevExpress/following{/other_user}","gists_url":"https://api.github.com/users/DevExpress/gists{/gist_id}","starred_url":"https://api.github.com/users/DevExpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevExpress/subscriptions","organizations_url":"https://api.github.com/users/DevExpress/orgs","repos_url":"https://api.github.com/users/DevExpress/repos","events_url":"https://api.github.com/users/DevExpress/events{/privacy}","received_events_url":"https://api.github.com/users/DevExpress/received_events","type":"Organization","site_admin":false},"repo":{"id":34262857,"name":"testcafe","full_name":"DevExpress/testcafe","owner":{"login":"DevExpress","id":4243232,"avatar_url":"https://avatars.githubusercontent.com/u/4243232?v=3","gravatar_id":"","url":"https://api.github.com/users/DevExpress","html_url":"https://github.com/DevExpress","followers_url":"https://api.github.com/users/DevExpress/followers","following_url":"https://api.github.com/users/DevExpress/following{/other_user}","gists_url":"https://api.github.com/users/DevExpress/gists{/gist_id}","starred_url":"https://api.github.com/users/DevExpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevExpress/subscriptions","organizations_url":"https://api.github.com/users/DevExpress/orgs","repos_url":"https://api.github.com/users/DevExpress/repos","events_url":"https://api.github.com/users/DevExpress/events{/privacy}","received_events_url":"https://api.github.com/users/DevExpress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DevExpress/testcafe","description":"","fork":false,"url":"https://api.github.com/repos/DevExpress/testcafe","forks_url":"https://api.github.com/repos/DevExpress/testcafe/forks","keys_url":"https://api.github.com/repos/DevExpress/testcafe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevExpress/testcafe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevExpress/testcafe/teams","hooks_url":"https://api.github.com/repos/DevExpress/testcafe/hooks","issue_events_url":"https://api.github.com/repos/DevExpress/testcafe/issues/events{/number}","events_url":"https://api.github.com/repos/DevExpress/testcafe/events","assignees_url":"https://api.github.com/repos/DevExpress/testcafe/assignees{/user}","branches_url":"https://api.github.com/repos/DevExpress/testcafe/branches{/branch}","tags_url":"https://api.github.com/repos/DevExpress/testcafe/tags","blobs_url":"https://api.github.com/repos/DevExpress/testcafe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevExpress/testcafe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevExpress/testcafe/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevExpress/testcafe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevExpress/testcafe/statuses/{sha}","languages_url":"https://api.github.com/repos/DevExpress/testcafe/languages","stargazers_url":"https://api.github.com/repos/DevExpress/testcafe/stargazers","contributors_url":"https://api.github.com/repos/DevExpress/testcafe/contributors","subscribers_url":"https://api.github.com/repos/DevExpress/testcafe/subscribers","subscription_url":"https://api.github.com/repos/DevExpress/testcafe/subscription","commits_url":"https://api.github.com/repos/DevExpress/testcafe/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevExpress/testcafe/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevExpress/testcafe/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevExpress/testcafe/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevExpress/testcafe/contents/{+path}","compare_url":"https://api.github.com/repos/DevExpress/testcafe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevExpress/testcafe/merges","archive_url":"https://api.github.com/repos/DevExpress/testcafe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevExpress/testcafe/downloads","issues_url":"https://api.github.com/repos/DevExpress/testcafe/issues{/number}","pulls_url":"https://api.github.com/repos/DevExpress/testcafe/pulls{/number}","milestones_url":"https://api.github.com/repos/DevExpress/testcafe/milestones{/number}","notifications_url":"https://api.github.com/repos/DevExpress/testcafe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevExpress/testcafe/labels{/name}","releases_url":"https://api.github.com/repos/DevExpress/testcafe/releases{/id}","deployments_url":"https://api.github.com/repos/DevExpress/testcafe/deployments","created_at":"2015-04-20T13:43:28Z","updated_at":"2016-05-06T11:53:58Z","pushed_at":"2016-06-09T14:38:10Z","git_url":"git://github.com/DevExpress/testcafe.git","ssh_url":"git@github.com:DevExpress/testcafe.git","clone_url":"https://github.com/DevExpress/testcafe.git","svn_url":"https://github.com/DevExpress/testcafe","homepage":null,"size":25927,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":66,"forks":14,"open_issues":66,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/534"},"html":{"href":"https://github.com/DevExpress/testcafe/pull/534"},"issue":{"href":"https://api.github.com/repos/DevExpress/testcafe/issues/534"},"comments":{"href":"https://api.github.com/repos/DevExpress/testcafe/issues/534/comments"},"review_comments":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/534/comments"},"review_comment":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/534/commits"},"statuses":{"href":"https://api.github.com/repos/DevExpress/testcafe/statuses/97e73a2a66ee46d0a39c8f8217786e92ccb41f30"}}}}
{"actor":{"display_login":"inikulin"}}