{"id":21478023,"url":"https://github.com/xurten/karate_practice","last_synced_at":"2026-02-02T07:31:42.165Z","repository":{"id":236614852,"uuid":"610391992","full_name":"xurten/karate_practice","owner":"xurten","description":"This repository contains example test scenarios using Karate DSL for API testing.","archived":false,"fork":false,"pushed_at":"2023-03-12T17:13:16.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T08:22:50.592Z","etag":null,"topics":["api-testing","karate-framework"],"latest_commit_sha":null,"homepage":"","language":"Gherkin","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/xurten.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":"2023-03-06T17:20:49.000Z","updated_at":"2023-03-12T17:38:16.000Z","dependencies_parsed_at":"2024-04-28T03:25:06.698Z","dependency_job_id":"e2f46dda-83da-4848-aa75-0f6585dfa73c","html_url":"https://github.com/xurten/karate_practice","commit_stats":null,"previous_names":["xurten/karate_practice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xurten/karate_practice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xurten%2Fkarate_practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xurten%2Fkarate_practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xurten%2Fkarate_practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xurten%2Fkarate_practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xurten","download_url":"https://codeload.github.com/xurten/karate_practice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xurten%2Fkarate_practice/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263046879,"owners_count":23405277,"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":["api-testing","karate-framework"],"created_at":"2024-11-23T11:16:17.638Z","updated_at":"2026-02-02T07:31:37.131Z","avatar_url":"https://github.com/xurten.png","language":"Gherkin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Karate practice\n\nThis repository contains example test scenarios using Karate DSL for API testing. Repository contains tests for GET, POST, PUT, DELETE actions.\n(Java, Javascript, Json, API, Cucumber, BDD, eclipse) \n\n# Getting Started\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n# Prerequisites\n- Java 8 or higher\n- Maven\n\n# Installing\nClone the repository:\n```\ngit clone https://github.com/xurten/karate_practice.git\n```\n\n**Example scenario for delete action:**\n\n```\nScenario: Delete a user with the given user id\n# 1. Create a user with POST CALL\n\tGiven path '/public/v2/users'\n\t\tAnd request request_payload\n\t\tAnd header Authorization = 'Bearer '+ token_id\n\tWhen method POST\n\tThen status 201\n\t\tAnd match $.id == '#present'\n\t\tAnd match $.name == '#present'\n\t\t* print response\n\n# Fetch the user id\n\t* def user_id = $.id\n\t* print user_id\n# 2. Delete the same user\n\tGiven path '/public/v2/users/' + user_id\n\t\tAnd header Authorization = 'Bearer '+ token_id\n\tWhen method DELETE\n\tThen status 204\n\n# 3. Get the same user with the same user id\n\tGiven url  base_url + '/public/v2/users/' + user_id\n\tWhen method GET\n\tThen status 404\n\t\tAnd match $.message == 'Resource not found'\n```\n\n# Running the Tests\nYou can run the tests from the command line by running the following command from the root of the project:\n```\nmvn clean test\n```\n**All features are under src/test/java/features**\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxurten%2Fkarate_practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxurten%2Fkarate_practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxurten%2Fkarate_practice/lists"}