{"id":25244907,"url":"https://github.com/leelaprasadv/robotframework-fasthttpmock","last_synced_at":"2026-02-12T18:31:28.636Z","repository":{"id":274975500,"uuid":"924647199","full_name":"leelaprasadv/robotframework-fasthttpmock","owner":"leelaprasadv","description":"Robot Framework test library for mocking HTTP services","archived":false,"fork":false,"pushed_at":"2025-02-11T07:03:35.000Z","size":83,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T19:51:03.760Z","etag":null,"topics":["http-mock-server","httpmock","mock-server","mockserver","robot-framework","robotframework","testing"],"latest_commit_sha":null,"homepage":"https://leelaprasadv.github.io/robotframework-fasthttpmock","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leelaprasadv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2025-01-30T11:57:00.000Z","updated_at":"2025-02-11T07:03:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"2be23737-d867-4985-b031-24cf074f0580","html_url":"https://github.com/leelaprasadv/robotframework-fasthttpmock","commit_stats":null,"previous_names":["leelaprasadv/robotframework-fasthttpmock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leelaprasadv/robotframework-fasthttpmock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leelaprasadv%2Frobotframework-fasthttpmock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leelaprasadv%2Frobotframework-fasthttpmock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leelaprasadv%2Frobotframework-fasthttpmock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leelaprasadv%2Frobotframework-fasthttpmock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leelaprasadv","download_url":"https://codeload.github.com/leelaprasadv/robotframework-fasthttpmock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leelaprasadv%2Frobotframework-fasthttpmock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29376854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T18:17:34.915Z","status":"ssl_error","status_checked_at":"2026-02-12T18:17:34.495Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["http-mock-server","httpmock","mock-server","mockserver","robot-framework","robotframework","testing"],"created_at":"2025-02-12T01:55:42.227Z","updated_at":"2026-02-12T18:31:28.615Z","avatar_url":"https://github.com/leelaprasadv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# robotframework-fasthttpmock\n\nHTTP mock server library for Robot Framework powered by FastAPI. This library enables easy mocking of HTTP endpoints in your Robot Framework tests with minimal setup and configuration.\n\n## Features\n\n- 🚀 Lightweight and fast mock server using FastAPI\n- 🤖 Simple Robot Framework keywords\n- 🔄 Dynamic mock interaction management\n- ✅ Request verification capabilities\n- 🧹 Automatic server cleanup\n- 🌐 Support for all HTTP methods (GET, POST, PUT, DELETE, PATCH)\n\n## Installation\n```bash\npip install robotframework-fasthttpmock\n```\n\nThe editable mode (`-e`) allows you to modify the source code and see the changes immediately without reinstalling.\n\n## Available Keywords\n\n| Keyword | Description |\n|---------|-------------|\n| `Start Mock Server` | Start the mock HTTP server with optional host and port |\n| `Stop Mock Server` | Gracefully stop the mock server |\n| `Add Mock Interaction` | Add a new mock interaction with request/response definitions |\n| `Remove Mock Interaction` | Remove an existing mock interaction |\n| `Verify Interaction Called` | Verify the number of times an interaction was called |\n\n## Quick Start\n\nHere's a simple example of how to use the library in your Robot Framework tests:\n\n```robot\n*** Settings ***\nLibrary    FastHTTPMock\nLibrary    RequestsLibrary\n\n*** Test Cases ***\nMock Simple API Response\n    Start Mock Server port=8000\n    \n    # Define mock interaction\n    ${request}=    Create Dictionary   method=GET  path=/api/users\n    ${response}=    Create Dictionary  status=200  body={\"users\": [\"user1\", \"user2\"]}\n    ${id}=    Add Mock Interaction    ${request}    ${response}\n    \n    # Make request to mock server\n    ${resp}=    GET    http://localhost:8000/api/users\n    Should Be Equal As Strings    ${resp.status_code}    200\n    \n    # Verify the interaction\n    Verify Interaction Called    ${id}    1\n    [Teardown]    Stop Mock Server\n```\n\n\n\n## Advanced Usage\n\n### Multiple Endpoints Example\n```robot\n*** Test Cases ***\nMock Multiple API Endpoints\n    Start Mock Server    port=8000\n    \n    # Mock GET endpoint\n    ${get_request}=    Create Dictionary   method=GET  path=/api/users/1\n    ${get_response}=    Create Dictionary  status=200  body={\"id\": 1, \"name\": \"John Doe\"}\n    ${get_id}=    Add Mock Interaction    ${get_request}    ${get_response}\n    \n    # Mock POST endpoint\n    ${post_request}=    Create Dictionary  method=POST path=/api/users\n    ${post_response}=    Create Dictionary    status=201  body={\"message\": \"User created\"}\n    ${post_id}=    Add Mock Interaction    ${post_request}    ${post_response}\n    \n    # Test both endpoints\n    ${get_resp}=    GET    http://localhost:8000/api/users/1\n    Should Be Equal As Strings    ${get_resp.status_code}    200\n    ${post_resp}=    POST    http://localhost:8000/api/users\n    Should Be Equal As Strings    ${post_resp.status_code}    201\n    [Teardown]    Stop Mock Server\n```\n\n## Contributing\n\nRefer to [Contributing Docs](./CONTRIBUTING.md) for more details\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Run tests and ensure they pass\n4. Commit your changes (`git commit -m 'Add some amazing feature'`)\n5. Push to the branch (`git push origin feature/amazing-feature`)\n6. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Support\n\nIf you encounter any issues or have questions:\n1. Check the [Issues](https://github.com/leelaprasadv/robotframework-fasthttpmock/issues) page\n2. Create a new issue if your problem isn't already listed\n\n## Acknowledgments\n\n- Inspired by [PactumJS](https://github.com/pactumjs/pactum)\n- Built with [FastAPI](https://fastapi.tiangolo.com/)\n- Made for [Robot Framework](https://robotframework.org/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleelaprasadv%2Frobotframework-fasthttpmock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleelaprasadv%2Frobotframework-fasthttpmock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleelaprasadv%2Frobotframework-fasthttpmock/lists"}