[jira] [Closed] (PLUTO-661) Enable the Portlet 3.0 TCK to use an alternate Firefox/Chrome browser binary and assume Chrome can be run headless

"Neil Griffin (JIRA)" <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.devel
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/PLUTO-661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Neil Griffin closed PLUTO-661.
------------------------------
       Resolution: Fixed
         Assignee: Neil Griffin  (was: Scott Nicklous)
    Fix Version/s: 3.0.1

> Enable the Portlet 3.0 TCK to use an alternate Firefox/Chrome browser binary and assume Chrome can be run headless
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: PLUTO-661
>                 URL: https://issues.apache.org/jira/browse/PLUTO-661
>             Project: Pluto
>          Issue Type: Improvement
>          Components: tck
>    Affects Versions: 3.0.0
>            Reporter: Vernon Singleton
>            Assignee: Neil Griffin
>            Priority: Minor
>             Fix For: 3.0.1
>
>
> Currently the Portlet 3.0 TCK pom.xml descriptor has a hard-coded path to the Chrome binary:
> {code:xml|title=pom.xml}
> <test.browser.webDriver>c:/ntutil/chromedriver.exe</test.browser.webDriver>
> {code}
> This task will enable the Portlet 3.0 TCK to use an alternate Firefox/Chrome browser binary and assume Chrome can be run headless ([a feature introduced for Linux/Mac in Chrome 59, Windows support in Chrome 60|https://developers.google.com/web/updates/2017/04/headless-chrome]). When finished, testing the TCK can be accomplished with commands similar to the following:
> {noformat}
> # Headless Chrome with alternate Chrome driver and Chrome binary path
> cd portlet-tck_3.0/
>     -Dtest.browser=chrome \
>     -Dtest.browser.webDriver=/Users/foo/bin/chromedriver \
>     -Dtest.browser.binary=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
> {noformat}
> {noformat}
> # Non-headless (full UI) Chrome with alternate Chrome driver and Chrome binary path
> cd portlet-tck_3.0/
> mvn test -Prun-tck \
>     -Dtest.browser=chrome \
>     -Dtest.browser.webDriver=/usr/local/bin/chromedriver \
>     -Dtest.browser.binary=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
>     -Dtest.browser.headless=false 
> {noformat}
> {noformat}
> # Non-headless (full UI) Firefox with alternate Firefox binary path
> cd portlet-tck_3.0/
> mvn test -Prun-tck \
>     -Dtest.browser=firefox \
>     -Dtest.browser.binary=/Applications/Firefox_46.0.1.app/Contents/MacOS/firefox 
> # NOTE: this version of webdriver only works up to firefox version 46.0.1
> # We may need to switch to use the newer gecko driver for newer versions of firefox
> {noformat}
> {noformat}
> # headless phantomjs with alternate binary path specified
> mvn test -Prun-tck \
>     -Dtest.browser=phantomjs \
>     -Dtest.browser.binary=/usr/local/bin/phantomjs
> {noformat}
> {noformat}
> # headless htmlunit
> mvn test -Prun-tck \
>     -Dtest.browser=htmlUnit
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.