[JIRA] (OVIRT-1788) new ui_sanity scenario for basic_suite -- need multiple firefoxes and chromium

This is a multi-part message in MIME format... ------------=_1512493274-10340-158 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable [ https://ovirt-jira.atlassian.net/browse/OVIRT-1788?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D35= 460#comment-35460 ]=20 Greg Sheremeta commented on OVIRT-1788: --------------------------------------- Take a look at the patch I linked to. # browser binaries and drivers # TODO the suite should install these and latest geckodriver FIREFOX_52_BIN =3D '/opt/firefox-52.5.0esr/firefox' FIREFOX_54_BIN =3D '/opt/firefox-54.0.1/firefox' FIREFOX_57_BIN =3D '/opt/firefox-57.0.1/firefox' It's 3 lines of python that run from an OST test: binary =3D FirefoxBinary(FIREFOX_57_BIN) os.environ['MOZ_HEADLESS'] =3D '1' driver =3D webdriver.Firefox(firefox_binary=3Dbinary) using other FF versions is simply: binary =3D FirefoxBinary(FIREFOX_56_BIN) binary =3D FirefoxBinary(FIREFOX_55_BIN) etc The python selenium library launches Firefox, and yes it can take options i= n the Firefox() constructor, but I'm not sure what you want to customize. (= The part I didn't elaborate on is Marionette, https://developer.mozilla.org= /en-US/docs/Mozilla/QA/Marionette) So, IIUC, you want to have OST running on a machine, and then Firefox in a = container and OST driving the Firefox through the container boundary? If so= , ok, that's more complex than I was aiming for. I was going to have it all= be local. I think what you want is Selenium Grid: http://www.seleniumhq.org/docs/07_s= elenium_grid.jsp """ Selenium-Grid allows you run your tests on different machines against diffe= rent browsers in parallel. That is, running multiple tests at the same time= against different machines running different browsers and operating system= s. Essentially, Selenium-Grid support distributed test execution. It allows= for running your tests in a distributed test execution environment. When to Use It Generally speaking, there=E2=80=99s two reasons why you might want to use S= elenium-Grid. To run your tests against multiple browsers, multiple versions of browser, = and browsers running on different operating systems. """ So maybe we just stand up a grid somewhere? (I believe QE has one -- [~ncre= di]? Also she knows much more about Grid than me -- I've never used it.) The grid would need to be able to connect back to the OST engine.
new ui_sanity scenario for basic_suite -- need multiple firefoxes and chr= omium -------------------------------------------------------------------------=
Key: OVIRT-1788 URL: https://ovirt-jira.atlassian.net/browse/OVIRT-1788 Project: oVirt - virtualization made easy Issue Type: Improvement Components: OST Reporter: Greg Sheremeta Assignee: infra
I'm writing a suite that does headless UI testing. One goal is to open he=
adless firefox and actually open the UI, perform a login, make sure things = look good, make sure there are no ui.log errors, etc. I'll also eventually = add chromium, which can run headless now too.
The suite requires several firefox versions to be installed on the test m= achine, along with chromium. There are also some binary components required= , geckodriver and chromedriver. These are not packaged. Ideally the browsers can be installed to /opt/firefox55, /opt/firefox56, = /opt/chromium62, etc. on the machine running the suite. So I think it makes= sense to maintain a custom rpm with all of this. Where can this rpm live? What is a reliable way to do this? (I know we wa= nt to avoid copr.)
-- This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100074) ------------=_1512493274-10340-158 Content-Type: text/html; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable <html><body> <pre>[ https://ovirt-jira.atlassian.net/browse/OVIRT-1788?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D35460#comment-35460 ]</pre> <h3>Greg Sheremeta commented on OVIRT-1788:</h3> <p>Take a look at the patch I linked to.</p> <p># browser binaries and drivers # TODO the suite should install these and= latest geckodriver FIREFOX_52_BIN =3D ‘/opt/firefox-52.5.0esr/firefo= x’ FIREFOX_54_BIN =3D ‘/opt/firefox-54.0.1/firefox’ FIREF= OX_57_BIN =3D ‘/opt/firefox-57.0.1/firefox’</p> <p>It's 3 lines of python that run from an OST test:</p> <pre>binary =3D FirefoxBinary(FIREFOX_57_BIN) os.environ['MOZ_HEADLESS'] =3D '1' driver =3D webdriver.Firefox(firefox_binary=3Dbinary)</pre> <p>using other FF versions is simply:</p> <pre>binary =3D FirefoxBinary(FIREFOX_56_BIN) binary =3D FirefoxBinary(FIREFOX_55_BIN)</pre> <p>etc</p> <p>The python selenium library launches Firefox, and yes it can take option= s in the Firefox() constructor, but I'm not sure what you want to customize= . (The part I didn't elaborate on is Marionette, <a href=3D"https://develop= er.mozilla.org/en-US/docs/Mozilla/QA/Marionette">https://developer.mozilla.= org/en-US/docs/Mozilla/QA/Marionette</a>)</p> <p>So, IIUC, you want to have OST running on a machine, and then Firefox in= a container and OST driving the Firefox through the container boundary? If= so, ok, that's more complex than I was aiming for. I was going to have it = all be local.</p> <p>I think what you want is Selenium Grid: <a href=3D"http://www.seleniumhq= .org/docs/07_selenium_grid.jsp">http://www.seleniumhq.org/docs/07_selenium_= grid.jsp</a> """ Selenium-Grid allows you run your tests on = different machines against different browsers in parallel. That is, running= multiple tests at the same time against different machines running differe= nt browsers and operating systems. Essentially, Selenium-Grid support distr= ibuted test execution. It allows for running your tests in a distributed te= st execution environment. When to Use It Generally speaking, there=E2=80=99= s two reasons why you might want to use Selenium-Grid. To run your tests ag= ainst multiple browsers, multiple versions of browser, and browsers running= on different operating systems. """</p> <p>So maybe we just stand up a grid somewhere? (I believe QE has one &mdash= ; [~ncredi]? Also she knows much more about Grid than me — I've never= used it.)</p> <p>The grid would need to be able to connect back to the OST engine.</p> <blockquote><h3>new ui_sanity scenario for basic_suite — need multipl= e firefoxes and chromium</h3> <pre> Key: OVIRT-1788 URL: https://ovirt-jira.atlassian.net/browse/OVIRT-1788 Project: oVirt - virtualization made easy Issue Type: Improvement Components: OST Reporter: Greg Sheremeta Assignee: infra</pre> <p>I'm writing a suite that does headless UI testing. One goal is to open h= eadless firefox and actually open the UI, perform a login, make sure things= look good, make sure there are no ui.log errors, etc. I'll also eventually= add chromium, which can run headless now too. The suite requires several f= irefox versions to be installed on the test machine, along with chromium. T= here are also some binary components required, geckodriver and chromedriver= . These are not packaged. Ideally the browsers can be installed to /opt/fir= efox55, /opt/firefox56, /opt/chromium62, etc. on the machine running the su= ite. So I think it makes sense to maintain a custom rpm with all of this. W= here can this rpm live? What is a reliable way to do this? (I know we want = to avoid copr.)</p></blockquote> <p>— This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#1000= 74)</p> <img src=3D"https://u4043402.ct.sendgrid.net/wf/open?upn=3Di5TMWGV99amJbNxJ= pSp2-2BJ33BSM3tuiUfRTk64K-2BOjH-2Brod5IlW2oCW2L6mmZR4CqZP8-2Fo2mgksV-2FYoRa= 1KKSyaHxiHy7u3Ic70psYh3BcrXZiTitLSss6vjRIvZwRnqzcsUnXl2fYBC8D1FsJhhv3USWqic= 26zvbCvDpaDvm9ZfemGyKMMj-2BDJGgZiQz8vAtILAMzDYXLjHVtommuM2vR0HI3tBpOte0Q3io= 05wdjHX7kdD59QCxDKDXAqdD2Z92K04-2FFV-2BPii8PI7966duV64idBwVNxBdr-2BkidHtezu= yVFdMKAloxpeEXrvZbxg-2B0BSK4SZM5slh3piExZHyEJ2MN-2F8bgZRGLOS9SvoUlUZPNyUQ9P= t9apHEhhkwrBm51StmnEVB153x0Z9oOOHM7SrVrK9u1gjblV11mfQtARbJoZHYrao6oi1kAC7Kt= COsk" alt=3D"" width=3D"1" height=3D"1" border=3D"0" style=3D"height:1px !i= mportant;width:1px !important;border-width:0 !important;margin-top:0 !impor= tant;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !im= portant;padding-top:0 !important;padding-bottom:0 !important;padding-right:= 0 !important;padding-left:0 !important;"/> </body></html> ------------=_1512493274-10340-158--
participants (1)
-
Greg Sheremeta (oVirt JIRA)