honeydew 0.23.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -87,5 +87,9 @@ module Honeydew
87
87
  def wake_up
88
88
  perform_action :wake_up
89
89
  end
90
+
91
+ def sleep
92
+ perform_action :sleep
93
+ end
90
94
  end
91
95
  end
@@ -1,3 +1,3 @@
1
1
  module Honeydew
2
- VERSION = '0.23.0'
2
+ VERSION = '0.24.0'
3
3
  end
data/server/pom.xml CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  <groupId>amplify</groupId>
7
7
  <artifactId>honeydew-server</artifactId>
8
- <version>0.23.0</version>
8
+ <version>0.24.0</version>
9
9
  <packaging>jar</packaging>
10
10
  <name>Honeydew Android Server</name>
11
11
 
@@ -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
+ }
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: honeydew
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.23.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-10-15 00:00:00.000000000 Z
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.23.0.jar
217
+ - server/target/honeydew-server-0.24.0.jar
217
218
  homepage:
218
219
  licenses: []
219
220
  post_install_message: