Commit Graph

647 Commits

Author SHA1 Message Date
sebv
eaf442675e test fix 2014-04-05 02:15:24 +08:00
sebv
4702906186 allowing app paths relative to appium root 2014-04-05 02:11:45 +08:00
Jonathan Lipps
ce8adcfe6a update testsuite to use 1.0-style caps
- and fix various issues with specific tests
2014-04-03 18:55:49 -07:00
Jonathan Lipps
d1553ccf39 update ios pullFile to account for the fact that the sim root might not have the exact version in it
@DylanLacey have a look at this, it's a gotcha of working with sim paths. My iOS SDK version might be '7.0', but the directory might be '7.0.3', or '7.0.3-64', so I changed this to use the directory finder from settings.js, and to throw a warning if there are multiple dirs. Unfortunately this change makes the unit tests rather impractical since it really depends on getting the status of the filesystem, so I added a new functional test and removed the unit tests.
Also verified tests pass now on 6.1, 7.0, and 7.1 with these changes
2014-04-03 11:54:57 -07:00
Jonathan Lipps
30b7c8b0b6 Merge pull request #2227 from DylanLacey/get_docs
Added pullFile support for iOS simulator.
2014-04-03 10:49:54 -07:00
Dylan Lacey
f2f349a36d Added pullFile support for iOS simulator.
`mobile: pullFile {:path => '/Some/Path'}` fetches a file relative to
the root of the device's filesystem.

`mobile: pullFile {:path => '/Applications/Some.app'}` fetches a file
relative to the root of that Application's .app directory, adding in the
GUID.

