Skip to content

Commit 01cf87a

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
1 parent 15a423c commit 01cf87a

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

tests/run_linux.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import unittest
33

44
from helpers._os_lib import CleanupFolder, runAUT
5-
from helpers._tns_lib import CreateProjectAndAddPlatform, \
5+
from helpers._tns_lib import CreateProject, CreateProjectAndAddPlatform, \
66
tnsPath, androidKeyStorePath, androidKeyStorePassword, \
77
androidKeyStoreAlias, androidKeyStoreAliasPassword, androidRuntimePath
88
from helpers.device import GivenRunningEmulator, GivenRealDeviceRunning
@@ -69,4 +69,13 @@ def test_201_Run_Android_DeviceId(self):
6969
assert ("Project successfully prepared" in output)
7070
assert ("Project successfully built" in output)
7171
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)

tests/run_osx.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
import unittest
33

44
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
67
from helpers.device import GivenRealDeviceRunning
78

89

@@ -89,4 +90,13 @@ def test_200_Run_iOS_InsideProject(self):
8990
assert ("Project successfully prepared" in output)
9091
assert ("CONFIGURATION Debug" in output)
9192
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)

0 commit comments

Comments
 (0)