@@ -26,12 +26,14 @@ def setUp(self):
26
26
GivenRunningEmulator ()
27
27
GivenRealDeviceRunning (platform = "android" )
28
28
CleanupFolder ('./TNS_App/platforms/android/build/outputs' )
29
+ CleanupFolder ('./appTest' )
29
30
30
31
def tearDown (self ):
31
32
pass
32
33
33
34
@classmethod
34
35
def tearDownClass (cls ):
36
+ CleanupFolder ('./appTest' )
35
37
CleanupFolder ('./TNS_App' )
36
38
CleanupFolder ('./TNS_App_NoPlatform' )
37
39
@@ -69,11 +71,13 @@ def test_200_Run_Android_InsideProject(self):
69
71
assert ("Project successfully built" in output )
70
72
assert ("Successfully deployed on device with identifier" in output )
71
73
72
- def test_201_Run_Android_DeviceId (self ):
73
- output = runAUT (tnsPath + " run android --device emulator-5554 --path TNS_App --justlaunch" )
74
- assert ("Project successfully prepared" in output )
75
- assert ("Project successfully built" in output )
76
- assert ("Successfully deployed on device with identifier 'emulator-5554'" in output )
74
+ def test_201_Run_Android_DeviceId_RenamedProjDir (self ):
75
+ runAUT ("mv TNS_App appTest" )
76
+ output = runAUT (tnsPath + " run android --device emulator-5554 --path appTest --justlaunch" )
77
+ assert ("Project successfully prepared" in output )
78
+ assert ("Project successfully built" in output )
79
+ assert ("appTest/platforms/android/build/outputs/apk/TNSApp-debug.apk" in output )
80
+ assert ("Successfully deployed on device with identifier 'emulator-5554'" in output )
77
81
#TODO: Get device id and verify files are deployed and process is running on this device
78
82
79
83
def test_300_Run_Android_PlatformNotAdded (self ):
0 commit comments