-
Notifications
You must be signed in to change notification settings - Fork 21
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
base: master
Are you sure you want to change the base?
Dev #1
Changes from all commits
e278dd0
50f4231
a81bd81
18ce2d1
7f13902
378b89a
7146a34
88d0242
b9e4fde
fbdcc49
2ed9d25
d5698db
ef0a342
88d8f36
59d9cc0
1a0255e
b402cfb
6e721f2
45560e7
56dcfa2
19e7b7f
f93ac81
3e3e90d
3bc90a5
c7f100d
f2bf203
797ea6f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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" | ||
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,6 @@ | ||
Appium Basic Demo for Behave (BDD) | ||
======================================== | ||
# appium-python-bdd | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
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