Skip to content

Instantly share code, notes, and snippets.

@sebv
Created January 28, 2014 18:20
Show Gist options
  • Select an option

  • Save sebv/8673182 to your computer and use it in GitHub Desktop.

Select an option

Save sebv/8673182 to your computer and use it in GitHub Desktop.
appium git:(sebv-working) ✗ ./bin/test.sh --android
/usr/bin/xcode-select
RUNNING ANDROID TESTS
---------------------
apidemos - alerts -
✓ should detect low power... (3357ms)
apidemos - attributes -
✓ should be able to find text attribute (7166ms)
✓ should be able to find name attribute (4315ms)
✓ should be able to find name attribute, falling back to text (11730ms)
✓ should be able to find displayed attribute (3992ms)
✓ should be able to find displayed attribute through normal func (4140ms)
✓ should be able to get element location (3843ms)
✓ should be able to get element size (3668ms)
apidemo - basic -
short command timeout
✓ should die with short command timeout (9073ms)
commands coming in
✓ should not die if commands come in (20412ms)
api
✓ should get device size (82ms)
✓ should be able to get current activity (889ms)
✓ should be able to get logcat log type
✓ should be able to get logcat logs (297ms)
✓ should be able to detect if app is installed (7499ms)
✓ should background the app (13126ms)
activity style: no period
✓ should still find activity (33034ms)
activity style: fully qualified
✓ should still find activity (39300ms)
error cases
activity style: non-existent
✓ should throw an error (37562ms)
bad app path
✓ should throw an error (3498ms)
no activity sent in with caps
✓ should throw an error (2111ms)
no package sent in with caps
✓ should throw an error
appium android
✓ should load a zipped app via url (43719ms)
apidemo - find elements -
mobile find
✓ should scroll to an element by text or content desc (27631ms)
✓ should find a single element by content-description (5903ms)
✓ should find a single element by text (6298ms)
find element(s) methods
✓ should find a single element by content-description (6598ms)
✓ should find a single element by tag name (5821ms)
✓ should find multiple elements by tag name (8682ms)
✓ should not find an element that doesnt exist (5944ms)
✓ should not find multiple elements that doesnt exist (6612ms)
✓ should fail on empty locator (7853ms)
✓ should find a single element by id (35360ms)
find element(s) from element
✓ should find a single element by tag name (6779ms)
✓ should find multiple elements by tag name (8085ms)
✓ should not find an element that doesnt exist (9894ms)
✓ should not find multiple elements that doesnt exist (11196ms)
xpath
✓ should find element by type (6673ms)
✓ should find element by text (6474ms)
✓ should find element by partial text (6755ms)
✓ should find the last element (9053ms)
✓ should find element by xpath index and child (6626ms)
✓ should find element by index and embedded desc (6641ms)
✓ should get an error when strategy doesnt exist
unallowed tag names
✓ should not find secure fields (116ms)
apidemo - gestures -
✓ should click via x/y pixel coords (16432ms)
✓ should click via x/y pct (14184ms)
✓ should click via touch api (16798ms)
apidemo - keyboard -
✓ should be able to edit a text field (24631ms)
✓ should be able to edit and clear a text field (23120ms)
apidemo - location -
✓ should set geo location (5954ms)
apidemos - orientation -
✓ should rotate screen to landscape (7062ms)
✓ should rotate screen to portrait (6511ms)
✓ Should not error when trying to rotate to portrait again (6388ms)
apidemos - screenshot -
✓ should get an app screenshot (2759ms)
✓ should not cause other commands to fail (18208ms)
apidemos - source -
✓ should return the page source (12790ms)
✓ should return the page source without crashing other commands (2229ms)
58 passing (22m)
1313.77 real 4.93 user 1.07 sys
gappium
HelloGappium
1) should open the app and navigate through the dialogs
selendroid - basic -
api
✓ should be able to get logcat log type
✓ should be able to get logcat logs (777ms)
✓ should be able to proxy errors (282ms)
✓ should be able to set location
✓ should error out nicely with incompatible commands
uninstall app
✓ should be able to uninstall the app (6384ms)
background app
✓ should background the app (14294ms)
command timeouts
✓ should die with short timeout (6541ms)
app activities with no dot
✓ should not launch app (37306ms)
fully qualified app activities
✓ should still launch app (37975ms)
selendroid - web_view -
✓ should be web view
✓ should find and click an element (11360ms)
✓ should clear input (6144ms)
✓ should find and enter key sequence in input (11386ms)
✓ should be able to handle selendroid special keys (404ms)
✓ should get web source (2101ms)
16 passing (9m)
1 failing
1) gappium HelloGappium should open the app and navigate through the dialogs:
Error: Error response status: 7.
at Webdriver._newError (/Users/seb/Documents/Work/appium/node_modules/wd/lib/webdriver.js:80:13)
at /Users/seb/Documents/Work/appium/node_modules/wd/lib/webdriver.js:156:25
at /Users/seb/Documents/Work/appium/node_modules/wd/lib/webdriver.js:411:5
at Request._callback (/Users/seb/Documents/Work/appium/node_modules/wd/lib/webdriver.js:281:7)
at Request.self.callback (/Users/seb/Documents/Work/appium/node_modules/wd/node_modules/request/request.js:122:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request.<anonymous> (/Users/seb/Documents/Work/appium/node_modules/wd/node_modules/request/request.js:888:14)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage.<anonymous> (/Users/seb/Documents/Work/appium/node_modules/wd/node_modules/request/request.js:839:12)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:920:16
at process._tickCallback (node.js:415:13)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment