summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorbrian avery <avery.brian@gmail.com>2015-09-23 15:05:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-23 22:44:54 +0100
commit4c5af777ea88ee82e34a6730f69d8550bbc6f8dd (patch)
tree92e431bab70606e1028f87f881283be31ddcfb5c /bitbake
parente6c497097f3b0b5c457c1f9e47fa08c9d6de69b8 (diff)
downloadpoky-4c5af777ea88ee82e34a6730f69d8550bbc6f8dd.tar.gz
bitbake: toaster: support selenium testing from mac OS X
* added a mac section to the cfg file * added mac specific screenshot code (Bitbake rev: bf8748aafc2291bb814fe0ec8a28d5eed9a1d5f0) Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py5
-rw-r--r--bitbake/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg6
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']
18test_cases = [901, 902, 903] 18test_cases = [901, 902, 903]
19logging_level = 'DEBUG' 19logging_level = 'DEBUG'
20 20
21 21[toaster_test_darwin]
22toaster_url = 'http://127.0.0.1:8000'
23test_browser = 'firefox'
24test_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]
25logging_level = 'INFO'