I have just created the  #3390
<https://github.com/apache/activemq-artemis/pull/3390> PR to add a basic
smoke test for the web console:
https://github.com/apache/activemq-artemis/pull/3390

The ConsoleTest checks the web console using the selenium framework[1].
The tests can be executed using the local browsers or the webdriver
testcontainers[2].
To use your local Google Chrome browser download the WebDriver for
Chrome[3] and set
the `webdriver.chrome.driver` property with the WebDriver path, ie
-Dwebdriver.chrome.driver=/home/developer/chromedriver_linux64/chromedriver
To use your local Firefox browser download the WebDriver for Firefox[4] and
set
the `webdriver.firefox.driver` property with the WebDriver path, ie
-Dwebdriver.chrome.driver=/home/developer/geckodriver-v0.28.0-linux64/geckodriver
To use the webdriver testcontainers[2] install docker.

[1] https://github.com/SeleniumHQ/selenium
[2] https://www.testcontainers.org/modules/webdriver_containers
[3] https://chromedriver.chromium.org/
[4] https://github.com/mozilla/geckodriver/

Thanks,
Domenico

Il giorno mer 16 dic 2020 alle ore 22:04 Domenico Francesco Bruscino <
bruscin...@gmail.com> ha scritto:

> Bruce and Clebert thanks a lot for your feedback and suggestions. I didn't
> know cypress.io, it is very impressive.
> ATM selenium seems the most advantageous choice because it can be executed
> using the standalone docker images[1] and they can be easily integrated in
> the junit tests using the relative testcontainers modules[2].
> This feature will allow anyone to create and to run the interactive web
> console tests without installing selenium.
> I have updated my POC to use the testcontainers modules[3].
>
> [1] https://hub.docker.com/u/selenium
> [2] https://www.testcontainers.org/modules/webdriver_containers/
> [3]
> https://github.com/brusdev/activemq-artemis/blob/add_console_tests/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/console/ConsoleTest.java
>
> Thanks,
> Domenico
>
>
> Il giorno mer 16 dic 2020 alle ore 19:54 Bruce Snyder <
> bruce.sny...@gmail.com> ha scritto:
>
>> An alternative to Selenium that is much more modern and powerful:
>>
>> https://www.cypress.io/
>>
>> Bruce
>>
>> On Wed, Dec 16, 2020 at 08:18 Clebert Suconic <clebert.suco...@gmail.com>
>> wrote:
>>
>> > Selenium is apache 2.0 license...
>> >
>> >
>> > I'm +1000 on this actually... Go for it!
>> >
>> > On Tue, Dec 15, 2020 at 3:07 PM Clebert Suconic
>> > <clebert.suco...@gmail.com> wrote:
>> > >
>> > > I looked into this.. and it looked a solid choice.
>> > >
>> > > This is a very positive contribution, no one should oppose to anything
>> > > like this IMO.
>> > >
>> > > Only thing I would say is to document on README or Hacking (maybe
>> > > both) on how someone would run such tests....
>> > >
>> > > On Mon, Dec 14, 2020 at 9:31 AM Domenico Francesco Bruscino
>> > > <bruscin...@gmail.com> wrote:
>> > > >
>> > > > I would like to add some tests to check the Artemis web console. I
>> have
>> > > > used the selenium framework[1] to create a POC[2]. Do you know a
>> > better web
>> > > > application testing framework?
>> > > >
>> > > > [1] https://github.com/SeleniumHQ/selenium
>> > > > [2]
>> > > >
>> >
>> https://github.com/brusdev/activemq-artemis/blob/add_console_tests/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/console/ConsoleLoginTest.java
>> > > >
>> > > > Thanks,
>> > > > Domenico
>> > >
>> > >
>> > >
>> > > --
>> > > Clebert Suconic
>> >
>> >
>> >
>> > --
>> > Clebert Suconic
>> >
>> --
>> perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E
>>
>> ActiveMQ in Action: http://bit.ly/2je6cQ
>> Blog: http://bsnyder.org/
>> Twitter: http://twitter.com/brucesnyder
>>
>

Reply via email to