16
16
import unittest
17
17
18
18
import nose
19
- from flaky import flaky
20
19
21
20
from core .base_class .BaseClass import BaseClass
22
21
from core .device .device import Device
26
25
from core .osutils .file import File
27
26
from core .osutils .folder import Folder
28
27
from core .osutils .os_type import OSType
29
- from core .osutils .process import Process
30
28
from core .settings .settings import ANDROID_RUNTIME_PATH , ANDROID_KEYSTORE_PATH , ANDROID_KEYSTORE_PASS , \
31
29
ANDROID_KEYSTORE_ALIAS , ANDROID_KEYSTORE_ALIAS_PASS , EMULATOR_ID , EMULATOR_NAME , CURRENT_OS
32
30
from core .settings .strings import cannot_resolve_device , list_devices
@@ -63,7 +61,6 @@ def tearDownClass(cls):
63
61
BaseClass .tearDownClass ()
64
62
Emulator .stop () # We need this because of test_400_tns_run_android_respect_adb_errors
65
63
66
- @flaky (max_runs = 2 )
67
64
def test_001_tns_run_android_js_css_xml_manifest (self ):
68
65
"""Make valid changes in JS,CSS and XML"""
69
66
@@ -73,7 +70,7 @@ def test_001_tns_run_android_js_css_xml_manifest(self):
73
70
strings = ['Project successfully built' ,
74
71
'Successfully installed on device with identifier' , EMULATOR_ID ,
75
72
'Successfully synced application' ]
76
- Tns .wait_for_log (log_file = log , string_list = strings , timeout = 150 , check_interval = 10 )
73
+ Tns .wait_for_log (log_file = log , string_list = strings , timeout = 180 , check_interval = 10 )
77
74
78
75
# Verify app looks correct inside emulator
79
76
Device .screen_match (device_name = EMULATOR_NAME , device_id = EMULATOR_ID ,
@@ -129,7 +126,6 @@ def test_001_tns_run_android_js_css_xml_manifest(self):
129
126
Device .screen_match (device_name = EMULATOR_NAME , device_id = EMULATOR_ID ,
130
127
expected_image = 'livesync-hello-world_home' )
131
128
132
- @flaky (max_runs = 2 )
133
129
def test_100_tns_run_android_release (self ):
134
130
"""Make valid changes in JS,CSS and HTML"""
135
131
@@ -146,7 +142,7 @@ def test_100_tns_run_android_release(self):
146
142
147
143
strings = ['Project successfully prepared' , 'Project successfully built' ,
148
144
'Successfully installed on device with identifier' , EMULATOR_ID ]
149
- Tns .wait_for_log (log_file = log , string_list = strings , timeout = 120 , check_interval = 10 )
145
+ Tns .wait_for_log (log_file = log , string_list = strings , timeout = 150 , check_interval = 10 )
150
146
151
147
# Verify app looks correct inside emulator
152
148
Device .screen_match (device_name = EMULATOR_NAME ,
@@ -169,7 +165,7 @@ def test_100_tns_run_android_release(self):
169
165
'--release' : '' }, wait = False , assert_success = False )
170
166
171
167
strings = ['Project successfully prepared' ]
172
- Tns .wait_for_log (log_file = log , string_list = strings )
168
+ Tns .wait_for_log (log_file = log , string_list = strings , timeout = 60 )
173
169
174
170
# Verify app looks is update after changes in js, css and xml
175
171
Device .screen_match (device_name = EMULATOR_NAME , device_id = EMULATOR_ID ,
0 commit comments