{"id":21051267,"url":"https://github.com/eataborda/ui-selenium","last_synced_at":"2025-05-15T21:35:15.556Z","repository":{"id":191892128,"uuid":"500592274","full_name":"eataborda/ui-selenium","owner":"eataborda","description":"Selenium UI automation with Java + Junit5 + Gradle + Allure","archived":false,"fork":false,"pushed_at":"2024-11-18T09:05:42.000Z","size":19988,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-18T10:22:22.693Z","etag":null,"topics":["allure-java","allure-report","allure-reports","allure2","gradle","gradle-java","gradle-kotlin-dsl","java","junit5","selenium","selenium-java","selenium-webdriver"],"latest_commit_sha":null,"homepage":"https://eataborda.github.io/ui-selenium/","language":"Java","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/eataborda.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":"2022-06-06T21:01:24.000Z","updated_at":"2024-09-21T20:43:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a3594d9-be02-42fb-a182-e3386397c747","html_url":"https://github.com/eataborda/ui-selenium","commit_stats":null,"previous_names":["eataborda/selenium-serenity-gradle-java-junit","eataborda/ui-serenity"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eataborda%2Fui-selenium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eataborda%2Fui-selenium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eataborda%2Fui-selenium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eataborda%2Fui-selenium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eataborda","download_url":"https://codeload.github.com/eataborda/ui-selenium/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225383170,"owners_count":17465830,"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-java","allure-report","allure-reports","allure2","gradle","gradle-java","gradle-kotlin-dsl","java","junit5","selenium","selenium-java","selenium-webdriver"],"created_at":"2024-11-19T15:52:08.642Z","updated_at":"2024-11-19T15:52:09.192Z","avatar_url":"https://github.com/eataborda.png","language":"Java","readme":"[![automation-ui-test-run](https://github.com/eataborda/ui-selenium/actions/workflows/automation-ui-test-run.yml/badge.svg)](https://github.com/eataborda/ui-selenium/actions/workflows/automation-ui-test-run.yml)\n[![Junit5](https://img.shields.io/badge/Junit5-5.10.3-blue)](https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine)\n[![Selenium](https://img.shields.io/badge/Selenium-4.24.0-blue)](https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java)\n[![Gradle](https://img.shields.io/badge/Gradle-8.9-blue)](https://gradle.org/releases/)\n\n# Selenium UI automation\nA basic UI automation using Java + Junit + Selenium + Gradle. Automation\ncreated to test the [Sauce Demo](https://www.saucedemo.com/) page\n\nContains:\n- Basic build.gradle.kts config to execute Selenium tests with Junit5\n- UI automation using the POM pattern\n- Allure HTML report\n\n## Use sample project locally\n- Verify that you have `Git`\n- Verify that you have `Java` installed, also that you already setup the following environment variables: `$PATH` and `$JAVA_HOME`\n- Clone the repository and move inside that path:\n```shellscript\n$ git clone git@github.com:eataborda/ui-selenium.git\n$ cd ./ui-selenium\n```\n\n### Run tests\n- Run all tests on the src (Can select: chrome, firefox, edge):\n```\n$ ./gradlew -Ddriver=\"chrome\"\n```\n- Run all tests inside a class or a specific method using junit tags (@Tag):\n```\n$ ./gradlew -DincludeTags=\"regression\" -Ddriver=\"firefox\"\n```\nIn this way you can use the following tags depending on the tests you need to run:\n- General: regression, smoke\n- Class level: standard-user, locked-out-user, problem-user\n- Method level (@Test): buy-items, remove-cart-items, cart-items-persistence, order-inventory-items, verify-checkout-data, login-locked-user,\nlogin-wrong-password, inventory-item-src-issues, inventory-filter-issues\n\n### Generate report\nOnce you have run the tests you can generate the Allure report by running the following command:\n```\n$ allure generate build/allure-results --clean\n```\nAfter running the above command successfully you will be able to find the report in the following path: `your-project-path/allure-report`\n\n### Open the report\nLocally you can open the report in two ways:\n- Using the command:\n```\n$ allure open /your-project-path/allure-report\n```\nThe command starts a local web server and show the report directory's contents. Opens the report in your default browser.\n- Opening the report file `/your-project-path/allure-report/index.html` in the browser of your choice. This shows the static contents of the report directory without starting any local web server.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feataborda%2Fui-selenium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feataborda%2Fui-selenium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feataborda%2Fui-selenium/lists"}