diff options
Diffstat (limited to 'bitbake/lib/toaster/contrib/tts')
-rwxr-xr-x | bitbake/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py | 5 | ||||
-rw-r--r-- | bitbake/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py b/bitbake/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py index 2a2078f080..edd699bd3d 100755 --- a/bitbake/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py +++ b/bitbake/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py | |||
@@ -321,7 +321,10 @@ class toaster_cases_base(unittest.TestCase): | |||
321 | log_path = log_dir + os.sep + self.browser + '-' +\ | 321 | log_path = log_dir + os.sep + self.browser + '-' +\ |
322 | item + '-' + add_name + '-' + str(self.screenshot_sequence) + '.png' | 322 | item + '-' + add_name + '-' + str(self.screenshot_sequence) + '.png' |
323 | if item == 'native': | 323 | if item == 'native': |
324 | os.system("scrot " + log_path) | 324 | if self.host_os == "linux": |
325 | os.system("scrot " + log_path) | ||
326 | elif self.host_os=="darwin": | ||
327 | os.system("screencapture -x " + log_path) | ||
325 | elif item == 'selenium': | 328 | elif item == 'selenium': |
326 | self.driver.get_screenshot_as_file(log_path) | 329 | self.driver.get_screenshot_as_file(log_path) |
327 | self.screenshot_sequence += 1 | 330 | self.screenshot_sequence += 1 |
diff --git a/bitbake/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg b/bitbake/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg index 6405f9a8ef..685a9ee6af 100644 --- a/bitbake/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg +++ b/bitbake/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg | |||
@@ -18,4 +18,8 @@ test_browser = ['ie', 'firefox', 'chrome'] | |||
18 | test_cases = [901, 902, 903] | 18 | test_cases = [901, 902, 903] |
19 | logging_level = 'DEBUG' | 19 | logging_level = 'DEBUG' |
20 | 20 | ||
21 | 21 | [toaster_test_darwin] | |
22 | toaster_url = 'http://127.0.0.1:8000' | ||
23 | test_browser = 'firefox' | ||
24 | test_cases = [901, 902, 903, 904, 906, 910, 911, 912, 913, 914, 915, 916, 923, 924, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 955, 956] | ||
25 | logging_level = 'INFO' | ||