selendroid 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +20 -14
- data/lib/selendroid/version.rb +1 -1
- data/selendroid-prebuild/AndroidManifest.xml +8 -5
- data/selendroid-prebuild/selendroid-server.apk +0 -0
- data/selendroid.gemspec +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a178515f8a0b337abc1ada74ee5c04b18232e56
|
4
|
+
data.tar.gz: 1a88adb3e9d0ee5e1d7861e2a81dc8c26c2a7834
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53b327d43786b76d317ae8db31e58cf10e5511d071fbb830271ae4de7cf38a2010d251dc97387622051ada77867befac190bca15409c39fa491b8ae81377b4fe
|
7
|
+
data.tar.gz: 175be5db62cec6accf2402101e19d9d505dd91ef52541de3c2cf16465862778f47f5d76089556dddb2001fe578d3888f8c431630504de7ed87700792ca569ee4
|
data/README.md
CHANGED
@@ -1,7 +1,17 @@
|
|
1
1
|
Selendroid
|
2
2
|
==========
|
3
3
|
|
4
|
-
|
4
|
+
[](https://travis-ci.org/DominikDary/selendroid)
|
5
|
+
|
6
|
+
Selendroid is a test automation framework which drives of the UI of Android native and hybrid applications (apps). Tests are written using the Selenium 2 client API and for testing the application under test must not be modified.
|
7
|
+
|
8
|
+
Selendroid can be used on emulators and real devices and can be integrated as a node into the Selenium Grid for scaling and parallel testing.
|
9
|
+
|
10
|
+
|
11
|
+
Latest News:
|
12
|
+
------------
|
13
|
+
|
14
|
+
* Selendroid Version 0.3 is released ([List of Features](https://github.com/DominikDary/selendroid/blob/master/changelog.md))
|
5
15
|
|
6
16
|
Getting started
|
7
17
|
---------------
|
@@ -10,17 +20,13 @@ Selendroid is based on the Android instrumentation framework, so therefor only t
|
|
10
20
|
Selendroid-server in combination with the application under test (aut) must be installed on the device in order to be able to run automated end-to-end tests.
|
11
21
|
|
12
22
|
To write and run tests with selendroid, first a customized selendroid-server for your aut must be created. To simplify this process I have created a Ruby gem:
|
13
|
-
|
23
|
+
|
24
|
+
# Please note that ruby minimum version 1.9.2 is required
|
14
25
|
sudo gem install selendroid
|
15
|
-
selendroid build pathToYour.apk
|
26
|
+
selendroid build-and-start pathToYour.apk
|
16
27
|
|
17
|
-
|
18
|
-
|
19
|
-
# start the selendroid server:
|
20
|
-
adb shell am instrument -e main_activity 'org.openqa.selendroid.testapp.HomeScreenActivity' org.openqa.selendroid/org.openqa.selendroid.ServerInstrumentation
|
21
|
-
# replace 'org.openqa.selendroid.testapp.HomeScreenActivity' with your app's main activity.
|
22
|
-
# activate port forwarding.
|
23
|
-
adb forward tcp:8080 tcp:8080
|
28
|
+
Run your tests
|
29
|
+
--------------
|
24
30
|
|
25
31
|
A sample test looks like:
|
26
32
|
|
@@ -30,7 +36,7 @@ A sample test looks like:
|
|
30
36
|
|
31
37
|
WebDriverWait wait = new WebDriverWait(driver, 5);
|
32
38
|
WebElement inputUsername =
|
33
|
-
|
39
|
+
wait.until(ExpectedConditions.presenceOfElementLocated(By.id("inputUsername")));
|
34
40
|
inputUsername.sendKeys(user.getUsername());
|
35
41
|
Assert.assertEquals(nameInput.getText(), "Mr. Burns");
|
36
42
|
nameInput.clear();
|
@@ -39,8 +45,8 @@ A sample test looks like:
|
|
39
45
|
driver.findElement(By.id("btnRegisterUser")).click();
|
40
46
|
```
|
41
47
|
|
42
|
-
|
43
|
-
|
44
|
-
Please have a look at the [wiki](https://github.com/DominikDary/selendroid/wiki/).
|
48
|
+
You want more details?
|
49
|
+
----------------------
|
45
50
|
|
51
|
+
Check out our [wiki](https://github.com/DominikDary/selendroid/wiki/).
|
46
52
|
|
data/lib/selendroid/version.rb
CHANGED
@@ -2,19 +2,22 @@
|
|
2
2
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
3
3
|
package="org.openqa.selendroid"
|
4
4
|
android:versionCode="1"
|
5
|
-
android:versionName="0.3.
|
5
|
+
android:versionName="0.3.1" >
|
6
|
+
|
6
7
|
<uses-sdk android:minSdkVersion="10" />
|
7
8
|
|
8
|
-
<instrumentation
|
9
|
+
<instrumentation
|
10
|
+
android:name="org.openqa.selendroid.ServerInstrumentation"
|
11
|
+
android:targetPackage="org.openqa.selendroid.testapp" />
|
9
12
|
|
10
13
|
<uses-permission android:name="android.permission.INTERNET" />
|
11
14
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
12
15
|
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
|
13
16
|
<uses-permission android:name="android.permission.INJECT_EVENTS" />
|
17
|
+
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
14
18
|
|
15
|
-
<application
|
16
|
-
android:label="Selendroid" >
|
19
|
+
<application android:label="Selendroid" >
|
17
20
|
<uses-library android:name="android.test.runner" />
|
18
21
|
</application>
|
19
22
|
|
20
|
-
</manifest>
|
23
|
+
</manifest>
|
Binary file
|
data/selendroid.gemspec
CHANGED
@@ -15,6 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
dotfiles = [ '.gitignore']
|
16
16
|
gem.files = (Dir["**/*"].reject { |f| File.directory?(f) || ignores.any? { |i| File.fnmatch(i, f) } } + dotfiles+ Dir["selendroid-prebuild"]).sort
|
17
17
|
|
18
|
+
gem.required_ruby_version = '>= 1.9.2'
|
18
19
|
gem.executables = "selendroid"
|
19
20
|
gem.require_paths = ["lib"]
|
20
21
|
gem.add_dependency( "rubyzip")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selendroid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Dary
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -131,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
131
|
requirements:
|
132
132
|
- - '>='
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
134
|
+
version: 1.9.2
|
135
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - '>='
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
141
|
rubyforge_project:
|
142
|
-
rubygems_version: 2.0.
|
142
|
+
rubygems_version: 2.0.3
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Utility so simplify usage of the selendroid-server.
|