mirror of
https://github.com/appium/appium.git
synced 2026-10-18 13:41:26 +08:00
628dc1aef2
* update README * Update README.md
52 lines
1.1 KiB
Markdown
52 lines
1.1 KiB
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
|
|
|
|
# Tutorial
|
|
|
|
## Portuguese 🇧🇷
|
|
|
|
The brazilian testing community has a complete and free tutorial teaching from 0 to advanced how to use Appium with Python to do software automation.
|
|
|
|
If you can read Portuguese from Brazil, see the tutorial below:
|
|
|
|
[Automação de teste de software com Appium e Python - Por Maria Clara Bezerra (Github)](https://github.com/clarabez/appium)
|
|
|
|
## English 🇺🇸
|
|
|
|
Here is the translated version from portugues to english of the free tutorial from 0 to advanced of using Appium with Python for software automation.
|
|
|
|
[Software automation with Appium and Python - By Maria Clara Bezerra (Github)](https://github.com/clarabez/appium-en)
|