Skip to content

Commit 15e2c4a

Browse files
author
vhristov5555
committed
Merge remote-tracking branch 'origin/master'
2 parents 9171d96 + 579c26f commit 15e2c4a

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

core/device/simulator.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@
1414
class Simulator(object):
1515
@staticmethod
1616
def __get_sim_location():
17-
xcode_location = run(command='xcode-select -p', log_level=CommandLogLevel.SILENT).strip()
18-
sim_location = xcode_location + '/Applications/Simulator.app/Contents/MacOS/Simulator'
17+
output = run(command='xcrun --show-sdk-path', log_level=CommandLogLevel.SILENT).strip()
18+
xcode_location = ''
19+
for paths in output.split('/'):
20+
xcode_location = xcode_location + paths + '/'
21+
if "Xcode" in paths:
22+
break
23+
sim_location = xcode_location + 'Contents/Developer/Applications/Simulator.app'
1924
print "Simulator Application: " + sim_location
2025
return sim_location
2126

Binary file not shown.

tests/templates/starter_kit_templates_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def test_200_run_android_bundle(self, demo):
262262
# Verify application looks correct
263263
Tns.wait_for_log(log_file=log, string_list=Helpers.wp_sync, not_existing_string_list=Helpers.wp_errors,
264264
check_interval=5, timeout=120)
265-
Helpers.android_screen_match(image=demo + '_bundle_sync')
265+
Helpers.android_screen_match(image=demo + '_sync')
266266

267267
# Revert changes
268268
StarterKitsTests.revert_changes(self=self, demo=demo, platform=Platform.ANDROID, device_id=EMULATOR_ID)
@@ -289,7 +289,7 @@ def test_200_run_ios_bundle(self, demo):
289289
# Verify application looks correct
290290
Tns.wait_for_log(log_file=log, string_list=Helpers.wp_sync, not_existing_string_list=Helpers.wp_errors,
291291
check_interval=5, timeout=120)
292-
Helpers.ios_screen_match(sim_id=self.SIMULATOR_ID, image=demo + '_bundle_sync')
292+
Helpers.ios_screen_match(sim_id=self.SIMULATOR_ID, image=demo + '_sync')
293293

294294
# Revert changes
295295
StarterKitsTests.revert_changes(self=self, demo=demo, platform=Platform.IOS,

0 commit comments

Comments
 (0)