{"id":26347273,"url":"https://github.com/survi218/protractor-jasmine-testing","last_synced_at":"2025-03-16T07:16:27.864Z","repository":{"id":139643375,"uuid":"92643670","full_name":"survi218/protractor-jasmine-testing","owner":"survi218","description":"End-to-End Testing Angular App with protractor","archived":false,"fork":false,"pushed_at":"2017-05-28T23:00:59.000Z","size":36371,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T21:57:39.218Z","etag":null,"topics":["angularjs","end-to-end-testing","jasmine-tests","protractor-e2e-test","protractor-tests","selenium-tests","webdrivermanager"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/survi218.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-28T06:18:29.000Z","updated_at":"2017-05-28T23:14:11.000Z","dependencies_parsed_at":"2023-07-23T08:03:51.708Z","dependency_job_id":null,"html_url":"https://github.com/survi218/protractor-jasmine-testing","commit_stats":null,"previous_names":["survi218/protractor-jasmine-testing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/survi218%2Fprotractor-jasmine-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/survi218%2Fprotractor-jasmine-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/survi218%2Fprotractor-jasmine-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/survi218%2Fprotractor-jasmine-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/survi218","download_url":"https://codeload.github.com/survi218/protractor-jasmine-testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835926,"owners_count":20355616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angularjs","end-to-end-testing","jasmine-tests","protractor-e2e-test","protractor-tests","selenium-tests","webdrivermanager"],"created_at":"2025-03-16T07:16:27.254Z","updated_at":"2025-03-16T07:16:27.855Z","avatar_url":"https://github.com/survi218.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# protractor-jasmine-testing\n\n* end-to-end (e2e) testing in your Angular applications. You will learn about Protractor and     learn how to use them to carry out e2e testing. At the end of this exercise, you should be     able to:\n  - Configure a protractor configuration file\n  - Set up e2e tests using Jasmine and carry out the e2e test automatically\n- Note: You should have completed the previous exercise on unit testing before proceeding with   this exercise. Some of the set up is common for both unit tests and e2e tests. These were      already done in the previous exercise.\n# Setting up the E2E Test Environment\n- Set up the protractor tool globally for use in e2e testing:\n\n``````````\n     npm install protractor -g\n``````````\n\nRemember to use sudo if you are in OSX or Linux environments.\nThe above also installs webdriver-manager. Then, update your web drivers by typing:\n\n``````````\n    webdriver-manager update\n``````````\n\n- Remember to use sudo if you are in OSX or Linux environments.\n- Make sure that you are running the json-server to serve up the REST API for accessing the      JSON data by your Angular application.\n- Next, you need to start a server to serve up the Angular application. Fortunately, Gulp is     already set up to do that. Make sure you are in the conFusion folder. At the command prompt,   type:\n\n````````\n   gulp watch\n````````\n\n- This will start the server and serve the page at http://localhost:3001/. Make sure about the   port number (3001) where your server is serving up the web page.\n#Configuring Protractor\n\n- Next, move to the test folder and create a file named protractor.conf.js and add the        following configuration code to it:\n\n```\nexports.config = {\n  allScriptsTimeout: 11000,\n  specs: [\n    'e2e/*.js'\n  ],\n  capabilities: {\n    'browserName': 'chrome'\n  },\n\n  baseUrl: 'http://localhost:3001/',\n\n  framework: 'jasmine',\n    directConnect: true,\n\n  jasmineNodeOpts: {\n    defaultTimeoutInterval: 30000\n  }\n};\n```\n\n- Here we are using the directConnect option to directly connect to the browser to conduct the   tests, rather than through the Selenium web server.\n- Next, create a folder named e2e in the test folder, and move to the e2e folder.\n- Create a file named scenarios.js. This fill will contain all the e2e tests that we will   execute on the application.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurvi218%2Fprotractor-jasmine-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurvi218%2Fprotractor-jasmine-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurvi218%2Fprotractor-jasmine-testing/lists"}