honeydew 0.23.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/honeydew/device_actions.rb +4 -0
- data/lib/honeydew/version.rb +1 -1
- data/server/pom.xml +1 -1
- data/server/src/main/java/com/amplify/honeydew_server/ActionsExecutor.java +1 -0
- data/server/src/main/java/com/amplify/honeydew_server/actions/Sleep.java +23 -0
- data/server/target/honeydew-server-0.24.0.jar +0 -0
- metadata +4 -3
- data/server/target/honeydew-server-0.23.0.jar +0 -0
data/lib/honeydew/version.rb
CHANGED
data/server/pom.xml
CHANGED
@@ -63,6 +63,7 @@ public class ActionsExecutor {
|
|
63
63
|
actionClasses.add(PressBack.class);
|
64
64
|
actionClasses.add(PressEnter.class);
|
65
65
|
actionClasses.add(WakeUp.class);
|
66
|
+
actionClasses.add(Sleep.class);
|
66
67
|
actionClasses.add(IsTextPresent.class);
|
67
68
|
actionClasses.add(IsTextGone.class);
|
68
69
|
actionClasses.add(IsButtonPresent.class);
|
@@ -0,0 +1,23 @@
|
|
1
|
+
package com.amplify.honeydew_server.actions;
|
2
|
+
|
3
|
+
import android.os.RemoteException;
|
4
|
+
import com.amplify.honeydew_server.*;
|
5
|
+
import com.android.uiautomator.core.*;
|
6
|
+
|
7
|
+
import java.util.Map;
|
8
|
+
|
9
|
+
public class Sleep extends Action {
|
10
|
+
public Sleep(UiDevice uiDevice) {
|
11
|
+
super(uiDevice);
|
12
|
+
}
|
13
|
+
|
14
|
+
@Override
|
15
|
+
public Result execute(Map<String, Object> arguments) throws UiObjectNotFoundException {
|
16
|
+
try {
|
17
|
+
getUiDevice().sleep();
|
18
|
+
} catch (RemoteException e) {
|
19
|
+
return Result.FAILURE;
|
20
|
+
}
|
21
|
+
return Result.OK;
|
22
|
+
}
|
23
|
+
}
|
Binary file
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: honeydew
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.24.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Selvakumar Natesan
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-
|
15
|
+
date: 2013-11-07 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activesupport
|
@@ -207,13 +207,14 @@ files:
|
|
207
207
|
- server/src/main/java/com/amplify/honeydew_server/actions/SetText.java
|
208
208
|
- server/src/main/java/com/amplify/honeydew_server/actions/SetTextByIndex.java
|
209
209
|
- server/src/main/java/com/amplify/honeydew_server/actions/SetTextByLabel.java
|
210
|
+
- server/src/main/java/com/amplify/honeydew_server/actions/Sleep.java
|
210
211
|
- server/src/main/java/com/amplify/honeydew_server/actions/Unlock.java
|
211
212
|
- server/src/main/java/com/amplify/honeydew_server/actions/WakeUp.java
|
212
213
|
- server/src/main/java/com/amplify/honeydew_server/httpd/RemoteCommandReceiver.java
|
213
214
|
- spec/honeydew/device_matchers_spec.rb
|
214
215
|
- spec/honeydew/device_spec.rb
|
215
216
|
- spec/spec_helper.rb
|
216
|
-
- server/target/honeydew-server-0.
|
217
|
+
- server/target/honeydew-server-0.24.0.jar
|
217
218
|
homepage:
|
218
219
|
licenses: []
|
219
220
|
post_install_message:
|
Binary file
|