Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

Awesome Lists containing this project

README

        

Behave BDD Test Examples ๐Ÿš€๐Ÿ”ฌ


GitHub issues
GitHub forks
Github Stars
MIT
Behave 1.2.0
Selenium 4.0.0

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.