Fixes #2010, #1807
2014-04-02 22:19:25 -07:00
Jonathan Lipps
f6fc69d496 raise an error if someone sends in a bad platformName (fix #2179) 2014-04-02 15:10:31 -07:00
Jonathan Lipps
1363f7d248 Merge pull request #2228 from Jonahss/androidLocStrat
Android loc strat
2014-04-02 14:37:03 -07:00
jonahss
ff30a5288b -android uiautomator locator strategy 2014-04-02 14:27:49 -07:00
Jonathan Lipps
0b2bd7b276 Merge pull request #2246 from jlipps/new-endpoints
deprecate soon-to-be-removed mobile: methods
2014-04-02 13:33:54 -07:00
Jonathan Lipps
28f966e9a1 deprecate soon-to-be-removed mobile: methods 2014-04-02 13:32:22 -07:00
Jonathan Lipps
17bef33b01 Merge pull request #2224 from imurchie/isaac-touch
First pass at iOS touch for Appium 1.0
2014-04-01 18:09:35 -07:00
Dylan Lacey
148336fc04 Use the new capabilities throughout the codebase.
Every entry in `Capabilities.capabilityConversions` is now used to
convert capabilities into the args array.

Change version to versionVersion.
Change device to platformName
Stop aliasing platformVersion to version in Capabilities.js
2014-04-01 16:42:28 -07:00
Isaac Murchie
0e11389bb7 Retool loop through actions 2014-04-01 16:18:26 -07:00
Jonathan Lipps
8ff9a0439d Merge pull request #2223 from jlipps/master
check that iOS deviceName matches instruments's list before launching
2014-03-31 15:38:56 -07:00
Isaac Murchie
016b8c6559 First pass at iOS touch for Appium 1.0 2014-03-31 14:00:44 -07:00
Jonathan Lipps
a928cab752 Merge pull request #2222 from imurchie/isaac-contexts
Fix setWindow for Android
2014-03-31 12:21:22 -07:00
Jonathan Lipps
39949dc835 check we can launch a device based on user's caps and throw a nice error if not (fix #2114) 2014-03-31 12:15:34 -07:00
Jonathan Lipps
ab7b70906a add test that we don't reuse element ids (related to #2096) 2014-03-31 11:02:42 -07:00
Isaac Murchie
2043324473 Fix setWindow for Android 2014-03-31 10:59:11 -07:00
Jonathan Lipps
f78cee9644 Merge pull request #2211 from jlipps/real-xpath-android
Real XML-based XPath for Android
2014-03-28 15:07:50 -07:00
Linzhen Xuan
148e5f3ba3 Modify scroll to take element argument.
Originally, scroll scrolls insider the first ScrollView. However, most of our ScrollViews is CollectionView, or TableView. So, we got error that the ScrollView could not found, although there are multiple "ScrollViews".

We also need to able to scroll insider different scrollviews.
2014-03-28 17:47:55 -04:00
Jonathan Lipps
97710ca829 Merge pull request #2209 from sebv/async-queue
Ios command queue using Async.queue
2014-03-28 10:45:05 -07:00
Jonathan Lipps
ec563bd2b8 add real xpath support for android
- relies on xpath support for ios pull request
- adds support under the '-real xpath' locator strategy
- deprecates the original xpath strategy, which will be replaced in 1.0
- because we have no way to get a dom fragment starting from an element,
  this strategy will only work for root-level queries
2014-03-28 10:29:48 -07:00
Jonathan Lipps
36fbeca8c1 update android xml source to have class names as node names rather than just 'node' 2014-03-28 10:29:48 -07:00
Jonathan Lipps
78f3a43982 add test for existing xml source behavior 2014-03-28 10:29:48 -07:00
sebv
b19d92efd7 making isDisplayed helper run in parallel 2014-03-28 22:59:32 +08:00
sebv
767a6bd992 reimplemented queue with async.js 2014-03-28 22:53:47 +08:00
Jonathan Lipps
d0474f3051 add tests for new '-real xpath' temporary loc strat
and test for new real xml page source
2014-03-27 16:29:55 -07:00
jonahss
878497d63f accessibility_id -> accessibility id 2014-03-27 15:05:17 -07:00
jonahss
0ff63ff003 -ios_uiautomation -> -ios uiautomation 2014-03-27 14:42:14 -07:00
jonahss
7cedf44631 fix find-element test 2014-03-27 14:30:55 -07:00
sebv
f7183f2f23 better test defaults for ios71 2014-03-27 14:20:27 +08:00
sebv
1a3fa222cb Only counting displayed elements 2014-03-27 12:02:17 +08:00
sebv
c92f3d6cbc improving ios uiauto tests 2014-03-26 20:59:19 +08:00
sebv
0f3f21b9b1 more test improvements 2014-03-26 20:59:19 +08:00
sebv
89026145db rewrote waitForLaunch 2014-03-26 16:43:39 +08:00
sebv
46984e21e9 fixing prelaunch tests 2014-03-26 10:55:17 +08:00
Dylan Lacey
9a7594870c Added deprecation warning for tag name
Add deprecation warnings for class name, tag name locator strategies.

Deprecations warnings will now be thrown for:
* 'tag name' in the native context
* 'class name' in the native context
* 'class name' in the web context

'class_name' is now a valid locator strategy for checkValidLocStrat

Add test for new class name locator
rename createCommand createGetElementCommand
Adding unit tests for new exception throwing
Add test for incorrect UIA class names
2014-03-25 18:07:02 -07:00
Jonathan Lipps
dc5c08ef5c Merge pull request #2166 from DylanLacey/no_json_please
No JSON please
2014-03-25 12:11:24 -07:00
Jonathan Lipps
d2b7764ad6 Merge pull request #2168 from sebv/test-session
Test suite improvement.
2014-03-25 12:05:48 -07:00
sebv
b61e516824 prelaunch test improvements 2014-03-26 02:23:42 +08:00
Jonathan Lipps
d6b6ab1809 Merge pull request #2159 from Jonahss/accessibility_idLocStrat
accessibility_id location strategy
2014-03-25 10:41:28 -07:00
sebv
5a0360f951 Avoiding quit hanging + better verbose logging 2014-03-25 18:57:47 +08:00
Dylan Lacey
0cbdb9b2d4 Log a deprecation message when mobileSource is called with the JSON
type, asking users to use XML type instead.
2014-03-25 03:18:46 -07:00
jonahss
9adf2afb34 rejigger this test 2014-03-24 17:09:57 -07:00
jonahss
1eba0fc45f readded some tests, since they pass now 2014-03-24 11:11:42 -07:00
jonahss
273a008b95 add accessibility_id loc strat 2014-03-24 11:11:04 -07:00
sebv
de2205afbe putting force-iphone after force-ipad so that further tests run. 2014-03-25 02:05:06 +08:00
Jonathan Lipps
7e5ca293a6 if we're not in a git repo. don't link commit hooks (fix #2141) 2014-03-24 09:59:14 -07:00