mirror of
https://github.com/appium/appium.git
synced 2026-01-14 14:19:56 -06:00
36 lines
482 B
Markdown
36 lines
482 B
Markdown
# Python Sample Code
|
|
## Setup
|
|
|
|
```
|
|
pip install -r requirements.txt
|
|
```
|
|
|
|
## Run tests
|
|
### Run all tests
|
|
|
|
```
|
|
py.test test
|
|
```
|
|
|
|
To run them on Sauce Labs, make sure that you have the following environment
|
|
variables set:
|
|
```
|
|
SAUCE_LABS
|
|
SAUCE_USERNAME
|
|
SAUCE_ACCESS_KEY
|
|
```
|
|
|
|
### Run an arbitrary file
|
|
|
|
```
|
|
py.test test/test_ios_selectors.py
|
|
```
|
|
|
|
## TestCase
|
|
### unittest based
|
|
- test/test_android_create_session.py
|
|
- test/test_ios_create_session.py
|
|
|
|
### pytest based
|
|
- Rest of the above
|