calabash-android 0.3.3.pre5 → 0.3.3
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.
- data/CHANGES.txt +5 -2
- data/lib/calabash-android/canned_steps.md +1 -1
- data/lib/calabash-android/lib/TestServer.apk +0 -0
- data/lib/calabash-android/version.rb +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/button/PressImageButtonDescription.java +11 -2
- metadata +5 -5
data/CHANGES.txt
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
+
0.3.3:
|
2
|
+
A series of bugfixes.
|
3
|
+
|
1
4
|
0.3.1:
|
2
5
|
Will now create test_servers dir if it doesn't exist.
|
3
6
|
|
4
7
|
0.3.0:
|
5
8
|
The test server is no longer build from source by calabash-android.
|
6
|
-
Calabash-android now comes with a half-done test server that is missing an
|
9
|
+
Calabash-android now comes with a half-done test server that is missing an
|
7
10
|
AndroidManifest.xml and a signature.
|
8
11
|
We will now inject a special crafted manifest that works with the app under test
|
9
12
|
into the test server apk and sign it with the appropiate certificate.
|
@@ -146,7 +149,7 @@
|
|
146
149
|
to stay backwards compatible with generated skeletons.
|
147
150
|
|
148
151
|
0.2.0.pre2:
|
149
|
-
A HTTP server has been introduced in the test server so that we no
|
152
|
+
A HTTP server has been introduced in the test server so that we no
|
150
153
|
longer use socket for communication.
|
151
154
|
|
152
155
|
0.2.0.pre1:
|
Binary file
|
@@ -13,11 +13,20 @@ public class PressImageButtonDescription implements Action {
|
|
13
13
|
@Override
|
14
14
|
public Result execute(String... args) {
|
15
15
|
String err = "No image button found with description "+args[0]+" found. Found only:";
|
16
|
+
int index = 0;
|
17
|
+
if (args.length == 2) {
|
18
|
+
index = Integer.parseInt(args[1]);
|
19
|
+
}
|
20
|
+
|
21
|
+
int count = 0;
|
16
22
|
for (ImageButton b : InstrumentationBackend.solo.getCurrentImageButtons()){
|
17
23
|
err += " "+ b.getContentDescription();
|
18
24
|
if (args[0].equals(b.getContentDescription())){
|
19
|
-
|
20
|
-
|
25
|
+
if (count == index) {
|
26
|
+
InstrumentationBackend.solo.clickOnView(b);
|
27
|
+
return Result.successResult();
|
28
|
+
}
|
29
|
+
count++;
|
21
30
|
}
|
22
31
|
}
|
23
32
|
return new Result(false, err);
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calabash-android
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.3
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.3
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jonas Maturana Larsen
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|
@@ -709,9 +709,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
709
709
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
710
710
|
none: false
|
711
711
|
requirements:
|
712
|
-
- - ! '
|
712
|
+
- - ! '>='
|
713
713
|
- !ruby/object:Gem::Version
|
714
|
-
version:
|
714
|
+
version: '0'
|
715
715
|
requirements: []
|
716
716
|
rubyforge_project:
|
717
717
|
rubygems_version: 1.8.24
|