Skip to content

Dev #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e278dd0
changing automation code
Xolani-Mxoxozi Sep 5, 2018
50f4231
started changing the Toolium code to mine
Xolani-Mxoxozi Sep 6, 2018
a81bd81
Will add more update and steps in a later stage
Xolani-Mxoxozi Sep 6, 2018
18ce2d1
Update README.md
Xolani-Mxoxozi Sep 10, 2018
7f13902
Create README.md
Xolani-Mxoxozi Sep 10, 2018
378b89a
started drag and drop feature
Xolani-Mxoxozi Sep 10, 2018
7146a34
started drag and drop feature
Xolani-Mxoxozi Sep 10, 2018
88d0242
Merge branch 'dev' of https://github.com/Xolani-Mxoxozi/appium-python…
Xolani-Mxoxozi Sep 10, 2018
b9e4fde
updated drag and drop code
Xolani-Mxoxozi Sep 12, 2018
fbdcc49
updated alarm services
Xolani-Mxoxozi Sep 13, 2018
2ed9d25
fixed scroll to element
Xolani-Mxoxozi Sep 14, 2018
d5698db
fixed scrolling
Xolani-Mxoxozi Sep 19, 2018
ef0a342
finished drag and drop feature
Xolani-Mxoxozi Sep 21, 2018
88d8f36
finished drag and drop feature
Xolani-Mxoxozi Sep 21, 2018
59d9cc0
Merge branch 'dev'
Xolani-Mxoxozi Sep 21, 2018
1a0255e
added a travis file
Xolani-Mxoxozi Sep 25, 2018
b402cfb
Merge branch 'dev'
Xolani-Mxoxozi Sep 25, 2018
6e721f2
Update .travis.yml
Xolani-Mxoxozi Sep 25, 2018
45560e7
Update .travis.yml
Xolani-Mxoxozi Sep 25, 2018
56dcfa2
Update .travis.yml
Xolani-Mxoxozi Sep 25, 2018
19e7b7f
Update .travis.yml
Xolani-Mxoxozi Sep 25, 2018
f93ac81
Update .travis.yml
Xolani-Mxoxozi Sep 25, 2018
3e3e90d
Update .travis.yml
Xolani-Mxoxozi Sep 25, 2018
3bc90a5
Update .travis.yml
Xolani-Mxoxozi Sep 27, 2018
c7f100d
Update .travis.yml
Xolani-Mxoxozi Sep 27, 2018
f2bf203
Removed copyright
Jun 25, 2020
797ea6f
Fixing merge conflicts
Jun 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
language: python
sudo: required
python:
- "3.6"
- "2.7"
- "3.5"
- "pypy"
- "pypy3"
- "3.7-dev"

include:
- os: linux
node_js: '7'

before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3
- fluxbox >/dev/null 2>&1 &

cache:
directories:
- $HOME/.cache/pip

addons:
chrome: stable
# sauce_connect:
# username: "xolanimxoxozi"
# access_key: "xolani1991"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to remove these

sauce_connect: true
env:
global:
- secure: 3bd6fd59-45ea-4b29-9c9c-6c5b0710caae
before_script:
- python -m SimpleHTTPServer &
- sleep 2

install:
- sudo apt-get install xvfb
- sudo apt-get update
- pip show setuptools

- pip install git+https://github.com/behave/behave
- pip install toolium
- pip install sauceclient

- wget -N http://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- sudo rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver

script:
- behave Web\ Testing
# - sleep 10
# - behave Second_web_demo
# - sleep 10
# - behave android_behave
43 changes: 4 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,6 @@
Appium Basic Demo for Behave (BDD)
========================================
# appium-python-bdd
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove changes in this file, repo should serve as boilerplate project

BDD test with Behave and Appium

These are sample test cases for Testhive workshop and general usage that can get you familiar with Appium.
__To Run Android app__

BDD framework used is Behave which is an Cucumber clone for Python.

Mobile Test Automation framework is Appium which is most supported right now.

Install Behave and Appium:

```shell
pip install appium-python-client
pip install behave

# For SauceLabs remote connection
# !! Make sure your environment variables have: SAUCE_USERNAME
# and SAUCE_ACCESS_KEY variables set
pip install sauceclient
```

Usage:

```shell
# In order to select configuration you need to set tags in execution
behave ios_simple.feature
```

You may limit the test cases using tags
```shell
behave --tags=current android.feature
```

Jenkins Execution:
```shell
# Inside the jenkins shell command
cd {PATH_TO_PROJECT_FOLDER}
# For Mac
/Library/Frameworks/Python.framework/Versions/2.7/bin/behave --junit --tags=current features/android.feature
cp -R reports $WORKSPACE
```
behave android_behave
File renamed without changes.
Binary file removed apps/Imdb/android/com.imdb.mobile.apk
Binary file not shown.
1 change: 0 additions & 1 deletion apps/TestApp/.gitignore

This file was deleted.

Binary file removed apps/TestApp/[email protected]
Binary file not shown.
18 changes: 0 additions & 18 deletions apps/TestApp/Test App 2/GestureTestViewController.h

This file was deleted.

48 changes: 0 additions & 48 deletions apps/TestApp/Test App 2/GestureTestViewController.m

This file was deleted.

47 changes: 0 additions & 47 deletions apps/TestApp/Test App 2/GestureTestViewController.xib

This file was deleted.

42 changes: 0 additions & 42 deletions apps/TestApp/Test App 2/MyViewControllerViewController.h

This file was deleted.

Loading