{"id":16689216,"url":"https://github.com/sskorol/wdio-testdeck-allure-examples","last_synced_at":"2025-03-21T18:33:39.132Z","repository":{"id":38224318,"uuid":"257069196","full_name":"sskorol/wdio-testdeck-allure-examples","owner":"sskorol","description":"Decorators'-based WDIO examples.","archived":false,"fork":false,"pushed_at":"2024-06-18T23:46:12.000Z","size":656,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T04:09:36.263Z","etag":null,"topics":["allure","allure2","decorators","testdeck","wdio","webdriverio"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sskorol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-04-19T18:08:33.000Z","updated_at":"2024-06-18T23:46:09.000Z","dependencies_parsed_at":"2024-05-02T04:36:43.301Z","dependency_job_id":"157f697c-9fa6-40d1-a1a4-d2167d13a9c2","html_url":"https://github.com/sskorol/wdio-testdeck-allure-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sskorol%2Fwdio-testdeck-allure-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sskorol%2Fwdio-testdeck-allure-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sskorol%2Fwdio-testdeck-allure-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sskorol%2Fwdio-testdeck-allure-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sskorol","download_url":"https://codeload.github.com/sskorol/wdio-testdeck-allure-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244849753,"owners_count":20520782,"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":["allure","allure2","decorators","testdeck","wdio","webdriverio"],"created_at":"2024-10-12T15:47:31.290Z","updated_at":"2025-03-21T18:33:38.789Z","avatar_url":"https://github.com/sskorol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## WDIO examples\n\nThis repository is an example of a basic UI-test for GitHub, based on [WDIO](https://github.com/webdriverio/webdriverio) framework and [ts-test-decorators](https://github.com/sskorol/ts-test-decorators) concept.\n\nDecorators were a bit updated as [mocha-typescript](https://www.npmjs.com/package/mocha-typescript) was deprecated in favor of a new [testdeck](https://github.com/testdeck/testdeck) library.\n\nSample test case written in OOP-manner:\n```ts\n@suite\nclass GitHubAuthTests {\n  static authData = (): User[] =\u003e [new User(process.env.USERNAME, process.env.PASSWORD, process.env.FULL_NAME)]\n\n  @severity(Severity.BLOCKER)\n  @issue('ID-123')\n  @testCaseId('ID-456')\n  @feature('Authorization')\n  @story('Implement GitHub login page.')\n  @data(GitHubAuthTests.authData)\n  @data.naming((user: User) =\u003e `${user.fullName} should be able to sign`)\n  @test\n  public userShouldBeAbleToSignIn(user) {\n    open(GuestPage).signInWith(user).expandProfileMenu()\n    verifyThat(atHomePage).usernameIs(user.username)\n  }\n}\n```\n\n### Installation\n\nPreparations:\n```shell script\ndocker pull aerokube/selenoid:latest-release\ndocker pull aerokube/selenoid-ui:latest-release\ndocker pull selenoid/vnc:chrome_81.0\ngit clone https://github.com/sskorol/wdio-testdeck-allure-examples.git\ncd ./wdio-testdeck-allure-examples\nnpm install\ndocker-compose up -d\n```\nAdd required environment variables (use a preferred editor):\n```shell script\nnano .env\n```\n```dotenv\nHOST=github.com\nUSERNAME=yourGitHubId\nPASSWORD=yourGitHubPassword\nFULL_NAME=yourFullName\n```\n```shell script\nCTRL+o\nENTER\nCTRL+x\n```\nUpdate `./src/resources/allure.properties` with your own information:\n```text\nallure.issues.tracker.pattern=https://path.to.your.tracker/browse/%s\nallure.tests.management.pattern=https://path.to.your.tms/browse/%s\n```\n### Execution and Reporting\nRun existing test in a docker container:\n```shell script\nnpm run test\n```\nGenerate and render Allure report:\n```shell script\nnpm run allure-report\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsskorol%2Fwdio-testdeck-allure-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsskorol%2Fwdio-testdeck-allure-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsskorol%2Fwdio-testdeck-allure-examples/lists"}