Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tooniez/behave-bdd-python
๐ Elevate Your BDD with Behave!
https://github.com/tooniez/behave-bdd-python
bdd behave python selenium
Last synced: about 1 month ago
JSON representation
๐ Elevate Your BDD with Behave!
- Host: GitHub
- URL: https://github.com/tooniez/behave-bdd-python
- Owner: tooniez
- License: mit
- Created: 2024-09-06T09:38:32.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-08T01:41:40.000Z (4 months ago)
- Last Synced: 2024-10-12T18:22:19.381Z (2 months ago)
- Topics: bdd, behave, python, selenium
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
- Support: .github/SUPPORT.md
- Governance: .github/GOVERNANCE.md
Awesome Lists containing this project
README
Behave BDD Test Examples ๐๐ฌ
Elevate Your BDD with Behave!
## Contents
1. [Introduction](#intro)
- [Packages Used](#packages)
- [Features](#features)
- [Steps Implemented](#steps)
- [Uilities](#utilities)
3. [Join the Community!](#section03)
4. [License](#section04)## Introduction
This repository serves as a reference for working on BDD Behave and Selenium integration, ensuring clarity on the existing features and their implementations.
### ๐ฆ Packages Used
- **behave**: A behavior-driven development (BDD) framework written in Python.
- **selenium**: A tool for automating web applications for testing purposes.
- **requests**: A HTTP library to handle requests and responses.### ๐ Types of Features
1. **Unit Tests**:
- Scenarios for creating mock objects and using utility functions.2. **API Tests**:
- Scenarios for testing reponse code using Requests library.
2. **E2E Tests**:
- Scenarios for opening the Google webpage and performing searches.### ๐งช Steps Implemented
- **Given Steps**:
- Creating mock objects.
- Makes a HTTP requests
- Opening the Google webpage.
- **When Steps**:
- Calling the mock object.
- Response is returned.
- Searching for a query on Google.
- **Then Steps**:
- Validating the expected results from the mock object.
- Checking response code is valid.
- Checking if the search results contain the queried term.### Utilities
- **Logging**:
- Sets default log format.## Getting Started
Run `make all` to install dependencies and run the tests. See the provided `Makefile` for other run commands.
## Join the Community!
Got ideas? We'd love your input! Check out our [Contributing Guidelines](.github/CONTRIBUTING.md) and dive in. Don't forget to drop a โญ๏ธ if you like what you see!
## License
Copyright ยฉ 2024 [tooniez](https://github.com/tooniez).
This project is [MIT](https://github.com/tooniez/appium-framework/blob/main/LICENSE) licensed.