Permalink
Browse files

add resources/ to egg

enter text
wait until simulator is terminated
  • Loading branch information...
1 parent 94d9a15 commit f62de7c1bc2768ea77e3b8b5e65a64ece7d8274c @bogensberger bogensberger committed Aug 2, 2012
Showing with 14 additions and 3 deletions.
  1. +2 −1 setup.py
  2. +8 −1 src/IOSLibrary/__init__.py
  3. +1 −1 src/IOSLibrary/version.py
  4. +3 −0 tests/apidemos/apidemos.txt
View
@@ -28,5 +28,6 @@
classifiers = CLASSIFIERS.splitlines(),
package_dir = {'' : 'src'},
install_requires = ['robotframework', 'requests'],
- packages = ['IOSLibrary']
+ packages = ['IOSLibrary'],
+ package_data = {'IOSLibrary': ['resources/*']}
)
@@ -65,7 +65,9 @@ def stop_emulator(self):
Stops a previously started emulator
'''
cmd = "`echo 'application \"iPhone Simulator\" quit' | osascript`"
- subprocess.Popen(cmd,shell=True)
+ stop_proc = subprocess.Popen(cmd,shell=True)
+ stop_proc.wait()
+ self._emulator_proc.wait()
def is_device_available(self):
assert requests.get(self._url).status_code == 405, "Device is not available"
@@ -255,6 +257,11 @@ def touch_text(self, placeholder=None):
else:
self.touch("textField placeholder:'%s'" % placeholder)
+ def set_text(self, txt, query="textField"):
+ text_fields_modified = self._map(query, "setText", [txt])
+ if not text_fields_modified:
+ self._screen_and_raise("could not find text field %s" % query)
+
def go_back(self):
'''
Touch the first Navigationitem in a Navigation Bar
@@ -1 +1 @@
-VERSION = '0.0.2'
+VERSION = '0.0.4'
@@ -49,6 +49,9 @@ I can swipe
I can check content
touch tabBarButton index:0
Screen should contain Name
+
+I can enter text
+ Set text Hallo du Ei query=textField
I can rotate the device to
Set device orientation to left

0 comments on commit f62de7c

Please sign in to comment.