Metadata-Version: 2.1
Name: pyppium
Version: 0.1.0
Summary: Pyppium is a wrapper of Appium-Python-Client for cross mobile testing.
Home-page: https://github.com/leomenezessz/pyppium
License: MIT
Keywords: appium,qa,mobile-testing
Author: Leonardo Menezes
Author-email: leonardosmenezes.ssz@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Requires-Dist: Appium-Python-Client (==1.0.2)
Project-URL: Repository, https://github.com/leomenezessz/pyppium
Description-Content-Type: text/markdown

# Pyppium

[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
[![codecov](https://codecov.io/gh/leomenezessz/pyppium-wrapper/branch/master/graph/badge.svg)](https://codecov.io/gh/leomenezessz/pyppium-wrapper)
[![Documentation Status](https://readthedocs.org/projects/pyppium/badge/?version=latest)](https://pyppium.readthedocs.io/en/latest/?badge=latest)



Pyppium is a wrapper of Appium-Python-Client for cross mobile testing.

## Installation

```
$ pip install pyppium
```

## Basic Usage

Create your screen like this

```python
from pyppium.fetcher import fetch, iOS, Android


class ScreenOne:
    _button = fetch(iOS("id", "buttonSignIn"), Android("id", "button"))
    _text_field = fetch(iOS("id", "inputUserName"), Android("id", "username"))
    _text_password = fetch(iOS("id", "InputPassword"), Android("id", "pass"))

    def login(self, username, password):
        self._text_field.send_keys(username)
        self._text_password.send_keys(password)
        self._button.click()

    
```

User your screen in test after start pyppium driver

```python
from pyppium.driver import PyppiumDriver
from tests.e2e.screens.screen import ScreenOne, ScreenTwo
from assertpy import assert_that


def test_android_basic_behaviours():
    username = "Lully"
    password = "123456789"

    caps_android ={
            "platformName": "Android",
            "automationName": "uiautomator2",
            "deviceName": "Android Emulator",
            "appPackage": "com.example.dummy",
            "appActivity": "MainActivity",
            "newCommandTimeout": 0,
    }


    PyppiumDriver(caps_android)
    ScreenOne().login(username, password)
    assert_that(ScreenTwo().label_welcome_message()).contains(username)
    PyppiumDriver.quit()
```

## Documentation

- https://pyppium.readthedocs.io/en/latest/









