| 1 |
.. _id.appendix.test_domain: |
| 2 |
|
| 3 |
Testing Domains |
| 4 |
============================================================================== |
| 5 |
|
| 6 |
Behave and other BDD frameworks allow you to provide **step libraries** |
| 7 |
to reuse step definitions in similar projects that address the same |
| 8 |
problem domain. |
| 9 |
|
| 10 |
.. _behave: https://github.com/behave/behave |
| 11 |
.. _Selenium: http://docs.seleniumhq.org/ |
| 12 |
|
| 13 |
|
| 14 |
Step Libraries |
| 15 |
------------------------------------------------------------------------------ |
| 16 |
|
| 17 |
Support of the following testing domains is currently known: |
| 18 |
|
| 19 |
=============== ================= =========================================================== |
| 20 |
Testing Domain Name Description |
| 21 |
=============== ================= =========================================================== |
| 22 |
Command-line `behave4cmd`_ Test command-line tools, like behave, etc. (coming soon). |
| 23 |
Web Apps `behave-django`_ Test Django Web apps with behave (solution 1). |
| 24 |
Web Apps `django-behave`_ Test Django Web apps with behave (solution 2). |
| 25 |
Web, SMS, ... `behaving`_ Test Web Apps, Email, SMS, Personas (step library). |
| 26 |
=============== ================= =========================================================== |
| 27 |
|
| 28 |
.. _behave4cmd: https://github.com/behave/behave4cmd |
| 29 |
.. _behave-django: https://github.com/behave/behave-django |
| 30 |
.. _behaving: https://github.com/ggozad/behaving |
| 31 |
.. _django-behave: https://github.com/django-behave/django-behave |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
Step Usage Examples |
| 36 |
------------------------------------------------------------------------------ |
| 37 |
|
| 38 |
This examples show how you can use `behave`_ for testing a specific problem domain. |
| 39 |
This examples are normally not a full-blown step library (that can be reused), |
| 40 |
but give you an example (or prototype), how the problem can be solved. |
| 41 |
|
| 42 |
=============== ==================== =========================================================== |
| 43 |
Testing Domain Name Description |
| 44 |
=============== ==================== =========================================================== |
| 45 |
GUI `Squish test`_ Use `Squish and Behave`_ for GUI testing (cross-platform). |
| 46 |
Robot Control `behave4poppy`_ Use behave to control a robot via `pypot`_. |
| 47 |
Web `pyramid_behave`_ Use `behave to test pyramid`_. |
| 48 |
Web `pycabara-tutorial`_ Use pycabara (with `behave`_ and `Selenium`_). |
| 49 |
=============== ==================== =========================================================== |
| 50 |
|
| 51 |
.. seealso:: |
| 52 |
|
| 53 |
* google-search: `behave python example <https://www.google.com/?q=behave%20python%20example>`_ |
| 54 |
|
| 55 |
|
| 56 |
.. _behave4poppy: https://github.com/chbrun/behave4poppy |
| 57 |
.. _`Squish test`: https://www.froglogic.com/squish/ |
| 58 |
.. _`Squish and Behave`: https://kb.froglogic.com/display/KB/BDD+with+Squish+and+Behave |
| 59 |
.. _pycabara-tutorial: https://github.com/excellaco/pycabara-tutorial |
| 60 |
.. _pypot: https://github.com/poppy-project/pypot |
| 61 |
.. _pyramid_behave: https://github.com/wwitzel3/pyramid_behave |
| 62 |
.. _`behave to test pyramid`: https://blog.safaribooksonline.com/2014/01/10/using-behave-with-pyramid/ |