7
7
from core .device .device import Device
8
8
from core .device .simulator import Simulator
9
9
from core .osutils .folder import Folder
10
- from core .settings .settings import IOS_RUNTIME_PATH , SIMULATOR_NAME
10
+ from core .settings .settings import IOS_RUNTIME_PATH , SIMULATOR_NAME , SIMULATOR_TYPE , SIMULATOR_SDK
11
11
from core .tns .tns import Tns
12
12
from core .tns .tns_platform_type import Platform
13
13
@@ -21,6 +21,7 @@ def setUp(self):
21
21
BaseClass .setUp (self )
22
22
Folder .cleanup (self .app_name )
23
23
Device .ensure_available (platform = Platform .IOS )
24
+ Simulator .stop ()
24
25
25
26
def test_001_device_list (self ):
26
27
# Ensure both simulator and real device are listed
@@ -38,6 +39,15 @@ def test_001_device_list(self):
38
39
for device_id in self .DEVICE_IDS :
39
40
assert device_id in output
40
41
42
+ def test_002_device_list (self ):
43
+ output = Tns .run_tns_command ("device ios --available-devices" , attributes = {"--path" : self .app_name })
44
+ assert SIMULATOR_NAME in output
45
+ assert SIMULATOR_TYPE in output
46
+ assert SIMULATOR_SDK in output
47
+ for device_id in self .DEVICE_IDS :
48
+ assert device_id in output
49
+ assert not Simulator .is_running ()[0 ], 'Simulator is started after "tns device ios --available-devices"!'
50
+
41
51
def test_100_device_log_list_applications_and_run_ios (self ):
42
52
"""
43
53
Verify following command work
0 commit comments