{"id":21881559,"url":"https://github.com/roboticautomata/selenium-restassured-testing-example","last_synced_at":"2026-04-16T04:32:51.690Z","repository":{"id":223051502,"uuid":"759182964","full_name":"RoboticAutomata/selenium-restassured-testing-example","owner":"RoboticAutomata","description":"Selenium/Restassured for UI/API Testing in Maven, Testng, Java","archived":false,"fork":false,"pushed_at":"2024-03-16T12:46:27.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T00:44:50.444Z","etag":null,"topics":["api","java","restassured","selenium","testng"],"latest_commit_sha":null,"homepage":"https://linktr.ee/roboticautomata","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/RoboticAutomata.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-17T21:50:39.000Z","updated_at":"2024-02-18T20:48:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9b5463f-1810-437b-9495-bbdaf9846728","html_url":"https://github.com/RoboticAutomata/selenium-restassured-testing-example","commit_stats":null,"previous_names":["roboticautomata/restassuredapitestngexample"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RoboticAutomata/selenium-restassured-testing-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticAutomata%2Fselenium-restassured-testing-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticAutomata%2Fselenium-restassured-testing-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticAutomata%2Fselenium-restassured-testing-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticAutomata%2Fselenium-restassured-testing-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RoboticAutomata","download_url":"https://codeload.github.com/RoboticAutomata/selenium-restassured-testing-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticAutomata%2Fselenium-restassured-testing-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31871625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"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":["api","java","restassured","selenium","testng"],"created_at":"2024-11-28T09:19:30.212Z","updated_at":"2026-04-16T04:32:51.673Z","avatar_url":"https://github.com/RoboticAutomata.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API \u0026 UI Testing Example with Restassured, Selenium and TestNG\nThis repo demonstrates how to do Test Automation using Java, TestNg \u0026 Maven.\n- For the API Test Automation we use Restassured\n- For the UI Test Automation we use Selenium\n\n**Table of Contents**\n\u003c!--ts--\u003e\n* [Application under Test](#application-under-test)\n* [Example Scenario to Automate](#example-scenario-to-automate)\n  * [Login Page](#login-page)\n  * [Add User Page](#add-user-page)\n  * [Contact List](#contact-list)\n* [Exactly what APIs are we testing?](#exactly-what-apis-are-we-testing)\n  * [Add User](#add-user)\n  * [Login User](#login-user)\n  * [Logout User](#logout-user)\n  * [Delete User](#delete-user)\n* [Repository Structure](#repository-structure)\n* [Run the tests](#run-the-tests)\n  * [Run the API Tests](#run-the-api-tests)\n  * [Run the UI Tests](#run-the-ui-tests)\n* [Resources](#resources)\n  * [API Tutorials](#api-tutorials)\n  * [UI Tutorials](#ui-tutorials)\n\n\u003c!-- Created by https://github.com/ekalinin/github-markdown-toc --\u003e\n\u003c!-- Added by: rashad, at: Sun Feb 18 03:37:02 PM EST 2024 --\u003e\n\n\u003c!--te--\u003e\n\n## Application under Test\n\nWe will be testing the [Thinking Tester Contact List App](https://thinking-tester-contact-list.herokuapp.com/) (CLA). The CLA enables a user to create an account to manage contacts.\n\nThe CLA API Documentation can be found [here](https://documenter.getpostman.com/view/4012288/TzK2bEa8).\n\n## Example Scenario to Automate\nOur test covers the specific workflow of opening the login page, creating a new user and logging out.\n\n### Login Page\n![Login Page](images/LoginPage.png)\n\n### Add User Page\n![Add User Page](images/AddUserPage.png)\n\n### Contact List\n![Contact List Page](images/ContactListPage.png)\n\n## Exactly what APIs are we testing?\n\nIn case Thinking App goes down or the API is updated, here is the gist of the current APIs tested at the time of writing.\n\n### Add User\n\n```\nPOST Request -\u003e\nhttps://thinking-tester-contact-list.herokuapp.com/users\n\nRequest Body -\u003e\n{\n    \"firstName\": \"Test\",\n    \"lastName\": \"User\",\n    \"email\": \"test@fake.com\",\n    \"password\": \"myPassword\"\n}\n\nResponse Status -\u003e\n201\n```\n\n### Login User\n\n```\nPOST Request -\u003e\nhttps://thinking-tester-contact-list.herokuapp.com/users/login\n\nRequest Body -\u003e\n{\n    \"email\": \"test2@fake.com\",\n    \"password\": \"myNewPassword\"\n}\n\nResponse Status -\u003e\n200\n\nResponse Body -\u003e\n{\n  \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MDgyMWYzMDYyZmJiMjEzZTJhZDlhMjAiLCJpYXQiOjE2MTk3M\n}\n```\n\n### Logout User\n\n```\nPOST Request -\u003e\nhttps://thinking-tester-contact-list.herokuapp.com/users/logout\n\nHeader -\u003e\nAuthorization: Bearer $token\n\nResponse Status -\u003e\n200\n```\n\n### Delete User\n\n```\nDELETE Request -\u003e\nhttps://thinking-tester-contact-list.herokuapp.com/users/me\n\nHeader -\u003e\nAuthorization: Bearer $token\n\nResponse Status -\u003e\n200\n```\n\n## Repository Structure\n```\nsrc/test/java/ThinkTester/ContactListApp\n├── Apis\n│   └── UserApi.java #Contains the User API Endpoints \u0026 Request Specifications\n├── Pages #Page objects for the UI\n│   ├── AddUserPage.java\n│   ├── BasePage.java\n│   ├── ContactListPage.java\n│   └── LoginPage.java\n├── Tests\n│   ├── ApiTests #Tests each API\n│   │   └── UserApiTest.java\n│   └── UiTests #Test cases for the UI\n│       └── SmokeUiTest.java\n└── Utils\n    ├── Environment.java #Specifies the Base URI\n    └── UserFactory.java #Creates data for a Random User\n```\n\n## Run the tests\n\n### Run the API Tests\n```\nmvn clean verify -Dtest=*ApiTest\n```\n\n### Run the UI Tests\n```\nmvn clean verify -Dtest=*UiTest\n```\n\n## Resources\n\n### API Tutorials\n- [Youtube Video Demo API](https://www.youtube.com/watch?v=3ZI9fF9IeP8)\n- [Medium Blog Tutorial API](https://medium.com/@RoboticAutomata/restassured-testng-api-test-automation-tutorial-68be216e4d63)\n\n### UI Tutorials\n- [Youtube Video Demo UI](https://youtu.be/14JRzMRI5yE)\n- [Medium Blog Tutorial UI](https://medium.com/@RoboticAutomata/selenium-testng-ui-test-automation-tutorial-de7ef8bda5af)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboticautomata%2Fselenium-restassured-testing-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froboticautomata%2Fselenium-restassured-testing-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboticautomata%2Fselenium-restassured-testing-example/lists"}