File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
from helpers ._os_lib import run_aut , kill_process
11
11
12
+
13
+ SIMULATOR_NAME = 'iPhone 6s 90'
14
+
12
15
def create_simulator (name , device_type , ios_version ):
13
16
'''Create simulator'''
14
17
@@ -39,7 +42,7 @@ def wait_for_simulator(timeout=300):
39
42
start_time = time .time ()
40
43
end_time = start_time + timeout
41
44
while not found :
42
- time .sleep (5 )
45
+ time .sleep (2 )
43
46
output = run_aut ("xcrun simctl list devices" )
44
47
if "Booted" in output :
45
48
found = True
@@ -65,7 +68,7 @@ def delete_simulator(name):
65
68
def cat_app_file_on_simulator (app_name , file_path ):
66
69
'''Return content of file on simulator'''
67
70
print "~~~ Catenate ~~~"
68
- sim_id = get_simulator_id_by_name ('iPhone 6s 90' )
71
+ sim_id = get_simulator_id_by_name (SIMULATOR_NAME )
69
72
app_path = run_aut (
70
73
"xcrun simctl get_app_container {0} org.nativescript.{1}" .format (sim_id , app_name ))
71
74
print "~~~ Application path: " + app_path
You can’t perform that action at this time.
0 commit comments