{"id":19404305,"url":"https://github.com/hasithaishere/testcafe-boilerplate","last_synced_at":"2026-05-16T02:02:39.379Z","repository":{"id":79104507,"uuid":"165232717","full_name":"hasithaishere/TestCafe-Boilerplate","owner":"hasithaishere","description":"This is seed project for TestCafe E2E testing, this seed rich with lots of features (ex- Data Handling, Config Handling and etc) which helps engineers to continue their tasks easily.","archived":false,"fork":false,"pushed_at":"2019-07-22T17:46:17.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T00:36:54.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/hasithaishere.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":"2019-01-11T11:25:40.000Z","updated_at":"2020-03-06T08:57:21.000Z","dependencies_parsed_at":"2023-04-29T19:48:37.870Z","dependency_job_id":null,"html_url":"https://github.com/hasithaishere/TestCafe-Boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hasithaishere/TestCafe-Boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2FTestCafe-Boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2FTestCafe-Boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2FTestCafe-Boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2FTestCafe-Boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasithaishere","download_url":"https://codeload.github.com/hasithaishere/TestCafe-Boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2FTestCafe-Boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33087444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"online","status_checked_at":"2026-05-16T02:00:07.515Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-10T11:33:58.873Z","updated_at":"2026-05-16T02:02:39.361Z","avatar_url":"https://github.com/hasithaishere.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TestCafe-Seed\n\nThis is seed project for TestCafe E2E testing, this seed rich with lots of features (ex- Data Handling, Config Handling and etc) which helps engineers to continue their tasks easily.\n\nWe use [TestCafe](https://github.com/DevExpress/testcafe) as our UI automation framework.\n\n\n#### _Code/Folder Structure_\n\nThis testcafe project contains following code/folder structure.\n* `components/` - contains all the reusable entities\n  * `components/` - all the reusable test-case components, eg - _loginComponent.js_\n  * `components/BaseComponent.js` - abstract class which provide the blueprint for reusable component. This always extends in all child components.\n* `config/` - contains all the configurations, each environment include separate configuration file.\n* `libs/helpers/` - contains all reusable helper classes\n  * `libs/helpers/configHelper.js` - contains all the methods which use for handling configurations\n  * `libs/helpers/dataHelper.js` - include methods which use for handling data from remote data resource(eg - Google Spreadsheet)\n* `login/` - contains login related all the test-case files\n* `uiObjects/` - include all the Uiobjects which stored as json files\n\n\nInitially clone the project from this repository.\n```sh\n$ git clone https://github.com/hasithaishere/TestCafe-Seed.git\n```\n\nThen go in to the to the cloned directory and install dependencies and build the project by running the following commands\n```sh\n$ cd TestCafe-Seed\n$ npm install\n```\n\nyou can install TestCafe globally using following command.\n```sh\n$ npm install -g testcafe\n```\n\nAfter installation you can execute following command to run end-to-end(E2E) test in all browsers.\n```sh\n$ npm run e2e\n```\n\nIf you only need to run in specific browser please execute with browser name as following command.\n\n##### For Chrome\n```sh\n$ BROWSER=chrome npm run e2e\n```\n\n##### For Firefox\n```sh\n$ BROWSER=firefox npm run e2e\n```\n##### For Chrome Mobile Emulators\n```sh\n$ BROWSER=\"chrome:emulation:device=iphone 6\" npm run e2e\n```\nIf you are unable to execute npm commands, you can execute TestCafe directly.\n```sh\n$ node node_modules/testcafe/bin/testcafe.js $BROWSER tests/e2e/**/index.spec.js\n```\n\n##### Mobile and Remote Device Execution\n\nIf you need to run test cases in mobile or remote devices please execute following command, it will generate QR code then you can scan that and run test in your mobile device.\n```sh\n$ npm run e2e-remote\n```\nE2E  tests are powered with \u003cimg src=\"http://mherman.org/assets/img/blog/testcafe.png\" alt=\"TestCafe\" width=\"100\"\u003e\n\n\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasithaishere%2Ftestcafe-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasithaishere%2Ftestcafe-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasithaishere%2Ftestcafe-boilerplate/lists"}