behave Examples and TutorialsΒΆ
behave is BDD framework and a cucumber-clone for Python. This project provides tutorials and examples how to write tests by using behave. The examples are mostly based on the excellent behave documentation.
This project should serve as executable example how problems can be solved with behave. It should especially help new adopters.
I hope that this project helps other people to get started with behave or other Gherkin-based test frameworks, like cucumber (Ruby), jbehave (Java), lettuce (Python) or SpecFlow (.NET).
Contents:
- Introduction
- Tutorials
- Tutorial 1: First Steps
- Tutorial 2: Natural Language
- Tutorial 3: Step Parameters
- Tutorial 4: Scenario Outline
- Tutorial 5: Multi-line Text (Step Data)
- Tutorial 6: Setup Table
- Tutorial 7: Result Table
- Tutorial 8: Execute Other Steps in a Step
- Tutorial 9: Use Background
- Tutorial 10: User-defined Data Type
- Tutorial 11: Use Tags
- Tutorial 12: Use another Spoken Language
- Data Types and User-defined Types
- Type Definition Basics
- Predefined Data Types in
parse
- Cardinality: Zero or One (Optional)
- Cardinality: One or More (List of Type)
- Cardinality: Zero or More (List of Type)
- Choice (Word/String Alternatives)
- Choice2 (Word/String Alternatives)
- Enumeration (String-to-Value Mapping)
- More Complex Data Types
- Step Matchers
Search Page β Index β Glossary β References