https://github.com/coopdevs/behave_odoo
Helper functions for simplifying the process of writing behave tests for Odoo
https://github.com/coopdevs/behave_odoo
behave odoo selenium
Last synced: 7 months ago
JSON representation
Helper functions for simplifying the process of writing behave tests for Odoo
- Host: GitHub
- URL: https://github.com/coopdevs/behave_odoo
- Owner: coopdevs
- License: agpl-3.0
- Created: 2023-04-27T22:07:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-07T12:00:56.000Z (about 2 years ago)
- Last Synced: 2025-02-18T12:49:22.603Z (8 months ago)
- Topics: behave, odoo, selenium
- Language: Python
- Homepage: https://coopdevs.github.io/behave_odoo/
- Size: 29.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# `behave_odoo`
behave_odoo is a Python package that provides a collection of helper functions designed to simplify the process of writing [behave](https://github.com/behave) tests for Odoo 14. The package includes functions for navigating the Odoo interface, interacting with form fields, and performing common actions within the Odoo environment.
## Installation
To install behave_odoo, use [pip](https://pypi.org/project/behave-odoo/):
```shell
pip install behave-odoo
```## Usage
To use the behave_odoo in your project, simply import the functions you need:
```python
from behave_odoo import (
is_tree_view_by_column_name,
login,
navigate_menu,
switch_module,
click_button,
set_text_field,
set_select_field,
set_autocomplete_field,
ensure_readonly_mode,
select_dropdown_item,
switch_form_tab,
get_first_fields_from_tree_view,
)
```Or use it with prefix:
```python
import behave_odoo as bodoo@given('the user log in on the Odoo Instance')
def step_impl(context):
bodoo.login(context)
```Refer to the package's [documentation](https://coopdevs.github.io/behave_odoo/) for detailed information on each function and how to use them in your tests.
## Contributing
We welcome contributions to the behave_odoo project. If you find a bug or would like to request a new feature, please open an issue on the [project's issue tracker](https://github.com/coopdevs/behave_odoo/issues). If you would like to contribute code, please fork the repository and submit a pull request.
## License
behave_odoo is released under the AGPL-3.0 License. See the `LICENSE` file for more information.
## Support
If you encounter any issues while using behave_odoo, please report them on the project's issue tracker.