File tree 2 files changed +23
-4
lines changed
2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 2
2
import unittest
3
3
4
4
from helpers ._os_lib import CleanupFolder , runAUT
5
- from helpers ._tns_lib import CreateProjectAndAddPlatform , \
5
+ from helpers ._tns_lib import CreateProject , CreateProjectAndAddPlatform , \
6
6
tnsPath , androidKeyStorePath , androidKeyStorePassword , \
7
7
androidKeyStoreAlias , androidKeyStoreAliasPassword , androidRuntimePath
8
8
from helpers .device import GivenRunningEmulator , GivenRealDeviceRunning
@@ -69,4 +69,13 @@ def test_201_Run_Android_DeviceId(self):
69
69
assert ("Project successfully prepared" in output )
70
70
assert ("Project successfully built" in output )
71
71
assert ("Successfully deployed on device with identifier 'emulator-5554'" in output )
72
- #TODO: Get device id and verify files are deployed and process is running on this device
72
+ #TODO: Get device id and verify files are deployed and process is running on this device
73
+
74
+ def test_210_Run_Android_PlatformNotAdded (self ):
75
+ CreateProject (projName = "TNS_App" )
76
+ output = runAUT (tnsPath + " run android --path TNS_App --justlaunch" )
77
+
78
+ assert ("Project successfully created." in output )
79
+ assert ("Project successfully prepared" in output )
80
+ assert ("Project successfully built" in output )
81
+ assert ("Successfully deployed on device with identifier" in output )
Original file line number Diff line number Diff line change 2
2
import unittest
3
3
4
4
from helpers ._os_lib import CleanupFolder , runAUT , IsRunningProcess
5
- from helpers ._tns_lib import CreateProjectAndAddPlatform , iosRuntimeSymlinkPath , tnsPath
5
+ from helpers ._tns_lib import CreateProject , CreateProjectAndAddPlatform , \
6
+ iosRuntimeSymlinkPath , tnsPath
6
7
from helpers .device import GivenRealDeviceRunning
7
8
8
9
@@ -89,4 +90,13 @@ def test_200_Run_iOS_InsideProject(self):
89
90
assert ("Project successfully prepared" in output )
90
91
assert ("CONFIGURATION Debug" in output )
91
92
assert ("Project successfully built" in output )
92
- assert ("Successfully deployed on device" in output )
93
+ assert ("Successfully deployed on device" in output )
94
+
95
+ def test_210_Run_Android_PlatformNotAdded (self ):
96
+ CreateProject (projName = "TNS_App" )
97
+ output = runAUT (tnsPath + " run ios --path TNS_App --justlaunch" )
98
+
99
+ assert ("Project successfully created." in output )
100
+ assert ("Project successfully prepared" in output )
101
+ assert ("Project successfully built" in output )
102
+ assert ("Successfully deployed on device" in output )
You can’t perform that action at this time.
0 commit comments