Skip to content

Basic tool to run a number of parallel selenium tests against a given endpoint. Mostly for meta-testing.

Notifications You must be signed in to change notification settings

TilBlechschmidt/ParallelSeleniumTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Selenium test dispatcher

This is a tool that simply runs a number of trivial Selenium tests against a given endpoint (in parallel). You provide the endpoint and number of forks via the commandline as first and second argument. Additionally, you can pass a browser name (either firefox or chrome) as the third argument.

Example invokations:

# 5x Firefox against local grid
cargo run -- http://localhost:8080/ 5
cargo run -- http://localhost:8080/ 5 firefox

# 5x Chrome
cargo run -- http://localhost:8080/ 5 chrome

# Same story but with Docker
docker run --rm -it -e ENDPOINT=http://example.com -e FORKS=5 -e BROWSER=chrome ghcr.io/tilblechschmidt/parallelseleniumtest:sha-b0e4408c

# Adjusting the default timeout of 600 seconds per session
TIMEOUT=1200 cargo run <...>

# Timeout adjustment with docker
docker run <...> -e TIMEOUT=1200 <...>

Socket limit

You might need to increase the maximum number of open files (or sockets). On macOS, this can be done temporarily by running the following command:

ulimit -n 10240 10240

About

Basic tool to run a number of parallel selenium tests against a given endpoint. Mostly for meta-testing.

Resources

Stars

Watchers

Forks

Releases

No releases published