Skip to content

Instantly share code, notes, and snippets.

View JaniJegoroff's full-sized avatar

Jani Jegoroff JaniJegoroff

View GitHub Profile
@JaniJegoroff
JaniJegoroff / appium.txt
Created October 18, 2017 13:37
Appium logs
Janis-MacBook-Pro:bdd janijegoroff$ node node_modules/appium -a localhost -p 4723
[Appium] Welcome to Appium v1.7.1 (REV d792c6876b26eb899f6b1d074c2b8f4c1ecfcc35)
[Appium] Non-default server args:
[Appium] address: localhost
[Appium] Appium REST http interface listener started on localhost:4723
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.7.1","revision":"d792c6876b26eb899f6b1d074c2b8f4c1ecfcc35"}}
[HTTP] <-- GET /wd/hub/status 200 14 ms - 121
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","platformVersion":"11.0","deviceName":"iPhone 7","app":"/Users/janijegoroff/projects/mobile-ios-app/build/Development-iphonesimulator/aaa.app","newCommandTimeout":999999,"noReset":true,"fullReset":false,"automationName":"XCUITest","preventWDAAttachments":true,"clearSystemFiles":true,"showXcodeLog":true},"capabilities":{"firstMatch":[{"platformName"
@JaniJegoroff
JaniJegoroff / appium.log
Last active August 21, 2017 14:41
Appium settings app upgrade crashes
[Appium] Welcome to Appium v1.6.6-beta.4
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.6-beta.4","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 15 ms - 90
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"Android","deviceName":"XXXXX","app":"/Users/janijegoroff/projects/mobile-android-app/mobile-common/bdd/app-local-debug.apk","newCommandTimeout":999999,"noReset":true,"appWaitActivity":"com.ga.bbb.android.aaa.activity.FirstLaunchActivity, com.ga.bbb.android.aaa.activity.LandingActivity","automationName":"uiautomator2","clearSystemFiles":true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","deviceName":"XXXXX","app":"/Users/janijegoroff/projects/mobile-android-app/mobile-common/bdd/app-local-debug.apk","newCommandTimeout":99
@JaniJegoroff
JaniJegoroff / appium.txt
Created November 28, 2016 11:45
Appium #7303
[Appium] Welcome to Appium v1.6.1 (REV 0aa6fef79ff1e3bd2a250888e896222f0a7a12d7)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.1","revision":"0aa6fef79ff1e3bd2a250888e896222f0a7a12d7"}}
[HTTP] <-- GET /wd/hub/status 200 14 ms - 121
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","platformVersion":"10.1","deviceName":"iPhone 7","app":"/Users/janijegoroff/projects/mobile-ios-app/build/Development-iphonesimulator/myApp.app","newCommandTimeout":999999,"noReset":true,"fullReset":false,"automationName":"XCUITest"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","platformVersion":"10.1","deviceName":"iPhone 7","app":"/Users/janijegoroff/projects/mobile-ios-app/build/Development-iphonesimulator/myApp.app","newCommandTimeout":999999,"n
@JaniJegoroff
JaniJegoroff / appium-log.txt
Created June 29, 2016 09:10
UiAutomator exited unexpectedly when changing network mode
Janis-MacBook-Air:bdd janijegoroff$ appium
[Appium] Welcome to Appium v1.5.3 (REV 300441be033c7e47ae26de29137aa985ad7169d4)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"newCommandTimeout":999999,"platformName":"Android","deviceName":"Nexus 7","app":"/Users/janijegoroff/projects/ruby_lib/android_tests/api.apk","appPackage":"io.appium.android.apis","appActivity":".ApiDemos"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"newCommandTimeout":99999...
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] newCommandTimeout: 999999
[Appium] platformName: 'Android'
[Appium] deviceName: 'Nexus 7'
@JaniJegoroff
JaniJegoroff / Readme
Created May 17, 2016 18:56
How to capture photo with Google camera using AndroidViewClient
1. Install AndroidViewClient: https://github.com/dtmilano/AndroidViewClient/wiki
2. Implement python script that touches button by id
3. Execute python script from your Appium or Calabash test script
@JaniJegoroff
JaniJegoroff / 1.4.16.txt
Last active March 15, 2016 16:46
set_network_mode
info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: Console LogLevel: debug
info: --> POST /wd/hub/session {"desiredCapabilities":{"newCommandTimeout":999999,"platformName":"Android","deviceName":"Nexus 7","app":"/Users/janijegoroff/projects/ruby_lib/android_tests/api.apk","appPackage":"io.appium.android.apis","appActivity":".ApiDemos"}}
info: Client User-Agent string: appium/ruby_lib/8.0.2
info: [debug] Using local app from desired caps: /Users/janijegoroff/projects/ruby_lib/android_tests/api.apk
info: [debug] Creating new appium session d53a7403-bc78-4063-9deb-2b673e08b5af
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 1.8.0_45
Janis-MacBook-Air:bdd janijegoroff$ node node_modules/appium/
info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: Console LogLevel: debug
info: --> POST /wd/hub/session {"desiredCapabilities":{"newCommandTimeout":999999,"platformName":"Android","deviceName":"Nexus 7","app":"/Users/janijegoroff/projects/ruby_lib/android_tests/api.apk","appPackage":"io.appium.android.apis","appActivity":".ApiDemos"}}
info: Client User-Agent string: appium/ruby_lib/8.0.2
info: [debug] Using local app from desired caps: /Users/janijegoroff/projects/ruby_lib/android_tests/api.apk
info: [debug] Creating new appium session 6b4e912d-9615-4588-8dd4-284429ee81a1
info: Starting android appium
info: [debug] Getting Java version
@JaniJegoroff
JaniJegoroff / Readme
Last active August 29, 2015 14:18
calabash-android - touching button by id outside of your app
One possible solution to an issue discussed here: https://groups.google.com/forum/#!topic/calabash-android/7AhqqC1dyvY
1. Install AndroidViewClient: https://github.com/dtmilano/AndroidViewClient/wiki
2. Implement python script that touches button by id
3. Execute python script from your Calabash test script
@JaniJegoroff
JaniJegoroff / appDelegate.m
Last active August 29, 2015 14:08
Calabash backdoor method to capture screenshot and save it to Photos
- (NSString *)takeScreenShot:(NSString *)aIgnore
{
UIViewController* viewController = (UIViewController*) self.window.rootViewController;
UIGraphicsBeginImageContextWithOptions(viewController.view.bounds.size, viewController.view.opaque, 0.0);
[viewController.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
NSData *imageData = UIImagePNGRepresentation(image);
@JaniJegoroff
JaniJegoroff / 01_launch.rb
Created March 27, 2014 14:03
Xcode 5.1 / Simulator 7.1: Enable accessibility workaround
Before do |scenario|
enable_accessibility
@calabash_launcher = Calabash::Cucumber::Launcher.new
unless @calabash_launcher.calabash_no_launch?
@calabash_launcher.relaunch
@calabash_launcher.calabash_notify(self)
end
end