- Alternatively, have Selenium Hub with at least one chrome node running.
docker network create grid
docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub
docker run -d --net grid --name chrome-node -e SE_EVENT_BUS_HOST=selenium-hub --shm-size="2g" -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -e SE_NODE_MAX_SESSIONS=2 selenium/node-chrome
or any other grid, hub and node names, if by chance those already exist
by calling maven's clean install
from project root
or clean verify
from fake-news-tests
Check fake-news-tests
module, src/test/java/resources
for features and configs.
By default, solution assumes localhost
as hub host, it can be changed from command line:
clean install -Dremote.driver.url=http://<host>:<port>
fake-news-tests
: target/cucumber-reports
- SpringBoot + Cucumber + Junit5 + Selenium 4
- Works in parallel if enough concurrency available on Hub
- Some tests should fail occasionally (by design)
- Builds and runs as early as Java 8