Example of tests with Behave framework and adapter for Test IT
- Install python version 3.6+
- Clone this repository
git clone https://github.com/testit-tms/python-examples.git && cd behave - Install dependencies
pip install -r requirements.txt - Run tests via
behave - Configure the tests to run in connection_config.ini file. How to configure?
- Run
behave -f testit_adapter_behave.formatter:AdapterFormatterto upload the results to TMS
- features/ – test files
- steps/ – step files
- steps.py – simple Behave steps
- annotation-tests.feature – simple test examples with annotations testit-adapter-behave
- method-tests.feature – simple test examples with methods testit-adapter-behave
- step-tests.feature – simple test examples with steps from steps.py
- steps/ – step files
- connection_config.ini - configuration file where specified base options for tests
- requirements.txt - list of items to be installed