honeydew 0.22.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,10 @@ module Honeydew
16
16
  perform_assertion :is_text_present, :text => text, :type => 'TextView'
17
17
  end
18
18
 
19
+ def has_text_disappear?(text)
20
+ perform_assertion :is_text_gone, :text => text, :type => 'TextView'
21
+ end
22
+
19
23
  def has_textview_with_text_and_description?(text, description)
20
24
  perform_assertion :is_text_present, :text => text, :description => description, :type => 'TextView'
21
25
  end
@@ -1,3 +1,3 @@
1
1
  module Honeydew
2
- VERSION = '0.22.0'
2
+ VERSION = '0.23.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.22.0</version>
8
+ <version>0.23.0</version>
9
9
  <packaging>jar</packaging>
10
10
  <name>Honeydew Android Server</name>
11
11
 
@@ -33,6 +33,10 @@ public abstract class Action {
33
33
  return uiObject.waitForExists(getTimeoutInMs(arguments));
34
34
  }
35
35
 
36
+ protected boolean isUiObjectGone(UiObject uiObject, Map<String, Object> arguments){
37
+ return uiObject.waitUntilGone(getTimeoutInMs(arguments));
38
+ }
39
+
36
40
  protected UiObject getUiObject(Map<String, Object> arguments) {
37
41
  ViewSelector viewSelector = getViewSelector(arguments);
38
42
  return viewSelector.find();
@@ -64,6 +64,7 @@ public class ActionsExecutor {
64
64
  actionClasses.add(PressEnter.class);
65
65
  actionClasses.add(WakeUp.class);
66
66
  actionClasses.add(IsTextPresent.class);
67
+ actionClasses.add(IsTextGone.class);
67
68
  actionClasses.add(IsButtonPresent.class);
68
69
  actionClasses.add(IsElementWithNestedTextPresent.class);
69
70
  actionClasses.add(IsChildCountEqualTo.class);
@@ -0,0 +1,19 @@
1
+ package com.amplify.honeydew_server.actions;
2
+
3
+ import com.amplify.honeydew_server.Action;
4
+ import com.amplify.honeydew_server.Result;
5
+ import com.android.uiautomator.core.UiDevice;
6
+ import com.android.uiautomator.core.UiObjectNotFoundException;
7
+
8
+ import java.util.Map;
9
+
10
+ public class IsTextGone extends Action {
11
+ public IsTextGone(UiDevice uiDevice) {
12
+ super(uiDevice);
13
+ }
14
+
15
+ @Override
16
+ public Result execute(Map<String, Object> arguments) throws UiObjectNotFoundException {
17
+ return isUiObjectGone(getUiObject(arguments), arguments) ? Result.OK : Result.FAILURE;
18
+ }
19
+ }
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: honeydew
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.22.0
5
+ version: 0.23.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-08 00:00:00.000000000 Z
15
+ date: 2013-10-15 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activesupport
@@ -194,6 +194,7 @@ files:
194
194
  - server/src/main/java/com/amplify/honeydew_server/actions/IsElementWithNestedTextPresent.java
195
195
  - server/src/main/java/com/amplify/honeydew_server/actions/IsOptionInSettingsMenuDisabled.java
196
196
  - server/src/main/java/com/amplify/honeydew_server/actions/IsOptionInSettingsMenuEnabled.java
197
+ - server/src/main/java/com/amplify/honeydew_server/actions/IsTextGone.java
197
198
  - server/src/main/java/com/amplify/honeydew_server/actions/IsTextPresent.java
198
199
  - server/src/main/java/com/amplify/honeydew_server/actions/LaunchApp.java
199
200
  - server/src/main/java/com/amplify/honeydew_server/actions/LaunchHome.java
@@ -212,7 +213,7 @@ files:
212
213
  - spec/honeydew/device_matchers_spec.rb
213
214
  - spec/honeydew/device_spec.rb
214
215
  - spec/spec_helper.rb
215
- - server/target/honeydew-server-0.22.0.jar
216
+ - server/target/honeydew-server-0.23.0.jar
216
217
  homepage:
217
218
  licenses: []
218
219
  post_install_message: