-
Understanding docker and its use in selenium test execution
-
Selenium grid setup using docker containers
-
Executing selenium tests sequentially or parallelly on docker containers.
sudo docker ps -a
- one for chrome browser
- one for firefox browser
- one for opera browser
sudo docker-compose up --scale firefox=number(number of instace you want ex: any number) -d
this command will crete n number of firefox broeser instances.
#Execute testing parallel in different container
In thesing.xml file, if you want to change which browser you want to change do this way in xml file change the brosr name like
name example('Chrome Test',Firefox Test', 'Opera test' and the parameter change with browser which you want to run like(chrome-remot,firefox-remote,opera-remote)