Perfecto Python3.x Expense Tracker app/web sample with reportium integration.
Prerequisites
- Python3.x
- Selenium 3.141.0
- Appium Python Client 1.3.0
Install
Install Perfecto Python3 Reportium package using below command.
pip install perfecto-py3 (Windows)
pip3 install perfecto-py3 (Mac)
Integration with Perfecto
-
Open ExpenseTracker*.py you want to execute.
-
Replace "cloud name" with your perfecto cloud name (e.g. trial is the cloudName of trial.app.perfectomobile.com).
-
Replace "security token" with your perfecto security token.
-
Set device capabilities.
-
Set Perfecto Media repository path of App(Applicable for mobile app testing only) under test.
-
Set the unique identifier of your app(Applicable for mobile app testing only).
-
Set other capabilities if required.
-
Add your code as applicable.
Executing the script
Run the project/scripts from the IDE(Ex: PyCharm)
OR
Run the script from command line/terminal using below steps.
-
Open command line/terminal and navigate to Python project folder.
-
Run the below command execute Windows web ExpenseTrackerChrome.py:
Mac:
python3 WindowsWeb/ExpenseTrackerChrome.py
Windows:
python WindowsWeb/ExpenseTrackerChrome.py
-
Run the below command execute Mac web ExpenseTrackerSafari.py:
Mac:
python3 MacWeb/ExpenseTrackerSafari.py
Windows:
python MacWeb/ExpenseTrackerSafari.py
-
Run the below from command line/ terminal to execute Android ExpenseTrackerNative.py:
Mac:
python3 Android/ExpenseTrackerNative.py
Windows:
python Android/ExpenseTrackerNative.py
-
Run the below from command line/ terminal to execute iOS ExpenseTrackerNative.py:
Mac:
python3 iOS/ExpenseTrackerNative.py
Windows:
python iOS/ExpenseTrackerNative.py