Skip to content

Instantly share code, notes, and snippets.

View sebv's full-sized avatar

seb vincent sebv

  • Sauce Labs
  • Taipei, Taiwan
View GitHub Profile
require('colors');
var chai = require("chai");
var chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
chai.should();
var wd;
try {
wd = require('wd');
} catch( err ) {
➜ appium git:(sebv-working) ✗ ./bin/test.sh --ios7
/usr/bin/xcode-select
RUNNING IOS 7.0 TESTS
---------------------
Found Xcode for iOS 7.0, switching to it
testapp - active -
✓ should return active element (219ms)
testapp - active -
✓ should return active element (217ms)
testapp - basic -
using calc app
✓ should fill two fields with numbers (3337ms)
✓ should fill two fields with numbers - sendKeys (3583ms)
✓ should fill two fields with numbers - setValue (2204ms)
✓ should confirm that button is displayed (429ms)
✓ should confirm that the disabled button is disabled (439ms)
➜ appium git:(sebv-working) ✗ ./bin/test.sh --ios6
/usr/bin/xcode-select
RUNNING IOS 6.1 TESTS
---------------------
Found Xcode for iOS 6.1, switching to it
gappium
HelloGappium
✓ should open the app and navigate through the dialogs (5342ms)
appium git:(sebv-working) ✗ VERBOSE=1 DEVICE=android mocha test/functional/apidemos/gestures.js
apidemo - gestures -
caps --> { app: '/Users/seb/Documents/Work/appium/sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk',
'app-package': 'com.example.android.apis',
'app-activity': '.ApiDemos',
device: 'Android' }
opts --> {}
remainingAttemps --> 3
/*global it:true, describe:true, before:true, after:true */
"use strict";
var wd = require("wd"),
Q = wd.Q;
require('colors');
var chai = require("chai"),
chaiAsPromised = require("chai-as-promised");
appium git:(sebv-working) ✗ ./bin/test.sh --android
/usr/bin/xcode-select
RUNNING ANDROID TESTS
---------------------
apidemos - alerts -
✓ should detect low power... (3357ms)
apidemos - attributes -
nfo: [INSTSERVER] Socket data received (56 bytes)
info: [INSTSERVER] Socket data being routed for 'cmd' event
info: [INSTSERVER] Got result from instruments: {"status":0,"value":"PORTRAIT"}
info: We're on iOS7 simulator: clicking apple button to get into a webview
info: Pushing command to appium work queue: "au.elemForAction(au.getElementByXpath('//window[2]/scrollview[1]/button[1]'), 0).tap()"
debug: Sending command to instruments: au.elemForAction(au.getElementByXpath('//window[2]/scrollview[1]/button[1]'), 0).tap()
info: [INSTSERVER] Sending command to instruments: au.elemForAction(au.getElementByXpath('//window[2]/scrollview[1]/button[1]'), 0).tap()
info: [INSTSERVER] Socket data received (50 bytes)
info: [INSTSERVER] Socket data being routed for 'cmd' event
info: [INSTSERVER] Got result from instruments: {"status":7,"value":null}
> CALL init({"platform":"LINUX","name":"example test"})
> POST /session {"desiredCapabilities":{"platform":"LINUX","name":"example test","browserName":"firefox","version":"","javascriptEnabled":true}}
Driving the web on session: 4d9235012ac1457590eaa3604d6bd739
> RESPONSE init({"platform":"LINUX","name":"example test"}) "4d9235012ac1457590eaa3604d6bd739",{"rotatable":false,"browserConnectionEnabled":true,"acceptSslCerts":true,"cssSelectorsEnabled":true,"javascriptEnabled":true,"nativeEvents":false,"databaseEnabled":true,"locationContextEnabled":true,"takesScreenshot":true,"platform":"LINUX","browserName":"firefox","webdriver.remote.sessionid":"8dc6209c-9a1f-4036-bc60-036bc1e1e024","version":"27.0","applicationCacheEnabled":true,"webStorageEnabled":true,"handlesAlerts":true}
> CALL sauceJobUpdate({"tags":["example"]})
> POST /rest/v1/:user/jobs/:sessionID undefined
> RESPONSE sauceJobUpdate({"tags":["example"]})
> CALL get("http://admc.io/wd/test-pages/guinea-pig.html")
"use strict";
/*
run:
node local-ios-wd-safari.js
*/
var wd = require("wd");
require('colors');