https://github.com/testingbot/python-behave-example
An example of Python with Behave for TestingBot.com
https://github.com/testingbot/python-behave-example
behave python selenium webdriver
Last synced: 9 months ago
JSON representation
An example of Python with Behave for TestingBot.com
- Host: GitHub
- URL: https://github.com/testingbot/python-behave-example
- Owner: testingbot
- Created: 2018-11-06T13:18:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-06-23T13:02:16.000Z (over 2 years ago)
- Last Synced: 2025-04-02T07:11:17.537Z (10 months ago)
- Topics: behave, python, selenium, webdriver
- Language: Python
- Homepage: https://testingbot.com/support/getting-started/behave.html
- Size: 5.86 KB
- Stars: 5
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## TestingBot - Behave
TestingBot provides an online grid of browsers and mobile devices to run Automated tests on via Selenium WebDriver.
This example demonstrates how to use Python with Behave to run a test in parallel, across several browsers.
### Environment Setup
1. Setup
* Clone the repo
* Install the dependencies `pip install -r requirements.txt`
2. TestingBot Credentials
Add your TestingBot Key and Secret as environmental variables. You can find these in the [TestingBot Dashboard](https://testingbot.com/members/).
```
$ export TB_KEY=
$ export TB_SECRET=
```
### Running Tests
* To run a single test, run `paver run single`
* To run parallel tests, run `paver run parallel`
You will see the test result in the [TestingBot Dashboard](https://testingbot.com/members/)
### Resources
##### [TestingBot Documentation](https://testingbot.com/support/)
##### [SeleniumHQ Documentation](http://www.seleniumhq.org/docs/)
##### [Behave Documentation](https://behave.readthedocs.io/en/latest/)