@@ -37,7 +37,6 @@ def setUp(self):
37
37
given_running_emulator ()
38
38
given_real_device (platform = "android" )
39
39
cleanup_folder ('./TNS_App/platforms/android/build/outputs' )
40
- cleanup_folder ('./appTest' )
41
40
42
41
def tearDown (self ):
43
42
pass
@@ -48,7 +47,7 @@ def tearDownClass(cls):
48
47
cleanup_folder ('./TNS_App' )
49
48
cleanup_folder ('./TNS_App_NoPlatform' )
50
49
51
- def test_001_run_android (self ):
50
+ def test_001_run_android_justlaunch (self ):
52
51
output = run_aut (TNS_PATH + " run android --path TNS_App --justlaunch" )
53
52
assert "Project successfully prepared" in output
54
53
assert "Project successfully built" in output
@@ -97,13 +96,19 @@ def test_201_run_android_device_id_renamed_proj_dir(self):
97
96
# TODO: Get device id and verify files are deployed and process is
98
97
# running on this device
99
98
100
- def test_300_run_android_patform_not_added (self ):
99
+ def test_301_run_android_patform_not_added (self ):
101
100
create_project (proj_name = "TNS_App_NoPlatform" )
102
101
output = run_aut (
103
- TNS_PATH +
104
- " run android --path TNS_App_NoPlatform --justlaunch" )
102
+ TNS_PATH + " run android --path TNS_App_NoPlatform --justlaunch" )
105
103
106
104
assert "Project successfully created." in output
107
105
assert "Project successfully prepared" in output
108
106
assert "Project successfully built" in output
109
107
assert "Successfully deployed on device with identifier" in output
108
+
109
+ def test_302_run_android_device_not_connected (self ):
110
+ output = run_aut (TNS_PATH + " run android --device xxxxx --path TNS_App_NoPlatform" )
111
+ assert "Cannot resolve the specified connected device" in output
112
+ assert "Project successfully prepared" not in output
113
+ assert "Project successfully built" not in output
114
+ assert "Successfully deployed on device" not in output
0 commit comments