This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |