Skip to content

Instantly share code, notes, and snippets.

😵
Debugging

Bruno Alassia vrunoa

😵
Debugging
Block or report user

Report or block vrunoa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View test_mobile_shell.py
import json
import sys
import os
import re
import unittest
from appium import webdriver
from time import sleep
from os.path import basename
import os
from selenium.webdriver.support.ui import WebDriverWait
View gist:3f197ba6eb8c2ae81c99f86fd7736c46
  1. Setup your local environment for Android local testing - max 45minutes

  2. Download https://developer.android.com/studio, go to command-line

  3. Setup env vars

export ANDROID_HOME="~/Library/Android/sdk"
export ANDROID_SDK_ROOT="~/Library/Android/sdk"
export ANDROID_AVD_HOME="~/.android/avd"
View appium.log
[Appium] Welcome to Appium v1.9.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"browserName":"","appiumVersion":"1.8.1","deviceName":"Android GoogleApi Emulator","platformVersion":"8.0","launchTimeout":35000,"platformName":"Android","app":"http://appium.s3.amazonaws.com/ContactManager.apk","prevent-requeue":true,"name":"Basic android native test (Android GoogleApi Emulator on Android 8.0)","avdName":"O-phone-gms-portrait-appium","locale":"es_AR","language":"es"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"browserName":"","appiumVersion":"1.8.1","deviceName":"Android GoogleApi Emulator","platformVersion":"8.0","launchTimeout":35000,"platformName":"Android","app":"http://appium.s3.amazonaws.com/ContactManager.apk","prevent-requeue":true,"name":"Basic android native test (Android GoogleApi Emulator on Android 8.0)","avdName":"O-phone-gms-portrait-appium","locale":"es_AR","language":"es"},null,null]
[d
@vrunoa
vrunoa / virtualbox-vagrant-nuclear-option.sh
Created Sep 11, 2018 — forked from tjbenton/virtualbox-vagrant-nuclear-option.sh
Completely uninstall VirtualBox and Vagrant and reinstall through brew
View virtualbox-vagrant-nuclear-option.sh
# update brew because `brew update` is broken after updating to El Capitan
cd `brew --prefix`
git fetch origin
git reset --hard origin/master
sudo shutdown -r now # restart the computer
# open terminal and run the following
brew update
brew cleanup
View gist:3e8fde6e76bf5529a1535641ee5c0601
[Appium] Welcome to Appium v1.6.4 (REV 56417f88f98a559aca57fc6ba169ed6e1e2c04f1)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"requiredCapabilities":{},"desiredCapabilities":{"deviceName":"Android GoogleApi Emulator","name":"GoogleMapsTest - Android 6.0","isGms":true,"app":"https://www.dropbox.com/s/tycwrkzvrcbqekn/app-prodFlavour-debug-unaligned.apk?dl=1","appActivity":"com.easymenu.activities.SplashActivity","platformVersion":"6.0","avdArgs":"-camera-back emulated -camera-front emulated","avd":"Pixel_API_O","appPackage":"com.easymenu.android","platformName":"Android","appiumVersion":"1.6.4"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"Android GoogleApi Emulator","name":"GoogleMapsTest - Android 6.0","isGms":true,"app":"https://www.dropbox.com/s/tycwrkzvrcbqekn/app-prodFlavour-debug-unaligned.apk?dl=1","appActivity":"com.easymenu.activities.SplashActivity","platformVersion":"6.0","avdArgs":"-camera-back emulated -
View appium-android-driver.log
createSession
1) should start brave browser
0 passing (9s)
1 failing
1) createSession should start brave browser:
Error: unknown error: WebView apps require activity name
View gist:48aa4acb2d2a7a888ecb018deb6d758c

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@vrunoa
vrunoa / appium-unlock.log
Created Jan 24, 2017
Appium pattern unlock failing log
View appium-unlock.log
./node_modules/.bin/gulp transpile && ./node_modules/.bin/mocha --compilers js:babel-core/register -t 0 test/functional/driver-e2e-specs.js
[08:43:15] Using gulpfile ~/Sauce/appium-android-driver/gulpfile.js
[08:43:16] Starting 'transpile'...
[08:43:30] Finished 'transpile' after 15 s
createSession
dbug AndroidDriver AndroidDriver version: 1.10.39
WARN BaseDriver The following capabilities were provided, but are not recognized by appium: unlockType, unlockKey.
info BaseDriver Session created with session id: 9d026d3f-7402-4335-a28e-6f030a80770f
View gist:d4835b9c69ef955d8d530132c493b472
Welcome to Appium v1.6.0 (REV 56417f88f98a559aca57fc6ba169ed6e1e2c04f1)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"requiredCapabilities":{},"desiredCapabilities":{"deviceName":"Android Emulator","name":"AvailableCamerasTest - Android 6.0","app":"https://s3.amazonaws.com/sauce-bundles/emulator-files/android-emulator-test-app.apk","platformVersion":"6.0","avdArgs":"-camera-back emulated -camera-front emulated","avd":"Nexus5","appPackage":"com.saucelabs.android.emulators.test.app","platformName":"Android","appActivity":"com.saucelabs.android.emulators.test.app.activities.MainActivity"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"Android Emu...
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] deviceName: 'Android Emulator'
[Appium] name: 'AvailableCamerasTest - Android 6.0'
[Appium] app: 'https://s3.amazonaws.com/sauce-bundles/emulator-files/android-emulator-test-app.apk'
[Appium] platform
View .dev.package.json
[{
"module": "standard",
"tasks": {
"prestart": "standard"
},
"extend": {
"standard": {
"globals": [],
"ignore": ["dist/*"]
}
You can’t perform that action at this time.