An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/testingbot/Python-PyTest-Selenium.svg?branch=master)](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)