* [PATCH 0/1] Add support for selenium testing from a mac
@ 2015-09-20 1:23 brian avery
2015-09-20 1:24 ` [PATCH 1/1] toaster: support selenium testing from mac OS X brian avery
0 siblings, 1 reply; 5+ messages in thread
From: brian avery @ 2015-09-20 1:23 UTC (permalink / raw)
To: toaster
This adds a mac section to the cfg file and some mac screenshot code.
Instructions for how to run the tests are on the wiki:
https://wiki.yoctoproject.org/wiki/Testing_Toaster
The following changes since commit 7b86c771c80d0759c2ca0e57c46c4c966f89c49e:
bitbake: bitbake: bb.fetch2.git: Import errno module (2015-09-19 22:38:44 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib bavery/test/mac-selenium-toaster
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/test/mac-selenium-toaster
brian avery (1):
toaster: support selenium testing from mac OS X
lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py | 5 ++++-
lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg | 6 +++++-
2 files changed, 9 insertions(+), 2 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] toaster: support selenium testing from mac OS X
2015-09-20 1:23 [PATCH 0/1] Add support for selenium testing from a mac brian avery
@ 2015-09-20 1:24 ` brian avery
2015-09-22 9:24 ` Smith, Elliot
2015-09-23 14:06 ` Smith, Elliot
0 siblings, 2 replies; 5+ messages in thread
From: brian avery @ 2015-09-20 1:24 UTC (permalink / raw)
To: toaster
* added a mac section to the cfg file
* added mac specific screenshot code
Signed-off-by: brian avery <avery.brian@gmail.com>
---
lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py | 5 ++++-
lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg | 6 +++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py b/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
index 2a2078f..edd699b 100755
--- a/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
+++ b/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
@@ -321,7 +321,10 @@ class toaster_cases_base(unittest.TestCase):
log_path = log_dir + os.sep + self.browser + '-' +\
item + '-' + add_name + '-' + str(self.screenshot_sequence) + '.png'
if item == 'native':
- os.system("scrot " + log_path)
+ if self.host_os == "linux":
+ os.system("scrot " + log_path)
+ elif self.host_os=="darwin":
+ os.system("screencapture -x " + log_path)
elif item == 'selenium':
self.driver.get_screenshot_as_file(log_path)
self.screenshot_sequence += 1
diff --git a/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg b/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
index 6405f9a..685a9ee 100644
--- a/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
+++ b/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
@@ -18,4 +18,8 @@ test_browser = ['ie', 'firefox', 'chrome']
test_cases = [901, 902, 903]
logging_level = 'DEBUG'
-
+[toaster_test_darwin]
+toaster_url = 'http://127.0.0.1:8000'
+test_browser = 'firefox'
+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]
+logging_level = 'INFO'
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] toaster: support selenium testing from mac OS X
2015-09-20 1:24 ` [PATCH 1/1] toaster: support selenium testing from mac OS X brian avery
@ 2015-09-22 9:24 ` Smith, Elliot
2015-09-22 9:38 ` Smith, Elliot
2015-09-23 14:06 ` Smith, Elliot
1 sibling, 1 reply; 5+ messages in thread
From: Smith, Elliot @ 2015-09-22 9:24 UTC (permalink / raw)
To: brian avery; +Cc: toaster
[-- Attachment #1: Type: text/plain, Size: 2563 bytes --]
On 20 September 2015 at 02:24, brian avery <avery.brian@gmail.com> wrote:
> * added a mac section to the cfg file
>
> * added mac specific screenshot code
>
> Signed-off-by: brian avery <avery.brian@gmail.com>
---
> lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py | 5 ++++-
> lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg | 6
> +++++-
>
Should the patch be relative to the root of poky-contrib, rather than
relative to bitbake?
Elliot
> 2 files changed, 9 insertions(+), 2 deletions(-)
>
> diff --git
> a/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
> b/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
> index 2a2078f..edd699b 100755
> --- a/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
> +++ b/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
> @@ -321,7 +321,10 @@ class toaster_cases_base(unittest.TestCase):
> log_path = log_dir + os.sep + self.browser + '-' +\
> item + '-' + add_name + '-' +
> str(self.screenshot_sequence) + '.png'
> if item == 'native':
> - os.system("scrot " + log_path)
> + if self.host_os == "linux":
> + os.system("scrot " + log_path)
> + elif self.host_os=="darwin":
> + os.system("screencapture -x " + log_path)
> elif item == 'selenium':
> self.driver.get_screenshot_as_file(log_path)
> self.screenshot_sequence += 1
> diff --git a/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
> b/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
> index 6405f9a..685a9ee 100644
> --- a/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
> +++ b/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
> @@ -18,4 +18,8 @@ test_browser = ['ie', 'firefox', 'chrome']
> test_cases = [901, 902, 903]
> logging_level = 'DEBUG'
>
> -
> +[toaster_test_darwin]
> +toaster_url = 'http://127.0.0.1:8000'
> +test_browser = 'firefox'
> +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]
> +logging_level = 'INFO'
> --
> 1.9.1
>
> --
> _______________________________________________
> toaster mailing list
> toaster@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/toaster
>
--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
[-- Attachment #2: Type: text/html, Size: 4105 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] toaster: support selenium testing from mac OS X
2015-09-22 9:24 ` Smith, Elliot
@ 2015-09-22 9:38 ` Smith, Elliot
0 siblings, 0 replies; 5+ messages in thread
From: Smith, Elliot @ 2015-09-22 9:38 UTC (permalink / raw)
To: brian avery; +Cc: toaster
[-- Attachment #1: Type: text/plain, Size: 2910 bytes --]
On 22 September 2015 at 10:24, Smith, Elliot <elliot.smith@intel.com> wrote:
> On 20 September 2015 at 02:24, brian avery <avery.brian@gmail.com> wrote:
>
>> * added a mac section to the cfg file
>>
>> * added mac specific screenshot code
>>
>> Signed-off-by: brian avery <avery.brian@gmail.com>
>
> ---
>> lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py | 5
>> ++++-
>> lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg | 6
>> +++++-
>>
>
> Should the patch be relative to the root of poky-contrib, rather than
> relative to bitbake?
>
Apologies Brian, it needs to be relative to bitbake for bitbake-devel, of
course.
Elliot
>
>
>
>
>
>> 2 files changed, 9 insertions(+), 2 deletions(-)
>>
>> diff --git
>> a/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
>> b/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
>> index 2a2078f..edd699b 100755
>> --- a/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
>> +++ b/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
>> @@ -321,7 +321,10 @@ class toaster_cases_base(unittest.TestCase):
>> log_path = log_dir + os.sep + self.browser + '-' +\
>> item + '-' + add_name + '-' +
>> str(self.screenshot_sequence) + '.png'
>> if item == 'native':
>> - os.system("scrot " + log_path)
>> + if self.host_os == "linux":
>> + os.system("scrot " + log_path)
>> + elif self.host_os=="darwin":
>> + os.system("screencapture -x " + log_path)
>> elif item == 'selenium':
>> self.driver.get_screenshot_as_file(log_path)
>> self.screenshot_sequence += 1
>> diff --git a/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
>> b/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
>> index 6405f9a..685a9ee 100644
>> --- a/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
>> +++ b/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
>> @@ -18,4 +18,8 @@ test_browser = ['ie', 'firefox', 'chrome']
>> test_cases = [901, 902, 903]
>> logging_level = 'DEBUG'
>>
>> -
>> +[toaster_test_darwin]
>> +toaster_url = 'http://127.0.0.1:8000'
>> +test_browser = 'firefox'
>> +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]
>> +logging_level = 'INFO'
>> --
>> 1.9.1
>>
>> --
>> _______________________________________________
>> toaster mailing list
>> toaster@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/toaster
>>
>
>
>
> --
> Elliot Smith
> Software Engineer
> Intel Open Source Technology Centre
>
--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
[-- Attachment #2: Type: text/html, Size: 5266 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] toaster: support selenium testing from mac OS X
2015-09-20 1:24 ` [PATCH 1/1] toaster: support selenium testing from mac OS X brian avery
2015-09-22 9:24 ` Smith, Elliot
@ 2015-09-23 14:06 ` Smith, Elliot
1 sibling, 0 replies; 5+ messages in thread
From: Smith, Elliot @ 2015-09-23 14:06 UTC (permalink / raw)
To: brian avery; +Cc: toaster
[-- Attachment #1: Type: text/plain, Size: 2507 bytes --]
Looks good to me.
Submitted to bitbake-devel.
Elliot
On 20 September 2015 at 02:24, brian avery <avery.brian@gmail.com> wrote:
> * added a mac section to the cfg file
>
> * added mac specific screenshot code
>
> Signed-off-by: brian avery <avery.brian@gmail.com>
> ---
> lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py | 5 ++++-
> lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg | 6
> +++++-
> 2 files changed, 9 insertions(+), 2 deletions(-)
>
> diff --git
> a/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
> b/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
> index 2a2078f..edd699b 100755
> --- a/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
> +++ b/lib/toaster/contrib/tts/toasteruitest/toaster_automation_test.py
> @@ -321,7 +321,10 @@ class toaster_cases_base(unittest.TestCase):
> log_path = log_dir + os.sep + self.browser + '-' +\
> item + '-' + add_name + '-' +
> str(self.screenshot_sequence) + '.png'
> if item == 'native':
> - os.system("scrot " + log_path)
> + if self.host_os == "linux":
> + os.system("scrot " + log_path)
> + elif self.host_os=="darwin":
> + os.system("screencapture -x " + log_path)
> elif item == 'selenium':
> self.driver.get_screenshot_as_file(log_path)
> self.screenshot_sequence += 1
> diff --git a/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
> b/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
> index 6405f9a..685a9ee 100644
> --- a/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
> +++ b/lib/toaster/contrib/tts/toasteruitest/toaster_test.cfg
> @@ -18,4 +18,8 @@ test_browser = ['ie', 'firefox', 'chrome']
> test_cases = [901, 902, 903]
> logging_level = 'DEBUG'
>
> -
> +[toaster_test_darwin]
> +toaster_url = 'http://127.0.0.1:8000'
> +test_browser = 'firefox'
> +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]
> +logging_level = 'INFO'
> --
> 1.9.1
>
> --
> _______________________________________________
> toaster mailing list
> toaster@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/toaster
>
--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
[-- Attachment #2: Type: text/html, Size: 3592 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-09-23 14:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-20 1:23 [PATCH 0/1] Add support for selenium testing from a mac brian avery
2015-09-20 1:24 ` [PATCH 1/1] toaster: support selenium testing from mac OS X brian avery
2015-09-22 9:24 ` Smith, Elliot
2015-09-22 9:38 ` Smith, Elliot
2015-09-23 14:06 ` Smith, Elliot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.