https://github.com/testingbot/python-pytest-selenium
PyTest Selenium example for TestingBot.com
https://github.com/testingbot/python-pytest-selenium
pytest python selenium testingbot
Last synced: 3 months ago
JSON representation
PyTest Selenium example for TestingBot.com
- Host: GitHub
- URL: https://github.com/testingbot/python-pytest-selenium
- Owner: testingbot
- Created: 2019-01-24T12:46:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-24T14:28:12.000Z (about 7 years ago)
- Last Synced: 2025-01-19T19:17:05.849Z (about 1 year ago)
- Topics: pytest, python, selenium, testingbot
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/testingbot/Python-PyTest-Selenium)
## TestingBot - Python & PyTest
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 PyTest to run tests 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 TESTINGBOT_KEY=
$ export TESTINGBOT_SECRET=
```
### Running Tests
* Sample Test:
```
$ pytest test_sample.py
```
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/)
##### [PyTest Documentation](https://pytest-selenium.readthedocs.io/en/latest/index.html)