Skip to content

Commit 392e093

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
Update simulator.py
1 parent ba4190e commit 392e093

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

helpers/simulator.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
from helpers._os_lib import run_aut, kill_process
1111

12+
13+
SIMULATOR_NAME = 'iPhone 6s 90'
14+
1215
def create_simulator(name, device_type, ios_version):
1316
'''Create simulator'''
1417

@@ -39,7 +42,7 @@ def wait_for_simulator(timeout=300):
3942
start_time = time.time()
4043
end_time = start_time + timeout
4144
while not found:
42-
time.sleep(5)
45+
time.sleep(2)
4346
output = run_aut("xcrun simctl list devices")
4447
if "Booted" in output:
4548
found = True
@@ -65,7 +68,7 @@ def delete_simulator(name):
6568
def cat_app_file_on_simulator(app_name, file_path):
6669
'''Return content of file on simulator'''
6770
print "~~~ Catenate ~~~"
68-
sim_id = get_simulator_id_by_name('iPhone 6s 90')
71+
sim_id = get_simulator_id_by_name(SIMULATOR_NAME)
6972
app_path = run_aut(
7073
"xcrun simctl get_app_container {0} org.nativescript.{1}".format(sim_id, app_name))
7174
print "~~~ Application path: " + app_path

0 commit comments

Comments
 (0)